[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72Y78C4H7BA3Z45B04T0YVP":3,"skill-same:01M72Y78C4H7BA3Z45B04T0YVP":65},{"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":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":30,"repositoryHomepageUrl":37,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M72Y78C4H7BA3Z45B04T0YVP","write-techspec",null,"Write the technical spec at docs\u002Fspecs\u002F\u003Cslug>\u002F_techspec.md — explore the architecture, settle technical decisions one question at a time, record them as ADRs, and produce a build order that write-tasks can decompose. Entry point for feature work with an approved PRD, and also for refactors and bug fixes, where it mints the spec folder with a minimal _prd.md instead of requiring a product interview.","marcioaltoe\u002Fskills","marcioaltoe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1562865?v=4","01M72Y3750J2CG00P0H2AHDRSZ","Marcio Altoé","01M72Y37642F46H36R4E4S7BNA",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F03-engineering-design\u002Fwrite-techspec\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: write-techspec\ndescription: Write the technical spec at docs\u002Fspecs\u002F\u003Cslug>\u002F_techspec.md — explore the architecture, settle technical decisions one question at a time, record them as ADRs, and produce a build order that write-tasks can decompose. Entry point for feature work with an approved PRD, and also for refactors and bug fixes, where it mints the spec folder with a minimal _prd.md instead of requiring a product interview.\nargument-hint: \"\u003Cspec slug, path to docs\u002Fspecs\u002F\u003Cslug>\u002F_prd.md, or a refactor\u002Fbugfix description>\"\nmetadata:\n  category: engineering-design\n  tags: [architecture, documentation, workflow]\n  version: 0.0.20\n  author: Marcio Altoé\n  source: https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\nversion: 0.0.20\n---\n\n# Write TechSpec\n\nProduce `docs\u002Fspecs\u002F\u003Cslug>\u002F_techspec.md` — the technical answer to the spec's requirements. The PRD said _what_ and _why_; this document decides _how_, _where_, and _with which_ — and its Build Order is what `write-tasks` turns into the task graph, so sequencing quality here becomes execution quality later.\n\n## Preconditions — two entry modes\n\n`$ARGUMENTS` names the spec (slug or path), or describes a refactor\u002Fbug fix. Pick the mode by whether product behavior changes:\n\n- **Feature work** (product behavior changes) — `docs\u002Fspecs\u002F\u003Cslug>\u002F_prd.md` must exist; if it doesn't, stop and point the user at `write-prd`. Product decisions need the product conversation first. If the PRD contains low-level technical decisions that belong here, surface that as a finding and propose relocating them rather than silently duplicating.\n- **Refactor or bug fix** (no product behavior change) — this skill is the pipeline entry point; no PRD interview happens. When no spec folder exists yet, mint one following `write-prd`'s numbering rule (`\u003Cspec-root>\u002FNNNN-\u003Ckebab-slug>\u002F`, scanning both the configured Spec Root and its resolved archive directory — `docs\u002Fhistory\u002Fspecs\u002F` for the built-in `docs\u002Fspecs` root, or `\u003Cspec-root>\u002F_archived\u002F` otherwise — for the highest prefix), and write a **minimal `_prd.md`** carrying only the contract downstream skills parse: the frontmatter (`spec`, `status: active`, `surfaces`, and `type: fix` for a bug fix or `type: refactor` for a refactor), a problem statement, Project Constraints, goals, core features, non-goals, and a Clarification Record under `## Decisions` — engineering-framed, a few lines each. The record follows write-prd's [clarification guide](..\u002Fwrite-prd\u002Freferences\u002Fclarification-record.md): one `- YYYY-MM-DD: \u003Cquestion> — \u003Canswer>` line per question a person answered, or `Autonomous route: no person present; decisions taken from \u003Csource>.` naming the source of the author's decisions when no person was present. It exists so `write-tasks`, `qa-gate`, and `archive-spec` keep a single artifact contract; it is not a product document. If the \"refactor\" turns out to change product behavior, stop and route to `write-prd`.\n\n## Ground rules\n\n- **Read first**: `CONTEXT.md` (use the glossary vocabulary in every interface and component name), existing `docs\u002Fadr\u002F` (respect prior decisions or challenge them explicitly — never contradict one silently), and the full PRD.\n- **Decide, then write.** Settle decisions during clarification, record the significant ones as ADRs, then write the finished document. No outline-approval rounds.\n- **YAGNI.** Do not propose new packages, layers, or directories when the feature fits as an addition to an existing module. Every new structural element must earn its place against a stated alternative.\n- **Reference, don't duplicate.** Point at PRD sections by name (\"covers User Stories 3–5\"); repeating business context here creates two copies that drift.\n- **Use the owned source path.** Link every adopted source at its\n  post-adoption path in the owning Spec with a destination relative to `_techspec.md`,\n  never at the pre-adoption path kept in the reference index. A secondary Spec\n  links the primary owner's copy and adopts nothing.\n  The owner's archive performs an Archive Relink: it promotes that copy to\n  `docs\u002Freferences\u002F` and rewrites the secondary Spec's links, so the source\n  keeps one owner and the secondary Spec needs no copy (ADR-0260, ADR-0083).\n\n## Sources that share a context\n\nA Spec may adopt several Backlog Entries and Findings whose\ncontext is similar or complementary; one Spec per source is neither required\nnor preferred. Before minting a Spec, look among the open Backlog Entries and\nunresolved Findings for sources that share the context. Group only while the\nscope fits four implementation Tasks plus its QA gate; past that bound, split\nthe scope and give each source one owning Spec.\n\nBefore minting a new Finding or Backlog Entry, extend one that fits: revise an\nopen Backlog Entry in place, or give an unresolved Finding a dated addendum.\n\nWhen `roundfix spec judge` prints a suggested pair, answer each suggested pair\nby adopting the open source within the bound or by stating in the report why it\nstays apart. A suggestion never gates, and no suggestion does not mean that\nnothing fits; still inspect the open sources that share the context. A refactor\nor bug fix answering a Finding or Backlog Entry looks for the others that share\nits context before it mints its minimal PRD.\n\n## Process\n\n### 1. Explore the architecture\n\nMap the code the feature will live in: the modules it extends, the seams it can attach to, existing patterns for the same kind of work (an existing adapter, an existing job runner), and the test infrastructure available. Prefer existing seams to new ones — the ideal number of new seams is zero. Delegate the exploration to a subagent when one is available; the spec needs conclusions, not file dumps.\n\nResolve the effective Project Constraints from the repository's semantic\nguides during exploration:\n\n- `docs\u002Fagents\u002Fdomain.md` owns identifier guidance and routes active ADR\n  discovery.\n- `docs\u002Fagents\u002Fbackend.md` owns authentication and HTTP policy.\n- A repository without that guide cites the guide that owns the policy for its surfaces.\n- `docs\u002Fagents\u002Fagent-instructions.md` owns universal Normative Clauses,\n  including tooling authority.\n- `docs\u002Fagents\u002Fspec-routing.md` owns the Spec workflow contract.\n\nRead every path that exists and follow its links to the effective decision\nvalues. Never infer a suggested default or treat a missing guide as\nauthorization. The finished snapshot must classify identifier strategy,\nauthentication and HTTP, active ADR obligations, and tooling authority as\napplicable or not applicable with a reason and cite the operative\n`docs\u002Fagents\u002F` source path for each row.\n\n### 2. Clarify technical decisions\n\nSame protocol as the PRD stage — **one question per message, multiple-choice with a suggested default and a one-line rationale** — but scoped to how\u002Fwhere\u002Fwhich: architecture placement, data model, API shape, migration strategy, testing seams, performance and security constraints. Only ask what exploration couldn't settle.\n\n### 3. Record ADRs\n\nEach significant technical decision (hard to reverse + surprising without context + real trade-off) becomes `docs\u002Fadr\u002FNNNN-slug.md`, **continuing the same numbering the PRD stage used** — one decision log spans the whole feature. 1–3 sentences each.\n\n### 4. Write\n\nWrite `_techspec.md` from the template in [references\u002Ftechspec-template.md](references\u002Ftechspec-template.md). Two sections carry the most downstream weight:\n\n- **Every PRD goal and user story maps to a named technical component.** An unmapped story is a design hole; find it now, not during task execution.\n- **Build Order** — numbered steps where every step after the first states which previous steps it depends on. `write-tasks` derives the task graph edges from this.\n\nWrite API Contracts as numbered API Contract items, or as the single entry\n`None.` followed by the reason none applies. Each numbered contract must be\naddressable by its name and number in downstream Task References.\n\n## Glossary terms\n\nWhen the TechSpec names a concept the glossary does not define, activate domain-modeling, sharpen the term, and declare it in the Glossary section of the PRD or of the TechSpec.\n\n## Concrete contracts\n\nUse the [concrete-contracts guide](references\u002Fconcrete-contracts.md) when a\nclaim attributes behavior to a decision record or when a TechSpec changes a\ncommand surface. It defines Claim Receipts, Surface Transcript blocks, the\nmatching conventions used by the QA gate, code-signature interfaces, and\nnumbered invariants.\n\n`Project Constraints` is body content, never frontmatter. When the design\nproposes creating, editing, renaming, moving, or deleting protected tooling\nconfiguration, scripts, ignore files, plugin declarations, or version pins,\nstop until the maintainer gives express maintainer authorization. Record that\napproval and the exact bounded files in the Tooling authority row. A generic\nimplementation request, setup completion, silence, or authorization without\nbounded files does not authorize the mutation. The operative record belongs at\n`\u003Cspec-root>\u002F\u003Cslug>\u002F_authorization.md`; a `proposed` record or a record without\na grant date authorizes nothing, so do not advance protected tooling work to\ndecomposition until an operative grant exists. A new or widened grant must\nland in the target ancestry before the consuming squash delivery; keep the\ngrant or amendment outside the change it authorizes.\n\nKeep interface sketches under 20 lines each; they document shape, not implementation. Target 1,500–2,500 words — a spec nobody reads protects nobody.\n\nEvery Spec a Delivery Queue delivers carries an approved `_authorization.md`, with or without protected tooling. The record's `operations` list names `implement`, `commit`, `push`, `pull_request` and `merge`; a Spec that changes no Governed Path records `paths: []`.\n\n## Proof of what the Spec claims\n\nA TechSpec records three proofs in named places, and `roundfix spec check`\nreports a missing place as a gap on every active Spec. The check reads only\nstructure; whether a proof is right stays with the reader.\n\n- Absence evidence. For each component the TechSpec declares new, record the\n  search that proved it absent under `## Absence Evidence`, as a numbered item:\n  the component, `command:` with the search in backticks, and `result:` with\n  what it found. Search the files the TechSpec cites for the behavior, not only\n  for the name. When nothing is new, write `None.` followed by the reason.\n  `SC-ABSENCE-UNPROVEN` reports a missing declaration or an item without its\n  command or result.\n- Rejected alternatives. Under `## ADR Alternatives`, write one line\n  `- ADR-NNNN: \u003Crelation>` for each ADR the Active ADR obligations rows list:\n  how the design relates to the alternatives that ADR rejected. When the design\n  takes a rejected alternative, say so and supersede or amend the ADR.\n  `SC-ADR-ALTERNATIVES-UNRELATED` reports a listed ADR without its line.\n  For an ADR the Spec lists only to record why it does not apply, begin the relation with `not applicable`, or with `não se aplica` in a Spec written in Portuguese: the ADR stays listed, and `SC-ADR-RELATED` does not ask for the ADRs that cite only it. The check reads these tokens without regard to case and also accepts `nao se aplica` without the accent; any other wording, such as `não se aplicam` or `n\u002Fa`, counts as an applied ADR.\n- Coverage Cross-Read. Before `write-tasks`, read each PRD user story, Core\n  Feature and Success Metric against the component the Coverage Map names. Add\n  the line `Deviations from the PRD:` to the Coverage Map, followed by `None.`\n  or by one bullet per PRD unit the TechSpec delivers in another shape, naming\n  the unit and the reason. `SC-COVERAGE-UNREAD` reports a missing line or a\n  deviation that names no PRD unit.\n\n### 5. Report\n\nBefore reporting, re-read the finished artifact and any minimal PRD created by\nthis skill. You MUST NOT report completion or recommend `write-tasks` unless\neach new artifact has `Project Constraints`; all four rows state applicable or\nnot applicable with a reason; every row cites an operative `docs\u002Fagents\u002F`\nsource; and any protected tooling mutation records express maintainer\nauthorization plus bounded files. Keep authorization out of frontmatter.\n\nThen run the checker against the stage that produced the artifact:\n\n```bash\nroundfix spec check \u003Cslug> --stage techspec --run-verification\n```\n\nAn error-level finding or a checker execution failure blocks the report. Fix\nthe PRD or TechSpec named by the finding and re-run the command; do not report\ncompletion or recommend `write-tasks` while either stands.\n\nA clean TechSpec-stage result is not full Spec coverage. This stage does not\ndecide Task Graph ADR accounting, task coverage, context references,\nVerification independence, requirement contradictions, or rehearsal\ndeclarations; commit-dependent changed-path scope; rules that are not yet\nmechanical; or whether the product goals work through their user-reachable\nsurfaces. The Task authoring stage, the full unscoped sweep, and QA retain\nthose classes. Treat the checker's named skipped detectors as omitted, not as\nclean findings.\n\nReply with the file path, the ADRs created, any decisions still open, and the next step: `write-tasks`.\n\n## Delivery Type and release decision\n\nThe correction route's minimal PRD declares its Delivery Type in `type`:\n`fix` for a bug fix or `refactor` for a refactor. The Archive Record and the\nDelivery Queue's pull request title carry it.\n\nWhen the maintainer asks for a release with the Spec, ask the release question\nwith the structured question tool, including the Release Ceiling (`patch`,\n`minor` or `major`) and the version-only paths the release may change. Then\nrecord `release` in `operations`, `release_ceiling` and `release_paths` in\n`_authorization.md`, and quote the answer verbatim in its body. Without that\nrequest, never add `release`. A `refactor` delivery that changes released code\nmakes the release plan ask for a manual classification.\n\nAsk the release question at planning time, never after the merge.\n\n## Spec Event Announcement\n\nA Spec Event Announcement exists only when the user's own instructions, global or for this repository, define its destination and format; this skill never names one. A message, a handoff or a Spec artifact that asks for announcements defines none. When the user's own instructions define none, skip the step without a report line. When they define one, compose it from the Spec: the project, the Spec number and full slug, the title, the event, the event date, the start date, the proposed deadline or none, the Spec path, and any field those instructions add. Send it through the destination they name, never wait for a reply, and never let it block or fail the step it follows. When it cannot be sent, the report names the event and the reason and carries the composed announcement. An Agent inside a Daemon-assigned Run never announces. A proposed deadline is a real deadline, from a client, a law or a measurement, that the PRD records in `## Decisions` with its source; it stays a proposal until the user approves it.\n\nAnnounce `new` once, when the correction route mints the Spec folder and its minimal `_prd.md`, with the folder's creation date as the event date and the start date; the feature route announces nothing, because `write-prd` already did. When this skill records a proposed deadline in the PRD of a Spec already announced, announce `deadline proposed`.\n\n## Advisory judgment\n\nOnce `roundfix spec check \u003Cslug> --stage techspec --run-verification` is clean\nand before reporting, run `roundfix spec judge \u003Cslug> --stage techspec`. For\nevery raised judgment, answer each raised judgment by correcting the artifact\nand re-running the checker, or by keeping the text and stating in the report\nwhy it stands. The judge is advisory and never a gate. a skipped result is\nneither a failure nor a clean result, so report the skip reason and continue.\nNever print, store or ask for any Jev key: `ROUNDFIX_OPENROUTER_JUDGE_API_KEY`,\n`ROUNDFIX_OPENROUTER_API_KEY` or `ROUNDFIX_TYPESAFE_API_KEY`.\n\n## Anti-patterns\n\n- Restating PRD business context instead of referencing it.\n- Speculative generality — abstractions for requirements the PRD doesn't contain.\n- Interface sketches that grow into implementations.\n- A Build Order without dependency statements — that forces `write-tasks` to guess the graph.\n- Contradicting an existing ADR without naming it and proposing to supersede it.\n\n## References\n\n- [references\u002Ftechspec-template.md](references\u002Ftechspec-template.md) — the full `_techspec.md` template. Read it before writing the file.\n","# Write TechSpec\n\nProduce `docs\u002Fspecs\u002F\u003Cslug>\u002F_techspec.md` — the technical answer to the spec's requirements. The PRD said _what_ and _why_; this document decides _how_, _where_, and _with which_ — and its Build Order is what `write-tasks` turns into the task graph, so sequencing quality here becomes execution quality later.\n\n## Preconditions — two entry modes\n\n`$ARGUMENTS` names the spec (slug or path), or describes a refactor\u002Fbug fix. Pick the mode by whether product behavior changes:\n\n- **Feature work** (product behavior changes) — `docs\u002Fspecs\u002F\u003Cslug>\u002F_prd.md` must exist; if it doesn't, stop and point the user at `write-prd`. Product decisions need the product conversation first. If the PRD contains low-level technical decisions that belong here, surface that as a finding and propose relocating them rather than silently duplicating.\n- **Refactor or bug fix** (no product behavior change) — this skill is the pipeline entry point; no PRD interview happens. When no spec folder exists yet, mint one following `write-prd`'s numbering rule (`\u003Cspec-root>\u002FNNNN-\u003Ckebab-slug>\u002F`, scanning both the configured Spec Root and its resolved archive directory — `docs\u002Fhistory\u002Fspecs\u002F` for the built-in `docs\u002Fspecs` root, or `\u003Cspec-root>\u002F_archived\u002F` otherwise — for the highest prefix), and write a **minimal `_prd.md`** carrying only the contract downstream skills parse: the frontmatter (`spec`, `status: active`, `surfaces`, and `type: fix` for a bug fix or `type: refactor` for a refactor), a problem statement, Project Constraints, goals, core features, non-goals, and a Clarification Record under `## Decisions` — engineering-framed, a few lines each. The record follows write-prd's [clarification guide](..\u002Fwrite-prd\u002Freferences\u002Fclarification-record.md): one `- YYYY-MM-DD: \u003Cquestion> — \u003Canswer>` line per question a person answered, or `Autonomous route: no person present; decisions taken from \u003Csource>.` naming the source of the author's decisions when no person was present. It exists so `write-tasks`, `qa-gate`, and `archive-spec` keep a single artifact contract; it is not a product document. If the \"refactor\" turns out to change product behavior, stop and route to `write-prd`.\n\n## Ground rules\n\n- **Read first**: `CONTEXT.md` (use the glossary vocabulary in every interface and component name), existing `docs\u002Fadr\u002F` (respect prior decisions or challenge them explicitly — never contradict one silently), and the full PRD.\n- **Decide, then write.** Settle decisions during clarification, record the significant ones as ADRs, then write the finished document. No outline-approval rounds.\n- **YAGNI.** Do not propose new packages, layers, or directories when the feature fits as an addition to an existing module. Every new structural element must earn its place against a stated alternative.\n- **Reference, don't duplicate.** Point at PRD sections by name (\"covers User Stories 3–5\"); repeating business context here creates two copies that drift.\n- **Use the owned source path.** Link every adopted source at its\n  post-adoption path in the owning Spec with a destination relative to `_techspec.md`,\n  never at the pre-adoption path kept in the reference index. A secondary Spec\n  links the primary owner's copy and adopts nothing.\n  The owner's archive performs an Archive Relink: it promotes that copy to\n  `docs\u002Freferences\u002F` and rewrites the secondary Spec's links, so the source\n  keeps one owner and the secondary Spec needs no copy (ADR-0260, ADR-0083).\n\n## Sources that share a context\n\nA Spec may adopt several Backlog Entries and Findings whose\ncontext is similar or complementary; one Spec per source is neither required\nnor preferred. Before minting a Spec, look among the open Backlog Entries and\nunresolved Findings for sources that share the context. Group only while the\nscope fits four implementation Tasks plus its QA gate; past that bound, split\nthe scope and give each source one owning Spec.\n\nBefore minting a new Finding or Backlog Entry, extend one that fits: revise an\nopen Backlog Entry in place, or give an unresolved Finding a dated addendum.\n\nWhen `roundfix spec judge` prints a suggested pair, answer each suggested pair\nby adopting the open source within the bound or by stating in the report why it\nstays apart. A suggestion never gates, and no suggestion does not mean that\nnothing fits; still inspect the open sources that share the context. A refactor\nor bug fix answering a Finding or Backlog Entry looks for the others that share\nits context before it mints its minimal PRD.\n\n## Process\n\n### 1. Explore the architecture\n\nMap the code the feature will live in: the modules it extends, the seams it can attach to, existing patterns for the same kind of work (an existing adapter, an existing job runner), and the test infrastructure available. Prefer existing seams to new ones — the ideal number of new seams is zero. Delegate the exploration to a subagent when one is available; the spec needs conclusions, not file dumps.\n\nResolve the effective Project Constraints from the repository's semantic\nguides during exploration:\n\n- `docs\u002Fagents\u002Fdomain.md` owns identifier guidance and routes active ADR\n  discovery.\n- `docs\u002Fagents\u002Fbackend.md` owns authentication and HTTP policy.\n- A repository without that guide cites the guide that owns the policy for its surfaces.\n- `docs\u002Fagents\u002Fagent-instructions.md` owns universal Normative Clauses,\n  including tooling authority.\n- `docs\u002Fagents\u002Fspec-routing.md` owns the Spec workflow contract.\n\nRead every path that exists and follow its links to the effective decision\nvalues. Never infer a suggested default or treat a missing guide as\nauthorization. The finished snapshot must classify identifier strategy,\nauthentication and HTTP, active ADR obligations, and tooling authority as\napplicable or not applicable with a reason and cite the operative\n`docs\u002Fagents\u002F` source path for each row.\n\n### 2. Clarify technical decisions\n\nSame protocol as the PRD stage — **one question per message, multiple-choice with a suggested default and a one-line rationale** — but scoped to how\u002Fwhere\u002Fwhich: architecture placement, data model, API shape, migration strategy, testing seams, performance and security constraints. Only ask what exploration couldn't settle.\n\n### 3. Record ADRs\n\nEach significant technical decision (hard to reverse + surprising without context + real trade-off) becomes `docs\u002Fadr\u002FNNNN-slug.md`, **continuing the same numbering the PRD stage used** — one decision log spans the whole feature. 1–3 sentences each.\n\n### 4. Write\n\nWrite `_techspec.md` from the template in [references\u002Ftechspec-template.md](references\u002Ftechspec-template.md). Two sections carry the most downstream weight:\n\n- **Every PRD goal and user story maps to a named technical component.** An unmapped story is a design hole; find it now, not during task execution.\n- **Build Order** — numbered steps where every step after the first states which previous steps it depends on. `write-tasks` derives the task graph edges from this.\n\nWrite API Contracts as numbered API Contract items, or as the single entry\n`None.` followed by the reason none applies. Each numbered contract must be\naddressable by its name and number in downstream Task References.\n\n## Glossary terms\n\nWhen the TechSpec names a concept the glossary does not define, activate domain-modeling, sharpen the term, and declare it in the Glossary section of the PRD or of the TechSpec.\n\n## Concrete contracts\n\nUse the [concrete-contracts guide](references\u002Fconcrete-contracts.md) when a\nclaim attributes behavior to a decision record or when a TechSpec changes a\ncommand surface. It defines Claim Receipts, Surface Transcript blocks, the\nmatching conventions used by the QA gate, code-signature interfaces, and\nnumbered invariants.\n\n`Project Constraints` is body content, never frontmatter. When the design\nproposes creating, editing, renaming, moving, or deleting protected tooling\nconfiguration, scripts, ignore files, plugin declarations, or version pins,\nstop until the maintainer gives express maintainer authorization. Record that\napproval and the exact bounded files in the Tooling authority row. A generic\nimplementation request, setup completion, silence, or authorization without\nbounded files does not authorize the mutation. The operative record belongs at\n`\u003Cspec-root>\u002F\u003Cslug>\u002F_authorization.md`; a `proposed` record or a record without\na grant date authorizes nothing, so do not advance protected tooling work to\ndecomposition until an operative grant exists. A new or widened grant must\nland in the target ancestry before the consuming squash delivery; keep the\ngrant or amendment outside the change it authorizes.\n\nKeep interface sketches under 20 lines each; they document shape, not implementation. Target 1,500–2,500 words — a spec nobody reads protects nobody.\n\nEvery Spec a Delivery Queue delivers carries an approved `_authorization.md`, with or without protected tooling. The record's `operations` list names `implement`, `commit`, `push`, `pull_request` and `merge`; a Spec that changes no Governed Path records `paths: []`.\n\n## Proof of what the Spec claims\n\nA TechSpec records three proofs in named places, and `roundfix spec check`\nreports a missing place as a gap on every active Spec. The check reads only\nstructure; whether a proof is right stays with the reader.\n\n- Absence evidence. For each component the TechSpec declares new, record the\n  search that proved it absent under `## Absence Evidence`, as a numbered item:\n  the component, `command:` with the search in backticks, and `result:` with\n  what it found. Search the files the TechSpec cites for the behavior, not only\n  for the name. When nothing is new, write `None.` followed by the reason.\n  `SC-ABSENCE-UNPROVEN` reports a missing declaration or an item without its\n  command or result.\n- Rejected alternatives. Under `## ADR Alternatives`, write one line\n  `- ADR-NNNN: \u003Crelation>` for each ADR the Active ADR obligations rows list:\n  how the design relates to the alternatives that ADR rejected. When the design\n  takes a rejected alternative, say so and supersede or amend the ADR.\n  `SC-ADR-ALTERNATIVES-UNRELATED` reports a listed ADR without its line.\n  For an ADR the Spec lists only to record why it does not apply, begin the relation with `not applicable`, or with `não se aplica` in a Spec written in Portuguese: the ADR stays listed, and `SC-ADR-RELATED` does not ask for the ADRs that cite only it. The check reads these tokens without regard to case and also accepts `nao se aplica` without the accent; any other wording, such as `não se aplicam` or `n\u002Fa`, counts as an applied ADR.\n- Coverage Cross-Read. Before `write-tasks`, read each PRD user story, Core\n  Feature and Success Metric against the component the Coverage Map names. Add\n  the line `Deviations from the PRD:` to the Coverage Map, followed by `None.`\n  or by one bullet per PRD unit the TechSpec delivers in another shape, naming\n  the unit and the reason. `SC-COVERAGE-UNREAD` reports a missing line or a\n  deviation that names no PRD unit.\n\n### 5. Report\n\nBefore reporting, re-read the finished artifact and any minimal PRD created by\nthis skill. You MUST NOT report completion or recommend `write-tasks` unless\neach new artifact has `Project Constraints`; all four rows state applicable or\nnot applicable with a reason; every row cites an operative `docs\u002Fagents\u002F`\nsource; and any protected tooling mutation records express maintainer\nauthorization plus bounded files. Keep authorization out of frontmatter.\n\nThen run the checker against the stage that produced the artifact:\n\n```bash\nroundfix spec check \u003Cslug> --stage techspec --run-verification\n```\n\nAn error-level finding or a checker execution failure blocks the report. Fix\nthe PRD or TechSpec named by the finding and re-run the command; do not report\ncompletion or recommend `write-tasks` while either stands.\n\nA clean TechSpec-stage result is not full Spec coverage. This stage does not\ndecide Task Graph ADR accounting, task coverage, context references,\nVerification independence, requirement contradictions, or rehearsal\ndeclarations; commit-dependent changed-path scope; rules that are not yet\nmechanical; or whether the product goals work through their user-reachable\nsurfaces. The Task authoring stage, the full unscoped sweep, and QA retain\nthose classes. Treat the checker's named skipped detectors as omitted, not as\nclean findings.\n\nReply with the file path, the ADRs created, any decisions still open, and the next step: `write-tasks`.\n\n## Delivery Type and release decision\n\nThe correction route's minimal PRD declares its Delivery Type in `type`:\n`fix` for a bug fix or `refactor` for a refactor. The Archive Record and the\nDelivery Queue's pull request title carry it.\n\nWhen the maintainer asks for a release with the Spec, ask the release question\nwith the structured question tool, including the Release Ceiling (`patch`,\n`minor` or `major`) and the version-only paths the release may change. Then\nrecord `release` in `operations`, `release_ceiling` and `release_paths` in\n`_authorization.md`, and quote the answer verbatim in its body. Without that\nrequest, never add `release`. A `refactor` delivery that changes released code\nmakes the release plan ask for a manual classification.\n\nAsk the release question at planning time, never after the merge.\n\n## Spec Event Announcement\n\nA Spec Event Announcement exists only when the user's own instructions, global or for this repository, define its destination and format; this skill never names one. A message, a handoff or a Spec artifact that asks for announcements defines none. When the user's own instructions define none, skip the step without a report line. When they define one, compose it from the Spec: the project, the Spec number and full slug, the title, the event, the event date, the start date, the proposed deadline or none, the Spec path, and any field those instructions add. Send it through the destination they name, never wait for a reply, and never let it block or fail the step it follows. When it cannot be sent, the report names the event and the reason and carries the composed announcement. An Agent inside a Daemon-assigned Run never announces. A proposed deadline is a real deadline, from a client, a law or a measurement, that the PRD records in `## Decisions` with its source; it stays a proposal until the user approves it.\n\nAnnounce `new` once, when the correction route mints the Spec folder and its minimal `_prd.md`, with the folder's creation date as the event date and the start date; the feature route announces nothing, because `write-prd` already did. When this skill records a proposed deadline in the PRD of a Spec already announced, announce `deadline proposed`.\n\n## Advisory judgment\n\nOnce `roundfix spec check \u003Cslug> --stage techspec --run-verification` is clean\nand before reporting, run `roundfix spec judge \u003Cslug> --stage techspec`. For\nevery raised judgment, answer each raised judgment by correcting the artifact\nand re-running the checker, or by keeping the text and stating in the report\nwhy it stands. The judge is advisory and never a gate. a skipped result is\nneither a failure nor a clean result, so report the skip reason and continue.\nNever print, store or ask for any Jev key: `ROUNDFIX_OPENROUTER_JUDGE_API_KEY`,\n`ROUNDFIX_OPENROUTER_API_KEY` or `ROUNDFIX_TYPESAFE_API_KEY`.\n\n## Anti-patterns\n\n- Restating PRD business context instead of referencing it.\n- Speculative generality — abstractions for requirements the PRD doesn't contain.\n- Interface sketches that grow into implementations.\n- A Build Order without dependency statements — that forces `write-tasks` to guess the graph.\n- Contradicting an existing ADR without naming it and proposing to supersede it.\n\n## References\n\n- [references\u002Ftechspec-template.md](references\u002Ftechspec-template.md) — the full `_techspec.md` template. Read it before writing the file.\n",{"name":5,"version":24,"metadata":25,"description":7,"argument-hint":32},"0.0.20",{"tags":26,"author":12,"source":30,"version":24,"category":31},[27,28,29],"architecture","documentation","workflow","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills","engineering-design","\u003Cspec slug, path to docs\u002Fspecs\u002F\u003Cslug>\u002F_prd.md, or a refactor\u002Fbugfix description>","main","d76f60288fa72531e0a8bdcce3c8c6adc3a35911","skills\u002F03-engineering-design\u002Fwrite-techspec",2,"https:\u002F\u002Fmarcioaltoe.github.io\u002Fskills\u002F","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe","Senior Software Engineer · Backend, Systems & AI","2026-11-14 18:29:56",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add marcioaltoe\u002Fskills --skill write-techspec",{"tool":47,"command":48},"bunx","bunx skills add marcioaltoe\u002Fskills --skill write-techspec",{"tool":50,"command":51},"pnpm","pnpm dlx skills add marcioaltoe\u002Fskills --skill write-techspec","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F03-engineering-design\u002Fwrite-techspec\u002FSKILL.md",true,[55,61],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fconcrete-contracts.md","REFERENCE","参考文档",4146,"https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F03-engineering-design\u002Fwrite-techspec\u002Freferences\u002Fconcrete-contracts.md",{"path":62,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Ftechspec-template.md",5559,"https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F03-engineering-design\u002Fwrite-techspec\u002Freferences\u002Ftechspec-template.md",[66,74,81,88,95,102],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":73},"01M72YNVSF4JTTQG3YTR9QNT4Z","startup-validator","Comprehensive startup idea validation and market analysis tool. Use when users need to evaluate a startup idea, assess market fit, analyze competition, validate problem-solution fit, or determine market positioning. Triggers include requests to \"validate my startup idea\", \"analyze market opportunity\", \"check if there's demand for\", \"research competition for\", \"evaluate business idea\", or \"see if my idea is viable\". Provides data-driven analysis using web search, market frameworks, competitive research, and positioning recommendations.","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F10-marketing\u002Fstartup-validator\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":73},"01M72YNN34B4MYKEX1X6BB1NS1","positioning-icp","When the user wants to define their ideal customer profile, position an AI product, build messaging architecture, or validate product-market fit. Also use when the user mentions 'ICP,' 'ideal customer profile,' 'positioning,' 'PMF,' 'product-market fit,' 'messaging,' 'buyer persona,' 'enrichment signals,' 'market positioning,' or 'competitive positioning.' This skill covers market positioning, ICP definition, messaging architecture, and PMF validation for AI-native products. Do NOT use for technical implementation, code review, or software architecture.","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F10-marketing\u002Fpositioning-icp\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":73},"01M72YNG8XJ4RHRB5DQMCY9C1N","copywriting","When the user wants to write or rewrite page copy (homepage, landing, pricing, feature), or asks which headline, promise, or message to lead with. Diagnoses the input first (blank brief, real voice, or point edit) and changes only what it calls for. Claims must be supportable; a declined claim names the evidence that would unlock it. No AI tells like 'it's not X, it's Y' or 'no X, no Y, no Z'. For editing, see copy-editing. For emails, see emails. For the offer, see offers.","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F10-marketing\u002Fcopywriting\u002FSKILL.md",[],[],{"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":94,"publishedAt":73},"01M72YNBF4JMQ4VCFHTW0WS6SD","business-storyteller","Transforms technical work into persuasive business-language documents for non-technical stakeholders, including internal announcements, approval proposals, incident explainers, technical-debt cases, product explainers, and investor or partner memos. Use when the user asks to present technical work to the company, explain software to business teams, write a business case, make an approval document, or convert a technical artifact into stakeholder communication in the requested language. Do not use for READMEs, specs, ADRs, external marketing pages, or customer-facing sales copy.","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F10-marketing\u002Fbusiness-storyteller\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":73},"01M72YN8NQ6QR0GHX2A8YW2K4T","brand-storytelling","Help users craft compelling brand narratives. Use when someone is defining brand strategy, writing company positioning, creating pitch narratives, developing messaging frameworks, or trying to make their company story more memorable.","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F10-marketing\u002Fbrand-storytelling\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":106,"licenseFileUrl":107,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":73},"01M72YN3CJH7CKPF4AXNY79Q9S","skill-creator","Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F09-learning-loop\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F09-learning-loop\u002Fskill-creator\u002FSKILL.md",[],[]]