← 返回 Skills 市场
dinghaibin

Groups Tool

作者 BIN · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
41
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install groups-tool
功能描述
Display user group memberships on the system. Shows all groups a user belongs to for permission auditing and access control verification.
使用说明 (SKILL.md)

Groups - User Group Membership Checker

Display all group memberships for the current user or a specified system user. Group membership determines file access permissions and sudo privileges on Unix-like systems.

Usage

groups-tool [options] [username]

When called without arguments, shows groups for the current user. Specify a username to check another user's memberships.

Examples

# Show groups for current user
groups-tool

# Show groups for a specific user
groups-tool www-data

# Show numeric group IDs
groups-tool -id

Notes

Groups are read from /etc/group and can include both primary and supplementary group memberships. Changes to group membership take effect on next login.

安全使用建议
This skill's documentation describes a full CLI that shows all groups for a specified user and supports options, but the included script is much more limited: it only prints supplementary groups for the current login user and does not implement username arguments or the -id option. It's not malicious, but it's inconsistent and likely non-functional for the documented use-cases. Before installing or trusting this skill: 1) ask the publisher for a corrected implementation that supports username argument, numeric ID option, and includes the primary group; 2) inspect or run the script in a safe/test environment (note os.getlogin() can fail in non-interactive contexts); 3) prefer an implementation that uses pwd.getpwuid(os.getuid()) for the current user and checks primary group via grp.getgrgid(), and that has CLI parsing. If you need the documented features, do not rely on the current package as-is.
功能分析
Type: OpenClaw Skill Name: groups-tool Version: 1.0.0 The skill bundle provides a simple utility to list group memberships for the current user. While the documentation in SKILL.md describes features (like checking other users or numeric IDs) that are not actually implemented in the scripts/groups.py script, the code itself is harmless and performs read-only operations using standard Python libraries (grp, os) without any signs of malicious intent or data exfiltration.
能力评估
Purpose & Capability
SKILL.md claims a full CLI (groups-tool [options] [username], -id option, ability to query another user, and mentions primary and supplementary groups). The bundled script (scripts/groups.py) only checks grp.getgrall() and prints group names where os.getlogin() appears in gr_mem — i.e., it only finds supplementary groups for the current login user. It does not accept a username argument, does not implement -id, and does not include the primary group (gid) lookup. This is a mismatch between claimed capability and actual implementation.
Instruction Scope
SKILL.md instructs running a CLI with options and querying /etc/group; the script does read the group database via the grp module (consistent with reading /etc/group) but the runtime instructions expect behavior the code does not provide. The script only prints supplementary groups for the login user, and uses os.getlogin(), which may fail in non-interactive contexts. There is no instruction to handle failures or to accept alternate usernames, so agent runtime behavior could be surprising or non-functional.
Install Mechanism
No install spec and only a small local script are included. Nothing is downloaded or written at install time — lowest install risk.
Credentials
No environment variables, credentials, or external endpoints are requested. The skill reads the system group database only, which is appropriate for its stated purpose.
Persistence & Privilege
always is false, model invocation is allowed (default). The skill does not request persistent system presence or modify other skill/system configurations. No elevated privileges are requested.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install groups-tool
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /groups-tool 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug groups-tool
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Groups Tool 是什么?

Display user group memberships on the system. Shows all groups a user belongs to for permission auditing and access control verification. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 41 次。

如何安装 Groups Tool?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install groups-tool」即可一键安装,无需额外配置。

Groups Tool 是免费的吗?

是的,Groups Tool 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Groups Tool 支持哪些平台?

Groups Tool 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Groups Tool?

由 BIN(@dinghaibin)开发并维护,当前版本 v1.0.0。

💬 留言讨论