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.
npx agentmods add commands/jrpease/throughline/document-componentgit clone --depth 1 https://github.com/jrpease/throughlineWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00960 |
| Opus 5 | $0.00000 | $0.00480 |
| Sonnet 5 | $0.00000 | $0.00192 |
| Haiku 4.5 | $0.00000 | $0.00096 |
Grade A, and why
document-component 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.
How it starts
The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Document a single existing component end to end, using the settings already in
design-system.json (project.uiFramework, figma.mechanism, sync.platforms)
rather than re-asking configuration. Scale explanation to user.codingLevel.
Ask which component to document (e.g. "Button"), then:
- Author/refresh the record. Run the doc-authoring pipeline from
the
component-builderrule's Author the documentation record step — ingest any existing docs first (brownfield), then infer → enrich (from.throughline/references/component-doc-archetypes.md) → specialize → interview. Authored prose follows.throughline/references/doc-writing-standard.md. SetupdatedAtto today's date (ISO,YYYY-MM-DD) whenever the record is written or rewritten — it is a projected field and the doc card's header renders it. Once the record is written, runnode .throughline/scripts/docs-lint.mjs design-system/docs/components/<Name>.doc.jsonand fix its warnings. Do not raise a separate confirmation for a warning on animported/userblock: draft the rewrite and carry it into the approval gate below, shown as before/after and labelled with the block's provenance, so one approval covers the whole record. The user approves the drafted record before anything is projected (Figma description, doc card, manifest). Blocks the user did not clear keep their existing text; blocks the user did clear are stampedimported+userso a later run neither re-asks nor rewrites them. - Project it. Write
design-system/docs/components/<Name>.doc.json, set the Figma componentdescription, rebuild the doc card'sUsageband with the canonical builder (.throughline/references/doc-card-builder.md— verify its returned summary and stampsurfaces.docCard.{src,render,renderer}from it), and (if the repo/code side exists) render MDX/JSDoc and rundocs:digestper thestorybook-chromatic-builderrender step. - Reconcile drift. Before trusting
docs:check, confirm the repo's copy of the doc scripts is current: compareDOC_CARD_RENDERER_VERSIONin the repo'sscripts/lib/doc-card-plan.mjsagainst the same constant in.throughline/scripts/lib/doc-card-plan.mjs. If the repo file is missing, or its version is lower,docs:checkis reading stale rules and its "no drift" is meaningless — say so plainly, and offer to refresh the repo's doc scripts from the plugin copy. Refresh the whole set and re-check the npm registrations, both per Documentation scripts — install as a set in.throughline/scripts/README.md— a refreshed file whose script was never registered is the same failure in a new place. Rundocs:check(with the refreshed scripts, if any). For each drifted surface, offer a per-item choice — re-render (canonical wins) or pull-back (fold the surface edit into the record) — and land the result as a reviewable change. On a brownfield component's first pass, adopt existing content (provenance: imported) rather than overwriting it.docs:checkmay also reportlayout-upgrade-available(informational, never failing): the card's layout predates the current builder. Offer to re-render theUsageband now — rebuild happens on this touch, never unprompted. - Close the flow. Hand back in the four-beat guide voice from
.throughline/references/guide-voice.md: the outcome, what you set aside and why, one recommended next step, and at most one light alternative. Read existing state to name what is actually outstanding rather than guessing — a component atstatus: "draft"with no code surface inmeta[name].doc.surfacesmeans the code side is deferred. Do not close with a grid of co-equal options.
See .throughline/references/component-doc-schema.md for the record schema,
fingerprint contract, and projection mapping. If a component was never built in
Figma, point the user at component-builder first.
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.
- 2d ago First seen · 59 lines · 0 tokens per session scan A 332364e602d4
document-component is a command published in the GitHub repository jrpease/throughline (76 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 960 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.
Other commands, from other repositories
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.
implement
Execute the implementation plan by processing and executing all tasks defined in tasks.md.