plan-section

plan-section is a command for Claude Code from akougkas/wtf-p. It costs 12 tokens per session (1,284 once invoked), scanned A, a copy of add-todo, MIT.

A section-planning command for creating and checking a detailed plan for one part of a research paper. It uses the project's outline, context, research, sources, evidence, and previous validations.

In plain words
What is it for?
Use it to create a section plan, validation record, checkpoint, and related project-state updates.
Why use it?
It turns scattered research and requirements into a checked plan before drafting begins.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the wtfp plugin — 36 commands, 3 hooks shipped together

Good fit Use it to create a section plan, validation record, checkpoint, and related project-state updates.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add akougkas/wtf-p
Claude Code
/plugin install wtfp

Made for: Claude Code.

Or install wtfp, the plugin that ships this one along with the rest of its 36 commands, 3 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/akougkas/wtf-p/plan-section/github.svg)](https://agentmods.dev/commands/akougkas/wtf-p/plan-section)
Your own site
<a href="https://agentmods.dev/commands/akougkas/wtf-p/plan-section"><img src="https://agentmods.dev/badge/commands/akougkas/wtf-p/plan-section/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-section

Your own site · 80×15
<a href="https://agentmods.dev/commands/akougkas/wtf-p/plan-section"><img src="https://agentmods.dev/badge/commands/akougkas/wtf-p/plan-section.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,284 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 78% copy Near-identical to another mod 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.00012 $0.01284
Opus 5.5 $0.00005 $0.00514
Sonnet 5.5 $0.00002 $0.00257
Haiku 4.5 $0.00001 $0.00128

Measured 23d ago against content hash d05f76cd6e1d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

plan-section 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 23d 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.

Origin

This is a copy

78% identical to add-todo — 41 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

vendors/claude/commands/plan-section.md · 78 lines

How it starts

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

Plan a section

@${CLAUDE_PLUGIN_ROOT}/project/README.md @${CLAUDE_PLUGIN_ROOT}/skills/wtfp-plan-section/SKILL.md @${CLAUDE_PLUGIN_ROOT}/skills/wtfp-plan-section/references/actions.md

Record contract

Read: project://manifest, project://config, project://state, project://decisions, project://structure/outline, project://validations/*, project://sections/{section}, project://sections/{section}/context, project://sections/{section}/research, project://sections/{section}/summary, project://sources/{source}, project://evidence/{evidence}. Produce: project://sections/{section}/plans/{plan} (create), project://validations/{validation} (create), project://checkpoints/{checkpoint} (create), project://sections/{section} (update), project://state (update).

Resolve every logical URI through the host adapter. Portable v1 JSON records are the source of truth: schema-validate before a write, preserve stable IDs, update revision and timestamps where required, and replace records atomically. Never pass a literal logical URI to a shell command or infer record state from a legacy Markdown control file.

Manuscript prose and supporting context, research, plan, review, summary, handoff, and deliverable artifacts retain their authored format (normally Markdown). Link them from the relevant v1 record; do not convert manuscript prose into project-state JSON.

Procedure

  1. Resolve one section record, load its linked context, research, evidence, decisions, and outline constraints, and enumerate the bounded project://validations/* collection before any specialist dispatch.
  2. Filter those records to candidates whose subject_uri is exactly project://structure/outline and whose action_id is exactly create-outline. A candidate is current only when executed_at >= outline.updated_at. Because the v1 validation schema carries no outline revision or content hash, disclose that this timestamp test is a conservative freshness proxy.
  3. Require exactly one current candidate and require its status to be passed. Separately verify that the current outline and target section are consistent with all current locked and deferred author choices: honor locked choices and do not treat deferred choices as resolved. A missing, stale, ambiguous, or non-passing candidate, or a decision contradiction, blocks all specialist dispatch and every plan, section, state, or validation write. Only a recovery checkpoint may be proposed on this blocked path, and it may be written only after a complete record preview and explicit author approval.
  4. For a literature-heavy section, first require a section-specific research artifact plus resolvable source/evidence records that cover the planned claims. If they are absent or insufficient, run research-gap with the configured CiteNexus backend when available, verify candidate metadata against the returned records, and stop planning with an explicit research checkpoint if evidence remains insufficient. Never invent citations or treat search candidates as verified sources.
  5. Only after those prerequisites pass, delegate a bounded plan to section-planner, then require a fresh plan-checker pass over claim coverage, dependencies, file scope, citations, and decision fidelity. Dispatch the exact WTF-P specialist roles; generic coder and verifier roles do not satisfy this workflow.
  6. At confirm_plan, preview the plan and validation; on approval link the plan, update section status to planned, and reconcile state. Create a checkpoint for unresolved judgment instead of bypassing the required checker.

Read the full file on GitHub · 78 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. 23d ago Changed · +1 lines d05f76cd6e1d
  2. 29d ago Changed b2241fde77d1
  3. 1mo ago First seen · 77 lines · 12 tokens per session scan A 52f7af9dd40b

Subscribe to this mod's changes

plan-section is a command published in the GitHub repository akougkas/wtf-p (20 stars, last pushed 11d ago), licensed MIT. It adds 12 tokens to every session and 1,284 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 78% identical to add-todo, differing in 41 lines, and is treated as a copy.