/odin-skills:writing-for-agentsfrom ODIN Skills
Guides authoring and restructuring agent-consumed documents (SKILL.md, AGENTS.md, pointer docs) and deciding split-vs-monolith skill structure.
Ships in ODIN Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
One property decides whether a document works: the agent takes the same process every run. The packaging differs across a skill, an AGENTS.md, and a pointer-reached doc; the writing does not.
| Field | Bound contract |
|---|---|
| Trigger | Author, restructure, or review an agent-consumed document; author, refactor, port, or upgrade a SKILL.md, AGENTS.md/CLAUDE.md, or skill directory; or decide whether a skill stays monolith or splits. |
| Authority | Reversible local: writes only the target document, its skill directory, and the repository-owned registration or attribution surfaces those artifacts require; rollback is version control or undo; never publishes, installs, or commits. No remote mutation. |
| Side effect | The target document is edited, split, or pruned; in mode skill, its directory and registration surfaces change. Reviews and disclosure decisions write nothing beyond the decision record. |
| Done | A cold agent routes and executes predictably with no stale duplication. For a skill write, the repository's own gate passes on every changed file. For a disclosure decision, the split-or-monolith verdict is justified with pointer hygiene and an evaluation plan. |
document (default), skill, or disclosure. Inferred from the request when not stated.Steps 1 through 7 apply to every mode. Then run the named mode, and finish at step 10. The theory behind steps 2 through 7 lives in references/authoring-levers.md; load it when a step's claim is not enough to act on.
Mode skill:
references/skill-mechanics.md: choose model-invoked or user-invoked, justify any split by invocation-reach or sequence-rush, and use a router skill when user-invoked skills multiply past recall. Done when: the invocation mode is chosen and each split carries its justification.references/authoring-procedure.md. Done when: the write path reached its validation step, or the request was a review.Mode disclosure:
references/* loads only when a pointer fires, scripts/* executes without loading into context. If the request conflates the two, surface that first and fix the description before any structural change. Done when: the problem is classified as triggering, disclosure, or both.scripts/ over references/ for deterministic work such as validation, transforms, or schema generation.
e. Run the decision checklist: a sharp observable load condition; real context saving after router prose; reference data versus procedural content; a possible script instead; expected load fraction (below 20% inline or delete, 20-80% split, above 80% promote).
f. Design the architecture evaluation: one query per variant, edge-case branch, and lookup category, plus a common-path query that loads zero references and off-topic queries that should not trigger. Instrument each run for files loaded, tokens, and time. Apply the metric decision rules: a reference loaded under 20% of runs is inlined or deleted, over 80% promoted, co-loaded pairs merged, a load unused in output means a fixed pointer, an unreachable reference is deleted. Compare candidate architectures on the identical eval set for cost, quality, and path coverage; reliability beats efficiency.
Done when: the decision record carries the diagnosis, the verdict with rationale, the architecture, and the evaluation plan.Every mode:
| File | Load when |
|---|---|
references/authoring-levers.md | A step's one-line claim is not enough to act on; carries the theory behind steps 2 through 7 |
references/skill-mechanics.md | Mode skill fires, meaning the document is a skill |
references/authoring-procedure.md | The request writes a skill directory |
What SKILL.md sets; muted values are Claude Code's defaults
21 skills in this plugin
/agent-surface-forgeUse when asked to audit or repair agent surfaces (plugins, agents, skills, CLAUDE.md/AGENTS.md, docs, prompts, commands, hooks) or improve one skill at depth. Not for agent grading: use skill-doctor./automate-meUse when asked to create or refresh a personal mode skill and open a reviewable PR. Not for shared repo skills or work that skips human approval./book-to-skillUse when the user names one book, course, paper, or source document and asks to distill it into a reusable skill. Not for a folder of sources: use map-corpus./cascade-dedupUse when prompt-doctrine is duplicated, drifted, or conflicting across output-style embeds and external harness AGENTS files. Not for editing the canonical baseline itself./create-plugin-scaffoldUse when asked to create a local agent-plugin directory tree or marketplace package. Not for remote, credential, publish, deploy, or irreversible changes./dedup-skillsUse when asked to deduplicate a skill tree, fold overlapping skills, or cut the skill count: analyze, gate per family, then fold. Not for prompt-doctrine cascades: use cascade-dedup.npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-skillsOther plugins' skills for the same job