wtfp:write-section

wtfp:write-section is a command for Claude Code from akougkas/wtf-p. It costs 21 tokens per session (1,066 once invoked), scanned A, a copy of wtfp:execute-outline, MIT.

A command for writing one planned section of an academic paper within the WTFP research workflow. It uses the project's stored plans, sources, evidence, and structure to update the paper and project records.

In plain words
What is it for?
Writing a specific paper section, updating the manuscript and research-project state, and optionally checking whether the section's claims are supported by the collected evidence.
Why use it?
It helps turn an approved section plan into paper text while keeping the project's evidence, summaries, checkpoints, and status up to date.

Command for Claude Code

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

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.

agentmods
npx agentmods add commands/akougkas/wtf-p/wtfp-write-section
Clone the repo
git clone --depth 1 https://github.com/akougkas/wtf-p

Made for: Claude Code.

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 wtfp:write-section

README.md
[![agentmods](https://agentmods.dev/badge/commands/akougkas/wtf-p/wtfp-write-section.svg)](https://agentmods.dev/commands/akougkas/wtf-p/wtfp-write-section)
Your own site
<a href="https://agentmods.dev/commands/akougkas/wtf-p/wtfp-write-section"><img src="https://agentmods.dev/badge/commands/akougkas/wtf-p/wtfp-write-section.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 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,066 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 88% 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.00021 $0.01066
Opus 5 $0.00010 $0.00533
Sonnet 5 $0.00004 $0.00213
Haiku 4.5 $0.00002 $0.00107

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

Security

Grade A, and why

wtfp:write-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 5d 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

88% identical to wtfp:execute-outline — 22 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/antigravity/commands/wtfp-write-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.

Write a section

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

Record contract

Read: project://manifest, project://config, project://state, project://decisions, project://structure/outline, project://sections/{section}, project://sections/{section}/context, project://sections/{section}/research, project://sections/{section}/plans/{plan}, project://sections/{section}/summary, project://sources/{source}, project://evidence/{evidence}, project://paper/{artifact}. Produce: project://paper/{artifact} (create), project://paper/{artifact} (update), project://manifest (update), project://sections/{section}/summary (create), project://sections/{section}/summary (update), 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. Require one approved plan and resolve all linked context, research, source/evidence records, decisions, prior summary, existing target, and necessary neighboring prose before choosing create or update.
  2. Draft only the declared manuscript artifact; cite only resolvable sources, preserve author constraints, and stop at blocking decisions.
  3. Read the persisted manuscript text back and calculate its actual body word count with one deterministic method; never copy a worker self-report, plan target, or summary count into project records. Validate the persisted draft against its plan and word budget.
  4. Create or update the required Markdown summary with that measured count, then read back both manuscript and summary. Missing, empty, or inconsistent output is a failed completion condition, not permission to link a path that does not exist.
  5. Persist the validation, synchronize the manuscript URI in manifest.artifacts.manuscripts, and reconcile section/state records only after manuscript, summary, and validation readback succeeds. If blocked, create the declared checkpoint and stop; do not commit or merge automatically.

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. 5d ago First seen · 78 lines · 21 tokens per session scan A 30b8e0caee4f

Subscribe to this mod's changes

wtfp:write-section is a command published in the GitHub repository akougkas/wtf-p (19 stars, last pushed 6d ago), licensed MIT. It adds 21 tokens to every session and 1,066 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to wtfp:execute-outline, differing in 22 lines, and is treated as a copy.