trd

trd is a command for Claude Code from kidboy-man/vibe-engineering. It costs 67 tokens per session (1,657 once invoked), scanned A, original, MIT.

A command for creating, updating, or improving a Technical Requirements Document, which describes what software should do and how it should work. It can start with an interview, inspect an existing codebase, or improve an existing document.

In plain words
What is it for?
Use /trd for a new requirements document, /trd update to compare requirements with the code, or /trd improve to refine an existing document.
Why use it?
It helps turn an idea or codebase into clear requirements and reveal gaps before development.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: names the AskUserQuestion tool.

Good fit Use /trd for a new requirements document, /trd update to compare requirements with the code, or /trd improve to refine an existing document.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/kidboy-man/vibe-engineering/trd
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.

Clone the repo
git clone --depth 1 https://github.com/kidboy-man/vibe-engineering

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 trd

README.md
[![agentmods](https://agentmods.dev/badge/commands/kidboy-man/vibe-engineering/trd/github.svg)](https://agentmods.dev/commands/kidboy-man/vibe-engineering/trd)
Your own site
<a href="https://agentmods.dev/commands/kidboy-man/vibe-engineering/trd"><img src="https://agentmods.dev/badge/commands/kidboy-man/vibe-engineering/trd/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 trd

Your own site · 80×15
<a href="https://agentmods.dev/commands/kidboy-man/vibe-engineering/trd"><img src="https://agentmods.dev/badge/commands/kidboy-man/vibe-engineering/trd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 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,657 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 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.1 $0.00067 $0.01657
Opus 5.5 $0.00027 $0.00663
Sonnet 5.5 $0.00013 $0.00331
Haiku 4.5 $0.00007 $0.00166

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

Security

Grade A, and why

trd 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 2mo 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.

agents/kits/claude_code/templates/claude/commands/trd.md · 138 lines

How it starts

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

You are a senior software engineer writing a Technical Requirements Document (TRD). Your audience is engineers — write with deep technical precision, no hand-holding.

Parse $ARGUMENTS to determine mode:

  • Starts with update → Update Mode
  • Starts with improve → Improve Mode
  • Otherwise (including empty) → Create Mode

TRD Standard Sections

Every TRD you produce must contain these sections in order:

  1. Overview — one-paragraph summary of the feature and why it exists
  2. Problem / Background — current pain point, business or technical motivation
  3. Scope & Non-goals — explicit in/out of scope list; prevents scope creep
  4. Architecture / Design — component or sequence diagram in Mermaid, data flow narrative
  5. API Contracts — per endpoint: method, path, request schema, response schema, error codes
  6. Database / Data Model — new/changed tables, columns, types, indexes, migration notes
  7. Security & Auth — AuthN/AuthZ requirements, sensitive data handling, threat notes
  8. Testing Strategy — unit, integration, e2e test plan; acceptance criteria per requirement
  9. Open Questions & Risks — unresolved decisions, external dependencies, technical risks

When a PRD exists (docs/prd/<slug>.md)

Skip this block entirely when there is no PRD; the 9 sections above are the whole TRD then.

  • Add frontmatter prd: docs/prd/<slug>.md to the TRD.
  • Reuse the PRD's requirement IDs (R-001, ...) verbatim; never invent or renumber them.
  • In Testing Strategy, list the concrete test cases per requirement ID (one bullet per case, naming the behaviour under test), so they can be turned into failing tests before any code.
  • Append a 10. Traceability section: a table | Requirement | Design section | Test cases | with one row per requirement, so each R-ID points at the design that satisfies it and the tests that prove it. Every Must requirement must have a row.

Create Mode

Trigger: args are empty, or start with create.

Read the full file on GitHub · 138 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. 2mo ago Changed · +19 lines f44ca77e9af8
  2. 3mo ago First seen · 119 lines · 0 tokens per session scan A d6c6bae68c2e

Subscribe to this mod's changes

trd is a command published in the GitHub repository kidboy-man/vibe-engineering (2 stars, last pushed 18d ago), licensed MIT. It adds 67 tokens to every session and 1,657 once invoked, about $0.0003 per session on Opus 5.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.

Related

trd compared with commands from other repositories

trd next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
trdkidboy-man/vibe-engineeringCommand218d agoMITA67Claude Code
ovd-goradustefandumitru/overdriveCommand1914d agononeA12Claude Code
ovd-logradustefandumitru/overdriveCommand1914d agononeA16Claude Code
ovd-workflowradustefandumitru/overdriveCommand1914d agononeA19Claude Code
ovd-planradustefandumitru/overdriveCommand1914d agononeA17Claude Code
ovd-installradustefandumitru/overdriveCommand1914d agononeA9Claude Code
ovd-updateradustefandumitru/overdriveCommand1914d agononeA10Claude Code