loerei/myskills/write-skill-subdocs
Claude Code and agent skill by loerei/myskills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Use when refactoring sprawling skills or extracting sub-documents.
Install
npx vskill@latest install loerei/myskills/write-skill-subdocsSKILL.md
The same SKILL.md was published earlier as loerei/myskills/write-skill-subdocs.
Write Skill Subdocs
Extract heavy reference material (lookup tables, schemas, templates) from SKILL.md into auxiliary sub-documents (REFERENCE.md or <DOMAIN>.md) via progressive disclosure.
Directives
- Token Efficiency: MUST minimize tokens loaded per execution path following
write-a-skillheuristics. - 1-Level Depth Limit: Extracted sub-documents MUST be 1-level deep relative to
SKILL.md; NEVER link nested sub-documents from within a subdoc. - No Over-Specification: When linking extracted subdocs from
SKILL.md, MUST use concise topic anchors (e.g.- Domain rules: see [DOMAIN.md](DOMAIN.md)) without cataloging internal contents. - Approval Gate: NEVER edit target
SKILL.mdor write subdocs before presenting the extraction rationale, baseline metrics, and diff preview for explicit user approval.
Routing Gates
| Gate | Condition | Action | |
|---|---|---|---|
| Gate 0 (No Extraction) | No lookup tables/templates and linear prose < 150 lines | Present rationale and exit without modifying files | |
| Gate 1 (Single Subdoc) | Tables or templates needed globally across all execution paths | Extract to single REFERENCE.md | |
| Gate 2 (Domain Subdocs) | Material isolated to specific execution branches | Extract to domain-scoped subdocs (<DOMAIN>.md) |
Failure Modes & Recovery
| Condition | Action | |
|---|---|---|
Target SKILL.md already has subdocs | Merge into existing matching subdoc or create a distinct <DOMAIN>.md without duplicating content. | |
| Extracted block contains relative links | Rewrite relative paths so links remain valid from the subdoc's directory (1-level deep). | |
| Distribution fails or links break after extraction | Inspect broken paths, fix links, or restore the prior SKILL.md state before retrying. |
Workflow
- Audit Baseline: Inspect target
SKILL.md(line count, byte size, tables, templates) and evaluate against Routing Gates. - Draft Plan: Outline proposed subdocs, target file paths, replacement relative links, baseline metrics, and diff preview; await explicit user approval.
- Apply & Distribute: Write extracted content to target subdocs, replace extracted sections in
SKILL.mdwith 1-level relative links, and runagents distributeif inside anagents-managed repo.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingproductivity/write-skill-subdocs/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/loerei/myskills/write-skill-subdocs)