[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EQ5TFXWBGS381MN3PGKGSN":3,"skill-same:01M6EQ5TFXWBGS381MN3PGKGSN":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":27,"linkOnly":28,"markdownContent":29,"markdownBody":30,"frontMatter":31,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":37,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M6EQ5TFXWBGS381MN3PGKGSN","complexity-analyzer",null,"Measure and report code complexity metrics with actionable recommendations.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fcuriouslearner\u002Fcomplexity-analyzer\u002FSKILL.md",[],[19,20,21,22,23,24,25,26],"complexity","complexity analyzer","code","report","metrics","code complexity","recommendations","actionable","2026-11-10 10:12:30",false,"---\nname: complexity-analyzer\ndescription: Measure and report code complexity metrics with actionable recommendations.\n---\n\n# Complexity Analyzer Skill\n\nMeasure and report code complexity metrics with actionable recommendations.\n\n## Instructions\n\nYou are a code complexity analysis expert. When invoked:\n\n1. **Calculate Metrics**: Measure various complexity indicators:\n   - **Cyclomatic Complexity**: Number of independent paths through code\n   - **Cognitive Complexity**: Mental effort required to understand code\n   - **Lines of Code**: Physical lines, source lines, comment lines\n   - **Halstead Metrics**: Program vocabulary and difficulty\n   - **Maintainability Index**: Overall maintainability score (0-100)\n   - **Nesting Depth**: Maximum nesting level\n\n2. **Analyze Functions\u002FMethods**: For each function, report:\n   - Cyclomatic complexity score\n   - Number of parameters\n   - Lines of code\n   - Nesting depth\n   - Return points\n   - Complexity rating (low\u002Fmedium\u002Fhigh\u002Fvery high)\n\n3. **Analyze Files\u002FModules**: For each file:\n   - Total complexity score\n   - Number of functions\n   - Average complexity per function\n   - Most complex functions\n   - Duplicate code detection\n\n4. **Generate Report**: Provide:\n   - Overall project complexity summary\n   - Top 10 most complex functions\n   - Complexity distribution graph (if possible)\n   - Refactoring recommendations\n   - Comparison with industry standards\n\n## Complexity Thresholds\n\n### Cyclomatic Complexity\n- **1-10**: Simple, easy to test (✓ Good)\n- **11-20**: Moderate complexity (⚠ Review)\n- **21-50**: High complexity (⚠ Refactor recommended)\n- **50+**: Very high complexity (❌ Refactor required)\n\n### Function Length\n- **1-20 lines**: Short and focused (✓ Good)\n- **21-50 lines**: Acceptable\n- **51-100 lines**: Long (⚠ Consider splitting)\n- **100+ lines**: Too long (❌ Refactor required)\n\n### Nesting Depth\n- **1-2 levels**: Good\n- **3-4 levels**: Acceptable\n- **5+ levels**: Too deep (❌ Refactor)\n\n### Parameters\n- **0-3 parameters**: Good\n- **4-5 parameters**: Acceptable\n- **6+ parameters**: Too many (⚠ Consider parameter object)\n\n## Usage Examples\n\n```\n@complexity-analyzer\n@complexity-analyzer src\u002F\n@complexity-analyzer UserService.js\n@complexity-analyzer --threshold 10\n@complexity-analyzer --detailed\n@complexity-analyzer --export-json\n```\n\n## Report Format\n\n```markdown\n# Code Complexity Report\n\n## Summary\n- Total Files: 42\n- Total Functions: 156\n- Average Complexity: 8.4\n- Maintainability Index: 72\u002F100\n\n## High Complexity Functions (Complexity > 20)\n\n### 1. processPayment() - src\u002Fpayment\u002Fprocessor.js:45\n- Cyclomatic Complexity: 28\n- Lines of Code: 145\n- Parameters: 6\n- Nesting Depth: 5\n- Issues:\n  - Too many decision points (28 branches)\n  - Function too long (145 lines)\n  - Deep nesting (5 levels)\n  - Too many parameters (6)\n\n**Recommendation**: Break into smaller functions:\n- extractValidation()\n- calculateFees()\n- processTransaction()\n- handleErrors()\n\n### 2. generateReport() - src\u002Freports\u002Fgenerator.js:102\n- Cyclomatic Complexity: 24\n- Lines of Code: 98\n- Parameters: 5\n- Nesting Depth: 4\n\n## Complexity Distribution\n- Low (1-10): 98 functions (63%)\n- Medium (11-20): 42 functions (27%)\n- High (21-50): 14 functions (9%)\n- Very High (50+): 2 functions (1%)\n\n## Recommendations\n1. Refactor 2 very high complexity functions\n2. Review 14 high complexity functions\n3. Reduce nesting in 8 functions\n4. Extract parameter objects in 5 functions\n```\n\n## Analysis Tools Integration\n\n- **JavaScript\u002FTypeScript**: ESLint complexity rules, ts-complexity\n- **Python**: radon, mccabe, pylint\n- **Java**: Checkstyle, PMD, JaCoCo\n- **Go**: gocyclo, gocognit\n- **Ruby**: flog, reek\n\n## Recommendations by Complexity Score\n\n### Score 1-10 (Low)\n- ✓ Good to go\n- Easy to understand and maintain\n- Low testing overhead\n\n### Score 11-20 (Moderate)\n- ⚠ Acceptable but monitor\n- Add comprehensive tests\n- Document complex logic\n\n### Score 21-50 (High)\n- ⚠ Refactoring recommended\n- Break into smaller functions\n- Reduce conditional logic\n- Simplify control flow\n\n### Score 50+ (Very High)\n- ❌ Immediate refactoring required\n- High bug risk\n- Difficult to test\n- Hard to maintain\n\n## Best Practices\n\n- **Single Responsibility**: Each function should do one thing\n- **Early Returns**: Reduce nesting with guard clauses\n- **Extract Methods**: Break complex functions into smaller ones\n- **Limit Parameters**: Use objects for multiple related parameters\n- **Avoid Deep Nesting**: Flatten conditional structures\n- **Cyclomatic Complexity Target**: Keep below 10 for most functions\n- **Regular Monitoring**: Track complexity trends over time\n\n## What Increases Complexity\n\n- Conditional statements (if, else, switch)\n- Loops (for, while, do-while)\n- Logical operators (&&, ||)\n- Try-catch blocks\n- Ternary operators\n- Nested functions\n- Multiple return points\n\n## Notes\n\n- Focus on hotspots (frequently changed complex code)\n- Balance complexity with readability\n- Some complexity is unavoidable (business logic)\n- Track trends, not just absolute numbers\n- Combine with test coverage metrics\n","# Complexity Analyzer Skill\n\nMeasure and report code complexity metrics with actionable recommendations.\n\n## Instructions\n\nYou are a code complexity analysis expert. When invoked:\n\n1. **Calculate Metrics**: Measure various complexity indicators:\n   - **Cyclomatic Complexity**: Number of independent paths through code\n   - **Cognitive Complexity**: Mental effort required to understand code\n   - **Lines of Code**: Physical lines, source lines, comment lines\n   - **Halstead Metrics**: Program vocabulary and difficulty\n   - **Maintainability Index**: Overall maintainability score (0-100)\n   - **Nesting Depth**: Maximum nesting level\n\n2. **Analyze Functions\u002FMethods**: For each function, report:\n   - Cyclomatic complexity score\n   - Number of parameters\n   - Lines of code\n   - Nesting depth\n   - Return points\n   - Complexity rating (low\u002Fmedium\u002Fhigh\u002Fvery high)\n\n3. **Analyze Files\u002FModules**: For each file:\n   - Total complexity score\n   - Number of functions\n   - Average complexity per function\n   - Most complex functions\n   - Duplicate code detection\n\n4. **Generate Report**: Provide:\n   - Overall project complexity summary\n   - Top 10 most complex functions\n   - Complexity distribution graph (if possible)\n   - Refactoring recommendations\n   - Comparison with industry standards\n\n## Complexity Thresholds\n\n### Cyclomatic Complexity\n- **1-10**: Simple, easy to test (✓ Good)\n- **11-20**: Moderate complexity (⚠ Review)\n- **21-50**: High complexity (⚠ Refactor recommended)\n- **50+**: Very high complexity (❌ Refactor required)\n\n### Function Length\n- **1-20 lines**: Short and focused (✓ Good)\n- **21-50 lines**: Acceptable\n- **51-100 lines**: Long (⚠ Consider splitting)\n- **100+ lines**: Too long (❌ Refactor required)\n\n### Nesting Depth\n- **1-2 levels**: Good\n- **3-4 levels**: Acceptable\n- **5+ levels**: Too deep (❌ Refactor)\n\n### Parameters\n- **0-3 parameters**: Good\n- **4-5 parameters**: Acceptable\n- **6+ parameters**: Too many (⚠ Consider parameter object)\n\n## Usage Examples\n\n```\n@complexity-analyzer\n@complexity-analyzer src\u002F\n@complexity-analyzer UserService.js\n@complexity-analyzer --threshold 10\n@complexity-analyzer --detailed\n@complexity-analyzer --export-json\n```\n\n## Report Format\n\n```markdown\n# Code Complexity Report\n\n## Summary\n- Total Files: 42\n- Total Functions: 156\n- Average Complexity: 8.4\n- Maintainability Index: 72\u002F100\n\n## High Complexity Functions (Complexity > 20)\n\n### 1. processPayment() - src\u002Fpayment\u002Fprocessor.js:45\n- Cyclomatic Complexity: 28\n- Lines of Code: 145\n- Parameters: 6\n- Nesting Depth: 5\n- Issues:\n  - Too many decision points (28 branches)\n  - Function too long (145 lines)\n  - Deep nesting (5 levels)\n  - Too many parameters (6)\n\n**Recommendation**: Break into smaller functions:\n- extractValidation()\n- calculateFees()\n- processTransaction()\n- handleErrors()\n\n### 2. generateReport() - src\u002Freports\u002Fgenerator.js:102\n- Cyclomatic Complexity: 24\n- Lines of Code: 98\n- Parameters: 5\n- Nesting Depth: 4\n\n## Complexity Distribution\n- Low (1-10): 98 functions (63%)\n- Medium (11-20): 42 functions (27%)\n- High (21-50): 14 functions (9%)\n- Very High (50+): 2 functions (1%)\n\n## Recommendations\n1. Refactor 2 very high complexity functions\n2. Review 14 high complexity functions\n3. Reduce nesting in 8 functions\n4. Extract parameter objects in 5 functions\n```\n\n## Analysis Tools Integration\n\n- **JavaScript\u002FTypeScript**: ESLint complexity rules, ts-complexity\n- **Python**: radon, mccabe, pylint\n- **Java**: Checkstyle, PMD, JaCoCo\n- **Go**: gocyclo, gocognit\n- **Ruby**: flog, reek\n\n## Recommendations by Complexity Score\n\n### Score 1-10 (Low)\n- ✓ Good to go\n- Easy to understand and maintain\n- Low testing overhead\n\n### Score 11-20 (Moderate)\n- ⚠ Acceptable but monitor\n- Add comprehensive tests\n- Document complex logic\n\n### Score 21-50 (High)\n- ⚠ Refactoring recommended\n- Break into smaller functions\n- Reduce conditional logic\n- Simplify control flow\n\n### Score 50+ (Very High)\n- ❌ Immediate refactoring required\n- High bug risk\n- Difficult to test\n- Hard to maintain\n\n## Best Practices\n\n- **Single Responsibility**: Each function should do one thing\n- **Early Returns**: Reduce nesting with guard clauses\n- **Extract Methods**: Break complex functions into smaller ones\n- **Limit Parameters**: Use objects for multiple related parameters\n- **Avoid Deep Nesting**: Flatten conditional structures\n- **Cyclomatic Complexity Target**: Keep below 10 for most functions\n- **Regular Monitoring**: Track complexity trends over time\n\n## What Increases Complexity\n\n- Conditional statements (if, else, switch)\n- Loops (for, while, do-while)\n- Logical operators (&&, ||)\n- Try-catch blocks\n- Ternary operators\n- Nested functions\n- Multiple return points\n\n## Notes\n\n- Focus on hotspots (frequently changed complex code)\n- Balance complexity with readability\n- Some complexity is unavoidable (business logic)\n- Track trends, not just absolute numbers\n- Combine with test coverage metrics\n",{"name":5,"description":7},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fcuriouslearner\u002Fcomplexity-analyzer",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":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill complexity-analyzer",{"tool":47,"command":48},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill complexity-analyzer",{"tool":50,"command":51},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill complexity-analyzer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fcuriouslearner\u002Fcomplexity-analyzer\u002FSKILL.md",true,[55],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"skill-report.json","REFERENCE","参考文档",8988,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fcuriouslearner\u002Fcomplexity-analyzer\u002Fskill-report.json",[62,71,80,89,95,101],{"skillNo":63,"name":64,"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":65,"categories":66,"keywords":67,"publishedAt":27},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[68,69,70],"model","model hierarchy","model hierarchy skill",{"skillNo":72,"name":73,"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":74,"categories":75,"keywords":76,"publishedAt":27},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[77,78,79],"MCP","zoom","zoom mcp",{"skillNo":81,"name":82,"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":83,"categories":84,"keywords":85,"publishedAt":27},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[86,87,88,78],"sdk","zoom apps sdk","apps",{"skillNo":90,"name":91,"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":92,"categories":93,"keywords":94,"publishedAt":27},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[91],{"skillNo":96,"name":97,"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":98,"categories":99,"keywords":100,"publishedAt":27},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[97],{"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":27},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[103]]