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-subdocs

SKILL.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

  1. Token Efficiency: MUST minimize tokens loaded per execution path following write-a-skill heuristics.
  2. 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.
  3. 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.
  4. Approval Gate: NEVER edit target SKILL.md or write subdocs before presenting the extraction rationale, baseline metrics, and diff preview for explicit user approval.

Routing Gates

GateConditionAction
Gate 0 (No Extraction)No lookup tables/templates and linear prose < 150 linesPresent rationale and exit without modifying files
Gate 1 (Single Subdoc)Tables or templates needed globally across all execution pathsExtract to single REFERENCE.md
Gate 2 (Domain Subdocs)Material isolated to specific execution branchesExtract to domain-scoped subdocs (<DOMAIN>.md)

Failure Modes & Recovery

ConditionAction
Target SKILL.md already has subdocsMerge into existing matching subdoc or create a distinct <DOMAIN>.md without duplicating content.
Extracted block contains relative linksRewrite relative paths so links remain valid from the subdoc's directory (1-level deep).
Distribution fails or links break after extractionInspect broken paths, fix links, or restore the prior SKILL.md state before retrying.

Workflow

  1. Audit Baseline: Inspect target SKILL.md (line count, byte size, tables, templates) and evaluate against Routing Gates.
  2. Draft Plan: Outline proposed subdocs, target file paths, replacement relative links, baseline metrics, and diff preview; await explicit user approval.
  3. Apply & Distribute: Write extracted content to target subdocs, replace extracted sections in SKILL.md with 1-level relative links, and run agents distribute if inside an agents-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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/loerei/myskills/write-skill-subdocs/badge)](https://verified-skill.com/skills/loerei/myskills/write-skill-subdocs)

Something wrong with this skill or its page? Tell us.