[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DCNDMETGGS020QMV36XF8D":3,"skill-same:01M7DCNDMETGGS020QMV36XF8D":43},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M7DCNDMETGGS020QMV36XF8D","deslop",null,"Clean AI slop and defensiveness out of code and diffs before commit. Strips narrating comments, redundant guards, speculative error handling, unused abstractions, and dead compatibility code.","harryhecanada\u002Fagent-skills","harryhecanada","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F11355235?v=4","01M7DCMFGH1G7M5Z8PZ1DEZES4","01M7DCMFH4YERG90TH5YXC8MPQ",0,"MIT","https:\u002F\u002Fgithub.com\u002Fharryhecanada\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fframeworks\u002Fengineering-rigor\u002Fskills\u002Fdeslop\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: deslop\ndescription: Clean AI slop and defensiveness out of code and diffs before commit. Strips narrating comments, redundant guards, speculative error handling, unused abstractions, and dead compatibility code.\n---\n\n# Deslop\n\nClean AI patterns, excessive defensiveness, and unnecessary bloat out of code and git diffs before committing.\n\nWhile [`\u002Funslop`](..\u002Funslop\u002FSKILL.md) cleans human\u002Fagent prose and [`\u002Fno-comments`](..\u002Fno-comments\u002FSKILL.md) strips comments before review, `\u002Fdeslop` operates directly on application code and diffs.\n\n## Process\n\n1. **Inspect the diff.** Run `git diff` against your base branch or `HEAD~1`. Focus on newly added or modified lines.\n2. **Scan for code slop patterns** (see checklist below).\n3. **Refactor and simplify.** Delete defensive bloat, eliminate speculative layers, and restore direct, obvious code.\n4. **Verify correctness.** Run tests, typechecks, or linters to prove the streamlined code still works.\n\n---\n\n## Code Slop Patterns to Detect and Fix\n\n### 1. Defensive Over-Engineering\n- **Redundant null\u002Fundefined checks:** Checking variables that internal types or preceding guards guarantee cannot be null. Trust internal invariants; concentrate validation at external boundaries (`principle-boundary-discipline`).\n- **Try-catch swallows:** Wrapping synchronous or infallible calls in `try...catch` blocks that swallow errors or return fallback values silently.\n- **Speculative error handling:** Catching errors that cannot happen in normal flow rather than letting real failures surface (`principle-fix-root-causes`).\n\n### 2. Speculative Flexibility\n- **Unrequested configuration:** Adding options objects, configurable flags, or generalized plugin systems for single-use logic (`principle-laziness-protocol`).\n- **One-caller abstractions:** Creating helper functions, interfaces, or wrapper classes used in exactly one place with no likelihood of reuse (`principle-minimize-reader-load`).\n- **Premature type parameterization:** Introducing complex generic type parameters where concrete types suffice.\n\n### 3. Narrating and Placeholder Comments\n- **Obvious narration:** `\u002F\u002F check if user exists`, `\u002F\u002F return the result`, `\u002F\u002F loop through items`. Delete them immediately.\n- **Section banner comments:** `\u002F\u002F ===================== HELPERS =====================`. Remove them.\n- **Commented-out code:** Dead code blocks left \"just in case\". Delete them; git history preserves past code (`principle-subtract-before-you-add`).\n\n### 4. Artificial AI Code Tells\n- **Intermediate variable churn:** Assigning a value to a temporary variable only to immediately return or pass it once:\n  ```ts\n  \u002F\u002F Slop\n  const result = calculateTotal(items);\n  return result;\n  \n  \u002F\u002F Clean\n  return calculateTotal(items);\n  ```\n- **Redundant type assertions:** Overusing `as any`, `as unknown as T`, or unnecessary non-null assertions `!` when proper typing or narrowing makes the code type-safe (`principle-type-system-discipline`).\n- **Verbose conditional boilerplate:** Using 10-line `if\u002Felse` ladders where a simple ternary, dictionary lookup, or early return is cleaner.\n\n### 5. Lingering Debug and Scratch Artifacts\n- Leftover `console.log`, `print()`, `dbg!()`, or ad-hoc benchmark timers.\n- Temporary test fixtures or scratch files committed by mistake.\n\n---\n\n## Output \u002F Reply\n\nState:\n- Files cleaned and line delta (e.g. `-45 lines`).\n- Types of slop removed (e.g., redundant null guards, one-caller helper collapsed, narrating comments stripped).\n- Verification command run to confirm tests and types remain green.\n","# Deslop\n\nClean AI patterns, excessive defensiveness, and unnecessary bloat out of code and git diffs before committing.\n\nWhile [`\u002Funslop`](..\u002Funslop\u002FSKILL.md) cleans human\u002Fagent prose and [`\u002Fno-comments`](..\u002Fno-comments\u002FSKILL.md) strips comments before review, `\u002Fdeslop` operates directly on application code and diffs.\n\n## Process\n\n1. **Inspect the diff.** Run `git diff` against your base branch or `HEAD~1`. Focus on newly added or modified lines.\n2. **Scan for code slop patterns** (see checklist below).\n3. **Refactor and simplify.** Delete defensive bloat, eliminate speculative layers, and restore direct, obvious code.\n4. **Verify correctness.** Run tests, typechecks, or linters to prove the streamlined code still works.\n\n---\n\n## Code Slop Patterns to Detect and Fix\n\n### 1. Defensive Over-Engineering\n- **Redundant null\u002Fundefined checks:** Checking variables that internal types or preceding guards guarantee cannot be null. Trust internal invariants; concentrate validation at external boundaries (`principle-boundary-discipline`).\n- **Try-catch swallows:** Wrapping synchronous or infallible calls in `try...catch` blocks that swallow errors or return fallback values silently.\n- **Speculative error handling:** Catching errors that cannot happen in normal flow rather than letting real failures surface (`principle-fix-root-causes`).\n\n### 2. Speculative Flexibility\n- **Unrequested configuration:** Adding options objects, configurable flags, or generalized plugin systems for single-use logic (`principle-laziness-protocol`).\n- **One-caller abstractions:** Creating helper functions, interfaces, or wrapper classes used in exactly one place with no likelihood of reuse (`principle-minimize-reader-load`).\n- **Premature type parameterization:** Introducing complex generic type parameters where concrete types suffice.\n\n### 3. Narrating and Placeholder Comments\n- **Obvious narration:** `\u002F\u002F check if user exists`, `\u002F\u002F return the result`, `\u002F\u002F loop through items`. Delete them immediately.\n- **Section banner comments:** `\u002F\u002F ===================== HELPERS =====================`. Remove them.\n- **Commented-out code:** Dead code blocks left \"just in case\". Delete them; git history preserves past code (`principle-subtract-before-you-add`).\n\n### 4. Artificial AI Code Tells\n- **Intermediate variable churn:** Assigning a value to a temporary variable only to immediately return or pass it once:\n  ```ts\n  \u002F\u002F Slop\n  const result = calculateTotal(items);\n  return result;\n  \n  \u002F\u002F Clean\n  return calculateTotal(items);\n  ```\n- **Redundant type assertions:** Overusing `as any`, `as unknown as T`, or unnecessary non-null assertions `!` when proper typing or narrowing makes the code type-safe (`principle-type-system-discipline`).\n- **Verbose conditional boilerplate:** Using 10-line `if\u002Felse` ladders where a simple ternary, dictionary lookup, or early return is cleaner.\n\n### 5. Lingering Debug and Scratch Artifacts\n- Leftover `console.log`, `print()`, `dbg!()`, or ad-hoc benchmark timers.\n- Temporary test fixtures or scratch files committed by mistake.\n\n---\n\n## Output \u002F Reply\n\nState:\n- Files cleaned and line delta (e.g. `-45 lines`).\n- Types of slop removed (e.g., redundant null guards, one-caller helper collapsed, narrating comments stripped).\n- Verification command run to confirm tests and types remain green.\n",{"name":5,"description":7},"main","4a92ff09648713a9ba46b64f76094b89ee233308","skills\u002Fframeworks\u002Fengineering-rigor\u002Fskills\u002Fdeslop","https:\u002F\u002Fgithub.com\u002Fharryhecanada\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Fharryhecanada","2026-10-09 23:00:59",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add harryhecanada\u002Fagent-skills --skill deslop",{"tool":35,"command":36},"bunx","bunx skills add harryhecanada\u002Fagent-skills --skill deslop",{"tool":38,"command":39},"pnpm","pnpm dlx skills add harryhecanada\u002Fagent-skills --skill deslop","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fharryhecanada\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fframeworks\u002Fengineering-rigor\u002Fskills\u002Fdeslop\u002FSKILL.md",true,[],[44,51,58,65,72,79],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M7DCS5AAK976JJ881X7N3BN5","agent-roster","Use when delegating to a named subagent role (plan, logic, build, surgical, design, scribe, tester, advisor, hunter, sentinel, ship). Loads the role's brief, the dispatch shape, and its output schema.","https:\u002F\u002Fgithub.com\u002Fharryhecanada\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsubagents\u002Fagent-roster\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7DCS0GF2V39E9T96TP4KBQF","why","Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.","https:\u002F\u002Fgithub.com\u002Fharryhecanada\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fframeworks\u002Fengineering-rigor\u002Fskills\u002Fwhy\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7DCRXD5ABWB3ZYY1TX5T3JQ","unslop","Cut AI tells from any writing. Must always apply.","https:\u002F\u002Fgithub.com\u002Fharryhecanada\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fframeworks\u002Fengineering-rigor\u002Fskills\u002Funslop\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7DCRVP2KH8E037TX0EFC7KA","typescript-best-practices","TypeScript best practices. Use when reading or editing any.ts or.tsx file.","https:\u002F\u002Fgithub.com\u002Fharryhecanada\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fframeworks\u002Fengineering-rigor\u002Fskills\u002Ftypescript-best-practices\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M7DCRR8E5M4NPBJ9T4P07PYN","technical-writing","Layered technical-writing standard: Diátaxis structure, Google developer style sentences, STE instruction rules, Global English syntax. Use for \u002Ftechnical-writing or when writing or reviewing docs, RFCs, readmes, PR descriptions, or commit messages.","https:\u002F\u002Fgithub.com\u002Fharryhecanada\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fframeworks\u002Fengineering-rigor\u002Fskills\u002Ftechnical-writing\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7DCRMDT5EX1DGGDARATW6NC","teach","Explain a body of work plainly so a person actually understands it. Runs the `how` and `why` skills and weaves what they find into one clear explanation. Use for 'teach me this', 'help me really understand X', 'explain this change or subsystem to me'.","https:\u002F\u002Fgithub.com\u002Fharryhecanada\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fframeworks\u002Fengineering-rigor\u002Fskills\u002Fteach\u002FSKILL.md",[],[]]