Skip to content

docs(skills): one authored copy of the sections the two authoring skills share - #1107

Merged
jimhoyd merged 2 commits into
mainfrom
claude/shared-skill-facts-1095
Sep 30, 2026
Merged

jimhoyd merged 2 commits into
mainfrom
claude/shared-skill-facts-1095

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator

Part of #1095 (item 3).

What changed

  • scripts/skill-shared-sections.md is now the one authored copy of the sections skills/urlcode/SKILL.md and .claude/skills/urlcode-authoring/SKILL.md share: 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.ts renders 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 (in npm run check) fails when a rendered region drifts. It throws on an unknown section, unbalanced markers or a section no skill renders.
  • Still hand-written: the Claude skill's bootstrap, hosted-assisted mode, workflow rules, hard limits and boundaries, and the agent-context skill's bootstrap sentence, MCP tool list, CLI block and abstraction ladder.
  • The drift guards for the marketplace copy, the starter AGENTS.md and check-guidance-claims are unchanged.
  • CONTRIBUTING.md says where to edit. docs/AI-AUTHORING.md ("edit the skills under .claude/skills/") was left alone because another PR is editing it; it is still accurate for the hand-written parts.
  • feat(authoring): plan-feature names the multi-record write gap; docs search reads verified independent add-ons (#1086, #1090) #1104's skills/urlcode/SKILL.md wording 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 verify and npm run test:package passed locally. A hand-edited shared region made generate-agent-assets.ts --check fail with the stale path; running npm run docs:agents restored it.

🤖 Generated with Claude Code

…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
jimhoyd enabled auto-merge (squash) September 30, 2026 21:16
…acts-1095

# Conflicts:
#	skills/urlcode/SKILL.md
@jimhoyd
jimhoyd merged commit c42d4d7 into main Sep 30, 2026
21 checks passed
@jimhoyd
jimhoyd deleted the claude/shared-skill-facts-1095 branch September 30, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant