local-skill-manager

本地 Skill 目录的集中管理工具("Skill 管家")。当用户想要: (1) 列出或查询已安装的 Skill(系统级或用户级); (2) 检查各 Skill 的版本信息; (3) 使用标准模板快速创建新的本地 Skill; (4) 删除或移除不再需要的 Skill。 请使用此技能。

MIT-0 · Free to use, modify, and redistribute. No attribution required.
0 · 170 · 1 current installs · 1 all-time installs
byChenChen@chenchen913
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description (manage, list, create, delete local skills) match the included scripts and SKILL.md. All required actions (listing SKILL.md, scaffolding a skill folder, deleting a folder) are implemented and there are no unrelated environment variables, binaries, or external services requested.
Instruction Scope
SKILL.md explicitly instructs using the provided Python scripts for operations and to install pyyaml from requirements.txt. The scripts only read/write files under the computed skills root and parse SKILL.md frontmatter. There are no instructions to read unrelated system files or exfiltrate data.
Install Mechanism
No install mechanism is declared beyond an in-repo requirements.txt (pyyaml). No remote downloads, package installs from arbitrary URLs, or archive extraction are present.
Credentials
The skill requests no environment variables, credentials, or config paths. The code operates on local filesystem paths relative to the script location; this is proportionate to a local skill-manager.
Persistence & Privilege
always is false and the skill does not attempt to modify other skills' configurations or system-wide agent settings. It runs as a normal local utility invoked by the user.
Assessment
This skill appears coherent and focused on managing local Skill directories. Before installing/using it: (1) Run the scripts from the expected location (the scripts compute the skills root as two levels above the scripts/ folder); placing the repo elsewhere will make them operate relative to that location. (2) Use --dry-run and the default confirmation prompt before deleting anything; the delete script includes safety checks but performing a dry-run and backups is prudent. (3) Install requirements (pyyaml) into the correct Python environment (avoid installing into system Python if you don't intend to). (4) Review and run the scripts with a non-privileged user (do not run as root) to reduce blast radius. (5) If you need stricter guarantees, inspect the code yourself or run it in a controlled environment first. Overall there are no network calls or credential accesses in the code.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.1
Download zip
ai-developmentvk976h3t122ykssdhdfw2zgmkdd8395a1cli-toolsvk976h3t122ykssdhdfw2zgmkdd8395a1developer-toolsvk976h3t122ykssdhdfw2zgmkdd8395a1environment-managementvk976h3t122ykssdhdfw2zgmkdd8395a1latestvk976h3t122ykssdhdfw2zgmkdd8395a1local-toolsvk976h3t122ykssdhdfw2zgmkdd8395a1scaffoldingvk976h3t122ykssdhdfw2zgmkdd8395a1skill-managementvk976h3t122ykssdhdfw2zgmkdd8395a1skill-managervk976h3t122ykssdhdfw2zgmkdd8395a1toolchainvk976h3t122ykssdhdfw2zgmkdd8395a1version-checkvk976h3t122ykssdhdfw2zgmkdd8395a1

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

本地 Skill 管家

本技能是 skills/ 目录的集中管理工具,提供查询、监控、创建和删除 Skill 的能力,帮助你保持开发环境的整洁有序。

前置依赖

使用本技能前,请确认已安装依赖:

pip install -r requirements.txt

requirements.txt 包含:pyyaml(用于解析 SKILL.md 的 YAML frontmatter)


功能说明

1. 查询与列出 Skill

列出所有已安装的 Skill(含系统级和用户级),显示名称、版本和描述。

触发示例:

  • "列出我的 Skill"
  • "我有哪些 Skill"
  • "查询所有 Skill"

2. 版本检查

检查每个 Skill 的版本号,确认是否为最新版本。

触发示例:

  • "检查 Skill 版本"
  • "我的 Skill 是什么版本"

3. 创建新 Skill

使用标准目录结构(scripts/references/assets/)和 SKILL.md 模板快速脚手架一个新 Skill。

触发示例:

  • "创建一个名为 'data-analyzer' 的新 Skill"
  • "新建一个 Skill"

4. 删除 Skill

安全地移除一个 Skill 目录,内置多层安全保护:路径名格式校验、受保护 Skill 拦截、路径遍历防护、软链接警告、二次确认提示。

触发示例:

  • "删除 'old-test-skill' 这个 Skill"

可用参数:

  • --dry-run:预览将要删除的路径,不实际执行(推荐先用此参数确认)
  • --force:跳过确认提示,直接删除(谨慎使用)

脚本说明

所有脚本位于 scripts/ 目录:

脚本功能
list_skills.py扫描并列出所有 Skill
check_versions.py检查各 Skill 的版本元数据
create_skill.py初始化新 Skill 的标准目录结构
delete_skill.py安全移除指定 Skill 目录

执行规则

重要:必须使用以下脚本执行操作,禁止直接使用 lsglob 命令操作 skills/ 目录。

脚本路径结构(从 Skill 根目录相对引用):

# 列出所有 Skill
python scripts/list_skills.py

# 检查版本
python scripts/check_versions.py

# 创建新 Skill(将 skill-name 替换为你的 Skill 名称)
python scripts/create_skill.py "skill-name"

# 删除 Skill(将 skill-name 替换为要删除的 Skill 名称)
# 推荐先用 --dry-run 预览,确认无误后再实际删除
python scripts/delete_skill.py "skill-name" --dry-run
python scripts/delete_skill.py "skill-name"

注意:如果你的平台将 Skills 存放在特定子目录下(如 .trae/skills/),请在命令前加上对应的完整路径前缀,例如:

python .trae/skills/local-skill-manager/scripts/list_skills.py

Files

6 total
Select a file
Select a file to preview.

Comments

Loading comments…