[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ATMA81Z5S423BJJTK3F4BW":3,"skill-same:01M7ATMA81Z5S423BJJTK3F4BW":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7ATMA81Z5S423BJJTK3F4BW","specrew-code-rules",null,"Guide the coding agent with this feature's chosen implementation-craft rules WHILE it writes code. Use during implement: before and while writing source, and RE-INVOKE per task \u002F file type. It resolves the active feature, reads the per-feature implementation-rules.yml manifest + the canonical code-rules.yml catalog (+ any code-rules.local.yml overlay), and composes a BASELINE (always-on craft defaults) + the feature's OVERLAY (selected decision-prompt rules + decisions + custom rules + dependency policy), surfaced task-scoped (service \u002F client \u002F concurrency \u002F API) so the code reflects the agreed posture. Triggers: implement, writing code, code rules, code quality, DI, naming, error handling, dependency, add a package, refactor, concurrency, API design, before I write the implementation.","alonf\u002FKeyContextAI","alonf","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F554150?v=4","01M7ATEPSCNKG13BVTKA74VG59","Alon Fliess","01M7ATEPSZ4YMBM9W25SKM3GES",0,"MIT","https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fspecrew-code-rules\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: \"specrew-code-rules\"\ndescription: \"Guide the coding agent with this feature's chosen implementation-craft rules WHILE it writes code. Use during implement: before and while writing source, and RE-INVOKE per task \u002F file type. It resolves the active feature, reads the per-feature implementation-rules.yml manifest + the canonical code-rules.yml catalog (+ any code-rules.local.yml overlay), and composes a BASELINE (always-on craft defaults) + the feature's OVERLAY (selected decision-prompt rules + decisions + custom rules + dependency policy), surfaced task-scoped (service \u002F client \u002F concurrency \u002F API) so the code reflects the agreed posture. Triggers: implement, writing code, code rules, code quality, DI, naming, error handling, dependency, add a package, refactor, concurrency, API design, before I write the implementation.\"\ndomain: \"lifecycle-implementation\"\nconfidence: \"high\"\nsource: \"Specrew Feature 177 (Code & Implementation Lens, Proposal 163) — the implement-time half: read the design-time manifest and actively guide the coding agent. No 145 mechanical gate; guidance, not a gate.\"\n---\n\n# specrew-code-rules\n\n**Type**: Implement-time Guidance Skill\n**Schema**: v1\n**Status**: Active implementation conduct\n\n## Purpose\n\nThe code-implementation design lens captured this feature's implementation-craft rules at design time (the\n`implementation-rules.yml` manifest). This skill is the **implement-time half**: while you write code, it\nsurfaces the chosen rules so the code reflects the agreed posture (DI, naming, size, error handling,\nsecurity-context, copy semantics, dependency stance, …) without the maintainer re-pasting rules. It is\n**guidance, not a gate** — there is no mechanical conformance check; the value is that you actually follow\nthe rules as you write.\n\n## The Big Picture (read this first, every time)\n\nYou are a **static reader**. You carry NO per-feature content yourself — you resolve it at read time:\n\n1. **Resolve the active feature.** Read `.specrew\u002Fstart-context.json` (`session_state.feature_ref` \u002F\n   `feature_path`) to find the active feature's `specs\u002F\u003Cfeature>\u002F` directory.\n2. **Read the per-feature manifest** `specs\u002F\u003Cfeature>\u002Fimplementation-rules.yml` — the selected rule ids\n   (checked\u002Funchecked), per-rule decisions, the resolved stack, custom rules, and the `dependency_policy`.\n3. **Read the canonical catalog** `extensions\u002Fspecrew-speckit\u002Fknowledge\u002Fdesign-lenses\u002Fcode-rules.yml`\n   (deployed under the project's design-lens catalog) to resolve each selected rule id to its text, and the\n   optional **project overlay** `code-rules.local.yml` (additive + per-rule override; never drops a shipped\n   rule) for the ingested company guideline \u002F reusable custom rules.\n4. **Compose BASELINE + OVERLAY** (below) and surface it **task-scoped** for the current work.\n\n## Compose: baseline + overlay\n\n- **BASELINE** — the catalog's `baseline-default` group ALWAYS applies (intent-revealing names, short\n  methods, low nesting, DI as a principle, no magic numbers, guard object invariants, don't leak mutable\n  internals, SOLID, idiomatic errors, …). Apply it even when there is **no manifest** (baseline-only mode).\n- **OVERLAY** — when a manifest exists, layer the feature's choices on top: the selected `decision-prompt`\n  rules + the human's per-rule `decision`, the applicable `applicability-filtered` rules, any `custom_rules`,\n  and the `dependency_policy`. An **unchecked** baseline rule is a recorded exception — honor the exception.\n\n## Surface it task-scoped (never a flat dump)\n\nPull only the group relevant to the current task\u002Ffile, keyed by the manifest's selected groups + the\nresolved stack:\n\n- **writing a service** -> DI · DTO boundaries · idiomatic error handling + bounded retries ·\n  authz \u002F security-context flow · robustness\u002Fstate boundaries.\n- **writing a client \u002F UI** -> render purity · never-block-the-event-loop · validation placement ·\n  input controls that prevent invalid input.\n- **writing concurrency** -> prefer concurrency over locks · explicit ordering\u002Fidempotency · normalize state.\n- **writing an API \u002F contract** -> protocol by shape · versioning · pagination\u002Fdelivery · idempotency ·\n  error envelope · public-API\u002Freusable-code design posture.\n- **repeated conditionals \u002F polymorphism** -> Strategy\u002FState over repeated branching; choose the\n  polymorphism mechanism (functional vs inheritance\u002Finterfaces) deliberately.\n- **per-stack** -> the `language:\u003Cstack>` rules for the resolved stack (e.g. C# nullable\u002Ffile-scoped +\n  analyzers; Go small interfaces + gofmt; Python typing + ruff\u002Fmypy; C\u002FC++ ownership + clang-tidy\u002Fsafety).\n\nState the rules that bind THIS task, then write the code following them. Re-invoke for the next task\u002Ffile.\n\n## Dependency policy (FR-013)\n\nHonor the manifest's `dependency_policy`:\n\n- Default stance is **use existing project tools \u002F no new dependency** — do NOT silently add a package.\n- If the policy lists an approved dependency, follow its captured constraints (version, license posture,\n  coupling\u002Freplaceability notes). If you believe a NEW dependency is needed and it is not in the policy,\n  **surface that to the human** (it is a dependency-selection decision), do not just add it.\n\n## Fail-open (never block, never crash)\n\n- **No manifest** -> baseline-only mode (the catalog `baseline-default` rules). Say so briefly.\n- **Unknown rule id** in the manifest (catalog changed) -> note it and skip that id; keep going.\n- **Malformed manifest \u002F overlay** -> warn and fall back to the shipped catalog baseline; never crash.\n\n## When to Use\n\n- At **implement** time — before and while writing source files. Re-invoke per task \u002F file type so the\n  surfaced rules match what you are writing.\n- It is a reader: it never edits the manifest, the catalog, or itself. The workshop (design-time) writes the\n  manifest; this skill only reads it.\n\n## Review note\n\nThis skill is doing its job when, in a dogfood: the generated code visibly reflects the manifest's chosen\nrules (DI posture, naming, size, the decided forks), the human did not have to re-paste rules, and a new\ndependency was never added without surfacing the decision. That dogfood (on the deployed module) is the\nacceptance gate (SC-004 \u002F SC-007 \u002F SC-008) — not unit-green.\n","# specrew-code-rules\n\n**Type**: Implement-time Guidance Skill\n**Schema**: v1\n**Status**: Active implementation conduct\n\n## Purpose\n\nThe code-implementation design lens captured this feature's implementation-craft rules at design time (the\n`implementation-rules.yml` manifest). This skill is the **implement-time half**: while you write code, it\nsurfaces the chosen rules so the code reflects the agreed posture (DI, naming, size, error handling,\nsecurity-context, copy semantics, dependency stance, …) without the maintainer re-pasting rules. It is\n**guidance, not a gate** — there is no mechanical conformance check; the value is that you actually follow\nthe rules as you write.\n\n## The Big Picture (read this first, every time)\n\nYou are a **static reader**. You carry NO per-feature content yourself — you resolve it at read time:\n\n1. **Resolve the active feature.** Read `.specrew\u002Fstart-context.json` (`session_state.feature_ref` \u002F\n   `feature_path`) to find the active feature's `specs\u002F\u003Cfeature>\u002F` directory.\n2. **Read the per-feature manifest** `specs\u002F\u003Cfeature>\u002Fimplementation-rules.yml` — the selected rule ids\n   (checked\u002Funchecked), per-rule decisions, the resolved stack, custom rules, and the `dependency_policy`.\n3. **Read the canonical catalog** `extensions\u002Fspecrew-speckit\u002Fknowledge\u002Fdesign-lenses\u002Fcode-rules.yml`\n   (deployed under the project's design-lens catalog) to resolve each selected rule id to its text, and the\n   optional **project overlay** `code-rules.local.yml` (additive + per-rule override; never drops a shipped\n   rule) for the ingested company guideline \u002F reusable custom rules.\n4. **Compose BASELINE + OVERLAY** (below) and surface it **task-scoped** for the current work.\n\n## Compose: baseline + overlay\n\n- **BASELINE** — the catalog's `baseline-default` group ALWAYS applies (intent-revealing names, short\n  methods, low nesting, DI as a principle, no magic numbers, guard object invariants, don't leak mutable\n  internals, SOLID, idiomatic errors, …). Apply it even when there is **no manifest** (baseline-only mode).\n- **OVERLAY** — when a manifest exists, layer the feature's choices on top: the selected `decision-prompt`\n  rules + the human's per-rule `decision`, the applicable `applicability-filtered` rules, any `custom_rules`,\n  and the `dependency_policy`. An **unchecked** baseline rule is a recorded exception — honor the exception.\n\n## Surface it task-scoped (never a flat dump)\n\nPull only the group relevant to the current task\u002Ffile, keyed by the manifest's selected groups + the\nresolved stack:\n\n- **writing a service** -> DI · DTO boundaries · idiomatic error handling + bounded retries ·\n  authz \u002F security-context flow · robustness\u002Fstate boundaries.\n- **writing a client \u002F UI** -> render purity · never-block-the-event-loop · validation placement ·\n  input controls that prevent invalid input.\n- **writing concurrency** -> prefer concurrency over locks · explicit ordering\u002Fidempotency · normalize state.\n- **writing an API \u002F contract** -> protocol by shape · versioning · pagination\u002Fdelivery · idempotency ·\n  error envelope · public-API\u002Freusable-code design posture.\n- **repeated conditionals \u002F polymorphism** -> Strategy\u002FState over repeated branching; choose the\n  polymorphism mechanism (functional vs inheritance\u002Finterfaces) deliberately.\n- **per-stack** -> the `language:\u003Cstack>` rules for the resolved stack (e.g. C# nullable\u002Ffile-scoped +\n  analyzers; Go small interfaces + gofmt; Python typing + ruff\u002Fmypy; C\u002FC++ ownership + clang-tidy\u002Fsafety).\n\nState the rules that bind THIS task, then write the code following them. Re-invoke for the next task\u002Ffile.\n\n## Dependency policy (FR-013)\n\nHonor the manifest's `dependency_policy`:\n\n- Default stance is **use existing project tools \u002F no new dependency** — do NOT silently add a package.\n- If the policy lists an approved dependency, follow its captured constraints (version, license posture,\n  coupling\u002Freplaceability notes). If you believe a NEW dependency is needed and it is not in the policy,\n  **surface that to the human** (it is a dependency-selection decision), do not just add it.\n\n## Fail-open (never block, never crash)\n\n- **No manifest** -> baseline-only mode (the catalog `baseline-default` rules). Say so briefly.\n- **Unknown rule id** in the manifest (catalog changed) -> note it and skip that id; keep going.\n- **Malformed manifest \u002F overlay** -> warn and fall back to the shipped catalog baseline; never crash.\n\n## When to Use\n\n- At **implement** time — before and while writing source files. Re-invoke per task \u002F file type so the\n  surfaced rules match what you are writing.\n- It is a reader: it never edits the manifest, the catalog, or itself. The workshop (design-time) writes the\n  manifest; this skill only reads it.\n\n## Review note\n\nThis skill is doing its job when, in a dogfood: the generated code visibly reflects the manifest's chosen\nrules (DI posture, naming, size, the decided forks), the human did not have to re-paste rules, and a new\ndependency was never added without surfacing the decision. That dogfood (on the deployed module) is the\nacceptance gate (SC-004 \u002F SC-007 \u002F SC-008) — not unit-green.\n",{"name":5,"domain":24,"source":25,"confidence":26,"description":7},"lifecycle-implementation","Specrew Feature 177 (Code & Implementation Lens, Proposal 163) — the implement-time half: read the design-time manifest and actively guide the coding agent. No 145 mechanical gate; guidance, not a gate.","high","main","176da577bfd98859f793bdd1312690c6c3940c67",".agents\u002Fskills\u002Fspecrew-code-rules","https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI","https:\u002F\u002Fgithub.com\u002Falonf","http:\u002F\u002Falonfliess.me","CTO & Founder of Zionet.\r\nMicrosoft Regional Director and Foundry MVP.\r\n","2026-08-28 05:21:35",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add alonf\u002FKeyContextAI --skill specrew-code-rules",{"tool":41,"command":42},"bunx","bunx skills add alonf\u002FKeyContextAI --skill specrew-code-rules",{"tool":44,"command":45},"pnpm","pnpm dlx skills add alonf\u002FKeyContextAI --skill specrew-code-rules","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fspecrew-code-rules\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},".specrew-managed","OTHER","其他",75,"https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fspecrew-code-rules\u002F.specrew-managed",[56,63,70,77,84,91],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7AVHRWWXA0BQ5PXNA8FG30W","windows-compatibility","Cross-platform path handling and command patterns","https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fwindows-compatibility\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7AVHABPRYXYM3GWJY1RW92A","versioning-policy","Semver versioning rules for Squad SDK and CLI — prevents prerelease version incidents","https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fversioning-policy\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7AVH4KNP3TCVQDRVS70VP19","tiered-memory","Three-tier agent memory model (hot\u002Fcold\u002Fwiki) for context reduction per spawn","https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Ftiered-memory\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7AVH18JDSA55Z7KK2GH6X49","test-discipline","Update tests when changing APIs — no exceptions","https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Ftest-discipline\u002FSKILL.md",[],[],{"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":19},"01M7AVGVGWYD7NBNXAV4PAZJ92","squad","Squad's command catalog and interactive menu. Invoke via \u002Fsquad (slash command) or natural language (\"squad commands\", \"what can squad do\", \"show me squad options\"). Presents categorized operations (Install & Upgrade, Team Management, Issues & PRs, Plugins & Skills, Model & Cost, Sessions & State) as an interactive picker. Routes to the right squad CLI command or the Squad coordinator agent.","https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fsquad\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7AVGPSFT1WHW3PK35DHS5XK","squad-version-check","Internals of how @bradygaster\u002Fsquad-cli stamps its version, how `squad upgrade` works (what it preserves vs overwrites), and how to probe the npm registry for the latest version from a coordinator prompt.","https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fsquad-version-check\u002FSKILL.md",[],[]]