⏳ This skill is pending AI review.

Scores will appear once the review pipeline completes.

v1.0.0

writing-for-agents

bodnarbalazs@bodnarbalazs⭐ 6 stars· last commit 20d ago· 0 open issues

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

Choose how to use this skill

You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.

1. Native installer

This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.

Do not guess an installer command or replace an existing version without reviewing the diff.

2. Complete package recommended

Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.

No complete ProSkills package is published for this listing yet.

3. Prompt-only

Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.

Need only the instruction file?

Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.

No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.

—/10

// RATINGS

⭐GitHub Stars
⭐ 6 on GitHubGitHub ↗

New / niche

🟢ProSkills Score
—
📍

Not yet listed on ClawHub or SkillsMP

// README

Dydo

What it is

Dydo is my opinionated workflow to build software projects with agents. It has:

  • Skills
    • Telling agents how to get work done, what roles they should play and how they should interact with the other agents
  • A CLI tool which
    • Scaffolds the docs and wires the guard hook into Codex and Claude Code
    • Has a nudge system which uses Regex patterns in a guard hook to deny/warn on agent actions with helpful messages like
      • Don't hand-edit migrations, use "X" instead.
      • Don't invoke "this command" like this use it "like this"
    • Provides other handy commands like
      • Proxies a python swiss-army knife test runner script
      • Checks for broken links in the docs
  • Documentation structure
    • Diátaxis inspired structure
      • Guides
      • Reference
      • Understand
      • Project
      • Glossary
    • Auto generated placeholder files like
      • About
      • Architecture
      • Coding Standards

How to use it

Don't. Seriously. Build your own system. Because it should reflect:

  • How you work
  • What you work on
  • With what stack
  • What "good" (code) looks like to you

So I suggest you cherry pick ideas, fork the project, point your agent at it, steal what you need. You can use it as is (as I use it), but it will reflect MY values and not necessarily yours. It is built to be customizable, but only to a degree. If you still want to give it a try as is point your agent to Getting Started and follow their instructions.

Axioms

Everything in Dydo follows from seven axioms, and every change is judged against them (the full page):

  1. I can't scale; agents can.
  2. Align intent: the system is an extension of my will, values and taste.
  3. An agent's context is finite.
  4. Everything evolves, so the system stays modular and light.
  5. Efficiency: the best result for the time and tokens spent.
  6. Agents are set up for success: the easy path is the right path.
  7. Agents can verify their own work, so by the time a PR reaches me I have very high confidence it's correct.

Overview

So how does dydo work in practice?

I break the work with a software product into many Linear projects. Each project is a map, where the tickets are the nodes, they are marked with statuses and labels. By default I hold the map myself and chart it with wayfinder in my own session; when I want throughput (AFK work overnight) I invoke an Admiral to hold it for me. Whoever holds the map charts it, manages the PM surface and coordinates the Ticket Captains who oversee the completion of the tickets with their crew of (code-writers, docs-writers, reviewers, inquisitors, researchers and scouts).

Each ticket is either AFK or HITL

  • AFK is completed without me if everything goes according to plan
  • HITL happens with my direct involvement and guidance

These are the types of tickets:

  • Feature
    • Some new feature is being built or improved upon
  • Bug
    • A bug gets reported, then it gets reproduced and fixed
  • Enablement
    • Some user-involved setup which other work depends on (creating an api key)
  • Inquisition
    • An audit where sub agents not only look at the code like reviewers, but also try to come up with ways which it could break and they test these hypotheses out to verify them
  • Grilling
    • An agent asks me questions about my intent and vision, I understand and weigh the choices and out of these sessions come Decision Records, plans and further tickets which can be navigated
  • Merge
    • Each project is a feature branch, each ticket where code gets written is a sub branch and each lane or sub ticket within that ticket also gets its child branch so agents never collide. When these are merged back to their parent, it's a merge ticket.
  • Prototype
    • An interactive session where throwaway code gets created mostly for UI decisions, the winner code may become preserved as a starting guide for the actual implementation
  • Question
    • When some decision is needed which is not answerable from any previous artifact (implementation plan, DR, docs, etc.) work stops until it's resolved so things don't go in incorrect ways
  • Research
    • When some question needs to be answered there is a research work where an agent sends out scouts then verifies the evidence and presents the findings
  • Walkthrough
    • Happens each time the feature is merged back to master (or when requested), this is the final, hands-on review where things get spot checked by me and I get in touch with the codebase so I understand what's going on and if I don't like something I'll send it back to be fixed

