Skip to content

Install treemon-cli skill to ~/.copilot and update SKILL.md guidance#73

Merged
0101 merged 1 commit into
mainfrom
install-skill-copilot
May 11, 2026
Merged

Install treemon-cli skill to ~/.copilot and update SKILL.md guidance#73
0101 merged 1 commit into
mainfrom
install-skill-copilot

Conversation

@0101
Copy link
Copy Markdown
Owner

@0101 0101 commented May 1, 2026

Problem

Two related gaps in how the treemon-cli skill is shipped:

  1. Install-Skill in treemon.ps1 only installed SKILL.md to ~/.claude/skills/treemon-cli/. The GitHub Copilot CLI uses the same skill format under ~/.copilot/skills/, but installs there had to be done by hand.
  2. A manual edit to ~/.copilot/skills/treemon-cli/SKILL.md (adding a "Default workflow when this skill is explicitly invoked" section) had drifted from the repo source of truth at src/Cli/skill/SKILL.md.

Changes

  • treemon.ps1 / Install-Skill — Add a second install block for ~/.copilot/skills/treemon-cli/, mirroring the existing .claude block. Same shape, same Join-Path style, same $installed array (now also collects "GitHub Copilot CLI"). The "no supported AI tool directories found" warning now lists both ~/.claude/skills/ and ~/.copilot/skills/ as missing instead of only Claude.
  • src/Cli/skill/SKILL.md — Port the pending manual edit into the repo source:
    • Add a new ## Default workflow when this skill is explicitly invoked section describing the explicit-invocation workflow (pick branch name → write prompt file → tm newtm launch → report back).
    • Add a ### When the user did NOT invoke this skill explicitly subsection clarifying auto-load behaviour.
    • Tweak the tm worktrees description to mention looking up a freshly created worktree's path.
    • Expand the "When to use" bullets so the explicit-invocation case is the first entry.

treemon.ps1 deploy already calls Install-Skill, so deploys now pick up the Copilot destination automatically.

Tests

treemon.ps1 install-skill reports installs for both clients, and Get-FileHash on all three locations matches:

4122E7EDD3C9D3B126F23038970ED3DCD8BCB21B13F23368A57A0545921B11DA  src/Cli/skill/SKILL.md
4122E7EDD3C9D3B126F23038970ED3DCD8BCB21B13F23368A57A0545921B11DA  ~/.claude/skills/treemon-cli/SKILL.md
4122E7EDD3C9D3B126F23038970ED3DCD8BCB21B13F23368A57A0545921B11DA  ~/.copilot/skills/treemon-cli/SKILL.md

No F# changes, so no dotnet build / dotnet test runs were required.

- Extend Install-Skill in treemon.ps1 to also copy SKILL.md into ~/.copilot/skills/treemon-cli/ when ~/.copilot exists, mirroring the existing Claude block. The 'no supported AI tool directories found' warning now lists both targets.

- Update src/Cli/skill/SKILL.md to add the 'Default workflow when this skill is explicitly invoked' section, expand the 'When to use' list, and tweak the 'tm worktrees' description.
@0101 0101 force-pushed the install-skill-copilot branch from 6fc4563 to 6e47994 Compare May 11, 2026 10:56
@0101 0101 changed the title Install treemon-cli skill to both .claude and .copilot Install treemon-cli skill to ~/.copilot and update SKILL.md guidance May 11, 2026
@0101 0101 merged commit fe500bf into main May 11, 2026
1 check passed
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