About sync-skills
sync-skills is a repository-specific maintenance skill for the hal-9000 project. It discovers skills and synchronizes their listings, permissions, and links before running the project sync command.
Key features
- 01Discover skills and their metadata
- 02Update the README skill list
- 03Sync user-invocable skill permissions
- 04Sync skill directory links
- 05Run `./bin/hal sync`
Use cases
- 01Refresh the README after skills change
- 02Align allowed skills with frontmatter
- 03Update links for added or removed skills
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ vinta/ hal-9000 --skill sync-skillsAfter installing, type/sync-skillsin Claude Code to confirm it loaded.
Details
From the project READMEInstructions
IMPORTANT: Only use this skill in /usr/local/hal-9000. Otherwise, abort.
-
Discover skills
- Glob
skills/*/SKILL.mdin/usr/local/hal-9000only - Extract
namefrom each YAML frontmatter - Rewrite each
descriptioninto one short sentence (~10 words max) saying what it does — no "Use when" triggers, no verbatim frontmatter copy
- Glob
-
Update
README.md(the### Agent Skillssection)- Format:
- [name](skills/name): description - Use the rewritten description from step 1
- Add new skills, remove deleted skills, update changed descriptions
- Preserve existing entry order; append new entries at end
- Format:
-
Update
dotfiles/.claude/settings.json(thepermissions.allowarray)- Sync the
Skill(...)entries to match discovered user-invocable skills - Only include skills with
user-invocable: truein frontmatter - Format:
"Skill(<name>)" - Add new skills, remove entries whose skill no longer exists
- Preserve existing entry order; append new entries at end
- Keep the entries in the same position block (between other tool entries)
- Sync the
-
Update
dotfiles/hal_dotfiles.json(thelinksarray)- Format:
{"dest": "{{HOME}}/.claude/skills/<name>/", "src": "{{REPO_ROOT}}/skills/<name>/"} - Add new skill dirs, remove entries whose
"src"matches{{REPO_ROOT}}/skills/*but no longer has a matching skill - Preserve existing entry order; append new entries at end
- Leave non-skill entries and
copiesarray as-is
- Format:
-
Run
./bin/hal sync, then report what changed.
Comments
Markdown supported