plan-file

plan-file is a skill for Claude Code, Codex from ethanaubuchon/dossier-tradecraft. It costs 84 tokens per session (1,398 once invoked), scanned A, original, MIT.

An implementation planning gate that creates a written plan for a coding task before development begins. The plan records the ticket, affected files, approach, tests, and open questions, then waits for approval.

In plain words
What is it for?
Use it before implementing non-trivial ticketed changes in a repository, after the branch and worktree are ready.
Why use it?
It prevents coding from starting with unclear scope or an unreviewed approach, while leaving a record of the intended work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it before implementing non-trivial ticketed changes in a repository, after the branch and worktree are ready.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ethanaubuchon/dossier-tradecraft/plan-file
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ethanaubuchon/dossier-tradecraft --skill plan-file
Clone the repo
git clone --depth 1 https://github.com/ethanaubuchon/dossier-tradecraft

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for plan-file

README.md
[![agentmods](https://agentmods.dev/badge/skills/ethanaubuchon/dossier-tradecraft/plan-file/github.svg)](https://agentmods.dev/skills/ethanaubuchon/dossier-tradecraft/plan-file)
Your own site
<a href="https://agentmods.dev/skills/ethanaubuchon/dossier-tradecraft/plan-file"><img src="https://agentmods.dev/badge/skills/ethanaubuchon/dossier-tradecraft/plan-file/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for plan-file

Your own site · 80×15
<a href="https://agentmods.dev/skills/ethanaubuchon/dossier-tradecraft/plan-file"><img src="https://agentmods.dev/badge/skills/ethanaubuchon/dossier-tradecraft/plan-file.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,398 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.01398
Opus 5 $0.00042 $0.00699
Sonnet 5 $0.00017 $0.00280
Haiku 4.5 $0.00008 $0.00140

Measured 11d ago against content hash 5b19718effb5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

plan-file scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/plan-file/SKILL.md · 109 lines

How it starts

The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Plan File

The plan gate in /implement's repo path: runs after repo-setup, before any implementation code. Produces a written, approval-blocked plan for the branch — coding doesn't start until the plan file exists and the user has approved it. Ported from the work implementation-plan skill, genericized.

When to invoke

Before writing any implementation code, once both are true:

  1. A branch + worktree are set up (via repo-setup).
  2. A story/ticket is the agreed scope for the session.

If implementation is requested and no plan file exists for the current branch, run this first.

When to skip

Skip only for:

  • Single-line fixes, typos, renames, trivial string edits.
  • Emergency hotfixes where speed outweighs discipline.
  • Spikes or throwaway experiments explicitly flagged as such.

If skipping, state the reason in one sentence before proceeding, so the skip is auditable in the session log (and note it in the eventual commit message).

Plan file location

.claude/plans/<branch>.md in the worktree root. Flatten / in the branch name to - so the plan is a single file, not a nested path: feat/new-thing.claude/plans/feat-new-thing.md. This /- rule is canonical here; repo-setup's plan-file prune and cleanup-artifacts' deletion must use the same flattening.

The plan is working scaffolding, not shipped documentation, so .claude/plans/ must be gitignored — don't assume it. Ensure .claude/plans/ is in the repo's .gitignore (add it if missing) before writing the plan. repo-setup seeds this alongside .worktrees/, but plan-file guarantees it too so the property holds even when invoked standalone.

Deleting the plan is cleanup-artifacts' job (#35) at the draft→ready boundary, not this primitive's. Until cleanup-artifacts ships, the gitignore guarantee above is what keeps a plan from leaking into a PR.

Plan structure

# <story-id>: <short-title>

## Story reference
<link to the ticket, plus 2–3 sentences of context — enough that the plan stands alone without opening the ticket>

## Change summary
1–2 sentences: what is changing and why.

## Affected files
- `path/to/file.ext` — new | modified | deleted — one-line note on the change
- `path/to/test.ext` — new | modified — test-side change

## Approach
Bullet list keyed to the files above. Describe the shape of each change, not full pseudocode. Example:

- `src/foo/usage.ts` — add a `usage` accessor that reads from the cache with a short TTL; expose it so the caller can use it directly instead of hitting the cache.
- `src/foo/caller.ts` — replace the direct cache call with the new accessor.

## Test cases
- Happy path: ...
- Edge: ...
- Regression to guard: ...
- Known gotchas from past incidents in this area: ...

## Open questions
Anything the story did not fully answer. Resolve with the user before coding, or mark as explicit assumptions to validate during review.

Read the full file on GitHub · 109 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 109 lines · 84 tokens per session scan A 5b19718effb5

Subscribe to this mod's changes

plan-file is a skill published in the GitHub repository ethanaubuchon/dossier-tradecraft (3 stars, last pushed 2mo ago), licensed MIT. It adds 84 tokens to every session and 1,398 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

aidex-backlog

Use when the user wants to capture or defer something for later without acting on it now, or to work the existing backlog as a board. Fires on "add to the backlog", "add to the backlog the idea of X", "park this for later", "defer this one", "shelve the X idea", "queue this for later", "track this for later", "we'll…

yacb2/aidex · 214 tokens

aidex-audit

Use when the user wants to assess the state of a feature, flow, or module — a UX, security, performance, or accessibility audit; cataloging bugs, gaps, and opportunities; retesting open findings; escalating a finding to the backlog; or updating audit methodology. Fires on "I want to do a UX / security / performance /…

yacb2/aidex · 189 tokens

aidex-conventions

NOT auto-invoked. Shared documentation-canon hub for the aidex- family — holds the .context/ convention references (references/.md) that the single-purpose sibling skills delegate into. Routing — plan multi-step work → aidex-plan; record a decision/ADR → aidex-decision; capture a stakeholder/client request →…

yacb2/aidex · 157 tokens

aidex-plan

Use when implementation work should become a written .context/ plan before coding starts — either multi-phase work (a feature build, a migration, a refactor spanning backend/frontend/infra) or a single scoped change where only the file list and acceptance criteria need pinning down; a triage step picks which. Fires on…

yacb2/aidex · 218 tokens

aidex-review

Use when the user wants code reviewed as it stands — a module, a feature, a path, or the whole app — rather than a diff or a pull request. Covers correctness/bug hunting, simplification and dead code, exploitable security defects, and performance waste, and it first proposes which finder agents are worth launching and…

yacb2/aidex · 204 tokens

aidex-worktree

Use when the user wants to create, run or tear down a git worktree with its own isolated environment (database, ports, containers), or when a project has no worktree setup yet and one needs bootstrapping by investigating the repo topology and verifying the compose stack can run twice — "set up a worktree for X"…

yacb2/aidex · 186 tokens