[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78BVNMST2VPYWMQE46GEYPY":3,"skill-same:01M78BVNMST2VPYWMQE46GEYPY":61},{"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":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M78BVNMST2VPYWMQE46GEYPY","simplify-code",null,"Use when the user asks to \"simplify this code\", \"remove the fluff\", or wants bloated, superfluous, duplicated, over-abstracted, or dependency-heavy code reduced without changing behavior.","adriancodes\u002Fskills","adriancodes","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F940414?v=4","01M6NJ91CRRXPC6RRKWM4CVEGJ","Adrian Martin","01M78BV1DGXZ4VG3VVC30VH0MC",1,"MIT","https:\u002F\u002Fgithub.com\u002Fadriancodes\u002Fskills\u002Fblob\u002Fmain\u002Fevals\u002Fpocock-comparison-2026-10-04\u002Fsubjects\u002Foriginal\u002Fsimplify-code\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: simplify-code\ndescription: >\n  Use when the user asks to \"simplify this code\", \"remove the fluff\",\n  or wants bloated, superfluous, duplicated,\n  over-abstracted, or dependency-heavy code reduced without changing behavior.\nlicense: MIT\nmetadata:\n  category: Quality\n  summary: Condenses scoped code by deleting unjustified concepts while preserving maintainability and observable contracts.\n---\n\n# Simplify Code\n\n## Overview\n\n**Condense code without changing observable contracts.** Delete before abstracting: remove unjustified code and concepts, keeping the result direct and maintainable.\n\nSimplification intent authorizes editing the requested scope. Ask before expanding it or changing a public API, persisted format, error behavior, or meaningful performance characteristic unless expressly authorized.\n\n## Scope\n\nUse when:\n\n- The user asks to simplify, condense, remove fluff, or reduce complexity.\n- Code contains dead paths, duplication, shallow wrappers, speculative abstractions, or redundant supporting artifacts.\n\nDo not use when:\n\n- New behavior is required; use `tdd` when installed, otherwise follow the repository's behavior-change workflow.\n- A failure's cause is unknown; use `diagnose`.\n- The request is read-only review; use `code-review`.\n- The goal is architecture direction or codebase-wide realignment; use `engineering-best-practices`.\n- A finished change needs adversarial validation; use `verify-work`.\n\n## Required Context\n\nRead binding instructions, requested files, callers, dependencies, the diff, and tests. Identify exported interfaces, persisted formats, errors, and performance contracts.\n\nWhen tests are absent, disclose the gap and offer characterization tests. Generate none without approval. Continue only when repository evidence makes behavior concrete. Done when scope, contracts, checks, and ownership are explicit.\n\n## Workflow\n\n### 1. Pin the boundary\n\nDefine the boundary and contracts. Preserve user-authored work. Ask before changing a contract or crossing the boundary. Done when every proposed edit is in scope and every contract is named or absent.\n\n### 2. Build a deletion ledger\n\nInspect references and runtime paths. Record removal evidence for each candidate: unreachable use, duplication, pass-through wrapper, single-use abstraction, unnecessary branch, replaceable dependency, stale comment, or duplicate behavior test. Prefer fewer concepts over fewer characters.\n\nReject candidates that relocate complexity, hide behavior, compress names, or use clever syntax. Done when every candidate has evidence beyond line count.\n\n### 3. Apply the smallest coherent reduction\n\nEdit directly. Delete dead code, inline shallow indirection, collapse equivalent branches, use existing primitives, and remove newly unused artifacts. Retain domain names and abstractions that own an invariant or isolate volatility.\n\nKeep the patch behavior-preserving and scoped. Present contract changes or broader redesigns separately for approval. Done when no evidenced candidate remains, no unjustified replacement abstraction appears, and no reference dangles.\n\n### 4. Prove preservation\n\nRun focused tests, then affected type, lint, build, or integration checks. Compare contractual exports, outputs, errors, bytes, and performance. Inspect the diff for behavior changes and unrelated cleanup.\n\nWhen tests remain absent, run the strongest static and executable checks and label the evidence weaker. Claim no more than the checks prove. Done when every contract has evidence or an explicit limitation.\n\n### 5. Report the reduction\n\nLead with the outcome. Report changed files, checks, and reductions in lines, branches, abstractions, configuration, or dependencies. Done when measurements are separate from judgment and every evidence gap is named.\n\n## Core Example\n\nReplace a one-use class and factory with the public function callers need:\n\n```js\nimport assert from \"node:assert\u002Fstrict\";\n\nconst normalize = (value) => String(value).trim().toLowerCase();\n\nexport function isBlockedEmail(email, blockedEmails) {\n  \u002F\u002F Keep normalization at the public comparison boundary.\n  const blocked = new Set(blockedEmails.map(normalize));\n  return blocked.has(normalize(email));\n}\n\nassert.equal(isBlockedEmail(\" X@Example.com \", [\"x@example.com\"]), true);\nassert.equal(isBlockedEmail(\"y@example.com\", [\"x@example.com\"]), false);\n```\n\nRun with `node blocked-email.mjs`. Preserve the export and results; delete the factory and class only after confirming no caller imports them. This removes concepts without compressing names.\n\n## Success Criteria\n\n- Observable contracts and user-authored work remain unchanged unless explicitly authorized.\n- Every edit stays inside the approved scope.\n- Unjustified concepts or artifacts are measurably reduced.\n- The result stays direct and maintainable rather than clever.\n- Available checks pass; missing evidence and reductions are reported.\n\n## Quick Reference\n\n| Signal | Action |\n|--------|--------|\n| Dead path or shallow wrapper | Delete or inline after checking references. |\n| Contract or scope pressure | Preserve it or ask for approval. |\n| Missing tests | Disclose the gap and offer characterization tests. |\n\n## Common Mistakes\n\n| Mistake | Fix |\n|---------|-----|\n| Optimizing line count | Reduce concepts and coupling; keep explanatory structure and names. |\n| Mixing a behavior change into cleanup | Preserve the contract; request separate approval for the change. |\n\n## Failure Modes\n\n- **Unknown failure:** Stop and diagnose the cause first.\n- **Ambiguous contract:** Ask for the expected behavior before editing that path.\n- **Missing tests:** Disclose the gap and offer characterization tests; create none without approval.\n- **Contract or scope change required:** Explain the effect and wait for approval.\n- **Generated code:** Simplify the source or generator instead of derived output.\n- **Maintainability loss:** Keep the clearer form and explain why condensation stopped.\n\n## Summary\n\nDelete before abstracting, preserve observable contracts, and ask before changing behavior or scope. A smaller diff succeeds only when the result stays direct and maintainable.\n","# Simplify Code\n\n## Overview\n\n**Condense code without changing observable contracts.** Delete before abstracting: remove unjustified code and concepts, keeping the result direct and maintainable.\n\nSimplification intent authorizes editing the requested scope. Ask before expanding it or changing a public API, persisted format, error behavior, or meaningful performance characteristic unless expressly authorized.\n\n## Scope\n\nUse when:\n\n- The user asks to simplify, condense, remove fluff, or reduce complexity.\n- Code contains dead paths, duplication, shallow wrappers, speculative abstractions, or redundant supporting artifacts.\n\nDo not use when:\n\n- New behavior is required; use `tdd` when installed, otherwise follow the repository's behavior-change workflow.\n- A failure's cause is unknown; use `diagnose`.\n- The request is read-only review; use `code-review`.\n- The goal is architecture direction or codebase-wide realignment; use `engineering-best-practices`.\n- A finished change needs adversarial validation; use `verify-work`.\n\n## Required Context\n\nRead binding instructions, requested files, callers, dependencies, the diff, and tests. Identify exported interfaces, persisted formats, errors, and performance contracts.\n\nWhen tests are absent, disclose the gap and offer characterization tests. Generate none without approval. Continue only when repository evidence makes behavior concrete. Done when scope, contracts, checks, and ownership are explicit.\n\n## Workflow\n\n### 1. Pin the boundary\n\nDefine the boundary and contracts. Preserve user-authored work. Ask before changing a contract or crossing the boundary. Done when every proposed edit is in scope and every contract is named or absent.\n\n### 2. Build a deletion ledger\n\nInspect references and runtime paths. Record removal evidence for each candidate: unreachable use, duplication, pass-through wrapper, single-use abstraction, unnecessary branch, replaceable dependency, stale comment, or duplicate behavior test. Prefer fewer concepts over fewer characters.\n\nReject candidates that relocate complexity, hide behavior, compress names, or use clever syntax. Done when every candidate has evidence beyond line count.\n\n### 3. Apply the smallest coherent reduction\n\nEdit directly. Delete dead code, inline shallow indirection, collapse equivalent branches, use existing primitives, and remove newly unused artifacts. Retain domain names and abstractions that own an invariant or isolate volatility.\n\nKeep the patch behavior-preserving and scoped. Present contract changes or broader redesigns separately for approval. Done when no evidenced candidate remains, no unjustified replacement abstraction appears, and no reference dangles.\n\n### 4. Prove preservation\n\nRun focused tests, then affected type, lint, build, or integration checks. Compare contractual exports, outputs, errors, bytes, and performance. Inspect the diff for behavior changes and unrelated cleanup.\n\nWhen tests remain absent, run the strongest static and executable checks and label the evidence weaker. Claim no more than the checks prove. Done when every contract has evidence or an explicit limitation.\n\n### 5. Report the reduction\n\nLead with the outcome. Report changed files, checks, and reductions in lines, branches, abstractions, configuration, or dependencies. Done when measurements are separate from judgment and every evidence gap is named.\n\n## Core Example\n\nReplace a one-use class and factory with the public function callers need:\n\n```js\nimport assert from \"node:assert\u002Fstrict\";\n\nconst normalize = (value) => String(value).trim().toLowerCase();\n\nexport function isBlockedEmail(email, blockedEmails) {\n  \u002F\u002F Keep normalization at the public comparison boundary.\n  const blocked = new Set(blockedEmails.map(normalize));\n  return blocked.has(normalize(email));\n}\n\nassert.equal(isBlockedEmail(\" X@Example.com \", [\"x@example.com\"]), true);\nassert.equal(isBlockedEmail(\"y@example.com\", [\"x@example.com\"]), false);\n```\n\nRun with `node blocked-email.mjs`. Preserve the export and results; delete the factory and class only after confirming no caller imports them. This removes concepts without compressing names.\n\n## Success Criteria\n\n- Observable contracts and user-authored work remain unchanged unless explicitly authorized.\n- Every edit stays inside the approved scope.\n- Unjustified concepts or artifacts are measurably reduced.\n- The result stays direct and maintainable rather than clever.\n- Available checks pass; missing evidence and reductions are reported.\n\n## Quick Reference\n\n| Signal | Action |\n|--------|--------|\n| Dead path or shallow wrapper | Delete or inline after checking references. |\n| Contract or scope pressure | Preserve it or ask for approval. |\n| Missing tests | Disclose the gap and offer characterization tests. |\n\n## Common Mistakes\n\n| Mistake | Fix |\n|---------|-----|\n| Optimizing line count | Reduce concepts and coupling; keep explanatory structure and names. |\n| Mixing a behavior change into cleanup | Preserve the contract; request separate approval for the change. |\n\n## Failure Modes\n\n- **Unknown failure:** Stop and diagnose the cause first.\n- **Ambiguous contract:** Ask for the expected behavior before editing that path.\n- **Missing tests:** Disclose the gap and offer characterization tests; create none without approval.\n- **Contract or scope change required:** Explain the effect and wait for approval.\n- **Generated code:** Simplify the source or generator instead of derived output.\n- **Maintainability loss:** Keep the clearer form and explain why condensation stopped.\n\n## Summary\n\nDelete before abstracting, preserve observable contracts, and ask before changing behavior or scope. A smaller diff succeeds only when the result stays direct and maintainable.\n",{"name":5,"license":15,"metadata":24,"description":27},{"summary":25,"category":26},"Condenses scoped code by deleting unjustified concepts while preserving maintainability and observable contracts.","Quality","Use when the user asks to \"simplify this code\", \"remove the fluff\", or wants bloated, superfluous, duplicated, over-abstracted, or dependency-heavy code reduced without changing behavior.\n","main","9a3fe345285b86c3071deb2ecb302dff99a855b8","evals\u002Fpocock-comparison-2026-10-04\u002Fsubjects\u002Foriginal\u002Fsimplify-code",0,"https:\u002F\u002Fgithub.com\u002Fadriancodes\u002Fskills","https:\u002F\u002Fgithub.com\u002Fadriancodes","2026-11-12 06:06:49",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add adriancodes\u002Fskills --skill simplify-code",{"tool":41,"command":42},"bunx","bunx skills add adriancodes\u002Fskills --skill simplify-code",{"tool":44,"command":45},"pnpm","pnpm dlx skills add adriancodes\u002Fskills --skill simplify-code","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fadriancodes\u002Fskills\u002Fblob\u002Fmain\u002Fevals\u002Fpocock-comparison-2026-10-04\u002Fsubjects\u002Foriginal\u002Fsimplify-code\u002FSKILL.md",true,[49,55],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"cases.jsonl","OTHER","其他",2653,"https:\u002F\u002Fgithub.com\u002Fadriancodes\u002Fskills\u002Fblob\u002Fmain\u002Fevals\u002Fpocock-comparison-2026-10-04\u002Fsubjects\u002Foriginal\u002Fsimplify-code\u002Fcases.jsonl",{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"skill-brief.md","REFERENCE","参考文档",2465,"https:\u002F\u002Fgithub.com\u002Fadriancodes\u002Fskills\u002Fblob\u002Fmain\u002Fevals\u002Fpocock-comparison-2026-10-04\u002Fsubjects\u002Foriginal\u002Fsimplify-code\u002Fskill-brief.md",[62,69,76,83,90,96],{"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},"01M78C1QNZAXX06QMDJ8R65TTV","write-agent-instructions","Make the smallest evidence-backed change to persistent project instructions and test downstream behavior.","https:\u002F\u002Fgithub.com\u002Fadriancodes\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-agent-instructions\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},"01M78C1K3QVP67S0TRERZ5YNGB","verify-work","Use when a finished, runnable artifact (a script, config, parser, prompt, or CLI, not a diff under review) must survive hostile input before shipping: the user asks to \"verify this script\", \"find the loopholes\", \"test this properly against bad input\", or asks \"is this ready to ship\" about one. Also when a shipped artifact failed on an input nobody tried, or when verification so far is a happy-path smoke test.","https:\u002F\u002Fgithub.com\u002Fadriancodes\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fverify-work\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},"01M78C1DDYDEQ7H1HNW84VW1V3","understand-codebase","Use when the user asks to \"understand this codebase\", \"how does this feature work in this repo?\", \"trace this feature through the code\", or needs onboarding, an architecture explanation, or answers about unfamiliar code. Also use for read-only code-path questions before a change.","https:\u002F\u002Fgithub.com\u002Fadriancodes\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Funderstand-codebase\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},"01M78C18C6TG62PY1PQBGCSKXR","tdd","Use when writing or changing production behavior: implementing a feature, fixing a bug whose cause is already known, or altering stored, transformed, migrated, serialized, or externally transmitted data. Also use when a user says \"use TDD\", \"test first\", or \"red-green-refactor\", and when code is being written before a failing test. For a failure whose cause is unknown, diagnose first.","https:\u002F\u002Fgithub.com\u002Fadriancodes\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd\u002FSKILL.md",[],[],{"skillNo":91,"name":5,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M78C151714X4Z3VQW5F23FZW","Use when the user asks to \"simplify this code\", \"remove the fluff\", or \"clean up this over-engineered module\", or wants working code that is bloated, duplicated, over-abstracted, or dependency-heavy reduced without changing behavior.","https:\u002F\u002Fgithub.com\u002Fadriancodes\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsimplify-code\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M78C127TPYNJBX0B4BCF7246","review-session","Review an agent session for evidence-backed friction and the smallest measurable remedies.","https:\u002F\u002Fgithub.com\u002Fadriancodes\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Freview-session\u002FSKILL.md",[],[]]