shared-skill-authoring
Use this skill when working on the cross-harness skill library in ~/src/acfs-agent-skills.
Contract
~/src/acfs-agent-skillsis the only source of truth.~/.claude/skills/*and~/.codex/skills/*should be symlinks into that repo.- Never create or edit skills directly inside the harness-specific directories.
- Exception: skills listed in
scripts/tool-managed.txt(currentlyrch,pfr,pi-agent-rust) are owned by their tool's installer and live in the harness dirs as real directories. Never symlink or edit them there; refresh the repo's reference snapshot from the harness copy instead (cp -R ~/.codex/skills/rch/. rch/).
Workflow
- Audit current state before editing:
cd ~/src/acfs-agent-skills
bash scripts/audit-drift.sh
- Edit only in the canonical repo:
- New skill: create
<skill-name>/SKILL.md - Optional: add
references/,scripts/, andscripts/self-test.sh - Update SKILLS-CATALOG.md when adding a new skill
- Validate the specific skill:
bash scripts/test-all.sh --skill <skill-name>
- Install through the shared installer, not by copying files manually:
bash scripts/install.sh
- Re-audit after install:
bash scripts/audit-drift.sh
If install fails
- A real directory under
~/.claude/skillsor~/.codex/skillsmeans drift. - If the real directory matches the canonical repo, back it up, replace it with the canonical symlink, then rerun
scripts/install.sh. - If it differs, inspect and preserve the local-only content before normalizing.
- If the real directory belongs to a tool that reinstalls its own skill (the ACFS nightly log shows
Installing <tool> skill, or the files carry a fresh ~04:1x mtime), do NOT--forceit — the next run would clobber the symlink. Add the name toscripts/tool-managed.txt, refresh the canonical snapshot from the harness copy, and rerunscripts/install.sh. One blocked skill no longer aborts the whole install.
Anti-patterns
- Editing one harness only
- Creating skills directly under
~/.claude/skillsor~/.codex/skills - Skipping
scripts/audit-drift.sh - Adding a skill without updating the shared catalog