Repository navigation
docs(skills): one authored copy of the sections the two authoring skills share - #1107
Merged
Merged
Conversation
…lls share (#1095) skills/urlcode/SKILL.md and .claude/skills/urlcode-authoring/SKILL.md each kept their own copy of declarative-first, installation, bounded retrieval, trust, verification, grants and feedback. Those sections now have one source, scripts/skill-shared-sections.md, which generate-agent-assets.ts renders between each skill's shared:NAME markers and whose --check fails on drift. Bootstrap, hosted-assisted mode, the MCP tool list, workflow rules and hard limits stay hand-written in each skill. The marketplace copy is rendered from the updated skill, as before. Part of #1095 (item 3). Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
enabled auto-merge (squash)
September 30, 2026 21:16
…acts-1095 # Conflicts: # skills/urlcode/SKILL.md
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.
Part of #1095 (item 3).
What changed
scripts/skill-shared-sections.mdis now the one authored copy of the sectionsskills/urlcode/SKILL.mdand.claude/skills/urlcode-authoring/SKILL.mdshare: declarative-first, installation, bounded retrieval (including search_docs, URLCode AI, extensions and artifacts), the trust model, "build one application", verification and fixtures, secrets/grants/gaps, and feedback.scripts/generate-agent-assets.tsrenders each section between a skill's<!-- shared:NAME -->/<!-- /shared:NAME -->markers before it runs the plugin generator, so the marketplace copy is still taken from the rendered skill.--check(innpm run check) fails when a rendered region drifts. It throws on an unknown section, unbalanced markers or a section no skill renders.check-guidance-claimsare unchanged..claude/skills/") was left alone because another PR is editing it; it is still accurate for the hand-written parts.skills/urlcode/SKILL.mdwording change (search_docs also reads verified independent add-ons) was folded into the shared retrieval section by hand, because feat(authoring): plan-feature names the multi-record write gap; docs search reads verified independent add-ons (#1086, #1090) #1104 had not merged yet. Both skills now carry it.Authored lines
Before: 150 + 311 = 461 lines (4,675 words). After: 72 + 158 hand-written lines in the two skills (outside the shared regions), plus 215 in the fragment, for 445 lines (3,898 words). That removes 16 lines (3%) and 777 words (17%). The line count understates the change because the agent-context skill used long unwrapped lines, which the fragment now wraps. The text that was kept twice is now kept once. The rendered agent-context skill grew from 150 to 282 lines: it now carries the richer shared text, such as fixture rules, the extension surface order and artifact staging. The rendered Claude skill is 368 lines, under the 500-line test limit.
Evidence
npm run check,npm run typecheck,npm run verifyandnpm run test:packagepassed locally. A hand-edited shared region madegenerate-agent-assets.ts --checkfail with the stale path; runningnpm run docs:agentsrestored it.🤖 Generated with Claude Code