[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79PCA4S114PEXH0DVS88P6Q":3,"skill-same:01M79PCA4S114PEXH0DVS88P6Q":54},{"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},"01M79PCA4S114PEXH0DVS88P6Q","simplify",null,"Simplifies code for clarity without changing behavior. Use for readability, maintainability, and complexity reduction after behavior is understood.","ankaboot-source\u002Fboucle","ankaboot-source","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F88089122?v=4","01M79P4HZGM4NXFWV0SB0HGQ51","ankaboot","01M79P4J0GNNZ7E7F9B0RZNSNX",2,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Fankaboot-source\u002Fboucle\u002Fblob\u002Fmain\u002F.jcode\u002Fskills\u002Fsimplify\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: simplify\ndescription: Simplifies code for clarity without changing behavior. Use for readability, maintainability, and complexity reduction after behavior is understood.\n---\n\n# Code Simplification\n\n## Overview\n\nSimplify code by reducing complexity while preserving exact behavior. The goal is not fewer lines — it's code that is easier to read, understand, modify, and debug. Every simplification must pass a simple test: \"Would a new team member understand this faster than the original?\"\n\n## When to Use\n\n- After a feature is working and tests pass, but the implementation feels heavier than it needs to be\n- During code review when readability or complexity issues are flagged\n- When you encounter deeply nested logic, long functions, or unclear names\n- When refactoring code written under time pressure\n- When consolidating related logic scattered across files\n- After merging changes that introduced duplication or inconsistency\n\n**When NOT to use:**\n\n- Code is already clean and readable — don't simplify for the sake of it\n- You don't understand what the code does yet — comprehend before you simplify\n- The code is performance-critical and the \"simpler\" version would be measurably slower\n- You're about to rewrite the module entirely — simplifying throwaway code wastes effort\n\n## The Five Principles\n\n### 1. Preserve Behavior Exactly\n\nDon't change what the code does — only how it expresses it. All inputs, outputs, side effects, error behavior, and edge cases must remain identical. If you're not sure a simplification preserves behavior, don't make it.\n\nBefore every change, ask:\n\n- Does this produce the same output for every input?\n- Does this maintain the same error behavior?\n- Does this preserve the same side effects and ordering?\n- Do all existing tests still pass without modification?\n\n### 2. Follow Project Conventions\n\nSimplification means making code more consistent with the codebase, not imposing external preferences.\n\nBefore simplifying:\n\n1. Read `AGENTS.md` \u002F project conventions\n2. Study how neighboring code handles similar patterns\n3. Match the project's style for imports, naming, function style, error handling, and type annotations\n\nSimplification that breaks project consistency is not simplification — it's churn.\n\n### 3. Prefer Clarity Over Cleverness\n\nExplicit code is better than compact code when the compact version requires a mental pause to parse.\n\n- Replace nested ternaries with readable control flow\n- Replace dense inline transforms with named intermediate steps when they clarify intent\n- Keep helpful names even if they cost a few extra lines\n\n### 4. Maintain Balance\n\nWatch for over-simplification:\n\n- Don't inline away names that carry meaning\n- Don't merge unrelated logic into one larger function\n- Don't remove abstractions that serve testability or extensibility\n- Don't optimize for line count over comprehension\n\n### 5. Scope to What Changed\n\nDefault to simplifying recently modified code. Avoid unrelated drive-by refactors unless explicitly asked.\n\n## Process\n\n### Step 1: Understand Before Touching\n\nBefore changing or removing anything, understand why it exists.\n\nAnswer:\n\n- What is this code's responsibility?\n- What calls it? What does it call?\n- What are the edge cases and error paths?\n- Are there tests that define expected behavior?\n- Why might it have been written this way?\n\nIf you can't answer these, read more context first.\n\n### Step 2: Look for Simplification Opportunities\n\nSignals:\n\n- Deep nesting\n- Long functions with mixed responsibilities\n- Nested ternaries\n- Boolean flag arguments\n- Repeated conditionals\n- Generic or misleading names\n- Duplicated logic\n- Dead code\n- Wrappers or abstractions that add no value\n\n### Step 3: Apply Changes Incrementally\n\nMake one simplification at a time.\n\nFor each simplification:\n\n1. Make the change\n2. Run relevant tests\n3. Keep it only if behavior is preserved\n\nSeparate refactoring from feature work whenever possible.\n\n### Step 4: Verify the Result\n\nAfter simplifying, confirm:\n\n- The code is genuinely easier to understand\n- The diff is clean and reviewable\n- Project conventions still match\n- No behavior, error handling, or side effects changed\n\n## Guidance for This Repository\n\n- Prefer straightforward TypeScript over clever compression\n- Preserve existing runtime behavior, tests, and hooks\n- Favor explicit names and smaller focused helpers when they improve readability\n- Keep refactors tightly scoped to the task or review feedback\n\n## Verification Checklist\n\n- [ ] Existing tests pass without modification\n- [ ] Build\u002Ftypecheck\u002Flint still pass\n- [ ] No unrelated files were refactored\n- [ ] No error handling was weakened or removed\n- [ ] The result is simpler to review than the original\n","# Code Simplification\n\n## Overview\n\nSimplify code by reducing complexity while preserving exact behavior. The goal is not fewer lines — it's code that is easier to read, understand, modify, and debug. Every simplification must pass a simple test: \"Would a new team member understand this faster than the original?\"\n\n## When to Use\n\n- After a feature is working and tests pass, but the implementation feels heavier than it needs to be\n- During code review when readability or complexity issues are flagged\n- When you encounter deeply nested logic, long functions, or unclear names\n- When refactoring code written under time pressure\n- When consolidating related logic scattered across files\n- After merging changes that introduced duplication or inconsistency\n\n**When NOT to use:**\n\n- Code is already clean and readable — don't simplify for the sake of it\n- You don't understand what the code does yet — comprehend before you simplify\n- The code is performance-critical and the \"simpler\" version would be measurably slower\n- You're about to rewrite the module entirely — simplifying throwaway code wastes effort\n\n## The Five Principles\n\n### 1. Preserve Behavior Exactly\n\nDon't change what the code does — only how it expresses it. All inputs, outputs, side effects, error behavior, and edge cases must remain identical. If you're not sure a simplification preserves behavior, don't make it.\n\nBefore every change, ask:\n\n- Does this produce the same output for every input?\n- Does this maintain the same error behavior?\n- Does this preserve the same side effects and ordering?\n- Do all existing tests still pass without modification?\n\n### 2. Follow Project Conventions\n\nSimplification means making code more consistent with the codebase, not imposing external preferences.\n\nBefore simplifying:\n\n1. Read `AGENTS.md` \u002F project conventions\n2. Study how neighboring code handles similar patterns\n3. Match the project's style for imports, naming, function style, error handling, and type annotations\n\nSimplification that breaks project consistency is not simplification — it's churn.\n\n### 3. Prefer Clarity Over Cleverness\n\nExplicit code is better than compact code when the compact version requires a mental pause to parse.\n\n- Replace nested ternaries with readable control flow\n- Replace dense inline transforms with named intermediate steps when they clarify intent\n- Keep helpful names even if they cost a few extra lines\n\n### 4. Maintain Balance\n\nWatch for over-simplification:\n\n- Don't inline away names that carry meaning\n- Don't merge unrelated logic into one larger function\n- Don't remove abstractions that serve testability or extensibility\n- Don't optimize for line count over comprehension\n\n### 5. Scope to What Changed\n\nDefault to simplifying recently modified code. Avoid unrelated drive-by refactors unless explicitly asked.\n\n## Process\n\n### Step 1: Understand Before Touching\n\nBefore changing or removing anything, understand why it exists.\n\nAnswer:\n\n- What is this code's responsibility?\n- What calls it? What does it call?\n- What are the edge cases and error paths?\n- Are there tests that define expected behavior?\n- Why might it have been written this way?\n\nIf you can't answer these, read more context first.\n\n### Step 2: Look for Simplification Opportunities\n\nSignals:\n\n- Deep nesting\n- Long functions with mixed responsibilities\n- Nested ternaries\n- Boolean flag arguments\n- Repeated conditionals\n- Generic or misleading names\n- Duplicated logic\n- Dead code\n- Wrappers or abstractions that add no value\n\n### Step 3: Apply Changes Incrementally\n\nMake one simplification at a time.\n\nFor each simplification:\n\n1. Make the change\n2. Run relevant tests\n3. Keep it only if behavior is preserved\n\nSeparate refactoring from feature work whenever possible.\n\n### Step 4: Verify the Result\n\nAfter simplifying, confirm:\n\n- The code is genuinely easier to understand\n- The diff is clean and reviewable\n- Project conventions still match\n- No behavior, error handling, or side effects changed\n\n## Guidance for This Repository\n\n- Prefer straightforward TypeScript over clever compression\n- Preserve existing runtime behavior, tests, and hooks\n- Favor explicit names and smaller focused helpers when they improve readability\n- Keep refactors tightly scoped to the task or review feedback\n\n## Verification Checklist\n\n- [ ] Existing tests pass without modification\n- [ ] Build\u002Ftypecheck\u002Flint still pass\n- [ ] No unrelated files were refactored\n- [ ] No error handling was weakened or removed\n- [ ] The result is simpler to review than the original\n",{"name":5,"description":7},"main","b1e46a5b01665a6910c6cfc503880b3156429f73",".jcode\u002Fskills\u002Fsimplify",0,"https:\u002F\u002Fgithub.com\u002Fankaboot-source\u002Fboucle","https:\u002F\u002Fboucle.dev","https:\u002F\u002Fgithub.com\u002Fankaboot-source","https:\u002F\u002Fwww.ankaboot.io\u002F","customer-engagement tech · privacy by design","2026-11-14 05:53:11",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ankaboot-source\u002Fboucle --skill simplify",{"tool":40,"command":41},"bunx","bunx skills add ankaboot-source\u002Fboucle --skill simplify",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ankaboot-source\u002Fboucle --skill simplify","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fankaboot-source\u002Fboucle\u002Fblob\u002Fmain\u002F.jcode\u002Fskills\u002Fsimplify\u002FSKILL.md",true,[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"README.md","REFERENCE","参考文档",575,"https:\u002F\u002Fgithub.com\u002Fankaboot-source\u002Fboucle\u002Fblob\u002Fmain\u002F.jcode\u002Fskills\u002Fsimplify\u002FREADME.md",[55,63,70,78,87,94],{"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":59,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M79PEWFFK2Z3D0MB2681C6P7","boucle","The boucle protocol — the labels, markers, state machine and handoff rules a\nboucle loop speaks. Use when interacting with a boucle loop on any consumer\nrepository: reading or writing boucle:* labels, emitting or parsing\n\u003C!-- boucle:* --> markers, posting a SHA-anchored verdict, driving an issue\nthrough triage\u002Fworker\u002Freviewer\u002Fe2e, or answering \"what is this loop waiting\non\". Runtime-agnostic and forge-agnostic (GitLab and GitHub).","https:\u002F\u002Fgithub.com\u002Fankaboot-source\u002Fboucle\u002Fblob\u002Fmain\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fankaboot-source\u002Fboucle\u002Fblob\u002Fmain\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},"01M79PEN7B3R3TJ19FZFZHTGPW","wrangler","Cloudflare Workers CLI for deploying, developing, and managing Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store. Load before running wrangler commands to ensure correct syntax and best practices. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.","https:\u002F\u002Fgithub.com\u002Fankaboot-source\u002Fboucle\u002Fblob\u002Fmain\u002F.jcode\u002Fskills\u002Fwrangler\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":74,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M79PEE1ZRT65Z4AW0N7X9D3C","web-design-guidelines","Web platform design and accessibility guidelines. Use when building web interfaces, auditing accessibility, implementing responsive layouts, or reviewing web UI code. Triggers on tasks involving HTML, CSS, web components, WCAG compliance, responsive design, or web performance.","MIT","https:\u002F\u002Fgithub.com\u002Fankaboot-source\u002Fboucle\u002Fblob\u002Fmain\u002F.jcode\u002Fskills\u002Fweb-design-guidelines\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":82,"licenseFileUrl":83,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M79PE7NFMZCVF5BQ7CNHP73Y","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fankaboot-source\u002Fboucle\u002Fblob\u002Fmain\u002F.jcode\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fankaboot-source\u002Fboucle\u002Fblob\u002Fmain\u002F.jcode\u002Fskills\u002Fweb-artifacts-builder\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},"01M79PE4AYTMSWM8C35RQ780YK","wayfinder","Plan a huge chunk of work — more than one agent session can hold — as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.","https:\u002F\u002Fgithub.com\u002Fankaboot-source\u002Fboucle\u002Fblob\u002Fmain\u002F.jcode\u002Fskills\u002Fwayfinder\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M79PE17KCVNPPFRDW5BN76PW","verification-before-completion","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","https:\u002F\u002Fgithub.com\u002Fankaboot-source\u002Fboucle\u002Fblob\u002Fmain\u002F.jcode\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[],[]]