Repository navigation
ci: build anchored-docs.skill in a release workflow instead of committing it - #4
Merged
Merged
Conversation
…ting it Move the skill to skills/anchored-docs so gh skill install finds it. Add tools/build-skill.mjs (reproducible store-only zip from git, with tag, name, changelog, and agent-pack guards), CI on Linux, Windows, and macOS, and a tag-driven release workflow. Remove the committed archive and the duplicate root INSTALL file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LGrZof6i8VqejqmYTqEfg2
macOS prints /var temp paths as /private/var, and GitHub's Windows runners hold an 8.3 short name in TEMP while the scripts print the long name. Both made the <REPO> placeholder miss in 4 parity cases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LGrZof6i8VqejqmYTqEfg2
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.
Stacked on #3. When #3 merges and its branch is deleted, GitHub retargets this PR to
main.What changes
anchored-docs/toskills/anchored-docs/, sogh skill install Pmac627/anchored-docs anchored-docsfinds it (skills/*/SKILL.mdconvention). Content is unchanged apart from twoINSTALL.mdlines.tools/build-skill.mjs buildwrites a store-only, reproducible zip (sorted entries, commit timestamp, no dependencies) from git, not the working folder, so an ignored local agent pack cannot enter it. It refuses to build when the tag does not match theSKILL.mdversion, the name differs from the folder, the changelog entry is missing, or pack files are tracked.notes <tag>prints the changelog section..github/workflows/ci.yml): unit tests, 41 parity cases, coverage, and a build on ubuntu, windows, and macos with Node 22. Actions pinned by SHA,contents: read..github/workflows/release.yml): onv*tags, runs CI, then builds from the tagged commit and runsgh release create.v2.0.0-rc.1is a pre-release;v2.0.0is a release. Only this job hascontents: write.anchored-docs.skilland the duplicate rootanchored-docs-INSTALL.md. README links point atreleases/latest/download/anchored-docs.skill.Verified locally (Windows, Node 24)
unzip -tpasses; extracted files matchskills/anchored-docs.Not yet verified
/varvs/private/varin temp paths.v2.0.0-rc.1first, thenv2.0.0.🤖 Generated with Claude Code
https://claude.ai/code/session_01LGrZof6i8VqejqmYTqEfg2