sync-skills

📁 vinta/hal-9000 📅 6 days ago
30
总安装量
7
周安装量
#12345
全站排名
安装命令
npx skills add https://github.com/vinta/hal-9000 --skill sync-skills

Agent 安装分布

opencode 7
codex 7
claude-code 7
antigravity 7
replit 3

Skill 文档

Instructions

IMPORTANT: Only use this skill in /usr/local/hal-9000. Otherwise, abort.

  1. Discover skills: Glob for skills/*/SKILL.md rooted at this repository (/usr/local/hal-9000). Do NOT search any other directory. Extract name and description from each YAML frontmatter.

  2. Update dotfiles/.claude/CLAUDE.md: In the ## Skills section (up to the next ## heading or EOF), sync entries with discovered skills: add new skills, remove deleted skills, and update descriptions for existing skills whose frontmatter description has changed. Do NOT reorder existing entries — preserve their exact current order. Append new entries at the end. Format: - \name` — description`

  3. Update dotfiles/hal_dotfiles.json: In the links array, add entries for newly discovered skill directories and remove entries whose "src" matches "{{REPO_ROOT}}/skills/*" but no longer has a corresponding skill. Do NOT reorder existing entries — preserve their exact current order. Append new entries at the end. Format: {"dest": "{{HOME}}/.claude/skills/<name>/", "src": "{{REPO_ROOT}}/skills/<name>/"}. Preserve all non-skill entries and the copies array as-is.

  4. Run ./bin/hal sync, then report what changed.