Skip to content

Add install and uninstall commands - #5

Merged
DominicFrei merged 2 commits into
mainfrom
gaf-668-install-and-uninstall
Aug 21, 2026
Merged

Add install and uninstall commands#5
DominicFrei merged 2 commits into
mainfrom
gaf-668-install-and-uninstall

Conversation

@DominicFrei

Copy link
Copy Markdown
Contributor

Refs GAF-668

Adds gaffa install and gaffa uninstall.

  • install copies the skills into the tools you pick and writes a per-directory
    receipt (each file plus its hash), so uninstall knows exactly what it wrote.
  • A second install refreshes to the current skills and drops any it wrote before
    that the source no longer has.
  • uninstall reverses an install for a scope. A skill you edited since is left in
    place and reported, never deleted.
  • Cursor is treated as a normal loose-file tool. Confirmed against its docs that
    it auto-loads .agents/skills, no manual step.

The skills source is behind a seam: a local checkout now via --skills-dir or
GAFFA_SKILLS_DIR, npm resolution when GAF-705 lands. The version check waits on
GAF-705 too.

Tests cover fresh install, refresh-drop, edited-file safety on uninstall and
refresh, shared-dir dedup, personal and project scope, and the CLI end to end.

install copies the gaffa skills into the tools you pick and writes a per-directory
receipt recording each file with its hash. A second install refreshes to the
current skills and drops any it wrote before that the source no longer has.
uninstall reverses an install for a scope, and leaves any skill you edited since
in place rather than deleting your changes.

The skills source sits behind a seam so npm resolution can replace it when GAF-705
lands. For now it reads a local checkout via --skills-dir or GAFFA_SKILLS_DIR.
Newer npm on Node 24 rejects a publish dry-run when package.json holds an
already released version, which is every pull request between releases.
npm pack proves packaging without hitting the registry.
@DominicFrei
DominicFrei merged commit b5c39f0 into main Aug 21, 2026
6 checks passed
@DominicFrei
DominicFrei deleted the gaf-668-install-and-uninstall branch August 21, 2026 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants