[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DDBT5MMFRRBZJQ01VHNDGK":3,"skill-same:01M7DDBT5MMFRRBZJQ01VHNDGK":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":28,"updatedAt":29,"install":30,"resources":43},"01M7DDBT5MMFRRBZJQ01VHNDGK","spec",null,"Write the high-level design spec for one phase, grounded in that phase POC evidence. Keywords: spec, design, design doc, architecture, API design, describe the approach.","girishmotwani\u002Fatom","girishmotwani","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F20937791?v=4","01M7DD9G6RCNXB9G6A33Z0GA1P","01M7DD9G7VT0Z0JHV97PSR0GN9",0,"MIT","https:\u002F\u002Fgithub.com\u002Fgirishmotwani\u002Fatom\u002Fblob\u002Fmain\u002Ftools\u002Fatom\u002Fassets\u002Fskills\u002Fspec\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: spec\ndescription: 'Write the high-level design spec for one phase, grounded in that phase POC evidence. Keywords: spec, design, design doc, architecture, API design, describe the approach.'\n---\n\n# \u002Fatom:spec\n\nThe **DESCRIBE** beat. Writes the design spec for exactly one phase after its\napplicable proof and approved evidence choice, never from unproven assumptions.\n\nThe spec's job is to be precise enough that `\u002Fatom:tdd` can derive tests from it\nwithout guessing.\n\n## When to use\n\n- A phase POC came back **Confirmed** and was approved\n- The developer approved using applicable prior evidence or a reproducible\n  regression as proof, with its scope and limits recorded\n- The phase has no material technical uncertainty and the developer explicitly\n  approved a specifically justified POC skip, recorded in `decisions.md`\n\n## Never use when\n\n- No applicable proof exists for this phase and no evidence choice was approved.\n  Specifying an unproven design is the failure mode Atom exists to prevent.\n  Go to `\u002Fatom:poc`.\n\n## Writing artifacts\n\nSend complete design specs, findings, and decisions as UTF-8 standard input to\n`atom-write-artifact \u003Crelative-path>`. Treat any refusal or non-zero exit as a blocker;\nnever bypass it with a generic editor or another shell command.\n\n## Before you start\n\nRead:\n\n1. [go-style.md](..\u002Fatom\u002Freferences\u002Fgo-style.md) — Atom deviates from idiomatic Go; do not assume you know the conventions\n2. [anti-rationalization.md](..\u002Fatom\u002Freferences\u002Fanti-rationalization.md)\n3. [human-gates.md](..\u002Fatom\u002Freferences\u002Fhuman-gates.md)\n4. This phase's `poc-report.md`, and the `phase-plan.md` entry for this phase\n\nFor an approved evidence-reuse or regression route, read the cited evidence\ninstead of requiring a fabricated POC report. Apply the source\u002Fassumption\u002Fboundary\nchecks in [poc-discipline.md](..\u002Fatom\u002Freferences\u002Fpoc-discipline.md). An absent,\nunapproved or inapplicable artifact does not justify design, and a regression\nrecommendation does not waive this spec's approval gate.\n\nFor an explicitly approved no-uncertainty skip, read the recorded justification\nand verify that the current scope still fits it. Documentation-only work needs\nfactual review and relevant checks, not an invented POC report. State the evidence\nlimits and assumptions; none of these routes waives approval of the resulting spec.\n\n---\n\n## Step 1 — Extract what the POC established\n\nWrite two lists before designing anything:\n\n- **Established** — facts the spike demonstrated, with the evidence\n- **Still assumed** — everything else the design will rest on\n\nEvery significant decision in the spec must trace to the first list or be explicitly\nlabelled as resting on the second. An unlabelled assumption reads as a fact to the\nnext person, including to `\u002Fatom:tdd`.\n\n## Step 2 — Design the public surface first\n\nStart from the outside: what does a caller write to use this?\n\nKeep the exported surface minimal. Unexporting later is a breaking change; exporting\nlater is not. When unsure, leave it unexported.\n\nApply [go-style.md](..\u002Fatom\u002Freferences\u002Fgo-style.md):\n\n- Define interfaces where they are **consumed**, not where they are implemented\n- Keep interfaces to one to three methods\n- Return concrete types\n- Take dependencies as constructor parameters so tests can substitute them\n- `context.Context` first on anything that can block\n- A doc comment on every exported symbol saying **why** it exists\n\n### Signature consistency\n\nThis is the single most common defect in design specs, and it poisons the TDD step.\n\nEvery signature must be identical everywhere it appears — in the interface block, in\nthe implementation sketch, and in any composition or usage example in the same\ndocument. Before the gate, walk every call site in the document and check it against\nits declaration: name, parameter count, parameter types, return types.\n\nOne authoritative code block per type. Do not write a \"simplified\" version alongside a\n\"full\" version — they diverge, and the reader cannot tell which one is true.\n\n## Step 3 — Write behaviour as numbered statements\n\nThese become the test cases. Each must be independently verifiable.\n\n```\nB1. Submit returns ErrQueueFull when the queue is at capacity.\nB2. Submit accepted while draining returns ErrDraining and does not enqueue.\nB3. Drain blocks until every in-flight job completes or ctx is cancelled.\nB4. Drain with a cancelled context returns ctx.Err() and abandons in-flight jobs.\n```\n\n> If you cannot picture the test, the statement is too vague to implement.\n\n\"Handles errors gracefully\" is not a behaviour. \"Returns `ErrQueueFull` without\nblocking when the buffer is full\" is.\n\n## Step 4 — Specify the parts that get skipped\n\nThese sections are where under-specification actually bites:\n\n- **Error handling** — condition, behaviour, and the exact error returned. Name the\n  sentinel errors callers branch on.\n- **Concurrency** — who starts each goroutine and how it stops; what each mutex\n  guards; what is safe for concurrent use. If something is **not** safe for concurrent\n  use, say so explicitly. Silence is not a contract.\n- **Extension points** — where future behaviour is added without editing existing code.\n- **Trade-offs considered** — including the options you rejected and why. Without\n  them, the next reader re-litigates decisions you already settled.\n\n## Step 5 — Diagrams\n\nASCII art or Mermaid only. No image files, no PlantUML.\n\nFor Mermaid, use `\u003Cbr>` for line breaks in labels — never `\\n`.\n\nInclude one when structure or flow is hard to hold in prose. Do not include one out of\nhabit.\n\n## Step 6 — Write the spec\n\nFill in [design-spec.md](..\u002Fatom\u002Ftemplates\u002Fdesign-spec.md) at\n`specs\u002F{project}\u002Fphase-NN-{slug}\u002Fdesign-spec.md`.\n\nKeep it **high level**. This is a design spec, not the implementation transcribed into\nmarkdown. Specify the shape, the contracts and the behaviour; leave the body of each\nfunction to TDD. If the spec contains working implementations, you have written the\ncode twice and the second copy will rot.\n\nAppend ambiguities to `findings.md` as you hit them. Record every judgement call you\nmade on the developer's behalf in `decisions.md`.\n\n## Step 7 — Gate\n\nPresent per [human-gates.md](..\u002Fatom\u002Freferences\u002Fhuman-gates.md): the public API, the\nnumbered behaviours, the trade-offs you chose between, anything resting on an\nassumption rather than evidence, and one specific question.\n\n**End your turn. Wait.**\n\nApproval authorises implementing **this** spec. If the spec changes materially during\nTDD, it re-gates.\n\n---\n\n## Done when\n\n- [ ] Established facts and standing assumptions listed separately\n- [ ] Public API minimal, with a doc comment on every exported symbol\n- [ ] Every signature verified consistent at every occurrence in the document\n- [ ] Behaviours numbered and independently verifiable\n- [ ] Error handling, concurrency and extension points all specified\n- [ ] Concurrency safety stated explicitly, including when the answer is \"not safe\"\n- [ ] Trade-offs recorded, including rejected options\n- [ ] Diagrams ASCII or Mermaid only\n- [ ] `findings.md` and `decisions.md` updated during the work\n- [ ] Spec presented at a gate and explicitly approved\n\n## Next\n\n`\u002Fatom:tdd` — implement this phase test-first.\n","# \u002Fatom:spec\n\nThe **DESCRIBE** beat. Writes the design spec for exactly one phase after its\napplicable proof and approved evidence choice, never from unproven assumptions.\n\nThe spec's job is to be precise enough that `\u002Fatom:tdd` can derive tests from it\nwithout guessing.\n\n## When to use\n\n- A phase POC came back **Confirmed** and was approved\n- The developer approved using applicable prior evidence or a reproducible\n  regression as proof, with its scope and limits recorded\n- The phase has no material technical uncertainty and the developer explicitly\n  approved a specifically justified POC skip, recorded in `decisions.md`\n\n## Never use when\n\n- No applicable proof exists for this phase and no evidence choice was approved.\n  Specifying an unproven design is the failure mode Atom exists to prevent.\n  Go to `\u002Fatom:poc`.\n\n## Writing artifacts\n\nSend complete design specs, findings, and decisions as UTF-8 standard input to\n`atom-write-artifact \u003Crelative-path>`. Treat any refusal or non-zero exit as a blocker;\nnever bypass it with a generic editor or another shell command.\n\n## Before you start\n\nRead:\n\n1. [go-style.md](..\u002Fatom\u002Freferences\u002Fgo-style.md) — Atom deviates from idiomatic Go; do not assume you know the conventions\n2. [anti-rationalization.md](..\u002Fatom\u002Freferences\u002Fanti-rationalization.md)\n3. [human-gates.md](..\u002Fatom\u002Freferences\u002Fhuman-gates.md)\n4. This phase's `poc-report.md`, and the `phase-plan.md` entry for this phase\n\nFor an approved evidence-reuse or regression route, read the cited evidence\ninstead of requiring a fabricated POC report. Apply the source\u002Fassumption\u002Fboundary\nchecks in [poc-discipline.md](..\u002Fatom\u002Freferences\u002Fpoc-discipline.md). An absent,\nunapproved or inapplicable artifact does not justify design, and a regression\nrecommendation does not waive this spec's approval gate.\n\nFor an explicitly approved no-uncertainty skip, read the recorded justification\nand verify that the current scope still fits it. Documentation-only work needs\nfactual review and relevant checks, not an invented POC report. State the evidence\nlimits and assumptions; none of these routes waives approval of the resulting spec.\n\n---\n\n## Step 1 — Extract what the POC established\n\nWrite two lists before designing anything:\n\n- **Established** — facts the spike demonstrated, with the evidence\n- **Still assumed** — everything else the design will rest on\n\nEvery significant decision in the spec must trace to the first list or be explicitly\nlabelled as resting on the second. An unlabelled assumption reads as a fact to the\nnext person, including to `\u002Fatom:tdd`.\n\n## Step 2 — Design the public surface first\n\nStart from the outside: what does a caller write to use this?\n\nKeep the exported surface minimal. Unexporting later is a breaking change; exporting\nlater is not. When unsure, leave it unexported.\n\nApply [go-style.md](..\u002Fatom\u002Freferences\u002Fgo-style.md):\n\n- Define interfaces where they are **consumed**, not where they are implemented\n- Keep interfaces to one to three methods\n- Return concrete types\n- Take dependencies as constructor parameters so tests can substitute them\n- `context.Context` first on anything that can block\n- A doc comment on every exported symbol saying **why** it exists\n\n### Signature consistency\n\nThis is the single most common defect in design specs, and it poisons the TDD step.\n\nEvery signature must be identical everywhere it appears — in the interface block, in\nthe implementation sketch, and in any composition or usage example in the same\ndocument. Before the gate, walk every call site in the document and check it against\nits declaration: name, parameter count, parameter types, return types.\n\nOne authoritative code block per type. Do not write a \"simplified\" version alongside a\n\"full\" version — they diverge, and the reader cannot tell which one is true.\n\n## Step 3 — Write behaviour as numbered statements\n\nThese become the test cases. Each must be independently verifiable.\n\n```\nB1. Submit returns ErrQueueFull when the queue is at capacity.\nB2. Submit accepted while draining returns ErrDraining and does not enqueue.\nB3. Drain blocks until every in-flight job completes or ctx is cancelled.\nB4. Drain with a cancelled context returns ctx.Err() and abandons in-flight jobs.\n```\n\n> If you cannot picture the test, the statement is too vague to implement.\n\n\"Handles errors gracefully\" is not a behaviour. \"Returns `ErrQueueFull` without\nblocking when the buffer is full\" is.\n\n## Step 4 — Specify the parts that get skipped\n\nThese sections are where under-specification actually bites:\n\n- **Error handling** — condition, behaviour, and the exact error returned. Name the\n  sentinel errors callers branch on.\n- **Concurrency** — who starts each goroutine and how it stops; what each mutex\n  guards; what is safe for concurrent use. If something is **not** safe for concurrent\n  use, say so explicitly. Silence is not a contract.\n- **Extension points** — where future behaviour is added without editing existing code.\n- **Trade-offs considered** — including the options you rejected and why. Without\n  them, the next reader re-litigates decisions you already settled.\n\n## Step 5 — Diagrams\n\nASCII art or Mermaid only. No image files, no PlantUML.\n\nFor Mermaid, use `\u003Cbr>` for line breaks in labels — never `\\n`.\n\nInclude one when structure or flow is hard to hold in prose. Do not include one out of\nhabit.\n\n## Step 6 — Write the spec\n\nFill in [design-spec.md](..\u002Fatom\u002Ftemplates\u002Fdesign-spec.md) at\n`specs\u002F{project}\u002Fphase-NN-{slug}\u002Fdesign-spec.md`.\n\nKeep it **high level**. This is a design spec, not the implementation transcribed into\nmarkdown. Specify the shape, the contracts and the behaviour; leave the body of each\nfunction to TDD. If the spec contains working implementations, you have written the\ncode twice and the second copy will rot.\n\nAppend ambiguities to `findings.md` as you hit them. Record every judgement call you\nmade on the developer's behalf in `decisions.md`.\n\n## Step 7 — Gate\n\nPresent per [human-gates.md](..\u002Fatom\u002Freferences\u002Fhuman-gates.md): the public API, the\nnumbered behaviours, the trade-offs you chose between, anything resting on an\nassumption rather than evidence, and one specific question.\n\n**End your turn. Wait.**\n\nApproval authorises implementing **this** spec. If the spec changes materially during\nTDD, it re-gates.\n\n---\n\n## Done when\n\n- [ ] Established facts and standing assumptions listed separately\n- [ ] Public API minimal, with a doc comment on every exported symbol\n- [ ] Every signature verified consistent at every occurrence in the document\n- [ ] Behaviours numbered and independently verifiable\n- [ ] Error handling, concurrency and extension points all specified\n- [ ] Concurrency safety stated explicitly, including when the answer is \"not safe\"\n- [ ] Trade-offs recorded, including rejected options\n- [ ] Diagrams ASCII or Mermaid only\n- [ ] `findings.md` and `decisions.md` updated during the work\n- [ ] Spec presented at a gate and explicitly approved\n\n## Next\n\n`\u002Fatom:tdd` — implement this phase test-first.\n",{"name":5,"description":7},"main","5bb33cbe2c835382b5ccda840c5268321b24ac0b","tools\u002Fatom\u002Fassets\u002Fskills\u002Fspec","https:\u002F\u002Fgithub.com\u002Fgirishmotwani\u002Fatom","https:\u002F\u002Fgithub.com\u002Fgirishmotwani","curious about all things distributed ","2026-11-13 16:16:12",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add girishmotwani\u002Fatom --skill spec",{"tool":36,"command":37},"bunx","bunx skills add girishmotwani\u002Fatom --skill spec",{"tool":39,"command":40},"pnpm","pnpm dlx skills add girishmotwani\u002Fatom --skill spec","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgirishmotwani\u002Fatom\u002Fblob\u002Fmain\u002Ftools\u002Fatom\u002Fassets\u002Fskills\u002Fspec\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M7DDBYEX4YKKBSQQP3HEGJC1","tdd","Implement one phase test-first in Go: red, green, refactor, against an approved design spec. Keywords: TDD, test driven, test first, implement, red green refactor, build the phase, write the code.","https:\u002F\u002Fgithub.com\u002Fgirishmotwani\u002Fatom\u002Fblob\u002Fmain\u002Ftools\u002Fatom\u002Fassets\u002Fskills\u002Ftdd\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M7DDBQ3NXQKG74B1RCHDKK9T","ship","Commit, push and open a pull request for a completed phase, with the pipeline artifacts linked. Keywords: ship, PR, pull request, commit, push, open a PR, submit.","https:\u002F\u002Fgithub.com\u002Fgirishmotwani\u002Fatom\u002Fblob\u002Fmain\u002Ftools\u002Fatom\u002Fassets\u002Fskills\u002Fship\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M7DDBJMHEDT9VPGR1GJZD8CN","review","Standalone or phase multi-model review of a Go diff, merged into one report with severities. Keywords: review, code review, multi-model review, review my changes, review the diff, critique.","https:\u002F\u002Fgithub.com\u002Fgirishmotwani\u002Fatom\u002Fblob\u002Fmain\u002Ftools\u002Fatom\u002Fassets\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M7DDBD2G9WVYVFCTYNYFTWAE","poc","Build, run and evaluate a throwaway Go spike that answers one falsifiable question. Produces a POC Report with verbatim evidence. Keywords: POC, proof of concept, spike, prototype, prove it, experiment, try it out.","https:\u002F\u002Fgithub.com\u002Fgirishmotwani\u002Fatom\u002Fblob\u002Fmain\u002Ftools\u002Fatom\u002Fassets\u002Fskills\u002Fpoc\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7DDB98QNSK2WG5MMHH7S6J4","plan","Break proven work into ordered, independently shippable phases based on POC evidence. Keywords: plan, phases, break down, roadmap, decompose, milestones, sequencing.","https:\u002F\u002Fgithub.com\u002Fgirishmotwani\u002Fatom\u002Fblob\u002Fmain\u002Ftools\u002Fatom\u002Fassets\u002Fskills\u002Fplan\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M7DDB3N1VYV1JK1K4Y2V3CP3","init","Onboard a Go repository to Atom: capture its initial baseline or confirm existing setup without changes. Keywords: init, onboard, setup, install atom, bootstrap, add atom to this repo.","https:\u002F\u002Fgithub.com\u002Fgirishmotwani\u002Fatom\u002Fblob\u002Fmain\u002Ftools\u002Fatom\u002Fassets\u002Fskills\u002Finit\u002FSKILL.md",[],[]]