Repository navigation
Reproduce agent-skills MCP setup via chezmoi - #9
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Makes the
DROOdotFOO/agent-skillsMCP agents and skills fully reproducible viachezmoi apply. Previously two pieces were provisioned out-of-band and a fresh setup would leave~/.mcp.jsonpointing at binaries that don't exist.Closes two gaps:
Agent CLIs weren't installed by chezmoi. The 9 agent CLIs (
digest,recall, ...regen) were hand-installed viapip install -einto mise Python 3.10.13. Added:run_once_before_10-clone-agent-skills.sh.tmpl— clonesagent-skillsif absent (guarded; never touches an existing working clone).run_onchange_after_setup-agents.sh.tmpl— editable-installsshared+scribe+ the flag-enabled agents into mise Python, thenmise reshim. Namedsetup-agentsso it sorts aftermise-install(which provisions Python). Re-runs when any agentpyproject.tomlchanges.virtuals-protocol-acpwas out-of-repo. A third-party skill present in~/.agents/skills/but not in the agent-skills tarball, so the archive external never recreated it (and a refresh can clobber it). Vendored it intodot_agents/skills-extra/— a sibling dir the external does not own — and extendedrun_after_sync-skills.sh.tmplto link both~/.agents/skills/and~/.agents/skills-extra/(withskills/winning name clashes).Uses built-in
{{ .chezmoi.homeDir }}/CODE/agent-skillsrather than a new.chezmoi.toml.tmpldata var, since new data vars don't auto-propagate to the live config and would tripmissingkey=error.The signoz Go binary remains a documented one-time bootstrap step (
scripts/setup/setup-signoz-mcp.sh), not an apply-time build.Manual testing
chezmoi execute-templateand passshellcheck -s bashrun_onchange_after_setup-agentsran end-to-end (~21s); all 9 CLIs on PATH;recall stats,digest list-platforms,regen --helpexit 0regengains a mise shim aftermise reshim(previously had none)~/.agents/skills-extra/virtuals-protocol-acp/run_after_sync-skillsproduces 59 clean skill links, no broken linksskills-extraskills link correctly when absent fromskills/,skills/wins clashes, and stale links are pruned