[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7829FVN1W8ST635NFCD51Y8":3,"skill-same:01M7829FVN1W8ST635NFCD51Y8":47},{"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":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7829FVN1W8ST635NFCD51Y8","writing-agents-config",null,"Persist 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\u002Fpersist","stainless-code","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F188862219?v=4","01M7826VYMCF2NTQWQZRWQ454T","STAINLESS CODE","01M7826VZKNC149Y9ZNK0F93N7",5,"MIT","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Fpersist\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-agents-config\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: writing-agents-config\ndescription: Persist 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 (persist 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 (persist)\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 (persist)\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`), `docs-voice` (skill + `docs-voice-priming`), `product-tenets` (skill-only), `update-docs` (skill-only, `apps\u002Fdocs` sync), `minimum-diff` (user-only), `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## Persist-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**`); `docs-voice-priming` (`apps\u002Fdocs\u002F**`) — Persist keeps voice priming (Layers is skill-only) so competitor framing auto-loads on docs edits.\n- **Intent-only skills** — `improve-codebase-architecture`, `domain-modeling`, `docs-lifecycle-sweep`, `diagnosing-bugs`, `tdd`, `pr-comment-fact-check`, `harden-pr`, `update-docs`. 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- **Seam vocabulary** — backends \u002F codecs \u002F sources \u002F frameworks \u002F transport; zero-dep `src\u002Fcore\u002F`; optional peers via subpath imports — see [`architecture-priming`](..\u002F..\u002Frules\u002Farchitecture-priming.md) and [`product-tenets`](..\u002Fproduct-tenets\u002FSKILL.md).\n\n## Anti-patterns (persist)\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 `src\u002F`, seams, `bun` scripts, `origin\u002Fmain`\n- ❌ Treating query-cache persisters as Persist competitors in docs ([`docs-voice`](..\u002Fdocs-voice\u002FSKILL.md))\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 (persist 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 (persist)\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 (persist)\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`), `docs-voice` (skill + `docs-voice-priming`), `product-tenets` (skill-only), `update-docs` (skill-only, `apps\u002Fdocs` sync), `minimum-diff` (user-only), `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## Persist-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**`); `docs-voice-priming` (`apps\u002Fdocs\u002F**`) — Persist keeps voice priming (Layers is skill-only) so competitor framing auto-loads on docs edits.\n- **Intent-only skills** — `improve-codebase-architecture`, `domain-modeling`, `docs-lifecycle-sweep`, `diagnosing-bugs`, `tdd`, `pr-comment-fact-check`, `harden-pr`, `update-docs`. 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- **Seam vocabulary** — backends \u002F codecs \u002F sources \u002F frameworks \u002F transport; zero-dep `src\u002Fcore\u002F`; optional peers via subpath imports — see [`architecture-priming`](..\u002F..\u002Frules\u002Farchitecture-priming.md) and [`product-tenets`](..\u002Fproduct-tenets\u002FSKILL.md).\n\n## Anti-patterns (persist)\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 `src\u002F`, seams, `bun` scripts, `origin\u002Fmain`\n- ❌ Treating query-cache persisters as Persist competitors in docs ([`docs-voice`](..\u002Fdocs-voice\u002FSKILL.md))\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","29ca2183c92cd13e04ce6c14fb431fd6993862cd",".agents\u002Fskills\u002Fwriting-agents-config",0,"https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Fpersist","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":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add stainless-code\u002Fpersist --skill writing-agents-config",{"tool":39,"command":40},"bunx","bunx skills add stainless-code\u002Fpersist --skill writing-agents-config",{"tool":42,"command":43},"pnpm","pnpm dlx skills add stainless-code\u002Fpersist --skill writing-agents-config","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Fpersist\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-agents-config\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M782D4ZQGJPNT470FSKDB6A8","vue-persist","Gate Vue 3 UI on Persist hydration with useHydrated (shallowRef). Use in setup\u002FeffectScope when avoiding flash of default state on async backends.","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Fpersist\u002Fblob\u002Fmain\u002Fskills\u002Fvue-persist\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M782D1GJRWNQ3458F3H1FK2F","svelte-store-persist","Gate Svelte store-based UI on Persist hydration with hydratedStore (Readable). Use for Svelte 3–4 or Svelte 5 apps that still use stores; runes UI → svelte-persist.","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Fpersist\u002Fblob\u002Fmain\u002Fskills\u002Fsvelte-store-persist\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M782CWBTRWAQ52TBNQ8665CC","svelte-persist","Gate Svelte 5 runes UI on Persist hydration with hydratedRune (.current). Use for Svelte 5; for stores \u002F Svelte 3–4 use svelte-store-persist.","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Fpersist\u002Fblob\u002Fmain\u002Fskills\u002Fsvelte-persist\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M782CR8Z2V3SJW661RTMWY2F","solid-persist","Gate Solid UI on Persist hydration with useHydrated (Accessor). Use when avoiding flash of default state on async backends; read hydrated() in reactive scopes.","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Fpersist\u002Fblob\u002Fmain\u002Fskills\u002Fsolid-persist\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M782CJQGP7739WA9BS801HZP","react-persist","Gate React UI on Persist hydration with useHydrated + toHydrationSignal. Use when avoiding flash of default state on async backends (IndexedDB), SSR snapshot true, or wiring HydrationSignal into React 18\u002F19.","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Fpersist\u002Fblob\u002Fmain\u002Fskills\u002Freact-persist\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M782CF96RMXCDETM5TF2JDRV","preact-persist","Gate Preact UI on Persist hydration with useHydrated (preact\u002Fcompat useSyncExternalStore). Use when avoiding flash of default state on async backends or wiring HydrationSignal into Preact.","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Fpersist\u002Fblob\u002Fmain\u002Fskills\u002Fpreact-persist\u002FSKILL.md",[],[]]