Skip to content

Install Agent Skills to Claude Code, Pi, and omp skills directories#218

Merged
edheltzel merged 1 commit into
mainfrom
worktree-agent-skills-install
Jul 7, 2026
Merged

Install Agent Skills to Claude Code, Pi, and omp skills directories#218
edheltzel merged 1 commit into
mainfrom
worktree-agent-skills-install

Conversation

@edheltzel

Copy link
Copy Markdown
Owner

Summary

  • Wires the four agentSkills/*/SKILL.md files (recall-doctor, recall-loa, recall-stats, recall-update) into the install/update/uninstall lifecycle, installing them to ~/.claude/skills, ~/.pi/agent/skills, and ~/.omp/agent/skills.
  • Fixed a content bug: all four skills invoked a nonexistent mem CLI (leftover from whatever generated them) — corrected to recall, this repo's actual binary.
  • omp is a new, skills-only platform (no MCP/hooks integration exists for it yet in this repo) — gated behind a new OMP_DETECTED flag alongside the existing OPENCODE_DETECTED/PI_DETECTED.
  • uninstall.sh removes only the four Recall-owned skill directories (RECALL_SKILL_NAMES), preserving any other skills a user has installed alongside them. New --skip-omp flag mirrors --skip-pi/--skip-opencode.

Design

  • Two shared helpers in lib/install-lib.sh (_recall_copy_skill_files, _recall_link_skills_to) do the canonical-copy + per-file-symlink work once. Every platform entry point (Claude, Pi, omp) and both install.sh and update.sh call through them — no per-platform duplication (per this repo's DRY mandate).
  • Claude Code skills install unconditionally (core platform, matching how slash commands are always installed); Pi and omp are gated behind detection.
  • recall_verify_install's post-install self-check now also covers skill symlinks, same pattern as slash commands.

Test plan

  • bash -n clean on install.sh, update.sh, uninstall.sh, lib/install-lib.sh
  • bun run lint clean
  • New tests: tests/install/skills.test.ts (7 cases: canonical copy + symlink, idempotency, Pi/omp targets, foreign-symlink collision handling, uninstall preserves foreign skills, --dry-run) + 1 new call-topology case in tests/install/update.test.ts for omp refresh
  • Full suite: 1207/1207 passing

🤖 Generated with Claude Code

Wires the four agentSkills/*/SKILL.md files (recall-doctor, recall-loa,
recall-stats, recall-update) into the install/update/uninstall lifecycle:

- Fixed a content bug: all four skills invoked a nonexistent `mem` CLI
  (leftover from whatever generated them) instead of this repo's actual
  `recall` binary.
- lib/install-lib.sh: two shared helpers (_recall_copy_skill_files,
  _recall_link_skills_to) do the canonical-copy + per-file-symlink work
  once; every platform entry point (Claude, Pi, omp) and both install.sh
  and update.sh call through them — no per-platform duplication.
- Claude Code skills install unconditionally (core platform, like slash
  commands); Pi and omp are gated behind their existing/new detection
  flags (OMP_DETECTED added alongside OPENCODE_DETECTED/PI_DETECTED).
- omp is skills-only for now — no MCP/hooks integration exists for it in
  this repo, so recall_install_omp_platform only handles skills.
- uninstall.sh removes only the four Recall-owned skill directories
  (RECALL_SKILL_NAMES), preserving any other skills a user has installed
  in the same directory. New --skip-omp flag mirrors --skip-pi/-opencode.
- recall_verify_install's post-install check now covers skill symlinks.

Tests: 8 new (tests/install/skills.test.ts + update.test.ts topology
case), full suite 1207/1207 passing, bash -n clean on all 4 scripts.
@edheltzel edheltzel marked this pull request as ready for review July 7, 2026 19:02
@edheltzel edheltzel self-assigned this Jul 7, 2026

@edheltzel edheltzel left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks peachy

@edheltzel edheltzel merged commit d8452c1 into main Jul 7, 2026
2 checks passed
@edheltzel edheltzel deleted the worktree-agent-skills-install branch July 7, 2026 19:02
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.

1 participant