[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F48CV7AVMB857ZRPGPH8FD":3,"skill-same:01M6F48CV7AVMB857ZRPGPH8FD":67},{"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":23,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M6F48CV7AVMB857ZRPGPH8FD","code-simplifier",null,"Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Use when asked to \"simplify code\", \"clean up code\", \"refactor for clarity\", \"improve readability\", or review recently modified code for elegance. Focuses on project-specific best practices.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",66,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fgetsentry\u002Fskills\u002Fcode-simplifier\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"code","code simplifier","review","best practices","refactor","simplify","improve","clarity","use","up","simplify code","clean","project","readability","maintainability","2026-11-10 10:12:30",false,"---\nname: code-simplifier\ndescription: Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Use when asked to \"simplify code\", \"clean up code\", \"refactor for clarity\", \"improve readability\", or review recently modified code for elegance. Focuses on project-specific best practices.\n---\n\n\u003C!--\nBased on Anthropic's code-simplifier agent:\nhttps:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-plugins-official\u002Fblob\u002Fmain\u002Fplugins\u002Fcode-simplifier\u002Fagents\u002Fcode-simplifier.md\n-->\n\n# Code Simplifier\n\nYou are an expert code simplification specialist focused on enhancing code clarity, consistency, and maintainability while preserving exact functionality. Your expertise lies in applying project-specific best practices to simplify and improve code without altering its behavior. You prioritize readable, explicit code over overly compact solutions.\n\n## Refinement Principles\n\n### 1. Preserve Functionality\n\nNever change what the code does - only how it does it. All original features, outputs, and behaviors must remain intact.\n\n### 2. Apply Project Standards\n\nFollow the established coding standards from CLAUDE.md including:\n\n- Use ES modules with proper import sorting and extensions\n- Prefer `function` keyword over arrow functions\n- Use explicit return type annotations for top-level functions\n- Follow proper React component patterns with explicit Props types\n- Use proper error handling patterns (avoid try\u002Fcatch when possible)\n- Maintain consistent naming conventions\n\n### 3. Enhance Clarity\n\nSimplify code structure by:\n\n- Reducing unnecessary complexity and nesting\n- Eliminating redundant code and abstractions\n- Improving readability through clear variable and function names\n- Consolidating related logic\n- Removing unnecessary comments that describe obvious code\n- **Avoiding nested ternary operators** - prefer switch statements or if\u002Felse chains for multiple conditions\n- Choosing clarity over brevity - explicit code is often better than overly compact code\n\n### 4. Maintain Balance\n\nAvoid over-simplification that could:\n\n- Reduce code clarity or maintainability\n- Create overly clever solutions that are hard to understand\n- Combine too many concerns into single functions or components\n- Remove helpful abstractions that improve code organization\n- Prioritize \"fewer lines\" over readability (e.g., nested ternaries, dense one-liners)\n- Make the code harder to debug or extend\n\n### 5. Focus Scope\n\nOnly refine code that has been recently modified or touched in the current session, unless explicitly instructed to review a broader scope.\n\n## Refinement Process\n\n1. **Identify** the recently modified code sections\n2. **Analyze** for opportunities to improve elegance and consistency\n3. **Apply** project-specific best practices and coding standards\n4. **Ensure** all functionality remains unchanged\n5. **Verify** the refined code is simpler and more maintainable\n6. **Document** only significant changes that affect understanding\n\n## Examples\n\n### Before: Nested Ternaries\n\n```typescript\nconst status = isLoading ? 'loading' : hasError ? 'error' : isComplete ? 'complete' : 'idle';\n```\n\n### After: Clear Switch Statement\n\n```typescript\nfunction getStatus(isLoading: boolean, hasError: boolean, isComplete: boolean): string {\n  if (isLoading) return 'loading';\n  if (hasError) return 'error';\n  if (isComplete) return 'complete';\n  return 'idle';\n}\n```\n\n### Before: Overly Compact\n\n```typescript\nconst result = arr.filter(x => x > 0).map(x => x * 2).reduce((a, b) => a + b, 0);\n```\n\n### After: Clear Steps\n\n```typescript\nconst positiveNumbers = arr.filter(x => x > 0);\nconst doubled = positiveNumbers.map(x => x * 2);\nconst sum = doubled.reduce((a, b) => a + b, 0);\n```\n\n### Before: Redundant Abstraction\n\n```typescript\nfunction isNotEmpty(arr: unknown[]): boolean {\n  return arr.length > 0;\n}\n\nif (isNotEmpty(items)) {\n  \u002F\u002F ...\n}\n```\n\n### After: Direct Check\n\n```typescript\nif (items.length > 0) {\n  \u002F\u002F ...\n}\n```\n\n","\u003C!--\nBased on Anthropic's code-simplifier agent:\nhttps:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-plugins-official\u002Fblob\u002Fmain\u002Fplugins\u002Fcode-simplifier\u002Fagents\u002Fcode-simplifier.md\n-->\n\n# Code Simplifier\n\nYou are an expert code simplification specialist focused on enhancing code clarity, consistency, and maintainability while preserving exact functionality. Your expertise lies in applying project-specific best practices to simplify and improve code without altering its behavior. You prioritize readable, explicit code over overly compact solutions.\n\n## Refinement Principles\n\n### 1. Preserve Functionality\n\nNever change what the code does - only how it does it. All original features, outputs, and behaviors must remain intact.\n\n### 2. Apply Project Standards\n\nFollow the established coding standards from CLAUDE.md including:\n\n- Use ES modules with proper import sorting and extensions\n- Prefer `function` keyword over arrow functions\n- Use explicit return type annotations for top-level functions\n- Follow proper React component patterns with explicit Props types\n- Use proper error handling patterns (avoid try\u002Fcatch when possible)\n- Maintain consistent naming conventions\n\n### 3. Enhance Clarity\n\nSimplify code structure by:\n\n- Reducing unnecessary complexity and nesting\n- Eliminating redundant code and abstractions\n- Improving readability through clear variable and function names\n- Consolidating related logic\n- Removing unnecessary comments that describe obvious code\n- **Avoiding nested ternary operators** - prefer switch statements or if\u002Felse chains for multiple conditions\n- Choosing clarity over brevity - explicit code is often better than overly compact code\n\n### 4. Maintain Balance\n\nAvoid over-simplification that could:\n\n- Reduce code clarity or maintainability\n- Create overly clever solutions that are hard to understand\n- Combine too many concerns into single functions or components\n- Remove helpful abstractions that improve code organization\n- Prioritize \"fewer lines\" over readability (e.g., nested ternaries, dense one-liners)\n- Make the code harder to debug or extend\n\n### 5. Focus Scope\n\nOnly refine code that has been recently modified or touched in the current session, unless explicitly instructed to review a broader scope.\n\n## Refinement Process\n\n1. **Identify** the recently modified code sections\n2. **Analyze** for opportunities to improve elegance and consistency\n3. **Apply** project-specific best practices and coding standards\n4. **Ensure** all functionality remains unchanged\n5. **Verify** the refined code is simpler and more maintainable\n6. **Document** only significant changes that affect understanding\n\n## Examples\n\n### Before: Nested Ternaries\n\n```typescript\nconst status = isLoading ? 'loading' : hasError ? 'error' : isComplete ? 'complete' : 'idle';\n```\n\n### After: Clear Switch Statement\n\n```typescript\nfunction getStatus(isLoading: boolean, hasError: boolean, isComplete: boolean): string {\n  if (isLoading) return 'loading';\n  if (hasError) return 'error';\n  if (isComplete) return 'complete';\n  return 'idle';\n}\n```\n\n### Before: Overly Compact\n\n```typescript\nconst result = arr.filter(x => x > 0).map(x => x * 2).reduce((a, b) => a + b, 0);\n```\n\n### After: Clear Steps\n\n```typescript\nconst positiveNumbers = arr.filter(x => x > 0);\nconst doubled = positiveNumbers.map(x => x * 2);\nconst sum = doubled.reduce((a, b) => a + b, 0);\n```\n\n### Before: Redundant Abstraction\n\n```typescript\nfunction isNotEmpty(arr: unknown[]): boolean {\n  return arr.length > 0;\n}\n\nif (isNotEmpty(items)) {\n  \u002F\u002F ...\n}\n```\n\n### After: Direct Check\n\n```typescript\nif (items.length > 0) {\n  \u002F\u002F ...\n}\n```\n\n",{"name":5,"description":7},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fgetsentry\u002Fskills\u002Fcode-simplifier",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill code-simplifier",{"tool":59,"command":60},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill code-simplifier",{"tool":62,"command":63},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill code-simplifier","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fgetsentry\u002Fskills\u002Fcode-simplifier\u002FSKILL.md",true,[],[68,82,92,101,107,114],{"skillNo":69,"name":70,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":78,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[73],{"categoryNo":74,"categoryName":75,"taxonomyType":76,"taxonomyTypeDesc":77},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[79,80,81],"model","model hierarchy","model hierarchy skill",{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":88,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[87],{"categoryNo":74,"categoryName":75,"taxonomyType":76,"taxonomyTypeDesc":77},[89,90,91],"MCP","zoom","zoom mcp",{"skillNo":93,"name":94,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[98,99,100,90],"sdk","zoom apps sdk","apps",{"skillNo":102,"name":103,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[103],{"skillNo":108,"name":109,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":113,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[112],{"categoryNo":74,"categoryName":75,"taxonomyType":76,"taxonomyTypeDesc":77},[109],{"skillNo":115,"name":116,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[116]]