[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B3JD5X32VEBDBN7HB8E17Z":3,"skill-same:01M7B3JD5X32VEBDBN7HB8E17Z":51},{"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":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M7B3JD5X32VEBDBN7HB8E17Z","writing-skills",null,"Use when authoring or editing a skill, agent, command or hook for this kit, or when deciding whether a piece of guidance belongs in a skill at all.","vadimvitvickiy\u002Fvv-agent-kit","vadimvitvickiy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F5019512?v=4","01M7B3ABRYF7KHBCDW6GB2XH0C","Vadim Vitvitskii","01M7B3ABSZYG9MXP1CC7BQYM25",0,"MIT","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: writing-skills\ndescription: Use when authoring or editing a skill, agent, command or hook for this kit, or when deciding whether a piece of guidance belongs in a skill at all.\n---\n\n# Writing skills\n\n**A defect here is inherited silently by every project that installs the plugin.** Nothing checks a\nskill against a compiler; the care taken writing it is the only guard.\n\n## Does it belong in a skill?\n\n| The guidance is | It belongs in |\n|-|-|\n| True in any repo, needed only for some tasks | a skill |\n| True in any repo, needed on literally every turn | `hooks\u002Fusing-vvkit.md`, injected at session start — a plugin's own `CLAUDE.md` is never loaded |\n| Specific to one repo | `templates\u002F`, or a stack plugin's `templates\u002F` and `rules\u002F`, scaffolded in and owned by that repo |\n| A rule that must hold whether or not the model cooperates | a hook |\n| A task with its own context window and a narrow tool set | an agent |\n\n**Does this text stay true in another repo?** A target or scheme name, a script path, a module\nlayout, a ticket prefix, a branch rule, a CI job name — each means you are writing a template.\n\n## The cost model\n\n- Only `name` and `description` are preloaded — in every session, in every repo. The body is free\n  until invoked.\n- The listing has a budget (~1% of context). **On overflow, descriptions are dropped from the least\n  invoked skills first**, and a skill with no description stops triggering. A marginal skill taxes the\n  ones that earn their place. Ship fewer, better.\n- The body enters once and **stays for the session, unread again.** Write standing instructions, not\n  a one-shot procedure.\n- After compaction only the first ~5,000 tokens of each recent skill are re-attached. **Load-bearing\n  rule near the top.**\n- **Every rule competes with every other.** In IFScale (Jaroslawicz et al., 2025, 20 models) the best\n  reached 68% at 500 instructions, biased toward the first. Merge rules that say the same thing; when\n  one goes in, look for one to take out.\n\n## Body style\n\n- **H1, then the load-bearing rule in bold**, one or two sentences.\n- **Sections of short bullets.** Each bullet is the rule; the reason follows in a clause only where it\n  is not obvious. No narrative paragraphs, no recap at the end.\n- Keep every measured number and named failure — that is what changes behavior. Cut the prose around\n  it.\n- Tables for decisions (situation → action); checklists for multi-step gates; code blocks only for\n  commands and shapes the agent copies.\n\n## The description contract\n\nThird person. Starts with `Use when`. **Triggering conditions only.**\n\n- A description that summarizes the procedure gets substituted for the body: the agent believes it\n  has the rule and never opens the file. The superpowers plugin reports a description saying \"code\n  review between tasks\" producing one review where the body required two.\n- Anthropic's examples pair what with when; this kit keeps triggers only, and its skills still fired\n  first in every run measured.\n\n```yaml\n# No — narrates the workflow, so it becomes the workflow\ndescription: Reviews the diff, dispatches a reviewer per language, then reports findings by severity.\n\n# Yes — states only when to reach for it\ndescription: Use when reading a diff or pull request for defects, or when acting as the reviewer on a change you did not write.\n```\n\n- Use the words someone would actually use, including the *situation* — \"a test fails\", \"behavior\n  does not match expectation\". Undertriggering is the common failure.\n- Primary case first: entries are capped, and the tail is cut.\n\n## Naming\n\n- Neutral skills: verb-first gerunds — `writing-tests`. Stack skills: stack prefix — `swift-testing`,\n  in `plugins\u002F\u003Cstack>\u002Fskills\u002F`, invoked as `vvkit-swift:swift-testing`. Plugins install per project; a\n  single plugin skill cannot be hidden.\n- **`name` equals the directory.** A mismatch makes a cross-reference that looks right and resolves to\n  nothing.\n- A stack skill opens with `**REQUIRED BACKGROUND:** vvkit:\u003Cneutral-skill>` and does not restate it.\n  Restated rules drift until two contradict in front of a user.\n\n## Earning a claim\n\n- Every assertion has a measured number or a named failure behind it. \"Prefer small functions\" is\n  already believed; \"200 owners produced 209 initialisations and 201 distinct objects\" changes the next\n  action.\n- Can't say how you know it: it is filler, and filler makes agents skim. Say where a number comes from,\n  and whether measured or reported.\n- Plain emphasis. Anthropic advises dialing back \"CRITICAL\" and \"MUST\"; current models overreact.\n\n## Splitting into `references\u002F`\n\n- Move out material over ~100 lines, or needed by a minority of invocations — a field table, an API\n  surface, a long example.\n- **Link by plain relative path, never `@`**, which loads it whenever the skill loads.\n- A reference over 100 lines opens with a table of contents; references stay one level deep. Agents\n  preview with `head`. The validator checks the contents rule.\n- Name the interpreter for bundled scripts — `bash scripts\u002Ftool.sh`. Packagers can strip the\n  executable bit.\n- Frontmatter fields and the validator's rules: `references\u002Ffrontmatter.md`.\n\n## Test the behavior, not only the structure\n\nThe validator proves well-formed, not effective. A skill that changes nothing is pure listing cost.\n\n- `claude -p \"\u003Ctask>\" --plugin-dir \u003Crepo> --output-format stream-json --verbose` loads an unpushed tree\n  and logs every `Skill` call. `claude plugin eval` runs a checked-in suite with a no-plugin baseline.\n- **Before writing:** give a fresh subagent the tempting task **without** the skill; record what it\n  does and its reasons, verbatim. Already behaves: stop. Otherwise target those reasons, re-run with\n  the skill, repeat until it complies.\n- **Five runs per variant**, minimum. Wide disagreement means the wording does not bind yet.\n- **Pressure-test discipline skills** with three or more of: time, sunk cost, authority, exhaustion,\n  \"be pragmatic\". Concrete paths, a forced choice, \"what do you do?\", no \"I would ask\" exit. Test\n  techniques on a new case, references by whether the right entry is found.\n- **Close each rationalization where it appears:** a negation in the rule, an excuse\u002Freality table\n  row, a red-flag thought. Re-run; one closed loophole often opens the next.\n- **Match form to failure.** Broken under pressure: a prohibition plus the rationalizations it answers.\n  Wrong output shape: a recipe — parts in order; prohibitions on shape get negotiated (superpowers\n  wording tests, reported). A three-line report recipe in `writing-tests` took naming the caught bug\n  from 0 of 3 runs to 3 of 3. Multi-step workflow: a checklist the agent copies and checks off.\n\n## Before shipping\n\n- [ ] `.\u002Fscripts\u002Fvalidate.sh` exits 0\n- [ ] `.\u002Fscripts\u002Fvalidate.sh tests\u002Ffixtures` still exits 1 — a validator that passes everything is\n      worse than none\n- [ ] `claude plugin validate .` exits 0\n- [ ] **The version in `plugin.json` is bumped.** Installs are cached per version; an unbumped push\n      reports success and changes nothing, exactly like a skill that failed to load\n- [ ] `claude plugin marketplace update vv-agent-kit && claude plugin details vvkit` shows the new\n      component\n- [ ] Every claim in the body is one you could source if asked\n- [ ] A fresh subagent showed the failure without the skill, and not with it\n","# Writing skills\n\n**A defect here is inherited silently by every project that installs the plugin.** Nothing checks a\nskill against a compiler; the care taken writing it is the only guard.\n\n## Does it belong in a skill?\n\n| The guidance is | It belongs in |\n|-|-|\n| True in any repo, needed only for some tasks | a skill |\n| True in any repo, needed on literally every turn | `hooks\u002Fusing-vvkit.md`, injected at session start — a plugin's own `CLAUDE.md` is never loaded |\n| Specific to one repo | `templates\u002F`, or a stack plugin's `templates\u002F` and `rules\u002F`, scaffolded in and owned by that repo |\n| A rule that must hold whether or not the model cooperates | a hook |\n| A task with its own context window and a narrow tool set | an agent |\n\n**Does this text stay true in another repo?** A target or scheme name, a script path, a module\nlayout, a ticket prefix, a branch rule, a CI job name — each means you are writing a template.\n\n## The cost model\n\n- Only `name` and `description` are preloaded — in every session, in every repo. The body is free\n  until invoked.\n- The listing has a budget (~1% of context). **On overflow, descriptions are dropped from the least\n  invoked skills first**, and a skill with no description stops triggering. A marginal skill taxes the\n  ones that earn their place. Ship fewer, better.\n- The body enters once and **stays for the session, unread again.** Write standing instructions, not\n  a one-shot procedure.\n- After compaction only the first ~5,000 tokens of each recent skill are re-attached. **Load-bearing\n  rule near the top.**\n- **Every rule competes with every other.** In IFScale (Jaroslawicz et al., 2025, 20 models) the best\n  reached 68% at 500 instructions, biased toward the first. Merge rules that say the same thing; when\n  one goes in, look for one to take out.\n\n## Body style\n\n- **H1, then the load-bearing rule in bold**, one or two sentences.\n- **Sections of short bullets.** Each bullet is the rule; the reason follows in a clause only where it\n  is not obvious. No narrative paragraphs, no recap at the end.\n- Keep every measured number and named failure — that is what changes behavior. Cut the prose around\n  it.\n- Tables for decisions (situation → action); checklists for multi-step gates; code blocks only for\n  commands and shapes the agent copies.\n\n## The description contract\n\nThird person. Starts with `Use when`. **Triggering conditions only.**\n\n- A description that summarizes the procedure gets substituted for the body: the agent believes it\n  has the rule and never opens the file. The superpowers plugin reports a description saying \"code\n  review between tasks\" producing one review where the body required two.\n- Anthropic's examples pair what with when; this kit keeps triggers only, and its skills still fired\n  first in every run measured.\n\n```yaml\n# No — narrates the workflow, so it becomes the workflow\ndescription: Reviews the diff, dispatches a reviewer per language, then reports findings by severity.\n\n# Yes — states only when to reach for it\ndescription: Use when reading a diff or pull request for defects, or when acting as the reviewer on a change you did not write.\n```\n\n- Use the words someone would actually use, including the *situation* — \"a test fails\", \"behavior\n  does not match expectation\". Undertriggering is the common failure.\n- Primary case first: entries are capped, and the tail is cut.\n\n## Naming\n\n- Neutral skills: verb-first gerunds — `writing-tests`. Stack skills: stack prefix — `swift-testing`,\n  in `plugins\u002F\u003Cstack>\u002Fskills\u002F`, invoked as `vvkit-swift:swift-testing`. Plugins install per project; a\n  single plugin skill cannot be hidden.\n- **`name` equals the directory.** A mismatch makes a cross-reference that looks right and resolves to\n  nothing.\n- A stack skill opens with `**REQUIRED BACKGROUND:** vvkit:\u003Cneutral-skill>` and does not restate it.\n  Restated rules drift until two contradict in front of a user.\n\n## Earning a claim\n\n- Every assertion has a measured number or a named failure behind it. \"Prefer small functions\" is\n  already believed; \"200 owners produced 209 initialisations and 201 distinct objects\" changes the next\n  action.\n- Can't say how you know it: it is filler, and filler makes agents skim. Say where a number comes from,\n  and whether measured or reported.\n- Plain emphasis. Anthropic advises dialing back \"CRITICAL\" and \"MUST\"; current models overreact.\n\n## Splitting into `references\u002F`\n\n- Move out material over ~100 lines, or needed by a minority of invocations — a field table, an API\n  surface, a long example.\n- **Link by plain relative path, never `@`**, which loads it whenever the skill loads.\n- A reference over 100 lines opens with a table of contents; references stay one level deep. Agents\n  preview with `head`. The validator checks the contents rule.\n- Name the interpreter for bundled scripts — `bash scripts\u002Ftool.sh`. Packagers can strip the\n  executable bit.\n- Frontmatter fields and the validator's rules: `references\u002Ffrontmatter.md`.\n\n## Test the behavior, not only the structure\n\nThe validator proves well-formed, not effective. A skill that changes nothing is pure listing cost.\n\n- `claude -p \"\u003Ctask>\" --plugin-dir \u003Crepo> --output-format stream-json --verbose` loads an unpushed tree\n  and logs every `Skill` call. `claude plugin eval` runs a checked-in suite with a no-plugin baseline.\n- **Before writing:** give a fresh subagent the tempting task **without** the skill; record what it\n  does and its reasons, verbatim. Already behaves: stop. Otherwise target those reasons, re-run with\n  the skill, repeat until it complies.\n- **Five runs per variant**, minimum. Wide disagreement means the wording does not bind yet.\n- **Pressure-test discipline skills** with three or more of: time, sunk cost, authority, exhaustion,\n  \"be pragmatic\". Concrete paths, a forced choice, \"what do you do?\", no \"I would ask\" exit. Test\n  techniques on a new case, references by whether the right entry is found.\n- **Close each rationalization where it appears:** a negation in the rule, an excuse\u002Freality table\n  row, a red-flag thought. Re-run; one closed loophole often opens the next.\n- **Match form to failure.** Broken under pressure: a prohibition plus the rationalizations it answers.\n  Wrong output shape: a recipe — parts in order; prohibitions on shape get negotiated (superpowers\n  wording tests, reported). A three-line report recipe in `writing-tests` took naming the caught bug\n  from 0 of 3 runs to 3 of 3. Multi-step workflow: a checklist the agent copies and checks off.\n\n## Before shipping\n\n- [ ] `.\u002Fscripts\u002Fvalidate.sh` exits 0\n- [ ] `.\u002Fscripts\u002Fvalidate.sh tests\u002Ffixtures` still exits 1 — a validator that passes everything is\n      worse than none\n- [ ] `claude plugin validate .` exits 0\n- [ ] **The version in `plugin.json` is bumped.** Installs are cached per version; an unbumped push\n      reports success and changes nothing, exactly like a skill that failed to load\n- [ ] `claude plugin marketplace update vv-agent-kit && claude plugin details vvkit` shows the new\n      component\n- [ ] Every claim in the body is one you could source if asked\n- [ ] A fresh subagent showed the failure without the skill, and not with it\n",{"name":5,"description":7},"main","cc22a222a76add5759a2df5fadf231a758691db5","skills\u002Fwriting-skills","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy","Senior iOS engineer. Architecture, SDKs and apps for iOS, tvOS and watchOS.","2026-11-13 19:10:29",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add vadimvitvickiy\u002Fvv-agent-kit --skill writing-skills",{"tool":37,"command":38},"bunx","bunx skills add vadimvitvickiy\u002Fvv-agent-kit --skill writing-skills",{"tool":40,"command":41},"pnpm","pnpm dlx skills add vadimvitvickiy\u002Fvv-agent-kit --skill writing-skills","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-skills\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Ffrontmatter.md","REFERENCE","参考文档",4514,"https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-skills\u002Freferences\u002Ffrontmatter.md",[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7B3JN7VG0YJ4JB8RP6HYZSJ","no-heading","Use when proving that the validator rejects a body with no H1 and a force-loading @-link.","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fno-heading\u002FSKILL.md",[],[],{"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":19},"01M7B3JJMEW4E710ZG6HYJ7BWV","wrong-name-does-not-match-dir","Dispatches a subagent per task and reviews between each one.","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fbroken-skill\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7B3JGE9MFT1HRP41YRVKN97","writing-tests","Use when adding or changing behavior, fixing a bug, or judging whether an existing or generated test earns its place.","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-tests\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7B3J992MZH2QVZRED0DRPD9","writing-project-instructions","Use when creating or editing a CLAUDE.md or AGENTS.md, when it has grown long, or when a rule in it also exists in an installed skill.","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-project-instructions\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7B3J55C5WPWN20QXP9ET848","writing-logs","Use when adding or reviewing log statements, or when deciding what level a message belongs at.","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-logs\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7B3J1K2N928TN04XKM1KN3A","writing-comments","Use when writing or reviewing comments and doc comments, or when a diff adds explanatory prose alongside code.","https:\u002F\u002Fgithub.com\u002Fvadimvitvickiy\u002Fvv-agent-kit\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-comments\u002FSKILL.md",[],[]]