Agent skill

Agent Doc Discipline

by Yeachan-Heo in Yeachan-Heo/oh-my-claudecode

Writing standards for documents that agents read in order to act, such as CLAUDE.md, specs and tickets, so a fresh session can follow them without chat history.

MITAuto-check passedAgent Workflows

Install Agent Doc Discipline

skills CLI
$ npx skills add Yeachan-Heo/oh-my-claudecode --skill agent-doc-discipline -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Yeachan-Heo/oh-my-claudecode agent-doc-discipline --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Yeachan-Heo/oh-my-claudecode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/agent-doc-discipline .claude/skills/agent-doc-discipline && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
agent-doc-discipline
GitHub stars
40k
Token cost
~1.5k tokens
SKILL.md length
898 words
Files
1
Skills in repo
47
Repo updated
First seen
Licence
MIT

At a glance

Writing standards for documents that agents read in order to act, such as CLAUDE.md, specs and tickets, so a fresh session can follow them without chat history.

  • Writing or revising a CLAUDE.md or similar instruction file for agents
  • SKILL.md covers When Not to Use, The Discipline and Verification
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Drafting a spec or ticket that a fresh agent session must act on

What it does

The test every document must pass is that a fresh agent session can act on it by reading alone. The skill covers the documents agents consume: CLAUDE.md, CONTEXT.md, docs/standards, design-system, .omc/skills, plus specs, tickets and skill files. It is mandatory when drydock generates surface seeds or the launch C5 sediment pass records a lesson, optional for other agent-facing edits, and not applied to human-only writing such as business narratives, ADR stories or onboarding READMEs.

The rules call for self-describing text that never leans on earlier chat, rules that can be checked and carry a reason, one authoritative home for each meaning, and no copying of facts the environment already shows, such as package scripts or help output. Steps come first, reference material sits below them, rare material hides behind a pointer, and every step ends on a completion criterion.

When your agent uses it

  • Writing or revising a CLAUDE.md or similar instruction file for agents
  • Drafting a spec or ticket that a fresh agent session must act on
  • Cleaning up an agent-facing document that restates what the repo already shows

Example prompts

  • “Rewrite our CONTEXT.md so a new agent session can follow it without any chat history.”
  • “Check this spec for rules that are vague or missing a reason, and fix them.”
  • “Trim the docs/standards page so it stops repeating our package scripts.”

What it can do on your machine

Read from SKILL.md and the folder at commit 454bae0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Agent Doc Discipline loads about 1.5k tokens when it runs. Until then it costs about 119 tokens; SKILL.md has 898 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~119
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Yeachan-Heo/oh-my-claudecode at commit 454bae0, republished under its MIT licence (© Yeachan-Heo). 898 words, ~1,520 tokens.

