feat: installable Skill bundle endpoint - item 3 of 2245 - #2261
Merged
Merged
Conversation
…Md/buildVerifyScript
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.
Implements item 3 of #2245 (Executable, self-verifying, self-healing tutorials): turns a published tutorial into an installable agent Skill.
What
GET /content/tutorials/:slug/skillreturns a zip bundle:SKILL.md— the tutorial procedure with a provenance/freshness stamp (confidence, last-verified, source-commit, optional signed JWS).verify.sh— a runnable bash verifier generated from the tutorial's assert blocks (cmd/http/file), every interpolated value shell-quoted against injection.Design
SKILL_BUNDLE_ENABLED— DB config (ImsConfigflag.skill.bundle), default OFF, dev-only. No env var. Flag OFF → 404 (fail-closed; endpoint does not advertise itself)./provenanceendpoint./provenanceand before the/content/tutorials/*slugwildcard so the wildcard cannot swallow it (covered by a smoke test).confidence: unknown) rather than failing the request.Files
srv/lib/skill-bundle.js— handler factory +buildSkillMd+buildVerifyScript+loadAssertSpecssrv/server.js— route registrationsrv/lib/feature-flags/registry.js—SKILL_BUNDLE_ENABLEDscripts/check-srv-qa-route-drift.ts— srv-only allowlist entrytest/unit/skill-bundle-compose.test.js,test/lib/skill-bundle-endpoint.test.js,test/unit/check-srv-qa-route-drift.test.ts,test/smoke/express-route-mutations.test.jsTests
36/36 branch-owned tests pass, including shell-injection tests for
verify.shgeneration (curl-X <method>, echo labels, assert values all shell-quoted).Spec:
docs/superpowers/specs/2026-09-11-skill-bundle-endpoint-design.md🤖 Generated with Claude Code