Here are some nice charts about the workflow:

One Project, from idea to walkthrough:

flowchart TD
  classDef human fill:#f6d365,stroke:#8a6d00,color:#000
  classDef session fill:#e9ecef,stroke:#6c757d,color:#000
  classDef officer fill:#cfe2ff,stroke:#2c5aa0,color:#000
  classDef crew fill:#d4edda,stroke:#2e7d32,color:#000
  classDef reviewer fill:#f8d7da,stroke:#a71d2a,color:#000

  H0([user: an idea]):::human --> CT[co-thinker]:::session
  CT -->|ripe| TP([user: to-project, Project in Backlog]):::human
  TP --> AD[map holder: me, or an admiral I invoke, reads the Project and acts]:::officer
  AD -->|Project Planning| PP[map holder charts with wayfinder: the map, first tickets]:::session
  PP -->|plan commit, only for a cross-cutting architecture contract| RP{{reviewer: project-plan, two rounds at most}}:::reviewer
  PP -->|no plan file| H1
  RP -->|PASS| H1([user approves, in the admiral's session when one holds the map, Project Planned]):::human
  H1 --> OP[map holder commissions first captain to open feature; wires merge order]:::officer
  OP <-->|"one captain per pickable AFK ticket: commission · done &lt;key&gt;: PR ready · merge, when its turn comes · done &lt;key&gt;: merged"| IC[ticket-captain]:::officer
  OP -->|all landed: Inquisition Ticket in Backlog, scope and cost| H2([user moves it to Todo and tells the map holder, or cancels]):::human
  H2 -->|the map holder commissions| IQ[ticket-captain of the inquisition: Bugs filed]:::officer
  IQ --> OP
  OP -->|landing Merge Ticket: main into the feature, gates, merge review| LM[ticket-captain of the landing]:::officer
  LM -->|PR into main with its PASS, Ready to Merge| H3([user clicks the merge, one Project at a time, and tells the map holder]):::human
  H3 -->|map holder commissions landing captain cleanup; the map holder loads walkthrough| WT[Walkthrough Ticket: the user, with the admiral when one holds the map]:::officer
  WT -->|findings: tickets, a second lap on the re-cut feature| OP
  WT -->|nothing: Project Completed| END([done]):::human

One ticket, inside its captain's loop:

flowchart TD
  classDef officer fill:#cfe2ff,stroke:#2c5aa0,color:#000
  classDef crew fill:#d4edda,stroke:#2e7d32,color:#000
  classDef reviewer fill:#f8d7da,stroke:#a71d2a,color:#000

  AD[map holder]:::officer <-->|"commission, then done &lt;key&gt;: PR ready, then merge, then done &lt;key&gt;: merged"| IC[ticket-captain: claims, sets the status at every chain spawn, posts every SHA]:::officer
  IC <-->|"1 write · Implementing"| CW
  IC <-.->|"1b contract review before any code, at the captain's discretion · In Review, then Implementing"| RS
  IC <-->|"2 review · In Review"| RC
  IC <-->|"3 merge · source parent stays Ready to Merge; Sub-ticket runs its chain"| MG
  subgraph CREW [the crew]
    CW[1 code-writer<br>builds and proves the contract<br>returns implement SHA, red proof, gates]:::crew
    RS{{1b reviewer: spec<br>reads the contract text on the ticket<br>returns review block}}:::reviewer
    RC{{2 reviewer: code or docs<br>returns review block}}:::reviewer
    MG[3 Merge Sub-ticket<br>a code-writer maps conflicts and gates and merges, reviewer: merge judges]:::crew
  end

here's the further workflow documented: [Control Flow](https://github.com/bodnarbalazs/dydo/blob/master/dyd

// HOW IT'S BUILT

// FILES

3 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.

  • skills/productivity/writing-for-agents/SKILL.md12 KB6aec86ac0d5fupstream ↗
    ---
    name: writing-for-agents
    description: Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
    ---
    
    <!-- Adapted from mattpocock/skills writing-for-agents at 6654f6b60cd9d5be8b54c6fafe44346dabeb3b76 (MIT). -->
    
    # Writing for Agents
    
    Reference for writing any document an agent consumes: a skill, an `AGENTS.md` / `CLAUDE.md`, a doc reached by a pointer. The packaging differs; the writing does not: the same levers make each one predictable, since the agent takes the same _process_ every run rather than producing the same output.
    
    When the document is a dydo skill, read [`skill-mechanics`](resources/skill-mechanics.md) first: frontmatter keys, the invocation choice, Must-Reads, resources, and how the native folders are distributed. When the text is the reply only the user will read, `writing-for-humans` is this skill's pair.
    
    ## Context pointers
    
    A **context pointer** is a reference held in the agent's context that names some out-of-context material and encodes the condition for reaching it. A skill's description is one; a line in `AGENTS.md` naming a doc is the same object. The pointer's _wording_, not its target, decides when the agent reaches the material, and how reliably. A must-have target behind a weakly worded pointer is a variance bug: sharpen the wording first, and inline the material only if sharpening fails.
    
    A pointer does two jobs: state what the material is, and list the **branches** that should trigger reaching it (a branch is a distinct case the document handles, so different runs take different paths through it). Every word of an always-loaded pointer costs on every turn, so it earns even harder pruning than the body:
    
    - **Front-load the leading word**: the pointer is where it does its triggering work.
    - **One trigger per branch.** Synonyms that rename a single branch are one branch written twice; collapse them and keep only genuinely distinct branches.
    - **Cut identity the body already carries.**
    
    ## The funnel
    
    Every line serves the reader who is actually there: name the reader before the line goes in, and move a fact whose reader is elsewhere into that reader's document - "edit the source, not the build product" lives with the skills that edit skills, not in an entry point every session loads.
    
    An orientation file is a funnel, not a summary. It sorts its reader toward one next document and stops: sort by the reader's situation (started by the user, working a ticket, spawned with a skill), never by a role catalog, which lands incomplete or inconsistent and drags every reader through every other reader's material. A hole in the sort is a defect in the hub - fix it rather than adding an "if nothing fits" escape line. What a hub names, it does not describe: each entry's own description is its routing.
    
    ## The two loads
    
    Every document and pointer you add spends one of two budgets:
    
    - **Context load** is the cost of always-loaded material on the agent's window: an `AGENTS.md` line, a skill description, anything sitting in context every turn, spending tokens and attention whether or not it fires.
    - **Cognitive load** is the cost on the user: which documents exist and when to reach for each. The user is the index. Not a cost to minimise: it is the price of human agency; spend it where human judgement matters, remove it where it does not.
    
    Material reached only through a pointer escapes context load at the price of the pointer's own line; material with no pointer at all rides entirely on cognitive load.
    
    ## Information hierarchy
    
    A document is built from two content types: **steps** (the ordered actions the agent performs) and **reference** (definitions, rules, facts consulted on demand). The two mix freely: all steps (a recipe), all reference (a review's rules, this skill), or both. The core decision is where each piece sits on the **information hierarchy**, a ladder ranked by how immediately the agent needs the material:
    
    1. **In-file step** is the primary tier: what the agent does, in order.
    2. **In-file reference** is consulted on demand. Often a legitimately flat peer-set (every rule of a review on one rung), which is a fine arrangement, not a smell.
    3. **Disclosed reference** is pushed out into a separate file, reached by a context pointer, loaded only when the pointer fires. Spans a sibling file in the same folder through fully external reference that lives anywhere and any document can point at.
    
    Push too little down and the top bloats; push too much and you hide material the agent actually needs. That tension is the whole decision.
    
    **Progressive disclosure** is the move down the ladder (out of the main file and behind a pointer) so the top stays legible. Not primarily a token optimisation: it is how the hierarchy is protected. Branching is the cleanest disclosure test: inline what every branch needs, and push behind a pointer what only some branches reach. When a document has steps, in-file reference that should be disclosed buries them and turns attending to them into a coin-flip: a variance lever, not just a legibility one.
    
    **Co-location** is the within-file companion: where the ladder decides _how far down_ a piece sits, co-location decides _what sits beside it_ once there. Keep a concept's definition, rules, and caveats under one heading rather than scattered, so reading one part brings its neighbours with it. The test: the document should read like documentation written for the agent. Grouped material reads that way; scattered material does not.
    
    (Distinct from duplication: that repeats one meaning in two places; scattering fragments one meaning across many.)
    
    **Sprawl** is the failure mode here: a document simply too long, even when every line is live and unique. Attention thins across the excess, and every extra line is one more to keep relevant. The cure is the ladder: disclose reference behind pointers, and split by branch or sequence so each path carries only what it needs.
    
    ## Steps and completion criteria
    
    Every step ends on a **completion criterion**, the condition that tells the agent the work is done. Two properties make it a lever:
    
    - **Clarity**: can the agent tell done from not-done? A vague bound ("understanding reached") invites **premature completion**: ending the step before it is genuinely done, attention slipping to _being done_. The visible steps still ahead (the **post-completion steps**) supply the pull; the criterion's clarity is the resistance. Defend in order: **sharpen the bound first** (local and cheap); only if it is irreducibly fuzzy _and_ you observe the rush, hide the later steps by splitting the sequence.
    
      Hiding only works across a real context boundary (a hand-off or a subagent dispatch; an inline call leaves the later steps in context and clears nothing).
    - **Demand**: how much it requires. "Every modified model accounted for" forces thorough work where "produce a change list" does not. Demand drives **legwork** (the digging the agent does within the work, latent in the wording rather than written as its own step), and it is not step-bound: "every rule applied" binds a body of flat reference just as "every step done" binds a sequence, which is how an all-reference document still carries an exhaustiveness bar.
    
    The strongest criteria are both checkable and exhaustive.
    
    ## When to split
    
    Splitting one document into two spends one of the two loads, so split only when the cut earns it:
    
    - **By sequence**: split a run of steps where the post-completion steps tempt the agent to rush the one in front of it. Keeping them out of view drives more legwork on the current task. Beware the reverse: merging sequences exposes each step's later steps to what follows, inviting premature completion.
    - **By invocation**, skill-specific: see [`skill-mechanics`](resources/skill-mechanics.md).
    
    ## Leading words
    
    A **leading word** is a compact concept already living in the model's pretraining that the agent thinks with while running the document (_lesson_, _fog of war_, _tracer bullets_). Repeated as a token, never as a sentence, it accumulates a distributed definition and anchors a whole region of behaviour in the fewest tokens, by recruiting priors the model already holds.
    
    Coining your own works if you define it clearly, but a made-up word recruits no priors: you pay in definition tokens what a pretrained word gives free; reach for an existing word first.
    
    It anchors twice. In the body, _execution_: the agent reaches for the same behaviour every time the word appears, and inside flat reference it focuses attention on a class of thing to look for. In a pointer, _invocation_: when the same word lives in your prompts, your docs, and your codebase, the agent links that shared language to the material and reaches it more reliably.
    
    Hunt for opportunities to refactor with leading words. A triad spelled out at three sites, a pointer spending a sentence to gesture at one idea. Each is a passage begging to collapse into a single token:
    
    - "fast, deterministic, low-overhead" → _tight_ (a _tight_ loop).
    - "a loop you believe in" → _red_, turning a fuzzy gate into a binary observable state (the loop goes _red_ on the bug, or it doesn't).
    
    You win twice: fewer tokens, and a sharper hook for the agent to hang its thinking on. Assume every document is carrying restatements that leading words retire. Go find them.
    
    **Negation** is the failure mode beside this lever: steering by prohibition drags the forbidden behaviour into context and makes it _more_ available, not less. _Don't think of an elephant_, and the elephant is all there is; the negation is a weak modifier the strongly-activated concept overruns, so the ban half-reads as an instruction to do the thing. Prompt the **positive**: state the target behaviour ("write one-line comments") so the banned one is never spoken.
    
    A prohibition earns its place only as a hard guardrail you cannot phrase positively; even then, pair it with the positive target so attention lands on what to do.
    
    ## Pruning
    
    - Keep each meaning in a **single source of truth**: one authoritative place, so changing the behaviour is a one-place edit. **Duplication** (the same meaning in more than one place) costs maintenance and tokens, and inflates a meaning's prominence on the ladder past its real rank. (The accidental inverse of a leading word, which repeats a token on purpose, never the meaning.)
    - The **environment** is a source of truth too (`package.json` scripts, config files, the directory layout, `--help` output), and a document that restates it is a **cache**: a copy of a lookup, earning its load only when the lookup is expensive. Cache what the agent cannot find by looking: the unwritten convention, the reason behind a choice, the gotcha no config confesses. Leave the one-file, one-command lookups to the environment, where they cannot go stale.
    - Check every line for **relevance**: does it still bear on what the document does? A line loses relevance by never bearing on the task (mere exposition, or a branch that should be disclosed) or by going stale as the behaviour or world it describes changes. Shorter documents are easier to keep relevant. Without a pruning discipline the default fate is **sediment**: stale layers that settle because adding feels safe and removing feels risky, until you must core down through them to find what is still live.
    - Hunt **no-ops** sentence by sentence: an instruction the model already obeys by default pays load to say nothing. The test (does it change behaviour versus the default?) is model-relative, not reader-relative: two people disagreeing about a no-op disagree about the default, and settle it by running the document, not by debate. When a sentence fails, delete the whole sentence rather than trim words from it.
    
      The test also grades leading words: a word too weak to beat the default (_be thorough_ when the agent is already thorough-ish) is a no-op, and the fix is a stronger word (_relentless_), not a different technique.
    - Say each **rule** in about twelve plain words; keep precision only where a real failure needs it.
    - Keep one project's tooling and names out of shared, generic skill and Scaffold text.
    
  • skills/productivity/writing-for-agents/resources/skill-mechanics.md5.5 KB997dc4492c2eupstream ↗
    <!-- Adapted from mattpocock/skills writing-for-agents/SKILL-MECHANICS at 6654f6b60cd9d5be8b54c6fafe44346dabeb3b76 (MIT). -->
    
    # Skill mechanics
    
    The skill-specific branch of writing-for-agents: what changes when the document is a dydo skill -
    frontmatter, invocation, and where its reference lives. Everything else about writing it is the
    universal reference in this skill's body.
    
    **The skill folder is the skill.** dydo authors every role directly in the cross-vendor `SKILL.md`
    format; there is no template and no compile step. The canonical artifact is
    `skills/<category>/<name>/SKILL.md`, per the [agentskills.io](https://agentskills.io) standard: `name` and
    `description` in the frontmatter and the methodology in the body. `<category>` is the category path:
    `roles/officers`, `roles/crew`, `engineering` or `productivity`. Borrow ideas, not whole upstream
    flows; each borrowed passage carries `<!-- Adapted from <repo> <skill> at <sha> (<license>). -->`, as
    this file does. A rule may rely only on what both hosts support; one host's extra is a named
    convenience.
    
    ## Frontmatter
    
    | Key | Value | What the host does with it |
    |---|---|---|
    | `name` | the folder slug | Identity on both hosts; keep it equal to the folder name. |
    | `description` | one line | The only text a model weighs before reaching for the skill. |
    | `disable-model-invocation` | `true` | Claude-only: the skill is out of every model's reach; only the user, by name. Codex's twin is `allow_implicit_invocation: false` under the skill's `agents/openai.yaml`. |
    | `argument-hint` | `"<what to type>"` | Claude-only: the prompt the host shows after the name. Codex's twin is `interface.default_prompt` under the skill's `agents/openai.yaml`. |
    
    The historical template keys - `emit`, `read-only`, `delegates`, `invocation`, `web` - described a
    compiled agent and are retired with the compiler. A role is now a skill; keeping a read-only reviewer
    from writing is a request made through host sandbox and permission settings, not a generated agent
    file, and the request's presence does not prove it was enforced - that takes a native check on the
    host. Codex's `multi_agent` permitted an ordinary edit under `sandbox_mode = "read-only"`; see "DYD-88
    - Codex sub-agent lifecycle observations - 2026-09-14".
    
    ## Invocation
    
    Two choices, trading the two loads:
    
    - **automatic** (the default) keeps a description the agent can fire on, and other skills can reach
      it. You can still type its name: model-invocation always _includes_ human reach. That description
      is a context pointer forced to stay loaded every turn - write it trigger-first, one trigger per
      branch, with this skill's pointer rules applied in full.
    - **explicit** keeps the skill out of every model's reach: only the user typing its name invokes
      it, and no other skill can. Zero context load, but it spends cognitive load - a human has to know
      it exists, which is why the locked dydo glossary carries the taxonomy. Its description turns
      human-facing: one punchy line, trigger lists stripped. On Claude this is
      `disable-model-invocation: true` in `SKILL.md`; on Codex it is `allow_implicit_invocation: false`
      in `skills/<category>/<name>/agents/openai.yaml`.
    
    ## Where reference lives
    
    - **`## Must-Reads`** - project documents named under that heading. Author each target as a
      repository-root literal path in a code span, read from the repository root - "From the repository
      root, read `dydo/understand/architecture.md`" (see `skills/roles/crew/reviewer/SKILL.md`);
      `DynaDocs.Tests/Steps/CanonicalSkillSteps.cs` (`EveryLinkResolves`, its `AssertInside` call)
      enforces that no Must-Read is written as a markdown link. A `../` climb does not work here because the identical file is read at two
      different depths: canonically at `skills/<category>/<name>/`, and through the host projection at
      `.claude/skills/<name>/` or `.agents/skills/<name>/`. The two resolvers disagree - lexical `..`
      normalization against the projected path versus POSIX `..` applied to the physical parent once the
      symlink is followed - so no single relative climb is correct from every install location. Project
      additions are edits to the skill body itself; include tags are retired.
    - **Resources** - `resources/<name>.md` beside the skill, reached by that same folder-relative path.
      This is disclosure with a file boundary: one skill's own reference, reached only by the branches
      that need it. Reference several skills share lives instead in a model-invoked method skill, or in
      a `dydo/` document each of them lists under Must-Reads.
    - **Citing a project-owned doc** - cite a file or a heading that `Scaffold/dydo/` carries. A
      project's copy freezes at its first `dydo init` and an adopter reconciles it by hand, so a file or
      heading found only in the dydo repository's own `dydo/` resolves nowhere else. Content the skill
      cannot work without lives in the skill. A new citation, by file or by heading, lands in
      `Scaffold/dydo/` in the same change.
    
    ## Distribution
    
    One `skills/<category>/<name>/` folder is committed and hand-maintained. `node setup-skills.mjs` creates
    per-skill POSIX symlinks or Windows junctions in the Claude and Codex discovery roots; OpenCode may read
    both roots too, but that is untested. After a skill sync, run `node setup-skills.mjs` from the repository
    root. Verify each canonical skill resolves through both discovery roots and links to deleted skills
    are gone. Setup never copies or reconciles prose.
    What no tool may rewrite is listed in `dydo/files-off-limits.md`, read from the repository root.
    
  • README.mdupstream ↗

    Contents are not inlined in the catalog. Open the upstream file.

Plain-text copy, no login: /skill-bundles/bodnarbalazs-dydo-skills-productivity-writing-for-agents.md

// REPO STATS

6 stars
0 open issues
Last commit: 20d ago