[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78CRJ47R8XTFFYA99X7F6QE":3,"skill-same:01M78CRJ47R8XTFFYA99X7F6QE":48},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M78CRJ47R8XTFFYA99X7F6QE","writing-agents-config",null,"Layers repo hybrid deltas for .agents\u002F — tiers, rule-skill pairing, repo exemplars. Use when creating or reviewing rules\u002Fskills in this repo. Read writing-great-skills first for skill vocabulary and authoring principles.","stainless-code\u002Flayers","stainless-code","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F188862219?v=4","01M7826VYMCF2NTQWQZRWQ454T","STAINLESS CODE","01M78CPK4PDPTTAGE6Q5TPCM3M",4,"MIT","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Flayers\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-agents-config\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: writing-agents-config\ndescription: Layers repo hybrid deltas for .agents\u002F — tiers, rule-skill pairing, repo exemplars. Use when creating or reviewing rules\u002Fskills in this repo. Read writing-great-skills first for skill vocabulary and authoring principles.\n---\n\n# Writing agents config (layers hybrid deltas)\n\n**Read first:** [`writing-great-skills`](..\u002Fwriting-great-skills\u002FSKILL.md) — invocation, information hierarchy, completion criteria, pruning, failure modes.\n\nThis repo adds **Cursor rules** (Tier 1\u002F2\u002F3) on top of a skills-only agent model — always-on STOP rules where cross-turn non-negotiables beat description-only triggers.\n\n**Tier framework:** [`agents-tier-system`](..\u002Fagents-tier-system\u002FSKILL.md) · **Layout:** [`agents-first-convention`](..\u002F..\u002Frules\u002Fagents-first-convention.md).\n\n## Attachment decision tree (layers)\n\n1. **Every turn, non-negotiable?** → Tier 1 (`alwaysApply: true`) — **≤40 lines** STOP + pointers\n2. **File-scoped pattern?** → Tier 2 (`globs:`) — thin priming; depth in paired skill\n3. **Intent-only workflow?** → Tier 3 or skill-only — no always-on tax (bug diagnosis, doc sweeps)\n4. **User slash-command only?** → `disable-model-invocation: true` wrapper → model skill(s)\n\n## Pairing checklist (layers)\n\n| Check           | Pass when                                                                                                               |\n| --------------- | ----------------------------------------------------------------------------------------------------------------------- |\n| Priming size    | Rule ~10–40L; procedures in skill or sibling                                                                            |\n| Bidirectional   | Rule → skill in Reference; skill → rule where paired                                                                    |\n| No duplication  | SSOT in skill; rule has STOP rows or pointers only                                                                      |\n| Inventory drift | Tier-1 set discovered via the frontmatter audit in `agents-tier-system` rule — not hardcoded name lists in README\u002Fskill |\n| Triggers        | Per `writing-great-skills` — one branch per intent in `description`                                                     |\n\n## SKILL.md size tiers\n\nRules cap at **≤40L**; skills use progressive disclosure (`writing-great-skills` **sprawl**). Line count is a **hygiene signal**, not a hard gate — split for structure, not to hit a number.\n\n| Lines      | Target                                                                                           |\n| ---------- | ------------------------------------------------------------------------------------------------ |\n| **≤60**    | Default for **new** skills                                                                       |\n| **61–120** | OK for one **single-path** workflow with checkable completion criteria                           |\n| **>120**   | **Audit** — review for sprawl; disclose to siblings when structure says split                    |\n| **>140**   | **Split** unless an explicit bulk reference hub (`FULL-GUIDE.md`, `WORKFLOW.md`, `REFERENCE.md`) |\n\n**Split when:** branching paths, reference encyclopedia in `SKILL.md`, **premature-completion** risk, or **sediment** — disclose to siblings (`WORKFLOW.md`, `REFERENCE.md`, `LANGUAGE.md`, `PROSE.md`).\n\n**Don't split when:** every line is ordered steps for one branch; splitting forces a multi-file hop mid-checklist.\n\n```bash\n# Review tail (>120L) — split only when table above says so\nfind .agents\u002Fskills -name SKILL.md -exec sh -c 'n=$(wc -l \u003C \"$1\"); [ \"$n\" -gt 120 ] && printf \"%3d %s\\n\" \"$n\" \"$1\"' _ {} \\;\n```\n\n## Repo exemplars\n\n`tracer-bullets` (rule, single file), `harden-pr` (SKILL + `WORKFLOW.md` + `LEDGER.md`), `docs-governance` (SKILL + `LIFECYCLE.md`), `improve-codebase-architecture` (SKILL + `LANGUAGE.md` + `REFERENCE.md`), `authoring-discipline` (rule + `PROSE.md`), `verify-after-each-step` (slim rule + skill), `agents-tier-system` (rule + skill).\n\n## User-only router\n\n[`ask-agents`](..\u002Fask-agents\u002FSKILL.md) — `grill-me`, `grill-with-docs`, `teach`, `writing-great-skills`, `writing-agents-config`, `minimum-diff`. Wrappers **≤10 lines**.\n\n## Layers-specific tradeoffs\n\n- **Tier-2 attach** — `agents-tier-system` (`.agents\u002Frules\u002F**`, `.agents\u002Fskills\u002F**`, `.cursor\u002Frules\u002F**`); `docs-governance-priming` (`docs\u002F**`, `.agents\u002F**`, `.cursor\u002F**`).\n- **Intent-only skills** — `improve-codebase-architecture`, `domain-modeling`, `docs-lifecycle-sweep`, `diagnosing-bugs`, `tdd`, `pr-comment-fact-check`, `harden-pr`. No glob (no per-file tax).\n- **Cross-skill links** — relative `..\u002Fskill\u002FSKILL.md` and sibling files resolve reliably in Cursor agents. Relative links inside `.agents\u002F` are an **intentional delta**, not drift.\n- **Small-lib surface** — no per-feature `docs\u002F` subtrees, no UI-component skills, no API-client\u002Fcodegen skills. Don't add a skill governing tooling this repo lacks (a rule referencing a nonexistent script is worse than no rule).\n\n## Anti-patterns (layers)\n\n- ❌ Fat always-on rule with procedures (slim → skill)\n- ❌ README skill inventories that drift (discover via `ls` + frontmatter audit)\n- ❌ Brittle anchors in committed source ([`authoring-discipline`](..\u002F..\u002Frules\u002Fauthoring-discipline.md))\n- ❌ External-monorepo artifact leakage in examples — use `packages\u002Fcore\u002Fsrc\u002F`, `packages\u002F\u003Cfw>\u002Fsrc\u002F`, the package-level core\u002Fadapter seam, `bun` scripts, `origin\u002Fmain`\n\n## Reference\n\n- Skill authoring SSOT: [`writing-great-skills`](..\u002Fwriting-great-skills\u002FSKILL.md)\n- Tiers + audit: [`agents-tier-system`](..\u002Fagents-tier-system\u002FSKILL.md)\n- Docs lifecycle: [`docs-governance`](..\u002Fdocs-governance\u002FSKILL.md)\n","# Writing agents config (layers hybrid deltas)\n\n**Read first:** [`writing-great-skills`](..\u002Fwriting-great-skills\u002FSKILL.md) — invocation, information hierarchy, completion criteria, pruning, failure modes.\n\nThis repo adds **Cursor rules** (Tier 1\u002F2\u002F3) on top of a skills-only agent model — always-on STOP rules where cross-turn non-negotiables beat description-only triggers.\n\n**Tier framework:** [`agents-tier-system`](..\u002Fagents-tier-system\u002FSKILL.md) · **Layout:** [`agents-first-convention`](..\u002F..\u002Frules\u002Fagents-first-convention.md).\n\n## Attachment decision tree (layers)\n\n1. **Every turn, non-negotiable?** → Tier 1 (`alwaysApply: true`) — **≤40 lines** STOP + pointers\n2. **File-scoped pattern?** → Tier 2 (`globs:`) — thin priming; depth in paired skill\n3. **Intent-only workflow?** → Tier 3 or skill-only — no always-on tax (bug diagnosis, doc sweeps)\n4. **User slash-command only?** → `disable-model-invocation: true` wrapper → model skill(s)\n\n## Pairing checklist (layers)\n\n| Check           | Pass when                                                                                                               |\n| --------------- | ----------------------------------------------------------------------------------------------------------------------- |\n| Priming size    | Rule ~10–40L; procedures in skill or sibling                                                                            |\n| Bidirectional   | Rule → skill in Reference; skill → rule where paired                                                                    |\n| No duplication  | SSOT in skill; rule has STOP rows or pointers only                                                                      |\n| Inventory drift | Tier-1 set discovered via the frontmatter audit in `agents-tier-system` rule — not hardcoded name lists in README\u002Fskill |\n| Triggers        | Per `writing-great-skills` — one branch per intent in `description`                                                     |\n\n## SKILL.md size tiers\n\nRules cap at **≤40L**; skills use progressive disclosure (`writing-great-skills` **sprawl**). Line count is a **hygiene signal**, not a hard gate — split for structure, not to hit a number.\n\n| Lines      | Target                                                                                           |\n| ---------- | ------------------------------------------------------------------------------------------------ |\n| **≤60**    | Default for **new** skills                                                                       |\n| **61–120** | OK for one **single-path** workflow with checkable completion criteria                           |\n| **>120**   | **Audit** — review for sprawl; disclose to siblings when structure says split                    |\n| **>140**   | **Split** unless an explicit bulk reference hub (`FULL-GUIDE.md`, `WORKFLOW.md`, `REFERENCE.md`) |\n\n**Split when:** branching paths, reference encyclopedia in `SKILL.md`, **premature-completion** risk, or **sediment** — disclose to siblings (`WORKFLOW.md`, `REFERENCE.md`, `LANGUAGE.md`, `PROSE.md`).\n\n**Don't split when:** every line is ordered steps for one branch; splitting forces a multi-file hop mid-checklist.\n\n```bash\n# Review tail (>120L) — split only when table above says so\nfind .agents\u002Fskills -name SKILL.md -exec sh -c 'n=$(wc -l \u003C \"$1\"); [ \"$n\" -gt 120 ] && printf \"%3d %s\\n\" \"$n\" \"$1\"' _ {} \\;\n```\n\n## Repo exemplars\n\n`tracer-bullets` (rule, single file), `harden-pr` (SKILL + `WORKFLOW.md` + `LEDGER.md`), `docs-governance` (SKILL + `LIFECYCLE.md`), `improve-codebase-architecture` (SKILL + `LANGUAGE.md` + `REFERENCE.md`), `authoring-discipline` (rule + `PROSE.md`), `verify-after-each-step` (slim rule + skill), `agents-tier-system` (rule + skill).\n\n## User-only router\n\n[`ask-agents`](..\u002Fask-agents\u002FSKILL.md) — `grill-me`, `grill-with-docs`, `teach`, `writing-great-skills`, `writing-agents-config`, `minimum-diff`. Wrappers **≤10 lines**.\n\n## Layers-specific tradeoffs\n\n- **Tier-2 attach** — `agents-tier-system` (`.agents\u002Frules\u002F**`, `.agents\u002Fskills\u002F**`, `.cursor\u002Frules\u002F**`); `docs-governance-priming` (`docs\u002F**`, `.agents\u002F**`, `.cursor\u002F**`).\n- **Intent-only skills** — `improve-codebase-architecture`, `domain-modeling`, `docs-lifecycle-sweep`, `diagnosing-bugs`, `tdd`, `pr-comment-fact-check`, `harden-pr`. No glob (no per-file tax).\n- **Cross-skill links** — relative `..\u002Fskill\u002FSKILL.md` and sibling files resolve reliably in Cursor agents. Relative links inside `.agents\u002F` are an **intentional delta**, not drift.\n- **Small-lib surface** — no per-feature `docs\u002F` subtrees, no UI-component skills, no API-client\u002Fcodegen skills. Don't add a skill governing tooling this repo lacks (a rule referencing a nonexistent script is worse than no rule).\n\n## Anti-patterns (layers)\n\n- ❌ Fat always-on rule with procedures (slim → skill)\n- ❌ README skill inventories that drift (discover via `ls` + frontmatter audit)\n- ❌ Brittle anchors in committed source ([`authoring-discipline`](..\u002F..\u002Frules\u002Fauthoring-discipline.md))\n- ❌ External-monorepo artifact leakage in examples — use `packages\u002Fcore\u002Fsrc\u002F`, `packages\u002F\u003Cfw>\u002Fsrc\u002F`, the package-level core\u002Fadapter seam, `bun` scripts, `origin\u002Fmain`\n\n## Reference\n\n- Skill authoring SSOT: [`writing-great-skills`](..\u002Fwriting-great-skills\u002FSKILL.md)\n- Tiers + audit: [`agents-tier-system`](..\u002Fagents-tier-system\u002FSKILL.md)\n- Docs lifecycle: [`docs-governance`](..\u002Fdocs-governance\u002FSKILL.md)\n",{"name":5,"description":7},"main","48cb8dae2773a543acd30d0e1af92f9cda91b35a",".agents\u002Fskills\u002Fwriting-agents-config",0,"https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Flayers","https:\u002F\u002Fstainless-code.com\u002Flayers","https:\u002F\u002Fgithub.com\u002Fstainless-code","https:\u002F\u002Fstainless-code.com\u002F","Open-source tooling for JS\u002FTS and AI agents.","2026-11-01 20:56:20",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add stainless-code\u002Flayers --skill writing-agents-config",{"tool":40,"command":41},"bunx","bunx skills add stainless-code\u002Flayers --skill writing-agents-config",{"tool":43,"command":44},"pnpm","pnpm dlx skills add stainless-code\u002Flayers --skill writing-agents-config","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Flayers\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-agents-config\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M78CSV0ENFT6T2C1KN4J76HN","vue-layers","Vue adapter for @stainless-code\u002Fvue-layers; open UI from anywhere and manage ordered, named stacks with typed or fire-and-forget `open`","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Flayers\u002Fblob\u002Fmain\u002Fpackages\u002Fvue\u002Fskills\u002Fvue-layers\u002FSKILL.md",[],[],{"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},"01M78CSPDPYQ02J822EZNJ0KS6","svelte-layers","Svelte bindings for @stainless-code\u002Fsvelte-layers (runes + stores). Use to open overlay UI imperatively from anywhere, manage ordered named stacks, choose the Svelte 5.7+ runes or Svelte 3+ stores entry, and wire layer context or stack outlets.","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Flayers\u002Fblob\u002Fmain\u002Fpackages\u002Fsvelte\u002Fskills\u002Fsvelte-layers\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},"01M78CSH8P22QAVQWSY6J4D8FQ","solid-layers","SolidJS adapter for @stainless-code\u002Fsolid-layers; open UI from anywhere and manage ordered, named stacks with typed or fire-and-forget `open`","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Flayers\u002Fblob\u002Fmain\u002Fpackages\u002Fsolid\u002Fskills\u002Fsolid-layers\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},"01M78CSCQE83B2VEM4JAW5FAFP","react-layers","React adapter for @stainless-code\u002Freact-layers; open UI from anywhere and manage ordered, named stacks with typed or fire-and-forget `open`","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Flayers\u002Fblob\u002Fmain\u002Fpackages\u002Freact\u002Fskills\u002Freact-layers\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},"01M78CS7RYJ25PK8ASR150R8QS","preact-layers","Preact adapter for @stainless-code\u002Fpreact-layers — use for awaitable confirm flows, singleton toasts, nested drawers, stack subscriptions, and custom layer hosts","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Flayers\u002Fblob\u002Fmain\u002Fpackages\u002Fpreact\u002Fskills\u002Fpreact-layers\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},"01M78CS44RJHSXYT13KZKQPNY3","lit-layers","Lit adapter for @stainless-code\u002Flit-layers; open UI from anywhere and manage ordered, named stacks with typed or fire-and-forget `open` via Reactive Controllers and custom elements","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Flayers\u002Fblob\u002Fmain\u002Fpackages\u002Flit\u002Fskills\u002Flit-layers\u002FSKILL.md",[],[]]