[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KC6597ZF3KSJ0HHA2Z3TVE":3,"skill-same:01M6KC6597ZF3KSJ0HHA2Z3TVE":58},{"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":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":44,"install":45,"resources":57},"01M6KC6597ZF3KSJ0HHA2Z3TVE","requirements",null,"Use \u002Fcortex-core:requirements to gather requirements or define project scope. Interviews, then writes cortex\u002Frequirements\u002F{project|area}.md — explicit slash command only.","charleshall888\u002Fcortex-command","charleshall888","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F47426470?v=4","01M6KC1Z9S8HWSA07QDH85FYNE","Charlie Hall","01M6KC1ZDQNJX8EWA7KG5RK5E8",2,"MIT","https:\u002F\u002Fgithub.com\u002Fcharleshall888\u002Fcortex-command\u002Fblob\u002Fmain\u002Fplugins\u002Fcortex-core\u002Fskills\u002Frequirements\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30],"core","cortex","command","list","use","only","compact","project","define","scope","interviews","true","2026-11-10 10:12:30",false,"---\nname: requirements\ndescription: Use \u002Fcortex-core:requirements to gather requirements or define project scope. Interviews, then writes cortex\u002Frequirements\u002F{project|area}.md — explicit slash command only.\ndisable-model-invocation: true\nargument-hint: \"[area|project|list|compact \u003Carea>]\"\n---\n\n# Requirements\n\nInterview first. Write nothing until the interview is complete.\n\n## Scope\n\nRead `$ARGUMENTS`:\n\n- **`list`** → run `cortex-list-requirements` and exit. `absent` → \"No requirements documented yet. Run `\u002Fcortex-core:requirements` to start with project-level requirements.\" `ok` → show `rows` as a table: file, scope, last_gathered, requirement_count (`glossary.md` is excluded).\n- **empty or `project`** → scope `project`.\n- **`compact {scope}`** → skip to §4 for that doc.\n- **any other token** → that kebab-case area slug.\n\nThe target is `cortex\u002Frequirements\u002F{scope}.md`. When it exists, refine it; do not rewrite.\n\n## 1. Interview\n\nRun the `\u002Fcortex-core:interview` loop: group only independent questions, let the codebase answer first, recommend before asking. Every question has a **Recommended answer:** based on explored code, the existing doc, the parent requirements (area scope), or stated conventions. With no basis, write `none — open question` and explain the gap.\n\nTie each block to one section, in template order. **Project**: Overview, Philosophy of Work, Architectural Constraints, Quality Attributes, Project Boundaries, Conditional Loading, Optional. **Area**: Overview, Functional Requirements, Non-Functional Requirements, Architectural Constraints, Dependencies, Edge Cases, Open Questions. For an area, reuse `cortex\u002Frequirements\u002Fproject.md`; do not re-ask settled positions.\n\n```\n### {Section name}\n- **Q:** {question}\n- **Recommended answer:** {grounded recommendation, or \"none — open question\" with rationale}\n- **User answer:** {captured response or confirmation}\n- **Code evidence:** {file paths or excerpts; omit for intent-only questions — never fabricate or write N\u002FA}\n```\n\nA section with no open questions becomes one bullet noting the position confirmed from code.\n\n### Glossary\n\nThe one write during the interview is a per-term entry in the `## Language` section of `cortex\u002Frequirements\u002Fglossary.md`. Check first:\n\n```bash\ncortex-append-glossary-term --term \"{term}\"\n```\n\n- `found` → use the definition exactly, or offer keep \u002F replace \u002F flag as ambiguity. \"Replace\" re-runs with `--definition` and `--replace`.\n- `not-found` → decide whether the term belongs. Project terms (\"phase transition\", \"kept user pauses\") get an entry: write it with `--definition`. General programming terms (\"timeout\") do not: explain why and write nothing.\n\nOnly a term the user named or confirmed is saved; a mention inside a Recommended answer is not consent. An entry defines a word and carries no reasoning — `\u002Fcortex-core:critical-review` gives this section to reviewers who must not see earlier reasoning.\n\n## 2. Synthesize\n\nKeep prose the user confirms; refine it in place. Keep H2\u002FH3 headings exact; other tools grep them. A collapsed section takes the template default. A missing answer keeps the H2 with a one-line pointer to Open Questions (area) or a `## Optional` bullet (project). Update `> Last gathered:` when any section changes.\n\n**Writing** — agents re-read these docs at every lifecycle phase, so each word is paid for many times.\n\n- Plain English: short active sentences, one idea per sentence or bullet.\n- Common words that carry the idea (\"a test that can fail\", not \"a demonstrated falsifier\"). Use glossary terms; define any other term once.\n- State the rule, then at most one clause of why. No dates, no \"amended\", no \"previously\"; history lives in git.\n- Bold marks only the lead of a rule.\n- Name constants and files; do not quote values that live in code. Keep exact names, commands, and numbers that are the rule.\n\n**Size** — a doc stays under 32,000 bytes unless a `> Size budget: {N} bytes` line under its H1 raises the limit on purpose. Over it, compact (§4) before adding.\n\n**Project** — `# Requirements: {project-name}` + `> Last gathered: {YYYY-MM-DD}`, then eight H2s in order:\n\n- `## Overview` — 1–2 paragraph north star; distribution posture if it matters.\n- `## Philosophy of Work` — cross-cutting principles, bold-led bullets.\n- `## Architectural Constraints` — strategic only. Operational detail lives in a doc that CLAUDE.md routes to by trigger, never in CLAUDE.md itself, which every request loads.\n- `## Quality Attributes`\n- `## Project Boundaries` — `### In Scope`, `### Out of Scope`, `### Deferred`.\n- `## Conditional Loading` — a many-to-one area→doc map, one `{area key}\u002F{synonym key} → cortex\u002Frequirements\u002F{area}.md` per line. Keys match the `areas:` of a lifecycle `index.md` by exact lookup. So every key is a real area name, and a doc reaches more lifecycles by listing more synonyms.\n- `## Global Context` — bare paths under `cortex\u002Frequirements\u002F` that every consumer loads on every run. Absent paths are skipped, so you may list one early.\n- `## Optional` — prunable; the first line states the convention. Token budget ≤1,200 `cl100k_base`. Overflow goes here or into an area doc, never into new H2s.\n\n**Area** — `# Requirements: {area-name}` + `> Last gathered:` + `**Parent doc**: [requirements\u002Fproject.md](project.md)` exactly, then seven H2s: `## Overview`, `## Functional Requirements` (one H3 per capability with `**Description**`, `**Inputs**`, `**Outputs**`, nested `**Acceptance criteria**`, `**Priority**`), `## Non-Functional Requirements`, `## Architectural Constraints`, `## Dependencies`, `## Edge Cases` (`**Condition**: behavior`), `## Open Questions` (`- None` when empty).\n\n## 3. Accept and commit\n\n```bash\ncortex-validate-requirements-doc --path {written-path} --scope {project|area}\n```\n\n`pass` → show the path for approval. `fail` → `checks` names the failing check; fix and re-run. `file-not-found`\u002F`error` → resolve before returning. On approval, stage `cortex\u002Frequirements\u002F` and commit. Start no consumer; downstream skills load requirements on their own schedule.\n\n## 4. Compact\n\n`compact {scope}` rewrites one doc to fit its size budget without changing what any rule means. No interview.\n\nRecord `git rev-parse HEAD` as `{base}`. Commit a dirty doc first, so the base holds it. Rewrite to the Writing rules: current rules only. Keep H1–H3 headings, `**State:**` tags, and bold rule leads exactly. Drop dated history, retraction stories, and any rule the doc states elsewhere. Under the H1, keep one pointer line: `> Pre-compact text: git show {base}:{path}`.\n\n```bash\ncortex-validate-requirements-doc --path {path} --scope {project|area} --compact-base {base}\n```\n\n`compact-preserves` fails → restore what `missing_headings` or `state_tags` names. Show the diff and account for every `dropped_rule_leads` and `dropped_identifiers` entry: which surviving rule covers it, or that it was history. Commit on approval as in §3.\n","# Requirements\n\nInterview first. Write nothing until the interview is complete.\n\n## Scope\n\nRead `$ARGUMENTS`:\n\n- **`list`** → run `cortex-list-requirements` and exit. `absent` → \"No requirements documented yet. Run `\u002Fcortex-core:requirements` to start with project-level requirements.\" `ok` → show `rows` as a table: file, scope, last_gathered, requirement_count (`glossary.md` is excluded).\n- **empty or `project`** → scope `project`.\n- **`compact {scope}`** → skip to §4 for that doc.\n- **any other token** → that kebab-case area slug.\n\nThe target is `cortex\u002Frequirements\u002F{scope}.md`. When it exists, refine it; do not rewrite.\n\n## 1. Interview\n\nRun the `\u002Fcortex-core:interview` loop: group only independent questions, let the codebase answer first, recommend before asking. Every question has a **Recommended answer:** based on explored code, the existing doc, the parent requirements (area scope), or stated conventions. With no basis, write `none — open question` and explain the gap.\n\nTie each block to one section, in template order. **Project**: Overview, Philosophy of Work, Architectural Constraints, Quality Attributes, Project Boundaries, Conditional Loading, Optional. **Area**: Overview, Functional Requirements, Non-Functional Requirements, Architectural Constraints, Dependencies, Edge Cases, Open Questions. For an area, reuse `cortex\u002Frequirements\u002Fproject.md`; do not re-ask settled positions.\n\n```\n### {Section name}\n- **Q:** {question}\n- **Recommended answer:** {grounded recommendation, or \"none — open question\" with rationale}\n- **User answer:** {captured response or confirmation}\n- **Code evidence:** {file paths or excerpts; omit for intent-only questions — never fabricate or write N\u002FA}\n```\n\nA section with no open questions becomes one bullet noting the position confirmed from code.\n\n### Glossary\n\nThe one write during the interview is a per-term entry in the `## Language` section of `cortex\u002Frequirements\u002Fglossary.md`. Check first:\n\n```bash\ncortex-append-glossary-term --term \"{term}\"\n```\n\n- `found` → use the definition exactly, or offer keep \u002F replace \u002F flag as ambiguity. \"Replace\" re-runs with `--definition` and `--replace`.\n- `not-found` → decide whether the term belongs. Project terms (\"phase transition\", \"kept user pauses\") get an entry: write it with `--definition`. General programming terms (\"timeout\") do not: explain why and write nothing.\n\nOnly a term the user named or confirmed is saved; a mention inside a Recommended answer is not consent. An entry defines a word and carries no reasoning — `\u002Fcortex-core:critical-review` gives this section to reviewers who must not see earlier reasoning.\n\n## 2. Synthesize\n\nKeep prose the user confirms; refine it in place. Keep H2\u002FH3 headings exact; other tools grep them. A collapsed section takes the template default. A missing answer keeps the H2 with a one-line pointer to Open Questions (area) or a `## Optional` bullet (project). Update `> Last gathered:` when any section changes.\n\n**Writing** — agents re-read these docs at every lifecycle phase, so each word is paid for many times.\n\n- Plain English: short active sentences, one idea per sentence or bullet.\n- Common words that carry the idea (\"a test that can fail\", not \"a demonstrated falsifier\"). Use glossary terms; define any other term once.\n- State the rule, then at most one clause of why. No dates, no \"amended\", no \"previously\"; history lives in git.\n- Bold marks only the lead of a rule.\n- Name constants and files; do not quote values that live in code. Keep exact names, commands, and numbers that are the rule.\n\n**Size** — a doc stays under 32,000 bytes unless a `> Size budget: {N} bytes` line under its H1 raises the limit on purpose. Over it, compact (§4) before adding.\n\n**Project** — `# Requirements: {project-name}` + `> Last gathered: {YYYY-MM-DD}`, then eight H2s in order:\n\n- `## Overview` — 1–2 paragraph north star; distribution posture if it matters.\n- `## Philosophy of Work` — cross-cutting principles, bold-led bullets.\n- `## Architectural Constraints` — strategic only. Operational detail lives in a doc that CLAUDE.md routes to by trigger, never in CLAUDE.md itself, which every request loads.\n- `## Quality Attributes`\n- `## Project Boundaries` — `### In Scope`, `### Out of Scope`, `### Deferred`.\n- `## Conditional Loading` — a many-to-one area→doc map, one `{area key}\u002F{synonym key} → cortex\u002Frequirements\u002F{area}.md` per line. Keys match the `areas:` of a lifecycle `index.md` by exact lookup. So every key is a real area name, and a doc reaches more lifecycles by listing more synonyms.\n- `## Global Context` — bare paths under `cortex\u002Frequirements\u002F` that every consumer loads on every run. Absent paths are skipped, so you may list one early.\n- `## Optional` — prunable; the first line states the convention. Token budget ≤1,200 `cl100k_base`. Overflow goes here or into an area doc, never into new H2s.\n\n**Area** — `# Requirements: {area-name}` + `> Last gathered:` + `**Parent doc**: [requirements\u002Fproject.md](project.md)` exactly, then seven H2s: `## Overview`, `## Functional Requirements` (one H3 per capability with `**Description**`, `**Inputs**`, `**Outputs**`, nested `**Acceptance criteria**`, `**Priority**`), `## Non-Functional Requirements`, `## Architectural Constraints`, `## Dependencies`, `## Edge Cases` (`**Condition**: behavior`), `## Open Questions` (`- None` when empty).\n\n## 3. Accept and commit\n\n```bash\ncortex-validate-requirements-doc --path {written-path} --scope {project|area}\n```\n\n`pass` → show the path for approval. `fail` → `checks` names the failing check; fix and re-run. `file-not-found`\u002F`error` → resolve before returning. On approval, stage `cortex\u002Frequirements\u002F` and commit. Start no consumer; downstream skills load requirements on their own schedule.\n\n## 4. Compact\n\n`compact {scope}` rewrites one doc to fit its size budget without changing what any rule means. No interview.\n\nRecord `git rev-parse HEAD` as `{base}`. Commit a dirty doc first, so the base holds it. Rewrite to the Writing rules: current rules only. Keep H1–H3 headings, `**State:**` tags, and bold rule leads exactly. Drop dated history, retraction stories, and any rule the doc states elsewhere. Under the H1, keep one pointer line: `> Pre-compact text: git show {base}:{path}`.\n\n```bash\ncortex-validate-requirements-doc --path {path} --scope {project|area} --compact-base {base}\n```\n\n`compact-preserves` fails → restore what `missing_headings` or `state_tags` names. Show the diff and account for every `dropped_rule_leads` and `dropped_identifiers` entry: which surviving rule covers it, or that it was history. Commit on approval as in §3.\n",{"name":5,"description":7,"argument-hint":36,"disable-model-invocation":37},"[area|project|list|compact \u003Carea>]",true,"main","3aac0752f0f020bd953cfed5bd29244d1c8f5f4f","plugins\u002Fcortex-core\u002Fskills\u002Frequirements",0,"https:\u002F\u002Fgithub.com\u002Fcharleshall888\u002Fcortex-command","https:\u002F\u002Fgithub.com\u002Fcharleshall888","2026-10-28 20:32:05",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":37},[47,50,53],{"tool":48,"command":49},"npx","npx skills add charleshall888\u002Fcortex-command --skill requirements",{"tool":51,"command":52},"bunx","bunx skills add charleshall888\u002Fcortex-command --skill requirements",{"tool":54,"command":55},"pnpm","pnpm dlx skills add charleshall888\u002Fcortex-command --skill requirements","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcharleshall888\u002Fcortex-command\u002Fblob\u002Fmain\u002Fplugins\u002Fcortex-core\u002Fskills\u002Frequirements\u002FSKILL.md",[],[59,74,84,98,111,122],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":31},"01M6KCB4DH17601DR5QA7WYG28","over-cap-no-marker","Synthetic fixture with 501 lines and no size-budget marker.","https:\u002F\u002Fgithub.com\u002Fcharleshall888\u002Fcortex-command\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill_size_budget\u002Fover-cap-no-marker\u002FSKILL.md",[],[66,67,68,69,70,71,72,73],"over cap no marker","cap","marker","fixture","Budget","synthetic","with","size",{"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":31},"01M6KCB0P08NTQBZVYP6Q0J74M","invalid-marker","Synthetic fixture exercising the invalid-marker failure path.","https:\u002F\u002Fgithub.com\u002Fcharleshall888\u002Fcortex-command\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill_size_budget\u002Finvalid-marker\u002FSKILL.md",[],[81,68,82,83,71,69],"invalid","invalid marker","path",{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":31},"01M6KCAXS26V6DS7FTG7Z3D08V","boundary-29-char-reason","Synthetic fixture with marker rationale at the regex boundary (29 chars, just under min).","https:\u002F\u002Fgithub.com\u002Fcharleshall888\u002Fcortex-command\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill_size_budget\u002Fboundary-29-char-reason\u002FSKILL.md",[],[91,92,93,71,94,95,68,72,96,69,97],"reason","boundary 29 char reason","boundary","rationale","at","regex","just",{"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":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":31},"01M6KCARRB8SCQJNQTCCZY7WS9","valid-with-inputs","A skill that declares one input variable and uses it in the body.","https:\u002F\u002Fgithub.com\u002Fcharleshall888\u002Fcortex-command\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fcontracts\u002Fvalid-with-inputs\u002FSKILL.md",[],[105,72,106,107,108,109,110],"valid with inputs","valid","operate","it","STRING","input",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":31},"01M6KCAP369CPN1N3G8ZG95D6J","valid-minimal","A minimal skill with only the required fields present.","https:\u002F\u002Fgithub.com\u002Fcharleshall888\u002Fcortex-command\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fcontracts\u002Fvalid-minimal\u002FSKILL.md",[],[118,119,106,72,120,24,121],"minimal","valid minimal","present","minimal skill",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":31},"01M6KCAJJXSZJ9JQM730JWFSMF","invalid-undeclared-variable","A skill whose body uses a variable not declared in inputs.","https:\u002F\u002Fgithub.com\u002Fcharleshall888\u002Fcortex-command\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fcontracts\u002Finvalid-undeclared-variable\u002FSKILL.md",[],[81,129,109],"invalid undeclared variable"]