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 skills add HigorAlves/orc --skill trd-writinggit clone --depth 1 https://github.com/HigorAlves/orcWrote 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.
[](https://agentmods.dev/skills/higoralves/orc/trd-writing)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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-writingfor 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, thedocs/<type>s/NNNN-*.mdnumbering & 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-writingjob. - 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.
- What PRD or product context is this TRD serving? (link)
- Goals. What technical outcomes MUST this TRD's contract enable? Be specific.
- Non-goals. What are we explicitly not committing to in this contract? (Heads off scope drift.)
- 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.
- Data model. What persisted shapes change or get added? Migrations? Indexes? Backfill?
- Failure modes. What can go wrong in this contract, and what's the contract's response (retry / dead-letter / surface to user / ignore)?
- Constraints. Performance budgets, security/compliance, capacity, vendor lock-in, language/framework requirements.
- Dependencies. Other services, libraries, teams whose work this requires or affects.
- Success criteria. How will we verify the contract is met? (Tests, SLOs, integration checks.)
- Open questions. Things the author needs reviewer input on.
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.
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.
- 25d ago Changed aedcfd3d3321
- 1mo ago Changed · -106 lines · -16 tokens per session c2fce707da51
- 2mo ago First seen · 180 lines · 55 tokens per session scan A e57b49dc5069
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.
trd-writing compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| trd-writingHigorAlves/orc | Skill | 7 | 3d ago | MIT | A | 39 | Claude Code |
| clean-code-coreCassetteTapeCrackle/claude-starters | Skill | 1 | 28d ago | MIT | A | 70 | Claude Code |
| agent-orchestrationCassetteTapeCrackle/claude-starters | Skill | 1 | 28d ago | MIT | A | 59 | Claude Code |
| clean-code-audioCassetteTapeCrackle/claude-starters | Skill | 1 | 28d ago | MIT | A | 52 | Claude Code |
| clean-code-cppCassetteTapeCrackle/claude-starters | Skill | 1 | 28d ago | MIT | A | 42 | Claude Code |
| clean-code-rustCassetteTapeCrackle/claude-starters | Skill | 1 | 28d ago | MIT | A | 44 | Claude Code |
| clean-code-cCassetteTapeCrackle/claude-starters | Skill | 1 | 28d ago | MIT | A | 34 | Claude Code |