skill-manager
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSkill Lifecycle Manager
Skill 生命周期管理器
This skill helps you maintain your library of GitHub-wrapped skills by automating the detection of updates and assisting in the refactoring process.
该Skill可通过自动检测更新并协助重构流程,帮助你维护基于GitHub封装的Skill库。
Core Capabilities
核心功能
- Audit: Scans your local skills folder for skills with metadata.
github_url - Check: Queries GitHub (via ) to compare local commit hashes against the latest remote HEAD.
git ls-remote - Report: Generates a status report identifying which skills are "Stale" or "Current".
- Update Workflow: Provides a structured process for the Agent to upgrade a skill.
- Inventory Management: Lists all local skills and provides deletion capabilities.
- 审计:扫描本地Skill文件夹,查找包含元数据的Skill。
github_url - 检查:通过查询GitHub,对比本地提交哈希与远程最新HEAD。
git ls-remote - 报告:生成状态报告,标记哪些Skill是“过时”或“当前最新”。
- 更新流程:为Agent提供结构化的Skill升级流程。
- 库存管理:列出所有本地Skill并提供删除功能。
Usage
使用方法
Trigger: or "Scan my skills for updates"
Trigger: or "List my skills"
Trigger: or "Delete skill <skill_name>"
/skill-manager check/skill-manager list/skill-manager delete <skill_name>触发方式: 或 “扫描我的Skill以获取更新”
触发方式: 或 “列出我的Skill”
触发方式: 或 “删除Skill <skill_name>”
/skill-manager check/skill-manager list/skill-manager delete <skill_name>Workflow 1: Check for Updates
流程1:检查更新
- Run Scanner: The agent runs to analyze all skills.
scripts/scan_and_check.py - Review Report: The script outputs a JSON summary. The Agent presents this to the user.
- Example: "Found 3 outdated skills: (behind 50 commits),
yt-dlp(behind 2 commits)..."ffmpeg-tool
- Example: "Found 3 outdated skills:
- 运行扫描器:Agent执行来分析所有Skill。
scripts/scan_and_check.py - 查看报告:脚本输出JSON摘要,Agent将其呈现给用户。
- 示例:“发现3个过时的Skill:(落后50次提交)、
yt-dlp(落后2次提交)...”ffmpeg-tool
- 示例:“发现3个过时的Skill:
Workflow 2: Update a Skill
流程2:更新Skill
Trigger: "Update [Skill Name]" (after a check)
- Fetch New Context: The agent fetches the new README from the remote repo.
- Diff Analysis:
- The agent compares the new README with the old .
SKILL.md - Identifies new features, deprecated flags, or usage changes.
- The agent compares the new README with the old
- Refactor:
- The agent rewrites to reflect the new capabilities.
SKILL.md - The agent updates the in the frontmatter.
github_hash - The agent (optionally) attempts to update the if CLI args have changed.
wrapper.py
- The agent rewrites
- Verify: Runs a quick validation (if available).
触发方式:“更新[Skill名称]”(检查之后)
- 获取新内容:Agent从远程仓库获取新的README。
- 差异分析:
- Agent将新README与旧的进行对比。
SKILL.md - 识别新功能、已弃用的参数或使用方式变更。
- Agent将新README与旧的
- 重构:
- Agent重写以体现新功能。
SKILL.md - Agent更新前置元数据中的。
github_hash - 如果CLI参数发生变化,Agent(可选)尝试更新。
wrapper.py
- Agent重写
- 验证:运行快速验证(如果可用)。
Scripts
脚本
- : The workhorse. Scans directories, parses Frontmatter, fetches remote tags, returns status.
scripts/scan_and_check.py - : (Optional) Helper to backup files before update.
scripts/update_helper.py - : Lists all installed skills with type and version.
scripts/list_skills.py - : Permanently removes a skill folder.
scripts/delete_skill.py
- : 核心脚本。扫描目录、解析前置元数据、获取远程标签、返回状态。
scripts/scan_and_check.py - : (可选) 更新前备份文件的辅助脚本。
scripts/update_helper.py - : 列出所有已安装的Skill及其类型和版本。
scripts/list_skills.py - : 永久删除Skill文件夹。
scripts/delete_skill.py
Metadata Requirements
元数据要求
This manager relies on the metadata standard:
github-to-skills- : Source of truth.
github_url - : State of truth.
github_hash
该管理器依赖元数据标准:
github-to-skills- : 数据源基准。
github_url - : 状态基准。
github_hash