Download SKILL.mdSave it as .claude/skills/agent-doc-discipline/SKILL.md (or your agent's skills folder).
name
agent-doc-discipline
description
Writing-time discipline for documents agents consume (the five surfaces, specs, tickets, .omc/skills/) — every rule checkable and carrying a why, steps before reference, one meaning in one home, no restating what the environment already says. Mandatory at drydock seed generation and the launch C5 sediment pass; opt-in for any other agent-facing doc edit. The companion of minimal-code-discipline: that one disciplines code, this one disciplines papers.
level
3

Agent Doc Discipline

Use this skill to apply a writing-time discipline while creating or editing any document an agent consumes to act: the five surfaces (CLAUDE.md, CONTEXT.md, docs/standards/, design-system/, .omc/skills/), specs, tickets, and skill files. The test a document must pass: a fresh agent session can act on it by reading alone.

Mandatory when: drydock generates surface seeds, the launch C5 sediment pass writes a lesson into a slot. Opt-in for every other edit — but any edit to an agent-facing document should survive these rules.

When Not to Use

Documents written for humans only: docs/business/ narrative, ADR decision stories, READMEs for human onboarding. They may still follow the rules where it costs nothing, but they are not held to this discipline.

The Discipline

Write for a reader with no chat history. The document is self-describing: nothing leans on "as discussed", a prior session, or knowledge that lives in someone's head. Test: a brand-new agent session can act on the document by reading alone.

Every rule checkable and carrying a why. No "keep it clean" — write the observable condition and the reason. Test: an agent can decide pass/fail from the text alone, and the why is stated next to the rule.

One meaning, one home. Each rule or definition has a single authoritative place; duplication is drift waiting to happen. Test: changing a behavior is a one-place edit.

Never restate what the environment confesses. Package scripts, directory layouts, --help output are lookups, not documents — a copied lookup goes stale. Document only what cannot be found by looking: the unwritten convention, the reason behind a choice, the gotcha. Test: every line survives "can this be looked up elsewhere?".

Steps first, reference behind, rare material behind a pointer. What to do, in order, at the top; consult-on-demand rules below; low-frequency material pushed behind a pointer whose wording names the branches that should trigger reaching it. Test: the next action is findable within the first screen.

Every step ends on a completion criterion. Done must be tellable from not-done — a vague bound invites premature completion. Test: for each step, "how do I know this is finished?" has an answer in the text.

A procedure longer than two steps is numbered. The numbers are stable references: a reader can name step 3, follow the order, and jump without re-reading. An unnumbered procedure of many steps makes the reader hold the order in their head. Test: every procedure of three or more steps carries its numbers.

A list is capped at what a reader holds in one glance. A list that outgrows the reader's grasp loses its point — nothing in it is findable. A longer enumeration becomes structure (a table, subsections) or splits. This governs the writing of documents; it never touches the machinery of a gate or a batched decision, which lives in the methodology, not the prose. Test: every list in the document fits in one glance, and any longer enumeration has become structure.

Deferred and scheduled work states when. A document that defers work to a later step, session, or release states that timing next to the work it defers — "when" is a fact the reader needs to act, and an unstated deferral reads as an unstarted one. The timing is stated in the prose only; it never rebinds a checkpoint the methodology pushes right deliberately. Test: every deferral in the document carries its when.

Show full SKILL.md (336 more words)Show less

Close on a next action a reader can start now. A report, ticket, or session-close pointer ends not with a summary but with the one next step a reader can begin in under two minutes — the destination, the pointer, or the command. A close that only summarizes makes the reader re-derive what to do first. Test: the last line answers "what do I do next?" without scrolling up.

Re-state the position each time the reader rejoins. A document a returning reader touches mid-flight (a long spec, a run report, a map Notes section) opens the new material with where things stand — step, phase, or decision count — before adding anything new. Test: a reader arriving cold can locate the current state in the first two lines of the newest section.

Prompt the positive. State the target behavior; a prohibition is reserved for hard guardrails and is always paired with the positive target. Test: every prohibition in the document names the thing to do instead.

Scrape barnacles on write. When the document contains stale or redundant material, remove it in the same edit; when it does not, add only the required material and do not invent deletions. A sentence the model already obeys by default pays load for nothing — delete the whole sentence. Test: every line re-read earns its place against "does this change behavior versus the default?", and any stale or redundant material found during the edit is gone.

Verification

Before reporting a document change done, confirm:

  • a fresh session could act on it without asking a human anything
  • every rule is checkable and states its why; no rule restates a lookup
  • meanings live in one place; pointers name their trigger branches
  • stale or redundant material found during the edit was removed, while valid unrelated content was preserved
  • closes end on a next action the reader can start now; rejoining readers find the current state stated before new material
  • procedures of three or more steps are numbered; lists fit in one glance; every deferral states its when

© Yeachan-Heo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/agent-doc-discipline of Yeachan-Heo/oh-my-claudecode.

Open the folder on GitHubat commit 454bae0

Compare with similar skills

Agent Doc Discipline next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Agent Doc Discipline compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Agent Doc Discipline this skillYeachan-Heo/oh-my-claudecode40k—~1.5kAutomated safety check: PassMIT
Expectationscitypaul/.dotfiles740—~1.2kAutomated safety check: PassCustom licence
Technical WriterOneWave-AI/claude-skills336—~1.2kAutomated safety check: NotesMIT
Dsh Web Documentationzhu1090093659/dsh-web8.6k—~479Automated safety check: PassApache-2.0
Docs Writing Styleinkline/inkline1.5k—~1.2kAutomated safety check: PassNone
Nemoclaw User GuideNVIDIA/skills3.6k—~1.2kAutomated safety check: PassApache-2.0

Similar skills

  • Expectations

    citypaul/.dotfiles

    Decide where a learning, gotcha, or decision should live so it is not lost, and capture it there while context is fresh.

    740 GitHub stars~1.2k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Technical Writer

    OneWave-AI/claude-skills

    Writes and restructures technical documentation - READMEs, tutorials, how-to guides, user guides, architecture docs, onboarding guides, runbooks and SOPs, troubleshooting guides, release notes, and…

    336 GitHub stars~1.2k tokensUpdated 9 days ago
    DevelopmentAuto-check: notes
  • Dsh Web Documentation

    zhu1090093659/dsh-web

    A skill your agent uses when adding or editing dsh-web README files, docs, AGENTS.md instructions, user-facing configuration text, or bilingual documentation pairs.

    8.6k GitHub stars~479 tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Docs Writing Style

    inkline/inkline

    How Inkline documentation is written and kept true — the doc surface, pointers-not-duplicates, the drift watch with its current inventory, voice rules, and the future docs website.

    1.5k GitHub stars~1.2k tokensUpdated 29 days ago
    Agent WorkflowsAuto-check passed
  • Nemoclaw User Guide

    NVIDIA/skills

    Official

    Guides human users' AI agents to the NemoClaw docs MCP server and canonical Fern documentation in Markdown form.

    3.6k GitHub stars~1.2k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Using Agent Skills

    addyosmani/agent-skills

    Meta-skill for choosing which workflow skill fits the task at hand, plus always-on habits: surface assumptions, stop on confusion, push back, keep it simple and stay in scope.

    105k GitHub starsUsed in 4 repos~2.4k tokens
    Agent WorkflowsAuto-check passed

More from Yeachan-Heo/oh-my-claudecode

All 47 skills in this repo
  • Ask Advisor Routing

    Yeachan-Heo/oh-my-claudecode

    Sends a question or task to another locally installed agent CLI, such as Codex or Gemini, through omc ask and saves the answer as a file.

    40k GitHub stars~572 tokensUpdated 2 days ago
    Auto-check passed
  • Ask Navigator

    Yeachan-Heo/oh-my-claudecode

    Charts a foggy effort into a map of decision tickets on the repo's issue tracker and works through them one per session, producing decisions rather than deliverables.

    40k GitHub stars~4.1k tokensUpdated 2 days ago
    Auto-check passed
  • Self-Improve Evolutionary Loop

    Yeachan-Heo/oh-my-claudecode

    Runs an autonomous improvement loop on a repository: agents propose and execute plans, a tournament picks the winner by benchmark, and each round is recorded and plotted.

    40k GitHub stars~5.3k tokensUpdated 2 days ago
    Auto-check: warnings
  • Autopilot

    Yeachan-Heo/oh-my-claudecode

    Takes a short product idea through requirements, design, planning, parallel implementation, QA cycles and multi-reviewer validation to produce working code.

    40k GitHub stars~4.4k tokensUpdated 2 days ago
    Auto-check passed
  • OMC Mode Cancellation

    Yeachan-Heo/oh-my-claudecode

    Detects and gracefully cancels whichever OMC mode, autopilot, ralph, swarm, pipeline, or team, is currently active, then clears its state.

    40k GitHub stars~4.6k tokensUpdated 2 days ago
    Auto-check passed
  • Hierarchical AGENTS.md Generator

    Yeachan-Heo/oh-my-claudecode

    Maps a codebase directory by directory and writes linked AGENTS.md files, each pointing to its parent, to document what each area contains.

    40k GitHub stars~2.3k tokensUpdated 2 days ago
    Auto-check passed

Questions about Agent Doc Discipline

What does Agent Doc Discipline do?

Writing standards for documents that agents read in order to act, such as CLAUDE.md, specs and tickets, so a fresh session can follow them without chat history. The test every document must pass is that a fresh agent session can act on it by reading alone.omc/skills, plus specs, tickets and skill files.

When should I use Agent Doc Discipline?

Agent Doc Discipline fits situations like: writing or revising a CLAUDE.md or similar instruction file for agents; drafting a spec or ticket that a fresh agent session must act on; cleaning up an agent-facing document that restates what the repo already shows.

How do I install Agent Doc Discipline in Claude Code?

Run `npx skills add Yeachan-Heo/oh-my-claudecode --skill agent-doc-discipline -a claude-code`. Or copy the skill folder (skills/agent-doc-discipline in Yeachan-Heo/oh-my-claudecode) into .claude/skills/agent-doc-discipline in your project. Claude Code loads it when a task matches its description.

How do I install Agent Doc Discipline in Codex?

Run `npx skills add Yeachan-Heo/oh-my-claudecode --skill agent-doc-discipline -a codex`. Or copy the skill folder (skills/agent-doc-discipline in Yeachan-Heo/oh-my-claudecode) into .agents/skills/agent-doc-discipline in your project. Codex loads it when a task matches its description.

Can I use Agent Doc Discipline in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Yeachan-Heo/oh-my-claudecode --skill agent-doc-discipline -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/agent-doc-discipline, .gemini/skills/agent-doc-discipline, .github/skills/agent-doc-discipline and .opencode/skills/agent-doc-discipline in your project.

What does Agent Doc Discipline need to run?

SKILL.md names no scripts, command-line tools or credentials: Agent Doc Discipline is instructions for the agent only.

Does Agent Doc Discipline access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Agent Doc Discipline safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Agent Doc Discipline use?

Agent Doc Discipline is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Agent Doc Discipline use?

About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Agent Doc Discipline?

Skills that share tags, products or a category with Agent Doc Discipline: Expectations (citypaul/.dotfiles, 740 stars), Technical Writer (OneWave-AI/claude-skills, 336 stars), Dsh Web Documentation (zhu1090093659/dsh-web, 8.6k stars) and Docs Writing Style (inkline/inkline, 1.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Agent Doc Discipline?

Yeachan-Heo (a GitHub user) maintains it in Yeachan-Heo/oh-my-claudecode, which has 39,751 GitHub stars. The repository holds 47 skills in this directory. The repository was last updated on October 8, 2026.

Source: Yeachan-Heo/oh-my-claudecode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.