skills: build MCP and CLI variants from shared templates#76
Merged
Conversation
107002d to
fa6bead
Compare
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
skills/totemplates/skills/as the single source of truthcli/hack/buildskills) that generates two output trees from those templates:skills/(MCP plugin) andcli/skills/(CLI binary){{tool "live-connect"}}expands to`live-connect`for MCP or`subtext live connect`for CLI;{{if eq .Target "cli"}}/SKILL.cli.mdoverrides handle deeper prose divergencego generate ./...Coverage:
comments,docs,live,proof,recipe-sightmap-setup,shared,sightmap,tunnelreview,session,onboard,first-session,setup-plugin,using-subtext)Key divergence handled via
SKILL.cli.mdoverrides:shared— CLI explainssubtext sightmap uploadinstead of the Python side-band scriptlive/tunnel— removes "subtext-tunnel MCP server" references; adapts flow steps tosubtextcommandssightmap/recipe-sightmap-setup— replaces the Python upload script withsubtext sightmap uploadStacks on #75 (the Go CLI port PR).
Test plan
cd cli && go generate ./...produces nogit diffinskills/orcli/skills/cd cli && go test ./...passes (embed smoke test included)cli/skills/comments/SKILL.md: tool refs showsubtext comment listnotcomment-listskills/comments/SKILL.md: tool refs showcomment-list(byte-identical to pre-move content)cli/skills/shared/has nocollect_and_upload_sightmap.py;skills/shared/does