feat(templates): add standalone sync-oss-spec skill to generated projects#36
Merged
niclaslindstedt merged 1 commit intomainfrom Apr 18, 2026
Merged
Conversation
…ects Adds a `sync-oss-spec` template skill that every project bootstrapped by `oss-spec` inherits. The skill: - fetches the canonical `OSS_SPEC.md` from https://raw.githubusercontent.com/niclaslindstedt/oss-spec/main/OSS_SPEC.md at the start of every run (hard stop on fetch failure); - overwrites the local `OSS_SPEC.md` whenever upstream has moved; - encodes every §19 structural check as plain shell (`test`, `readlink`, `grep`, `find`) so it works without any external validator binary — generated projects do not ship `oss-spec`. Updates the template `maintenance` registry so `sync-oss-spec` runs **first**, ensuring every downstream `update-*` skill reads the freshest spec. Annotates each `update-*` skill with the `OSS_SPEC.md` section(s) that govern it: - update-readme → §3, §21.5 - update-docs → §11.1, §21.5 - update-prompts → §13.5, §21.5 - update-website → §11.2, §21.5 - update-manpages → §12.3, §12.5, §21.5 - maintenance → §21.6
0c40871 to
f8e9812
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
Scope: template skills only — the skill set that
oss-speccopies into every generated project. The reference repo's own.agent/skills/tree is untouched.templates/_common/.agent/skills/sync-oss-spec/template skill. It fetches the canonicalOSS_SPEC.mdfrom the upstream GitHub raw URL at the start of every run, overwrites the local copy if upstream has moved, then walks every §19 structural mandate with plain shell (test,readlink,grep,find). No external validator binary is invoked — generated projects don't shiposs-specon PATH.maintenanceregistry sosync-oss-specruns first, ensuring every downstreamupdate-*skill reads the freshest spec.update-*skill with a "Governing spec sections" line that pins it to the §§ ofOSS_SPEC.mdit serves: §3 (README), §11.1 (docs), §11.2 (website), §12.3/§12.5 (manpages), §13.5 (prompts), §21.5 (why this skill exists), §21.6 (maintenance umbrella).Test plan
cargo clean && cargo build—include_dir!picks up the new template skillcargo test --test self_conformance_test— reference-repo conformance unchangedcargo test --test bootstrap_smoke_test— generated project still passesvalidate::run(including §21.4.last-updatedpresence)make lint && make test— full suite greenhttps://claude.ai/code/session_019J34nuo9BRGnZwiSvHhZCf