trd-writing

trd-writing is a skill for Claude Code from HigorAlves/orc. It costs 39 tokens per session (1,369 once invoked), scanned A, original, MIT.

A guide for writing Technical Requirements Documents, which describe the interfaces, data, failures, and limits of a planned technical system.

In plain words
What is it for?
Use it to create TRDs for work involving new APIs, data models, dependencies, failure cases, or agreements between services and repositories.
Why use it?
It turns an agreed product requirement into a clear technical contract that engineers can review before design and implementation begin.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: $skill-name invocation.

Good fit Use it to create TRDs for work involving new APIs, data models, dependencies, failure cases, or agreements between services and repositories.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/higoralves/orc/trd-writing
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.

Any agent
npx skills add HigorAlves/orc --skill trd-writing
Clone the repo
git clone --depth 1 https://github.com/HigorAlves/orc

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-writing

README.md
[![agentmods](https://agentmods.dev/badge/skills/higoralves/orc/trd-writing/github.svg)](https://agentmods.dev/skills/higoralves/orc/trd-writing)
Your own site
<a href="https://agentmods.dev/skills/higoralves/orc/trd-writing"><img src="https://agentmods.dev/badge/skills/higoralves/orc/trd-writing/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-writing

Your own site · 80×15
<a href="https://agentmods.dev/skills/higoralves/orc/trd-writing"><img src="https://agentmods.dev/badge/skills/higoralves/orc/trd-writing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,369 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.00039 $0.01369
Opus 5.5 $0.00016 $0.00548
Sonnet 5.5 $0.00008 $0.00274
Haiku 4.5 $0.00004 $0.00137

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

Security

Grade A, and why

trd-writing 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 25d 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.

codex/orc/content/skills/trd-writing/SKILL.md · 74 lines

How it starts

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

TRD Writing

Defer to orc-doc-writing for the shared scaffolding: the doc-type map (TRD vs PRD vs RFC vs ADR vs postmortem, and how TRD differs from each), the shared section outline, the docs/<type>s/NNNN-*.md numbering & publication convention, and the review gates. This skill carries only the TRD-specific template, fields, and tone.

A TRD turns "what & why" into "what we will build, technically." It pins down interfaces, data, failure modes, and constraints — the things engineering will commit to producing — before the design debate (RFC) or the implementation breakdown (plan).

A good TRD lets a reviewer say "yes, this contract solves the PRD" without having to read code, and lets the next person to write the RFC or plan start from a stable surface area.

When to write one

Write a TRD when all of these are true:

  • A PRD (or equivalent product spec) has settled the "what & why" — you're not still arguing about audience or scope.
  • The work introduces non-trivial technical surface area — new APIs, new data model, new failure modes, new dependencies, or contracts other systems must conform to.
  • Multiple engineers / services / repos will need to agree on the contract before parallel work can start.

Don't write a TRD for:

  • Single-file changes inside one module → the plan is enough.
  • Pure debate of alternatives ("pgbouncer vs. pgcat") → that's an orc-rfc-writing job.
  • Locking in a single architectural decision after debate → that's orc-adr-writing.
  • Anything where the PRD itself is unsettled → write/finish the PRD first (orc-prd-writing).

A TRD without a PRD is a TRD answering a question nobody asked. A TRD with no contract section is just an RFC mislabeled.

Interview checklist (before drafting)

Skip questions whose answers are already in the linked PRD or in conversation. Don't make the user repeat themselves.

  1. What PRD or product context is this TRD serving? (link)
  2. Goals. What technical outcomes MUST this TRD's contract enable? Be specific.
  3. Non-goals. What are we explicitly not committing to in this contract? (Heads off scope drift.)
  4. Public interfaces. What APIs, schemas, events, CLI surfaces, or library entry points does this introduce or modify? Public = anything another component or repo depends on.
  5. Data model. What persisted shapes change or get added? Migrations? Indexes? Backfill?
  6. Failure modes. What can go wrong in this contract, and what's the contract's response (retry / dead-letter / surface to user / ignore)?
  7. Constraints. Performance budgets, security/compliance, capacity, vendor lock-in, language/framework requirements.
  8. Dependencies. Other services, libraries, teams whose work this requires or affects.
  9. Success criteria. How will we verify the contract is met? (Tests, SLOs, integration checks.)
  10. Open questions. Things the author needs reviewer input on.

Read the full file on GitHub · 74 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 25d ago Changed aedcfd3d3321
  2. 1mo ago Changed · -106 lines · -16 tokens per session c2fce707da51
  3. 2mo ago First seen · 180 lines · 55 tokens per session scan A e57b49dc5069

Subscribe to this mod's changes

trd-writing is a skill published in the GitHub repository HigorAlves/orc (7 stars, last pushed 3d ago), licensed MIT. It adds 39 tokens to every session and 1,369 once invoked, about $0.0002 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-09-03.

Related

trd-writing compared with skills from other repositories

trd-writing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
trd-writingHigorAlves/orcSkill73d agoMITA39Claude Code
clean-code-coreCassetteTapeCrackle/claude-startersSkill128d agoMITA70Claude Code
agent-orchestrationCassetteTapeCrackle/claude-startersSkill128d agoMITA59Claude Code
clean-code-audioCassetteTapeCrackle/claude-startersSkill128d agoMITA52Claude Code
clean-code-cppCassetteTapeCrackle/claude-startersSkill128d agoMITA42Claude Code
clean-code-rustCassetteTapeCrackle/claude-startersSkill128d agoMITA44Claude Code
clean-code-cCassetteTapeCrackle/claude-startersSkill128d agoMITA34Claude Code