[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77K512EAS982K3E2B2FY23S":3,"skill-same:01M77K512EAS982K3E2B2FY23S":43},{"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":6,"updatedAt":28,"install":29,"resources":42},"01M77K512EAS982K3E2B2FY23S","spec",null,"Use when the user asks to spec a capability, write its requirements, or capture what the code does before changing it. Produces a repo spec of what the code does or a work spec of what one unit of work will make true, under the loom spec grammar.","ZPerrin\u002Floom","ZPerrin","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6732345?v=4","01M77K4SE6DQV2GZ683DV0E7TN","01M77K4SF9C4MTN5KJM90Y895Z",0,"MIT","https:\u002F\u002Fgithub.com\u002FZPerrin\u002Floom\u002Fblob\u002Fmaster\u002Fskills\u002Fspec\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: spec\ndescription: Use when the user asks to spec a capability, write its requirements, or capture what the code does before changing it. Produces a repo spec of what the code does or a work spec of what one unit of work will make true, under the loom spec grammar.\n---\n\n## Spec\n\nWrite or extend one capability's living spec. Agree the fence with the operator before drafting a sentence, write from what the tests and code do, and present nothing the linter rejects. The fence is the capability's name and token, what is in, what its neighbors own, and the decisions only the operator can make.\n\nThree entry states:\n\n- **New repo spec:** no repo spec for the capability exists under `[specs].repo_dir`.\n- **Extension:** the repo spec exists; add blocks under new ids or replace blocks under existing ones, in place, and log each edit.\n- **Work spec:** a unit of work targets a capability; the dated file under `[specs].work_dir` carries only the blocks the work will change.\n\n## Spec Control Surfaces\n\nThese are the surfaces `spec` reads or writes directly; the full key map is the [reference project](..\u002F..\u002Freferences\u002Freference-project.md).\n\n| Surface | Spec uses it for |\n|---|---|\n| `[specs].repo_dir` | home of repo specs, one per capability (default `docs\u002Fspecs`) |\n| `[specs].work_dir` | home of dated work specs (default `.loom\u002Fspecs`) |\n| `[lint.specs]` | the budgets, word lists, and `ears` setting the linter grades against; read, never edited |\n| `doc-linter` | the gate: what it rejects is not a spec |\n| `doc-stamp` | frontmatter on the file written |\n| `.loom\u002Fskills\u002Fspec.md` | repo opinion: capability boundaries, test-ref form, token conventions |\n\n## Hard constraints\n\n- **The fence comes first.** Write nothing until the frontier is empty: every decision put to the operator is answered or written down as an `-> open` line, and the operator has said the understanding is shared.\n- **Facts are yours; decisions are the operator's.** What the tests, code, and existing spec say, you look up; ask the operator for none of it. Whether a behavior is intended, where the boundary falls, what is refused, and what is invariant, the operator decides; put each to them with your recommended answer.\n- **Write what the code does.** A requirement comes from a test or the code it exercises, and its scenario names that test. Write it at the altitude of the promise: the how stays in code, and a test that pins the how gets no scenario. Where the operator rules the code wrong, write the ruling into an open line that stays until the fix lands. An assertion nobody found or ruled on is a defect, not a requirement.\n- **The linter is the authority.** Run `bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fdoc-linter\"` before presenting. A SPEC finding sends you back to the draft: fix the sentence, split the requirement, or drop the block; `[lint.specs]` stands as configured. A SPECWARN reaches the report by id.\n- **One file.** Write the spec and nothing else: no code, test, or config edit to make a scenario true. Drift you notice while reading is an `-> open` line, whichever side is wrong.\n- **Invariants are the operator's.** Ask for them in the fence and carry them in the report for the operator to type; the grammar's write tiers say who writes what.\n- **Ids and status are permanent.** Mint the next number in the capability's sequence, checking any open work spec; a new spec starts at 001 and is `living`; an existing spec keeps the status it has.\n\n## Workflow\n\nThe gate first: a `loom gate: spec` receipt in your context says whether the repo opinion was read and which hook ran, with that opinion and that hook's output beneath it. Without one for this invocation, do the same by hand: read `.loom\u002Fskills\u002Fspec.md` if it exists and run `bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fskill-hook\" spec`; exit 3 is no hook. A receipt from an earlier invocation does not count, and a hook tolerates a repeat.\n\n### 1. Fence\n\nWhen the request names a script, a module, or a test file, map the features from the front doors and put the cut to the operator before reading a test; the grammar says what a capability is.\n\nRead the repo spec if one exists, the tests that cover the capability, the code they exercise, and the ids already in use. Open the first round with what you found: the behaviors, as candidate requirement titles at the altitude of the promise, each naming its test, and the neighbors the evidence touched. Then the decisions, in rounds: every question whose prerequisites are settled, numbered, each with your recommended answer; a question that depends on an open one waits for the next round. Wait for the operator between rounds. Write no spec text yet.\n\n### 2. Confirm\n\nThe fence is agreed when the frontier is empty and the operator says so. An invocation that already states capability, token, and boundary and leaves no question is an agreed fence, which is how a brief drives this skill with no operator present. A change of scope reopens the frontier.\n\n### 3. Draft\n\nWrite the skeleton, then one requirement per agreed behavior. Stamp a new file with `bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fdoc-stamp\" \u003Cfile> kind=spec status=living updated=\u003Ctoday>`, an existing one with `updated=\u003Ctoday>` alone. The change log records what was observed and left open, never the fact of authoring; git holds that.\n\n### 4. Gate\n\nRun `doc-linter`. A SPEC finding sends you back to Draft; a SPECWARN is a review item you act on or carry into the report by id.\n\n## Output\n\nReport the fence as agreed, the file written, each id added or replaced with its title on one line, the scenarios without a test ref, the change-log lines ending `-> open`, the invariants the operator gave for them to type, and the lint result. If the fence held no behavior, say so and write nothing.\n\n## References\n\nThe grammar and the writing rules the spec obeys:\n\n!`cat \"${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Fspec-grammar.md\" \"${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Fspec-writing-rules.md\" 2>\u002Fdev\u002Fnull || true`\n\nIf the line above shows a command instead of the grammar, read [spec-grammar.md](..\u002F..\u002Freferences\u002Fspec-grammar.md) and [spec-writing-rules.md](..\u002F..\u002Freferences\u002Fspec-writing-rules.md) before drafting.\n","## Spec\n\nWrite or extend one capability's living spec. Agree the fence with the operator before drafting a sentence, write from what the tests and code do, and present nothing the linter rejects. The fence is the capability's name and token, what is in, what its neighbors own, and the decisions only the operator can make.\n\nThree entry states:\n\n- **New repo spec:** no repo spec for the capability exists under `[specs].repo_dir`.\n- **Extension:** the repo spec exists; add blocks under new ids or replace blocks under existing ones, in place, and log each edit.\n- **Work spec:** a unit of work targets a capability; the dated file under `[specs].work_dir` carries only the blocks the work will change.\n\n## Spec Control Surfaces\n\nThese are the surfaces `spec` reads or writes directly; the full key map is the [reference project](..\u002F..\u002Freferences\u002Freference-project.md).\n\n| Surface | Spec uses it for |\n|---|---|\n| `[specs].repo_dir` | home of repo specs, one per capability (default `docs\u002Fspecs`) |\n| `[specs].work_dir` | home of dated work specs (default `.loom\u002Fspecs`) |\n| `[lint.specs]` | the budgets, word lists, and `ears` setting the linter grades against; read, never edited |\n| `doc-linter` | the gate: what it rejects is not a spec |\n| `doc-stamp` | frontmatter on the file written |\n| `.loom\u002Fskills\u002Fspec.md` | repo opinion: capability boundaries, test-ref form, token conventions |\n\n## Hard constraints\n\n- **The fence comes first.** Write nothing until the frontier is empty: every decision put to the operator is answered or written down as an `-> open` line, and the operator has said the understanding is shared.\n- **Facts are yours; decisions are the operator's.** What the tests, code, and existing spec say, you look up; ask the operator for none of it. Whether a behavior is intended, where the boundary falls, what is refused, and what is invariant, the operator decides; put each to them with your recommended answer.\n- **Write what the code does.** A requirement comes from a test or the code it exercises, and its scenario names that test. Write it at the altitude of the promise: the how stays in code, and a test that pins the how gets no scenario. Where the operator rules the code wrong, write the ruling into an open line that stays until the fix lands. An assertion nobody found or ruled on is a defect, not a requirement.\n- **The linter is the authority.** Run `bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fdoc-linter\"` before presenting. A SPEC finding sends you back to the draft: fix the sentence, split the requirement, or drop the block; `[lint.specs]` stands as configured. A SPECWARN reaches the report by id.\n- **One file.** Write the spec and nothing else: no code, test, or config edit to make a scenario true. Drift you notice while reading is an `-> open` line, whichever side is wrong.\n- **Invariants are the operator's.** Ask for them in the fence and carry them in the report for the operator to type; the grammar's write tiers say who writes what.\n- **Ids and status are permanent.** Mint the next number in the capability's sequence, checking any open work spec; a new spec starts at 001 and is `living`; an existing spec keeps the status it has.\n\n## Workflow\n\nThe gate first: a `loom gate: spec` receipt in your context says whether the repo opinion was read and which hook ran, with that opinion and that hook's output beneath it. Without one for this invocation, do the same by hand: read `.loom\u002Fskills\u002Fspec.md` if it exists and run `bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fskill-hook\" spec`; exit 3 is no hook. A receipt from an earlier invocation does not count, and a hook tolerates a repeat.\n\n### 1. Fence\n\nWhen the request names a script, a module, or a test file, map the features from the front doors and put the cut to the operator before reading a test; the grammar says what a capability is.\n\nRead the repo spec if one exists, the tests that cover the capability, the code they exercise, and the ids already in use. Open the first round with what you found: the behaviors, as candidate requirement titles at the altitude of the promise, each naming its test, and the neighbors the evidence touched. Then the decisions, in rounds: every question whose prerequisites are settled, numbered, each with your recommended answer; a question that depends on an open one waits for the next round. Wait for the operator between rounds. Write no spec text yet.\n\n### 2. Confirm\n\nThe fence is agreed when the frontier is empty and the operator says so. An invocation that already states capability, token, and boundary and leaves no question is an agreed fence, which is how a brief drives this skill with no operator present. A change of scope reopens the frontier.\n\n### 3. Draft\n\nWrite the skeleton, then one requirement per agreed behavior. Stamp a new file with `bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fdoc-stamp\" \u003Cfile> kind=spec status=living updated=\u003Ctoday>`, an existing one with `updated=\u003Ctoday>` alone. The change log records what was observed and left open, never the fact of authoring; git holds that.\n\n### 4. Gate\n\nRun `doc-linter`. A SPEC finding sends you back to Draft; a SPECWARN is a review item you act on or carry into the report by id.\n\n## Output\n\nReport the fence as agreed, the file written, each id added or replaced with its title on one line, the scenarios without a test ref, the change-log lines ending `-> open`, the invariants the operator gave for them to type, and the lint result. If the fence held no behavior, say so and write nothing.\n\n## References\n\nThe grammar and the writing rules the spec obeys:\n\n!`cat \"${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Fspec-grammar.md\" \"${CLAUDE_PLUGIN_ROOT}\u002Freferences\u002Fspec-writing-rules.md\" 2>\u002Fdev\u002Fnull || true`\n\nIf the line above shows a command instead of the grammar, read [spec-grammar.md](..\u002F..\u002Freferences\u002Fspec-grammar.md) and [spec-writing-rules.md](..\u002F..\u002Freferences\u002Fspec-writing-rules.md) before drafting.\n",{"name":5,"description":7},"master","1654547be6e5893679da596a76333a780abf7a5a","skills\u002Fspec","https:\u002F\u002Fgithub.com\u002FZPerrin\u002Floom","https:\u002F\u002Fgithub.com\u002FZPerrin","2026-09-08 11:58:22",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add ZPerrin\u002Floom --skill spec",{"tool":35,"command":36},"bunx","bunx skills add ZPerrin\u002Floom --skill spec",{"tool":38,"command":39},"pnpm","pnpm dlx skills add ZPerrin\u002Floom --skill spec","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FZPerrin\u002Floom\u002Fblob\u002Fmaster\u002Fskills\u002Fspec\u002FSKILL.md",true,[],[44,51,58,65,72],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M77K5BNBMX9GMZYVQ6R5RWPK","weft","Use when a loom-managed documentation set needs an editorial pass to prune, condense, reroute, and realign durable project docs with the code and the editorial ethos.","https:\u002F\u002Fgithub.com\u002FZPerrin\u002Floom\u002Fblob\u002Fmaster\u002Fskills\u002Fweft\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M77K593XBM4TW4B8E9JSWTDJ","weave","Use when wrapping up a loom work session, especially when durable docs, close-out checks, merge handoff, or branch cleanup need attention.","https:\u002F\u002Fgithub.com\u002FZPerrin\u002Floom\u002Fblob\u002Fmaster\u002Fskills\u002Fweave\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M77K54XGV4J50S4S99S5DQES","warp","Use when opening a unit of work in a loom managed repo, especially when orientation, branch\u002Fworktree setup, ticket context, or kickoff guidance may be needed.","https:\u002F\u002Fgithub.com\u002FZPerrin\u002Floom\u002Fblob\u002Fmaster\u002Fskills\u002Fwarp\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M77K4XPGYKFDCVBX9TVN2MBC","refine-spec","Use when the user asks whether a spec is still accurate, suspects spec drift, wants a capability's behavior captured before or after a change, or names code that has no spec. Reconciles one capability's loom spec against its tests and code and reports drift by requirement id.","https:\u002F\u002Fgithub.com\u002FZPerrin\u002Floom\u002Fblob\u002Fmaster\u002Fskills\u002Frefine-spec\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M77K4VDAVMQ3HDK6HN72BCFN","dress","Use when adopting loom on a repo, or re-tuning an existing loom configuration.","https:\u002F\u002Fgithub.com\u002FZPerrin\u002Floom\u002Fblob\u002Fmaster\u002Fskills\u002Fdress\u002FSKILL.md",[],[]]