[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75BX263T6V50B8NMKSPYEMQ":3,"skill-same:01M75BX263T6V50B8NMKSPYEMQ":57},{"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":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":45},"01M75BX263T6V50B8NMKSPYEMQ","to-spec",null,"Turn the current conversation into a spec and publish it to the project issue tracker: no interview, just synthesis of what you've already discussed.","RollRollRoll\u002Fagent-toolkit","RollRollRoll","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F15213243?v=4","01M75BTX9MEYV2TFZ65FRKG3H7","kgfan","01M75BTXAE7M0DQ4EPDF12BZHN",0,"MIT","https:\u002F\u002Fgithub.com\u002FRollRollRoll\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fdevelopment\u002Fto-spec\u002FLICENSE.upstream","https:\u002F\u002Fgithub.com\u002FRollRollRoll\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fdevelopment\u002Fto-spec\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: to-spec\ndescription: \"Turn the current conversation into a spec and publish it to the project issue tracker: no interview, just synthesis of what you've already discussed.\"\ndisable-model-invocation: true\n---\n\nThis skill takes the current conversation context and codebase understanding and produces a spec. Do NOT interview the user; just synthesize what you already know.\n\nThe issue tracker and triage label vocabulary should have been provided to you. If not, tell the user to run `setup-env`.\n\n## Process\n\n1. Explore the repo to understand the current state of the codebase, if you haven't already. Use the project's domain glossary vocabulary throughout the spec, and respect any ADRs in the area you're touching.\n\n2. Sketch out the seams at which you're going to test the feature. Existing seams should be preferred to new ones. Use the highest seam possible. If new seams are needed, propose them at the highest point you can. The fewer seams across the codebase, the better - the ideal number is one.\n\nCheck with the user that these seams match their expectations.\n\n3. Write the spec using the template below, then publish it to the project issue tracker. Apply the `ready-for-agent` triage label - no need for additional triage.\n\n\u003Cspec-template>\n\n# Implementation-Ready Delivery Spec\n\n## Purpose of this document\n\nThe `Implementation-Ready Delivery Spec` is the single authoritative document before task breakdown. It answers three kinds of question:\n\n1. **How the system should behave**: the user problem, solution, scope, behavioral requirements, prohibited behavior, edge scenarios, and acceptance criteria.\n2. **How the system will be implemented**: the current baseline, technical decisions, components, data, interfaces, failure handling, and compatibility plan.\n3. **How to confirm the implementation is correct**: testing principles, test seams, verification methods, and coverage from requirements to design and verification.\n\n\n## Writing rules\n\n1. Use the project's domain glossary vocabulary throughout, and respect the relevant ADRs.\n2. Define each piece of information in full in exactly one authoritative place; other sections refer to it by ID (`REQ`, `SCN`, `DEC`, `VAL`, etc.).\n3. Behavior sections describe only externally observable results, with no technology choices or architecture.\n4. Technical design must not redefine behavioral requirements; it only explains how they are met.\n5. Describe modules, interfaces, and contracts by default. Do NOT list specific implementation file paths; they may end up being outdated very quickly.\n6. Don't embed implementation code by default. Only when a prototype's state machine, schema, reducer, or type shape expresses a confirmed decision more precisely than prose, keep the smallest decision-rich snippet and note that it came from a prototype.\n7. Don't write a task-by-task build list ahead of time; design dependencies are not task dependencies.\n8. Optional sections that don't apply may be deleted, but you must be able to give the reason they don't apply; they must not disappear through oversight.\n9. No ornate prose: when there is a plain way to say something, say it plainly; don't replace statements with metaphors and flowery wording. Write \"a parameter worth adjusting\", not \"a knob worth turning\"; write \"this still matters\", not \"this still has its place\". Metaphors bring associations the author didn't choose and can't control, the reader has to work harder to decode them, and the spec loses precision.\n\n---\n\n## Minimal ID scheme\n\n| Type | Format | Use |\n|---|---|---|\n| Positive requirement | `REQ-001` | Behavior the system must provide |\n| Negative requirement | `NEG-001` | Behavior the system must not exhibit |\n| Quality requirement | `QOS-001` | Quantifiable performance, reliability, security, etc. |\n| Scenario | `SCN-001-A` | Observable acceptance scenario for a requirement |\n| Technical decision | `DEC-001` | Major technical decision, or one that needs tracing |\n| Verification | `VAL-001` | Automated test, benchmark, fault injection, or manual check |\n\nComponents, interfaces, and data entities use stable names directly by default; no extra IDs are required.\n\n---\n\n# Implementation-Ready Delivery Spec: `\u003Cfeature name>`\n\n```yaml\nspec_id: \u003CSPEC-ID>\nrelated_issue: \u003Cissue or project link>\nsource_context:\n  - \u003CGLOSSARY.md or GLOSSARY-MAP.md>\nrelated_adrs:\n  - \u003CADR; write none if there are none>\nlast_updated: \u003CYYYY-MM-DD>\n```\n\n---\n\n## 1. Problem, Solution, Outcome and Scope\n\n### 1.1 Problem\n\nThe problem that the user is facing, from the user's perspective. Don't write the technical solution here.\n\n```markdown\n\u003Cwho hits what problem in what situation, and what it leads to>\n```\n\n### 1.2 Solution Overview\n\nThe solution to the problem, from the user's perspective: what capability the system will provide, and how users or upstream \u002F downstream systems get the result. Don't write components, databases, frameworks, or protocol choices.\n\n```markdown\n\u003Cwhat user-visible solution the system provides, and how the main flow improves the current problem>\n```\n\n### 1.3 User Stories (as needed)\n\nA LONG, numbered list of user stories. Each user story should be in the format of:\n\n1. As an `\u003Cactor>`, I want a `\u003Cfeature>`, so that `\u003Cbenefit>`\n2. As an `\u003Cactor>`, I want a `\u003Cfeature>`, so that `\u003Cbenefit>`\n\n\u003Cuser-story-example>\n\n1. As a mobile bank customer, I want to see balance on my accounts, so that I can make better informed decisions about my spending\n\n\u003C\u002Fuser-story-example>\n\nThis list of user stories should be extremely extensive and cover all aspects of the feature.\n\n\n### 1.4 In Scope\n\n- `\u003Ccapability explicitly built in this delivery>`\n- `\u003Cmain flow explicitly covered in this delivery>`\n- `\u003Ccompatibility, migration, or runtime behavior this delivery must guarantee>`\n\n### 1.5 Out of Scope\n\n- `\u003Ccapability explicitly not built>`\n- `\u003Ccontent adjacent to the current problem but not part of this delivery>`\n\n### 1.6 Hard Constraints\n\n- `\u003Ccompatibility constraint>`\n- `\u003Cperformance or capacity constraint>`\n- `\u003Csecurity or compliance constraint>`\n- `\u003Ctech stack, deployment environment, or dependency constraint>`\n- `\u003Csettled ADR constraint this design cannot change>`\n\n### 1.7 Change Summary\n\n| Change Type | Content | Impact on existing system |\n|---|---|---|\n| Added | `\u003Cnew behavior or capability>` | `\u003Cimpact>` |\n| Modified | `\u003Cchanged behavior>` | `\u003Cimpact>` |\n| Removed | `\u003Cremoved behavior>` | `\u003Cimpact>` |\n\n---\n\n## 2. Behavioral Contract\n\nThis chapter is the only authoritative definition of system behavior.\n\nNormative vocabulary:\n\n- `MUST`: must be met;\n- `MUST NOT`: must not happen;\n- `SHOULD`: should be met by default, with explicit exceptions allowed;\n- `MAY`: allowed but not required.\n\nRequirements may be organized like this:\n\n```markdown\n### ADDED Requirements\n### MODIFIED Requirements\n### REMOVED Requirements\n```\n\n`MODIFIED` must give the full contract after the change, not just a diff summary; `REMOVED` must say how the system behaves after the removal.\n\n### 2.1 Functional Requirements\n\n#### REQ-001: `\u003Cbehavior title>`\n\nThe system MUST `\u003Cbehavior observable by the user or an external system>`.\n\n##### SCN-001-A: `\u003Cnormal scenario>`\n\n- GIVEN `\u003Cprecondition, optional>`\n- WHEN `\u003Ctrigger>`\n- THEN `\u003Cobservable result>`\n- AND `\u003Cadditional result, optional>`\n\n##### SCN-001-B: `\u003Cerror or edge scenario>`\n\n- GIVEN `\u003Cprecondition>`\n- WHEN `\u003Cerror, edge, or race condition>`\n- THEN `\u003Cresult the system must show>`\n\n### 2.2 Negative Requirements\n\n#### NEG-001: `\u003Cprohibited behavior title>`\n\nThe system MUST NOT `\u003Cobservable behavior that must not happen>`.\n\nVerification:\n\n- `\u003Ccheck at the user, API, or external system level>`\n- `\u003Csupporting check at the code, dependency, configuration, or documentation level>`\n\nA negative requirement needs at least one verification observable by the user or an external system, not only \"a certain class does not exist in the code\".\n\n### 2.3 Quality Requirements (as needed)\n\nKeep only when there are explicit, quantifiable quality targets.\n\n#### QOS-001: `\u003Cquality requirement title>`\n\nThe system MUST `\u003Cquantified performance, capacity, reliability, security, or compliance target>`.\n\nVerification:\n\n- `\u003Cload test, benchmark, fault injection, audit, or observation method>`\n\n---\n\n## 3. Technical Design\n\nThis chapter answers \"how to implement it\" and must not redefine the system behavior in §2.\n\nIt describes stable modules, interfaces, data constraints, and technical decisions. Do NOT list specific implementation file paths, which go out of date quickly. Don't embed implementation code, unless a prototype snippet expresses a confirmed decision more precisely than prose.\n\n### 3.1 Existing Context \u002F System Context\n\n#### Brownfield\n\n- Current relevant modules and responsibilities:\n- Current main data flows:\n- Current interfaces, events, and data structures:\n- Current error handling and runtime constraints:\n- Existing test seams and test patterns:\n- Similar implementations or prior art in the codebase:\n- Domain terms and ADRs to respect:\n- Existing behavior that must not break:\n\n#### Greenfield\n\n- System boundary:\n- External actors and external systems:\n- External dependencies:\n- Deployment and runtime boundary:\n- Main domain contexts and their relationships:\n- Settled tech stack or platform constraints:\n\nKeep only the current state relevant to this feature; don't rewrite the whole system architecture.\n\n### 3.2 Key Technical Decisions\n\nWrite a full Decision only for decisions that are major, hard to reverse, or involve a real trade-off.\n\n#### DEC-001: `\u003Ctechnical decision title>`\n\n**Selected**\n\n```markdown\n\u003Cthe option finally adopted>\n```\n\n**Alternatives**\n\n- `\u003Ccandidate option A>`\n- `\u003Ccandidate option B>`\n\n**Trade-off**\n\n| Dimension | Selected | Alternative |\n|---|---|---|\n| Complexity | `\u003Cassessment>` | `\u003Cassessment>` |\n| Performance | `\u003Cassessment>` | `\u003Cassessment>` |\n| Reliability | `\u003Cassessment>` | `\u003Cassessment>` |\n| Maintainability | `\u003Cassessment>` | `\u003Cassessment>` |\n| Migration Cost | `\u003Cassessment>` | `\u003Cassessment>` |\n\n**Rationale**\n\n```markdown\n\u003Cwhy this option was chosen, and why the others were not>\n```\n\n**Supports**\n\n- `REQ-xxx`\n- `NEG-xxx`\n- `QOS-xxx`\n\n**Assumptions**\n\n- `\u003Cunverified premise this decision depends on; delete if none>`\n\n**ADR**\n\n- `\u003CADR or N\u002FA>`\n\nRoutine, easily reversed decisions can be shortened to:\n\n```markdown\n- \u003Cdecision point>: \u003Cchoice> (\u003Cone-sentence reason>)\n```\n\n### 3.3 Components and Data Flow\n\n| Component | Change | Responsibility | Depends On | Supports |\n|---|---|---|---|---|\n| `\u003Ccomponent>` | Add \u002F Modify \u002F Remove | `\u003Csingle responsibility>` | `\u003Cdependencies>` | `\u003CREQ \u002F NEG \u002F QOS>` |\n\nMain data flow:\n\n```text\n\u003Centry point>\n  → \u003Ccomponent A>\n  → \u003Ccomponent B>\n  → \u003Cstorage, external interface, or event>\n  → \u003Cresult>\n```\n\n### 3.4 Data and Interface Changes\n\n| Item | Type | Change | Contract \u002F Constraint | Supports |\n|---|---|---|---|---|\n| `\u003Centity or interface>` | Data \u002F API \u002F Event \u002F Config | Add \u002F Modify \u002F Remove | `\u003Ckey fields, input\u002Foutput, or constraints>` | `\u003CREQ \u002F NEG \u002F QOS>` |\n\nExternal interfaces and cross-module contracts must state:\n\n- input;\n- output;\n- error semantics;\n- idempotency semantics;\n- permissions and data visibility;\n- backward compatibility;\n- event ordering, delivery, and deduplication semantics.\n\n### 3.5 State, Concurrency and Idempotency (as needed)\n\nKeep only what applies. If it doesn't apply, delete this section or briefly state why.\n\n#### State Model\n\n```text\n\u003Cstate A>\n  ├─ \u003Ccondition> → \u003Cstate B>\n  └─ \u003Ccondition> → \u003Cstate C>\n```\n\n#### Concurrency\n\n- `\u003Cconcurrency boundary>`\n- `\u003Clocks, versions, transactions, leases, or serialization>`\n- `\u003Cwhether different entities or partitions can run in parallel>`\n- `\u003Chow concurrency conflicts show externally>`\n\n#### Idempotency\n\n- `\u003Chow duplicate requests are handled>`\n- `\u003Chow events or commands are deduplicated>`\n- `\u003Cwhat the idempotency key and its lifetime are>`\n\n### 3.6 Error and Failure Handling\n\n| Failure | Observable Behavior | Recovery \u002F Degradation | Covered Scenario |\n|---|---|---|---|\n| `\u003Cfailure case>` | `\u003Cexternally observable result>` | `\u003Crecovery, retry, compensation, or degradation>` | `\u003CSCN>` |\n\nFailure design must cover at least:\n\n- invalid input or state;\n- dependency timeout or unavailability;\n- partial success;\n- retries and repeated execution;\n- data inconsistency;\n- manual takeover or safe stop when automatic recovery is impossible.\n\n### 3.7 Migration, Compatibility, Rollout and Rollback (as needed)\n\nIn brownfield work, keep this section whenever data, interfaces, configuration, or runtime behavior change.\n\n#### Migration\n\n- `\u003Cschema, data, or configuration migration>`\n- `\u003Cmigration order>`\n- `\u003Chow it runs during the mixed-version period>`\n- `\u003Cmigration failure handling>`\n\n#### Compatibility\n\n- `\u003CAPI, event, data, old client, or mixed-version compatibility>`\n- `\u003Cwhich old behavior must be kept>`\n\n#### Rollout\n\n- `\u003Cfeature flag, rollout scope, enable order, and observation window>`\n\n#### Rollback\n\n- `\u003Ctrigger conditions>`\n- `\u003Ccode, configuration, schema, or data rollback>`\n- `\u003Cdegraded behavior when rollback is impossible>`\n\n### 3.8 Observability, Security and Performance (as needed)\n\nDelete the parts that don't apply; don't fill them in just to complete the template.\n\n#### Observability\n\n- Logs:\n- Metrics:\n- Traces:\n- Business events:\n- Alert conditions:\n- Key identifiers needed for diagnosis and audit:\n\n#### Security\n\n- Authentication:\n- Authorization:\n- Sensitive data:\n- Audit:\n- Main threats and mitigations:\n\n#### Performance\n\n- Latency budget:\n- Throughput budget:\n- Capacity assumptions:\n- Resource budget:\n- Performance degradation boundary:\n- Load test or benchmark method:\n\n---\n\n## 4. Verification and Traceability\n\n### 4.1 Testing Principles\n\n- Only test external behavior, not implementation details.\n- Prefer reusing the highest existing seam in the codebase that can observe the target behavior.\n- Add a seam only when existing seams can't observe a key behavior; add as few as possible.\n- Unit tests are for pure logic and high combinatorial complexity; they don't replace integration verification of external behavior.\n- Every `SCN` must have a verification method, every `NEG` a negative verification, and every `QOS` quantified evidence.\n- Test design should reference similar tests, fixtures, harnesses, or conventions in the codebase (prior art) rather than invent a new pattern.\n\n### 4.2 Test Seams\n\n| Seam | Level | Reason | Prior Art | Covers |\n|---|---|---|---|---|\n| `\u003Ctest entry point>` | Unit \u002F Component \u002F Integration \u002F Contract \u002F E2E | `\u003Cwhy test at this level>` | `\u003Cexisting similar test or pattern; write none if there is none>` | `\u003CREQ \u002F NEG \u002F QOS>` |\n\n### 4.3 Verification Plan\n\n| Verification | Requirement \u002F Scenario | Method | Expected Result |\n|---|---|---|---|\n| VAL-001 | `\u003CREQ, NEG, QOS, or SCN>` | `\u003Cautomated test, benchmark, fault injection, or manual check>` | `\u003Cpass condition>` |\n\n### 4.4 Requirement Coverage\n\nThis table is the minimal traceability loop. Every `REQ`, `NEG`, and `QOS` in this version must have a design location and a verification method.\n\n| Requirement | Design Location | Verification | Status |\n|---|---|---|---|\n| REQ-001 | `\u003Ccomponent \u002F interface \u002F DEC \u002F design section>` | VAL-001 | Covered |\n| NEG-001 | `\u003Cdesign restriction \u002F interface \u002F DEC>` | VAL-002 | Covered |\n| QOS-001 | `\u003Cperformance, security, or reliability design>` | VAL-003 | Covered |\n\nAllowed statuses are only:\n\n- `Covered`: design and verification are both explicit;\n- `Blocked`: missing behavior, design, or verification information that blocks breakdown;\n- `Deferred`: explicitly not in this version, with the condition for revisiting stated.\n\n### 4.5 Verification Commands\n\n```bash\n\u003Cbuild command>\n\u003Cunit test command>\n\u003Cintegration \u002F contract \u002F e2e test command>\n\u003Clint command>\n\u003Cstatic analysis or other required check>\n```\n\nThe final document must use the repo's real commands, not abstract tool names.\n\n### 4.6 Completion Criteria\n\n- All scenarios of every `REQ` in this version pass;\n- All negative verifications of every `NEG` pass;\n- Every `QOS` meets its quantified threshold;\n- Requirement Coverage has no unexplained `Blocked`;\n- Brownfield compatibility, migration, rollout, and rollback verifications pass;\n- No unexplained skipped tests;\n- Key logs, metrics, events, and audit information can be observed;\n- §5 Open Items has no blocking unresolved questions.\n\n---\n\n## 5. Open Items\n\nRecord only supplementary information that doesn't fit the sections above but is genuinely useful for implementation and review. Don't hide unresolved key questions in this section.\n\n- `\u003Csupplementary note>`\n\n\u003C\u002Fspec-template>\n","This skill takes the current conversation context and codebase understanding and produces a spec. Do NOT interview the user; just synthesize what you already know.\n\nThe issue tracker and triage label vocabulary should have been provided to you. If not, tell the user to run `setup-env`.\n\n## Process\n\n1. Explore the repo to understand the current state of the codebase, if you haven't already. Use the project's domain glossary vocabulary throughout the spec, and respect any ADRs in the area you're touching.\n\n2. Sketch out the seams at which you're going to test the feature. Existing seams should be preferred to new ones. Use the highest seam possible. If new seams are needed, propose them at the highest point you can. The fewer seams across the codebase, the better - the ideal number is one.\n\nCheck with the user that these seams match their expectations.\n\n3. Write the spec using the template below, then publish it to the project issue tracker. Apply the `ready-for-agent` triage label - no need for additional triage.\n\n\u003Cspec-template>\n\n# Implementation-Ready Delivery Spec\n\n## Purpose of this document\n\nThe `Implementation-Ready Delivery Spec` is the single authoritative document before task breakdown. It answers three kinds of question:\n\n1. **How the system should behave**: the user problem, solution, scope, behavioral requirements, prohibited behavior, edge scenarios, and acceptance criteria.\n2. **How the system will be implemented**: the current baseline, technical decisions, components, data, interfaces, failure handling, and compatibility plan.\n3. **How to confirm the implementation is correct**: testing principles, test seams, verification methods, and coverage from requirements to design and verification.\n\n\n## Writing rules\n\n1. Use the project's domain glossary vocabulary throughout, and respect the relevant ADRs.\n2. Define each piece of information in full in exactly one authoritative place; other sections refer to it by ID (`REQ`, `SCN`, `DEC`, `VAL`, etc.).\n3. Behavior sections describe only externally observable results, with no technology choices or architecture.\n4. Technical design must not redefine behavioral requirements; it only explains how they are met.\n5. Describe modules, interfaces, and contracts by default. Do NOT list specific implementation file paths; they may end up being outdated very quickly.\n6. Don't embed implementation code by default. Only when a prototype's state machine, schema, reducer, or type shape expresses a confirmed decision more precisely than prose, keep the smallest decision-rich snippet and note that it came from a prototype.\n7. Don't write a task-by-task build list ahead of time; design dependencies are not task dependencies.\n8. Optional sections that don't apply may be deleted, but you must be able to give the reason they don't apply; they must not disappear through oversight.\n9. No ornate prose: when there is a plain way to say something, say it plainly; don't replace statements with metaphors and flowery wording. Write \"a parameter worth adjusting\", not \"a knob worth turning\"; write \"this still matters\", not \"this still has its place\". Metaphors bring associations the author didn't choose and can't control, the reader has to work harder to decode them, and the spec loses precision.\n\n---\n\n## Minimal ID scheme\n\n| Type | Format | Use |\n|---|---|---|\n| Positive requirement | `REQ-001` | Behavior the system must provide |\n| Negative requirement | `NEG-001` | Behavior the system must not exhibit |\n| Quality requirement | `QOS-001` | Quantifiable performance, reliability, security, etc. |\n| Scenario | `SCN-001-A` | Observable acceptance scenario for a requirement |\n| Technical decision | `DEC-001` | Major technical decision, or one that needs tracing |\n| Verification | `VAL-001` | Automated test, benchmark, fault injection, or manual check |\n\nComponents, interfaces, and data entities use stable names directly by default; no extra IDs are required.\n\n---\n\n# Implementation-Ready Delivery Spec: `\u003Cfeature name>`\n\n```yaml\nspec_id: \u003CSPEC-ID>\nrelated_issue: \u003Cissue or project link>\nsource_context:\n  - \u003CGLOSSARY.md or GLOSSARY-MAP.md>\nrelated_adrs:\n  - \u003CADR; write none if there are none>\nlast_updated: \u003CYYYY-MM-DD>\n```\n\n---\n\n## 1. Problem, Solution, Outcome and Scope\n\n### 1.1 Problem\n\nThe problem that the user is facing, from the user's perspective. Don't write the technical solution here.\n\n```markdown\n\u003Cwho hits what problem in what situation, and what it leads to>\n```\n\n### 1.2 Solution Overview\n\nThe solution to the problem, from the user's perspective: what capability the system will provide, and how users or upstream \u002F downstream systems get the result. Don't write components, databases, frameworks, or protocol choices.\n\n```markdown\n\u003Cwhat user-visible solution the system provides, and how the main flow improves the current problem>\n```\n\n### 1.3 User Stories (as needed)\n\nA LONG, numbered list of user stories. Each user story should be in the format of:\n\n1. As an `\u003Cactor>`, I want a `\u003Cfeature>`, so that `\u003Cbenefit>`\n2. As an `\u003Cactor>`, I want a `\u003Cfeature>`, so that `\u003Cbenefit>`\n\n\u003Cuser-story-example>\n\n1. As a mobile bank customer, I want to see balance on my accounts, so that I can make better informed decisions about my spending\n\n\u003C\u002Fuser-story-example>\n\nThis list of user stories should be extremely extensive and cover all aspects of the feature.\n\n\n### 1.4 In Scope\n\n- `\u003Ccapability explicitly built in this delivery>`\n- `\u003Cmain flow explicitly covered in this delivery>`\n- `\u003Ccompatibility, migration, or runtime behavior this delivery must guarantee>`\n\n### 1.5 Out of Scope\n\n- `\u003Ccapability explicitly not built>`\n- `\u003Ccontent adjacent to the current problem but not part of this delivery>`\n\n### 1.6 Hard Constraints\n\n- `\u003Ccompatibility constraint>`\n- `\u003Cperformance or capacity constraint>`\n- `\u003Csecurity or compliance constraint>`\n- `\u003Ctech stack, deployment environment, or dependency constraint>`\n- `\u003Csettled ADR constraint this design cannot change>`\n\n### 1.7 Change Summary\n\n| Change Type | Content | Impact on existing system |\n|---|---|---|\n| Added | `\u003Cnew behavior or capability>` | `\u003Cimpact>` |\n| Modified | `\u003Cchanged behavior>` | `\u003Cimpact>` |\n| Removed | `\u003Cremoved behavior>` | `\u003Cimpact>` |\n\n---\n\n## 2. Behavioral Contract\n\nThis chapter is the only authoritative definition of system behavior.\n\nNormative vocabulary:\n\n- `MUST`: must be met;\n- `MUST NOT`: must not happen;\n- `SHOULD`: should be met by default, with explicit exceptions allowed;\n- `MAY`: allowed but not required.\n\nRequirements may be organized like this:\n\n```markdown\n### ADDED Requirements\n### MODIFIED Requirements\n### REMOVED Requirements\n```\n\n`MODIFIED` must give the full contract after the change, not just a diff summary; `REMOVED` must say how the system behaves after the removal.\n\n### 2.1 Functional Requirements\n\n#### REQ-001: `\u003Cbehavior title>`\n\nThe system MUST `\u003Cbehavior observable by the user or an external system>`.\n\n##### SCN-001-A: `\u003Cnormal scenario>`\n\n- GIVEN `\u003Cprecondition, optional>`\n- WHEN `\u003Ctrigger>`\n- THEN `\u003Cobservable result>`\n- AND `\u003Cadditional result, optional>`\n\n##### SCN-001-B: `\u003Cerror or edge scenario>`\n\n- GIVEN `\u003Cprecondition>`\n- WHEN `\u003Cerror, edge, or race condition>`\n- THEN `\u003Cresult the system must show>`\n\n### 2.2 Negative Requirements\n\n#### NEG-001: `\u003Cprohibited behavior title>`\n\nThe system MUST NOT `\u003Cobservable behavior that must not happen>`.\n\nVerification:\n\n- `\u003Ccheck at the user, API, or external system level>`\n- `\u003Csupporting check at the code, dependency, configuration, or documentation level>`\n\nA negative requirement needs at least one verification observable by the user or an external system, not only \"a certain class does not exist in the code\".\n\n### 2.3 Quality Requirements (as needed)\n\nKeep only when there are explicit, quantifiable quality targets.\n\n#### QOS-001: `\u003Cquality requirement title>`\n\nThe system MUST `\u003Cquantified performance, capacity, reliability, security, or compliance target>`.\n\nVerification:\n\n- `\u003Cload test, benchmark, fault injection, audit, or observation method>`\n\n---\n\n## 3. Technical Design\n\nThis chapter answers \"how to implement it\" and must not redefine the system behavior in §2.\n\nIt describes stable modules, interfaces, data constraints, and technical decisions. Do NOT list specific implementation file paths, which go out of date quickly. Don't embed implementation code, unless a prototype snippet expresses a confirmed decision more precisely than prose.\n\n### 3.1 Existing Context \u002F System Context\n\n#### Brownfield\n\n- Current relevant modules and responsibilities:\n- Current main data flows:\n- Current interfaces, events, and data structures:\n- Current error handling and runtime constraints:\n- Existing test seams and test patterns:\n- Similar implementations or prior art in the codebase:\n- Domain terms and ADRs to respect:\n- Existing behavior that must not break:\n\n#### Greenfield\n\n- System boundary:\n- External actors and external systems:\n- External dependencies:\n- Deployment and runtime boundary:\n- Main domain contexts and their relationships:\n- Settled tech stack or platform constraints:\n\nKeep only the current state relevant to this feature; don't rewrite the whole system architecture.\n\n### 3.2 Key Technical Decisions\n\nWrite a full Decision only for decisions that are major, hard to reverse, or involve a real trade-off.\n\n#### DEC-001: `\u003Ctechnical decision title>`\n\n**Selected**\n\n```markdown\n\u003Cthe option finally adopted>\n```\n\n**Alternatives**\n\n- `\u003Ccandidate option A>`\n- `\u003Ccandidate option B>`\n\n**Trade-off**\n\n| Dimension | Selected | Alternative |\n|---|---|---|\n| Complexity | `\u003Cassessment>` | `\u003Cassessment>` |\n| Performance | `\u003Cassessment>` | `\u003Cassessment>` |\n| Reliability | `\u003Cassessment>` | `\u003Cassessment>` |\n| Maintainability | `\u003Cassessment>` | `\u003Cassessment>` |\n| Migration Cost | `\u003Cassessment>` | `\u003Cassessment>` |\n\n**Rationale**\n\n```markdown\n\u003Cwhy this option was chosen, and why the others were not>\n```\n\n**Supports**\n\n- `REQ-xxx`\n- `NEG-xxx`\n- `QOS-xxx`\n\n**Assumptions**\n\n- `\u003Cunverified premise this decision depends on; delete if none>`\n\n**ADR**\n\n- `\u003CADR or N\u002FA>`\n\nRoutine, easily reversed decisions can be shortened to:\n\n```markdown\n- \u003Cdecision point>: \u003Cchoice> (\u003Cone-sentence reason>)\n```\n\n### 3.3 Components and Data Flow\n\n| Component | Change | Responsibility | Depends On | Supports |\n|---|---|---|---|---|\n| `\u003Ccomponent>` | Add \u002F Modify \u002F Remove | `\u003Csingle responsibility>` | `\u003Cdependencies>` | `\u003CREQ \u002F NEG \u002F QOS>` |\n\nMain data flow:\n\n```text\n\u003Centry point>\n  → \u003Ccomponent A>\n  → \u003Ccomponent B>\n  → \u003Cstorage, external interface, or event>\n  → \u003Cresult>\n```\n\n### 3.4 Data and Interface Changes\n\n| Item | Type | Change | Contract \u002F Constraint | Supports |\n|---|---|---|---|---|\n| `\u003Centity or interface>` | Data \u002F API \u002F Event \u002F Config | Add \u002F Modify \u002F Remove | `\u003Ckey fields, input\u002Foutput, or constraints>` | `\u003CREQ \u002F NEG \u002F QOS>` |\n\nExternal interfaces and cross-module contracts must state:\n\n- input;\n- output;\n- error semantics;\n- idempotency semantics;\n- permissions and data visibility;\n- backward compatibility;\n- event ordering, delivery, and deduplication semantics.\n\n### 3.5 State, Concurrency and Idempotency (as needed)\n\nKeep only what applies. If it doesn't apply, delete this section or briefly state why.\n\n#### State Model\n\n```text\n\u003Cstate A>\n  ├─ \u003Ccondition> → \u003Cstate B>\n  └─ \u003Ccondition> → \u003Cstate C>\n```\n\n#### Concurrency\n\n- `\u003Cconcurrency boundary>`\n- `\u003Clocks, versions, transactions, leases, or serialization>`\n- `\u003Cwhether different entities or partitions can run in parallel>`\n- `\u003Chow concurrency conflicts show externally>`\n\n#### Idempotency\n\n- `\u003Chow duplicate requests are handled>`\n- `\u003Chow events or commands are deduplicated>`\n- `\u003Cwhat the idempotency key and its lifetime are>`\n\n### 3.6 Error and Failure Handling\n\n| Failure | Observable Behavior | Recovery \u002F Degradation | Covered Scenario |\n|---|---|---|---|\n| `\u003Cfailure case>` | `\u003Cexternally observable result>` | `\u003Crecovery, retry, compensation, or degradation>` | `\u003CSCN>` |\n\nFailure design must cover at least:\n\n- invalid input or state;\n- dependency timeout or unavailability;\n- partial success;\n- retries and repeated execution;\n- data inconsistency;\n- manual takeover or safe stop when automatic recovery is impossible.\n\n### 3.7 Migration, Compatibility, Rollout and Rollback (as needed)\n\nIn brownfield work, keep this section whenever data, interfaces, configuration, or runtime behavior change.\n\n#### Migration\n\n- `\u003Cschema, data, or configuration migration>`\n- `\u003Cmigration order>`\n- `\u003Chow it runs during the mixed-version period>`\n- `\u003Cmigration failure handling>`\n\n#### Compatibility\n\n- `\u003CAPI, event, data, old client, or mixed-version compatibility>`\n- `\u003Cwhich old behavior must be kept>`\n\n#### Rollout\n\n- `\u003Cfeature flag, rollout scope, enable order, and observation window>`\n\n#### Rollback\n\n- `\u003Ctrigger conditions>`\n- `\u003Ccode, configuration, schema, or data rollback>`\n- `\u003Cdegraded behavior when rollback is impossible>`\n\n### 3.8 Observability, Security and Performance (as needed)\n\nDelete the parts that don't apply; don't fill them in just to complete the template.\n\n#### Observability\n\n- Logs:\n- Metrics:\n- Traces:\n- Business events:\n- Alert conditions:\n- Key identifiers needed for diagnosis and audit:\n\n#### Security\n\n- Authentication:\n- Authorization:\n- Sensitive data:\n- Audit:\n- Main threats and mitigations:\n\n#### Performance\n\n- Latency budget:\n- Throughput budget:\n- Capacity assumptions:\n- Resource budget:\n- Performance degradation boundary:\n- Load test or benchmark method:\n\n---\n\n## 4. Verification and Traceability\n\n### 4.1 Testing Principles\n\n- Only test external behavior, not implementation details.\n- Prefer reusing the highest existing seam in the codebase that can observe the target behavior.\n- Add a seam only when existing seams can't observe a key behavior; add as few as possible.\n- Unit tests are for pure logic and high combinatorial complexity; they don't replace integration verification of external behavior.\n- Every `SCN` must have a verification method, every `NEG` a negative verification, and every `QOS` quantified evidence.\n- Test design should reference similar tests, fixtures, harnesses, or conventions in the codebase (prior art) rather than invent a new pattern.\n\n### 4.2 Test Seams\n\n| Seam | Level | Reason | Prior Art | Covers |\n|---|---|---|---|---|\n| `\u003Ctest entry point>` | Unit \u002F Component \u002F Integration \u002F Contract \u002F E2E | `\u003Cwhy test at this level>` | `\u003Cexisting similar test or pattern; write none if there is none>` | `\u003CREQ \u002F NEG \u002F QOS>` |\n\n### 4.3 Verification Plan\n\n| Verification | Requirement \u002F Scenario | Method | Expected Result |\n|---|---|---|---|\n| VAL-001 | `\u003CREQ, NEG, QOS, or SCN>` | `\u003Cautomated test, benchmark, fault injection, or manual check>` | `\u003Cpass condition>` |\n\n### 4.4 Requirement Coverage\n\nThis table is the minimal traceability loop. Every `REQ`, `NEG`, and `QOS` in this version must have a design location and a verification method.\n\n| Requirement | Design Location | Verification | Status |\n|---|---|---|---|\n| REQ-001 | `\u003Ccomponent \u002F interface \u002F DEC \u002F design section>` | VAL-001 | Covered |\n| NEG-001 | `\u003Cdesign restriction \u002F interface \u002F DEC>` | VAL-002 | Covered |\n| QOS-001 | `\u003Cperformance, security, or reliability design>` | VAL-003 | Covered |\n\nAllowed statuses are only:\n\n- `Covered`: design and verification are both explicit;\n- `Blocked`: missing behavior, design, or verification information that blocks breakdown;\n- `Deferred`: explicitly not in this version, with the condition for revisiting stated.\n\n### 4.5 Verification Commands\n\n```bash\n\u003Cbuild command>\n\u003Cunit test command>\n\u003Cintegration \u002F contract \u002F e2e test command>\n\u003Clint command>\n\u003Cstatic analysis or other required check>\n```\n\nThe final document must use the repo's real commands, not abstract tool names.\n\n### 4.6 Completion Criteria\n\n- All scenarios of every `REQ` in this version pass;\n- All negative verifications of every `NEG` pass;\n- Every `QOS` meets its quantified threshold;\n- Requirement Coverage has no unexplained `Blocked`;\n- Brownfield compatibility, migration, rollout, and rollback verifications pass;\n- No unexplained skipped tests;\n- Key logs, metrics, events, and audit information can be observed;\n- §5 Open Items has no blocking unresolved questions.\n\n---\n\n## 5. Open Items\n\nRecord only supplementary information that doesn't fit the sections above but is genuinely useful for implementation and review. Don't hide unresolved key questions in this section.\n\n- `\u003Csupplementary note>`\n\n\u003C\u002Fspec-template>\n",{"name":5,"description":7,"disable-model-invocation":25},true,"main","7d691099ecfe5a86d66b627266b7ff2998f8a63f","skills\u002Fdevelopment\u002Fto-spec","https:\u002F\u002Fgithub.com\u002FRollRollRoll\u002Fagent-toolkit","https:\u002F\u002Fgithub.com\u002FRollRollRoll","Do Do Do !","2026-11-03 16:20:15",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":25},[35,38,41],{"tool":36,"command":37},"npx","npx skills add RollRollRoll\u002Fagent-toolkit --skill to-spec",{"tool":39,"command":40},"bunx","bunx skills add RollRollRoll\u002Fagent-toolkit --skill to-spec",{"tool":42,"command":43},"pnpm","pnpm dlx skills add RollRollRoll\u002Fagent-toolkit --skill to-spec","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FRollRollRoll\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fdevelopment\u002Fto-spec\u002FSKILL.md",[46,52],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"agents\u002Fopenai.yaml","REFERENCE","参考文档",135,"https:\u002F\u002Fgithub.com\u002FRollRollRoll\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fdevelopment\u002Fto-spec\u002Fagents\u002Fopenai.yaml",{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":16},"LICENSE.upstream","LICENSE","许可证",1068,[58,66,74,82,90,98],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":62,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":20},"01M75BYT7NM9FZW238XWS3GPXA","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002FRollRollRoll\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fsupport\u002Fwriting-for-agents\u002FLICENSE.upstream","https:\u002F\u002Fgithub.com\u002FRollRollRoll\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fsupport\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"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":70,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":20},"01M75BYHZGRVHR4GEY5MAHY5XV","test-skill","Blind-test a target skill in an isolated sandbox, collect evidence through headless runs, and produce a step-by-step traceable retrospective report in Chinese.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FRollRollRoll\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fsupport\u002Ftest-skill\u002FSKILL.md",[],[],{"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":78,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":20},"01M75BYETS35KTJZ5W3EBNF7GS","teach","Teach the user a new skill or concept, within this workspace.","https:\u002F\u002Fgithub.com\u002FRollRollRoll\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fsupport\u002Fteach\u002FLICENSE.upstream","https:\u002F\u002Fgithub.com\u002FRollRollRoll\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fsupport\u002Fteach\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":86,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":20},"01M75BYC50PVV26NS2S1CGHGFH","retro","Conduct a retrospective on a coding session.","https:\u002F\u002Fgithub.com\u002FRollRollRoll\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fsupport\u002Fretro\u002FLICENSE.upstream","https:\u002F\u002Fgithub.com\u002FRollRollRoll\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fsupport\u002Fretro\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":94,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":20},"01M75BY9Q6BN1DZPTNKTDAV9PN","re-explain","Re-explain earlier content in simple, clear Chinese, filling in the context needed to follow it.","https:\u002F\u002Fgithub.com\u002FRollRollRoll\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fsupport\u002Fre-explain\u002FLICENSE.upstream","https:\u002F\u002Fgithub.com\u002FRollRollRoll\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fsupport\u002Fre-explain\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":70,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":20},"01M75BY6XMK229A7QB20FP7F34","notify-test","Send a test Telegram notification through the agent-notify hooks and report whether the token and chat_id work. Use when the user asks to test or verify agent notifications.","https:\u002F\u002Fgithub.com\u002FRollRollRoll\u002Fagent-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fsupport\u002Fnotify-test\u002FSKILL.md",[],[]]