document

document is a command for coding agents from ihudak/ihudak-claude-plugins. It costs 84 tokens per session (34,428 once invoked), scanned A, original, MIT.

A documentation workflow that turns Jira product requirements into product documentation. Jira is a project-management system, and a product requirements document describes what a feature should do.

In plain words
What is it for?
Use it to read exported Jira requirements, inspect related pull requests, create documentation, check its style, and write the pages to a documentation repository.
Why use it?
It brings requirements, code changes, and documentation together so writers do not have to assemble them manually.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the dev-workflows plugin — 16 commands, 39 agents shipped together

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/ihudak/ihudak-claude-plugins/document
Clone the repo
git clone --depth 1 https://github.com/ihudak/ihudak-claude-plugins

Or install dev-workflows, the plugin that ships this one along with the rest of its 16 commands, 39 agents.

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 document

README.md
[![agentmods](https://agentmods.dev/badge/commands/ihudak/ihudak-claude-plugins/document.svg)](https://agentmods.dev/commands/ihudak/ihudak-claude-plugins/document)
Your own site
<a href="https://agentmods.dev/commands/ihudak/ihudak-claude-plugins/document"><img src="https://agentmods.dev/badge/commands/ihudak/ihudak-claude-plugins/document.svg" alt="Measured on agentmods" height="20"></a>
Per session 84 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 34,428 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.00084 $0.34428
Opus 5 $0.00042 $0.17214
Sonnet 5 $0.00017 $0.06886
Haiku 4.5 $0.00008 $0.03443

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

Security

Grade A, and why

document 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 3d 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.

plugins/dev-workflows/commands/document.md · 1,629 lines

How it starts

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

Generate product documentation for the Jira Product Requirements Document: $ARGUMENTS

Signature: PRODUCT-NNNN — the Jira Product Requirements Document key, and nothing else. Phase 5.5 resolves each write target against the content roots the resolved profile declares, and Phase 6.3 writes each page into the root that owns it.

/document (Jira mode) is the Jira-driven feature-documentation workflow. Given a Jira Product Requirements Document key, it reads the full Jira hierarchy from pre-exported markdown in the user's Obsidian vault, resolves PR URLs to local git repos, runs parallel PR-diff summaries, synthesises product documentation, runs style-check + Opus review gates, and writes the output to the current working directory (a product docs repository).

For small one-off doc edits, use direct mode (below). For writing child Epic drafts from a PRD, use /epics. For release notes, use /release-notes — this command never writes release-notes / what's-new pages, because those are generated from Jira by the docs team's automation.


Mode detection

/document has two modes, selected by the first argument token:

  • Jira mode (Mode A) — the input resolves jira-driven via the shared front-end (${CLAUDE_PLUGIN_ROOT}/references/jira-input-resolution.md): a first token matching a JiraID (^[A-Z][A-Z0-9]+-[0-9]+), or a directory that inspects as a Jira-export (contains <KEY>-index.md). The front-end's Fallback B handles a JiraID-shaped token with no jira-products/<KEY> folder.
  • Direct mode (Mode B) — the input resolves direct (a leading @file token, free-text prose, or a non-Jira-export directory, which Mode B handles via its existing "anything else" path).

Specs-repo preflight. Cite ${CLAUDE_PLUGIN_ROOT}/references/specs-repo-git.md and execute its specs-preflight entry point (§3) inline: flush any leftover session artifacts from an earlier run, retry an artifact commit that failed to push, and settle the branch. This runs against $SPECS_PATH only — git -C "$SPECS_PATH", never a cd, so the code/docs repo this run is working in is untouched (§1 rule 1). Prompt-free and silent when the specs repo is clean and on its default branch. If a guard fires, emit its §5 notice; if it returns specs_git: blocked (§3.3 G0), carry that flag for the whole run — the terminal commit-artifacts step skips on it.

Echo the detected mode, then proceed to that mode's phases. The two modes share the same docs-style-checker / doc-fixer agents; only Jira mode also runs doc-reviewer (each mode emits its own final report).


Read the full file on GitHub · 1,629 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. 3d ago First seen · 1,629 lines · 84 tokens per session scan A 75395bcc20a4

Subscribe to this mod's changes

document is a command published in the GitHub repository ihudak/ihudak-claude-plugins (2 stars, last pushed 3d ago), licensed MIT. It adds 84 tokens to every session and 34,428 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.