[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71SCX51KQYW05F0NTC9BGTY":3,"skill-same:01M71SCX51KQYW05F0NTC9BGTY":79},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":28,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":56,"ownerDescription":57,"updatedAt":58,"install":59,"resources":72},"01M71SCX51KQYW05F0NTC9BGTY","trd-writing",null,"Author Technical Requirements Documents (TRDs) — turn a settled PRD into interfaces, data shapes, failure modes, and constraints in docs\u002Ftrds\u002FNNNN-*.md","HigorAlves\u002Forc","HigorAlves","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F11262976?v=4","01M71S79EZEMHZ8PQSV0XQJHYY","Higor Alves","01M71S79FKKTCHCN1EDR8DSTWQ",7,"MIT","https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Fcodex\u002Forc\u002Fcontent\u002Fskills\u002Ftrd-writing\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000018","写作与文案","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000036","内容创作者","PROFESSION","适用职业",[29,30,31,32,33,34,35,36,37,38,39,40,41,42],"writing","trd writing","documents","write","data","for","modes","technical","use","requirements","author","docs","prd","constraints","2026-11-10 13:02:02",false,"---\nname: trd-writing\ndescription: Author Technical Requirements Documents (TRDs) — turn a settled PRD into interfaces, data shapes, failure modes, and constraints in docs\u002Ftrds\u002FNNNN-*.md\nwhen_to_use: Use for \"write a TRD\" or $orc-trd.\n---\n\n# TRD Writing\n\n> **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\u002F\u003Ctype>s\u002FNNNN-*.md` numbering & publication convention, and the review gates. This skill carries only the TRD-specific template, fields, and tone.\n\nA 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).\n\nA 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.\n\n## When to write one\n\nWrite a TRD when **all** of these are true:\n\n- A **PRD (or equivalent product spec) has settled the \"what & why\"** — you're not still arguing about audience or scope.\n- 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.\n- Multiple engineers \u002F services \u002F repos will need to agree on the contract before parallel work can start.\n\nDon't write a TRD for:\n\n- Single-file changes inside one module → the plan is enough.\n- Pure debate of alternatives (\"pgbouncer vs. pgcat\") → that's an `orc-rfc-writing` job.\n- Locking in a single architectural decision after debate → that's `orc-adr-writing`.\n- Anything where the PRD itself is unsettled → write\u002Ffinish the PRD first (`orc-prd-writing`).\n\nA TRD without a PRD is a TRD answering a question nobody asked. A TRD with no contract section is just an RFC mislabeled.\n\n## Interview checklist (before drafting)\n\nSkip questions whose answers are already in the linked PRD or in conversation. Don't make the user repeat themselves.\n\n1. **What PRD or product context is this TRD serving?** (link)\n2. **Goals.** What technical outcomes MUST this TRD's contract enable? Be specific.\n3. **Non-goals.** What are we explicitly *not* committing to in this contract? (Heads off scope drift.)\n4. **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.\n5. **Data model.** What persisted shapes change or get added? Migrations? Indexes? Backfill?\n6. **Failure modes.** What can go wrong in this contract, and what's the contract's response (retry \u002F dead-letter \u002F surface to user \u002F ignore)?\n7. **Constraints.** Performance budgets, security\u002Fcompliance, capacity, vendor lock-in, language\u002Fframework requirements.\n8. **Dependencies.** Other services, libraries, teams whose work this requires or affects.\n9. **Success criteria.** How will we verify the contract is met? (Tests, SLOs, integration checks.)\n10. **Open questions.** Things the author needs reviewer input on.\n\n## Template\n\nEvery TRD uses this shape. Delete sections with no real content rather than leaving `TBD`. Read [TEMPLATE.md](references\u002FTEMPLATE.md) when drafting (step 5): header block, Summary, Goals, Non-goals, Background, Public interfaces & contracts (API shapes, data model, events), Failure modes table, Constraints, Dependencies, Migration\u002Frollout, Success criteria, Open questions, Risks, Appendix.\n\n## What to do as the model\n\n1. **Confirm a TRD is warranted** — apply the \"all of these are true\" test. If borderline, surface (TRD \u002F single design note in code \u002F an RFC instead).\n2. **Locate or read the linked PRD.** A TRD without a PRD reference (or equivalent product context) is suspect — surface that and ask.\n3. **Run the interview** if input is sparse. Skip questions answered by the linked PRD or earlier in conversation.\n4. **Find the next sequence number** in `docs\u002Ftrds\u002F` (see the numbering convention in `orc-doc-writing`).\n5. **Draft from the template.** Fill every section. **Delete sections that have no content** rather than writing `TBD`. The \"Public interfaces & contracts\" section is the load-bearing one — if it's thin, the TRD isn't ready.\n6. **Show the draft to the user for review** before committing (review gates in `orc-doc-writing`).\n7. **Commit** via `orc-git-commit`. Suggested message: `docs(trd): NNNN — \u003Ckebab title>`.\n8. **Cross-link.** From the linked PRD, from any tickets, from any code that will conform to the contract.\n\n## Tone\n\nEngineer-to-engineer, plain prose, schemas and tables where they add precision. No marketing voice, no \"obvious\" or \"trivial.\" Quote constraints by name (latency budget, deadline, vendor SLA). When a constraint is non-technical (legal, vendor relationship, exec mandate), say so plainly — the future reader needs that context.\n\n## Anti-patterns\n\n- **TRDs written after implementation.** The contract gets reverse-engineered from the code; the failure-mode section gets sanitized; the unknowns section disappears. Write the TRD *before* the plan.\n- **TRDs that debate alternatives.** That's an RFC. A TRD commits to *one* contract; argument belongs upstream.\n- **Empty \"Failure modes\" section.** Every contract has failure modes. If you can't think of any, you haven't thought hard enough.\n- **TRDs without measurable success criteria.** \"We'll know when it works\" means nothing is testable.\n- **Mismatched scope vs. PRD.** A TRD wider than its PRD is scope creep; narrower means part of the PRD has no technical contract yet.\n- **TRDs with no `Non-goals`.** Without explicit exclusions, the contract grows in review until nothing ships.\n","# TRD Writing\n\n> **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\u002F\u003Ctype>s\u002FNNNN-*.md` numbering & publication convention, and the review gates. This skill carries only the TRD-specific template, fields, and tone.\n\nA 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).\n\nA 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.\n\n## When to write one\n\nWrite a TRD when **all** of these are true:\n\n- A **PRD (or equivalent product spec) has settled the \"what & why\"** — you're not still arguing about audience or scope.\n- 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.\n- Multiple engineers \u002F services \u002F repos will need to agree on the contract before parallel work can start.\n\nDon't write a TRD for:\n\n- Single-file changes inside one module → the plan is enough.\n- Pure debate of alternatives (\"pgbouncer vs. pgcat\") → that's an `orc-rfc-writing` job.\n- Locking in a single architectural decision after debate → that's `orc-adr-writing`.\n- Anything where the PRD itself is unsettled → write\u002Ffinish the PRD first (`orc-prd-writing`).\n\nA TRD without a PRD is a TRD answering a question nobody asked. A TRD with no contract section is just an RFC mislabeled.\n\n## Interview checklist (before drafting)\n\nSkip questions whose answers are already in the linked PRD or in conversation. Don't make the user repeat themselves.\n\n1. **What PRD or product context is this TRD serving?** (link)\n2. **Goals.** What technical outcomes MUST this TRD's contract enable? Be specific.\n3. **Non-goals.** What are we explicitly *not* committing to in this contract? (Heads off scope drift.)\n4. **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.\n5. **Data model.** What persisted shapes change or get added? Migrations? Indexes? Backfill?\n6. **Failure modes.** What can go wrong in this contract, and what's the contract's response (retry \u002F dead-letter \u002F surface to user \u002F ignore)?\n7. **Constraints.** Performance budgets, security\u002Fcompliance, capacity, vendor lock-in, language\u002Fframework requirements.\n8. **Dependencies.** Other services, libraries, teams whose work this requires or affects.\n9. **Success criteria.** How will we verify the contract is met? (Tests, SLOs, integration checks.)\n10. **Open questions.** Things the author needs reviewer input on.\n\n## Template\n\nEvery TRD uses this shape. Delete sections with no real content rather than leaving `TBD`. Read [TEMPLATE.md](references\u002FTEMPLATE.md) when drafting (step 5): header block, Summary, Goals, Non-goals, Background, Public interfaces & contracts (API shapes, data model, events), Failure modes table, Constraints, Dependencies, Migration\u002Frollout, Success criteria, Open questions, Risks, Appendix.\n\n## What to do as the model\n\n1. **Confirm a TRD is warranted** — apply the \"all of these are true\" test. If borderline, surface (TRD \u002F single design note in code \u002F an RFC instead).\n2. **Locate or read the linked PRD.** A TRD without a PRD reference (or equivalent product context) is suspect — surface that and ask.\n3. **Run the interview** if input is sparse. Skip questions answered by the linked PRD or earlier in conversation.\n4. **Find the next sequence number** in `docs\u002Ftrds\u002F` (see the numbering convention in `orc-doc-writing`).\n5. **Draft from the template.** Fill every section. **Delete sections that have no content** rather than writing `TBD`. The \"Public interfaces & contracts\" section is the load-bearing one — if it's thin, the TRD isn't ready.\n6. **Show the draft to the user for review** before committing (review gates in `orc-doc-writing`).\n7. **Commit** via `orc-git-commit`. Suggested message: `docs(trd): NNNN — \u003Ckebab title>`.\n8. **Cross-link.** From the linked PRD, from any tickets, from any code that will conform to the contract.\n\n## Tone\n\nEngineer-to-engineer, plain prose, schemas and tables where they add precision. No marketing voice, no \"obvious\" or \"trivial.\" Quote constraints by name (latency budget, deadline, vendor SLA). When a constraint is non-technical (legal, vendor relationship, exec mandate), say so plainly — the future reader needs that context.\n\n## Anti-patterns\n\n- **TRDs written after implementation.** The contract gets reverse-engineered from the code; the failure-mode section gets sanitized; the unknowns section disappears. Write the TRD *before* the plan.\n- **TRDs that debate alternatives.** That's an RFC. A TRD commits to *one* contract; argument belongs upstream.\n- **Empty \"Failure modes\" section.** Every contract has failure modes. If you can't think of any, you haven't thought hard enough.\n- **TRDs without measurable success criteria.** \"We'll know when it works\" means nothing is testable.\n- **Mismatched scope vs. PRD.** A TRD wider than its PRD is scope creep; narrower means part of the PRD has no technical contract yet.\n- **TRDs with no `Non-goals`.** Without explicit exclusions, the contract grows in review until nothing ships.\n",{"name":5,"description":7,"when_to_use":48},"Use for \"write a TRD\" or $orc-trd.","main","7522fd7266944e30052204c2f6df287d8b5516be","codex\u002Forc\u002Fcontent\u002Fskills\u002Ftrd-writing",0,"https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc","https:\u002F\u002Forc.novacstack.com\u002F","https:\u002F\u002Fgithub.com\u002FHigorAlves","higoralves.dev","Software Engineering","2026-11-14 07:24:14",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add HigorAlves\u002Forc --skill trd-writing",{"tool":65,"command":66},"bunx","bunx skills add HigorAlves\u002Forc --skill trd-writing",{"tool":68,"command":69},"pnpm","pnpm dlx skills add HigorAlves\u002Forc --skill trd-writing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Fcodex\u002Forc\u002Fcontent\u002Fskills\u002Ftrd-writing\u002FSKILL.md",true,[73],{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002FTEMPLATE.md","REFERENCE","参考文档",3811,"https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Fcodex\u002Forc\u002Fcontent\u002Fskills\u002Ftrd-writing\u002Freferences\u002FTEMPLATE.md",[80,88,116,141,162,184],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":87},"01M73VYZ3XY4HAVS3WS73CW9J7","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering","https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Fcodex\u002Forc\u002Fcontent\u002Fskills\u002Fvercel-react-best-practices\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":99,"publishedAt":43},"01M71SW40F9TAAEDKBYYBCM814","writing-plans","Write a comprehensive implementation plan of bite-sized TDD tasks that an engineer with zero codebase context could execute — exact files, code, tests, and verification steps","https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Forc\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[94,95,98],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":96,"categoryName":97,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000030","开发工程师",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},[29,100,101,37,102,103,34,104,105,106,32,107,108,109,110,111,112,113,114,115],"writing plans","plans","code","tests","ZeRO","context","steps","plan","verification","tasks","you","when","files","implementation plan","superpowers","engineer",{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":127,"publishedAt":43},"01M71SW15KHE4MHJW9NEXV65X2","writing-for-agents","orc's doctrine layer for writing any document an agent consumes — skills, AGENTS.md\u002FCLAUDE.md, reference docs","https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Forc\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[122,123,126],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":124,"categoryName":125,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},[29,128,34,129,130,37,131,132,133,134,135,136,111,137,138,40,139,140],"writing for agents","a skill","document","editing","push","doctrine","layer","tuning","inline","matt pocock","github","reference","https",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":148,"publishedAt":43},"01M71SVYQKXT743HHHWGHT3G13","workspace-mode","Use when cwd is a parent dir holding multiple sibling git repos — defines repo auto-detection, --repos\u002F--repo\u002F--all-repos\u002F--this-repo precedence, per-repo dispatch, and linked-PR mechanics.","https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Forc\u002Fskills\u002Fworkspace-mode\u002FSKILL.md",[147],{"categoryNo":124,"categoryName":125,"taxonomyType":21,"taxonomyTypeDesc":22},[149,150,151,152,153,154,37,155,156,157,158,111,159,160,161],"workspace mode","mode","workspace","auto-detection","detection","parent","repo","pr","git","repos","auto","mechanics","dispatch",{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":169,"publishedAt":43},"01M71SVVP3BXS06G9395P2K0RH","wizard","Generate an interactive bash wizard walking a human through work only they can perform — credentials, secrets, one-off migrations","https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Forc\u002Fskills\u002Fwizard\u002FSKILL.md",[168],{"categoryNo":124,"categoryName":125,"taxonomyType":21,"taxonomyTypeDesc":22},[164,111,137,170,171,172,173,174,37,175,176,34,177,178,106,179,180,181,182,183],"only","provisioning infrastructure","never","condition","Bash","interactive","one","do","infrastructure","secrets","human","generate","credentials","work",{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"publishedAt":43},"01M71SVT4AR6NKAM5B077E7QSJ","wait-what","Stop and re-pitch — the last message did not land; say it again simply, in the project's own vocabulary.","https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Forc\u002Fskills\u002Fwait-what\u002FSKILL.md",[],[191,192,140,193,194,195,196,138,197,198,199,200,137,201,202,203],"wait","wait what","vocabulary","stop","it","land","message","say","last","pitch","true","re","project"]