Repository navigation
fix(skills): ship golang-cli examples as Markdown and guard managed skills against Go files - #202
Merged
Merged
Conversation
bketelsen
approved these changes
Nov 6, 2026
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
core#200 vendored
golang-cli/assets/examples/as 12.gofiles and ago.mod. The skills sync copied them into the Go consumers, and chairlift#268 failsTestOnlyReportingImportsNetHTTP:docs/agents/skills/golang-cli/assets/examples/signal.goimportsnet/http, which chairlift allows only ininternal/reporting. Vendored Go files also risk other repository-walking guards, gofmt and lint in every consumer.This PR:
golang-cli/assets/examples/with 1 Markdown file,.agents/skills/golang-cli/references/examples.md: 1 section per upstream file, the code byte-for-byte unchanged in fenced blocks (checked by script against the removed files: 13 blocks, 0 differences).golang-cli/SKILL.mdat those sections and updates its Frostyard override bullet.docs/design/shared-skills.md: the vendoring sentence, a new Overrides bullet, and refresh step 2 (copy upstream'sassets/exampleschanges into the fenced blocks by hand;git applymust never create a.gofile there).test/managed-skills-go-free.test.mjs: it expands.github/skills-sync.json(defaults, groups, repos,@groupreferences), walks every managed skill directory, and fails on any*.go,go.mod,go.sumorgo.work. It requires at least 20 managed skills, every directory to exist, and more than 0 files walked, and printsmanaged-skills-go-free: 23 skills, 127 files checked. A second test proves the walker on a temporary directory..memory/corrections.jsonl, promoted to the test.Two upstream file names hold an underscore (
exit_codes.go,cli_test.go). Core's docs gate drops underscores from slugs, and GitHub keeps them, so those 2 sections are headed "Exit codes" and "CLI tests" (with the upstream file name in the first line), and their anchors resolve in both.After merge, the next skills sync updates the 8 open consumer sync PRs (chairlift#268 and the others) and removes the
.gofiles there.Risk tier
Risk tier: 1 — skills, docs and a test only; no path in
.github/risk-paths.jsonchanges (.github/skills-sync.jsonandscripts/are untouched).Docs housekeeping
Verification
make verifygreen: docschecked: 95 docs, 1728 links, 10 symlinks; 333 tests, 0 failsignal.gorestored,node --test test/managed-skills-go-free.test.mjsfails "managed skills hold no Go source or module files" and names.agents/skills/golang-cli/assets/examples/signal.go; with it removed, it passes.Coder model: github-copilot/claude-sonnet-5.5 (subagent), reviewed and finished by Lucilla.
Cross-review
Reviewer openai/gpt-6.1-sol; coder github-copilot/claude-sonnet-5.5, finished by claude-opus-5.5; base
d68fd52.6c2a80b: 1 blocking finding (medium): the guard did not expand@groupreferences indefaults(the sync allows them,docs/design/skills-sync-operations.md). Accepted and fixed in0ffb854:managedSkillsstarts empty and expandsdefaultsthroughadd; new testmanagedSkills expands @group references in defaults and repos. Revert test (scratch worktree, old code restored):not ok 3 - managedSkills expands @group references in defaults and repos. Non-blocking note: the walk does not follow directory symlinks; none exist under.agents/skills/.0ffb854: finding 1 resolved. Ready, Blocking: none.