create-doc

A guided document-creation workflow that uses YAML templates, a text format for structured settings, to build a document section by section. It pauses for your choices and feedback before continuing.

In plain words
What is it for?
Use it to create documents from templates, review each section, and explain the assumptions and trade-offs behind the draft.
Why use it?
It prevents a complete document from being produced without checking your decisions along the way. It also helps ensure the right template is found and followed.

Command for Claude Code

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/gonewx/tasksentinel/create-doc
Clone the repo
git clone --depth 1 https://github.com/gonewx/TaskSentinel

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 881 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00881
Opus 5 $0.00000 $0.00441
Sonnet 5 $0.00000 $0.00176
Haiku 4.5 $0.00000 $0.00088

Measured 2d ago against content hash 7c86f8c399b9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create-doc 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 2d 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

Copies of this mod

3 near-identical copies found in the catalogue:

.claude/commands/BMad/tasks/create-doc.md · 106 lines

How it starts

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

/create-doc Task

When this command is used, execute the following task:

Create Document from Template (YAML Driven)

⚠️ CRITICAL EXECUTION NOTICE ⚠️

THIS IS AN EXECUTABLE WORKFLOW - NOT REFERENCE MATERIAL

When this task is invoked:

  1. DISABLE ALL EFFICIENCY OPTIMIZATIONS - This workflow requires full user interaction
  2. MANDATORY STEP-BY-STEP EXECUTION - Each section must be processed sequentially with user feedback
  3. ELICITATION IS REQUIRED - When elicit: true, you MUST use the 1-9 format and wait for user response
  4. NO SHORTCUTS ALLOWED - Complete documents cannot be created without following this workflow

VIOLATION INDICATOR: If you create a complete document without user interaction, you have violated this workflow.

Critical: Template Discovery

If a YAML Template has not been provided, list all templates from .bmad-core/templates or ask the user to provide another.

CRITICAL: Mandatory Elicitation Format

When elicit: true, this is a HARD STOP requiring user interaction:

YOU MUST:

  1. Present section content
  2. Provide detailed rationale (explain trade-offs, assumptions, decisions made)
  3. STOP and present numbered options 1-9:
    • Option 1: Always "Proceed to next section"
    • Options 2-9: Select 8 methods from data/elicitation-methods
    • End with: "Select 1-9 or just type your question/feedback:"
  4. WAIT FOR USER RESPONSE - Do not proceed until user selects option or provides feedback

WORKFLOW VIOLATION: Creating content for elicit=true sections without user interaction violates this task.

NEVER ask yes/no questions or use any other format.

Processing Flow

  1. Parse YAML template - Load template metadata and sections
  2. Set preferences - Show current mode (Interactive), confirm output file
  3. Process each section:
    • Skip if condition unmet
    • Check agent permissions (owner/editors) - note if section is restricted to specific agents
    • Draft content using section instruction
    • Present content + detailed rationale
    • IF elicit: true → MANDATORY 1-9 options format
    • Save to file if possible
  4. Continue until complete

Read the full file on GitHub · 106 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. 2d ago First seen · 106 lines · 0 tokens per session scan A 7c86f8c399b9

Subscribe to this mod's changes

create-doc is a command published in the GitHub repository gonewx/TaskSentinel (18 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 881 tokens. 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-30.