code-analysis
БесплатноБез исполняемых скриптовНе проверенProvides methodologies, metrics, and best practices for analyzing code structure, complexity, and quality
Об этом скилле
Overview
This skill provides comprehensive knowledge for code analysis including complexity metrics, anti-pattern detection, refactoring strategies, and code quality assessment across multiple programming languages.
Complexity Metrics
Cyclomatic Complexity
- Low: 1-10 (simple, easy to test)
- Medium: 11-20 (moderate complexity, acceptable)
- High: 21-50 (complex, needs refactoring)
- Very High: 51+ (critical, must refactor)
Cognitive Complexity
Measures how difficult code is to understand based on nesting, control flow breaks, and recursion.
Code Smells to Detect
- Long Methods: >50 lines
- Large Classes: >300 lines
- Duplicate Code: Repeated blocks
- Long Parameter Lists: >5 parameters
- Deep Nesting: >4 levels
- God Objects: Classes doing too much
- Dead Code: Unused functions/variables
Refactoring Strategies
- Extract Method: Break long methods into smaller ones
- Extract Class: Split large classes by responsibility
- Replace Conditional with Polymorphism
- Simplify Conditional Expressions
- Remove Duplicate Code
When to Apply
Use when analyzing codebase structure, identifying refactoring opportunities, or assessing code quality.
Установить code-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл code-analysis?
Provides methodologies, metrics, and best practices for analyzing code structure, complexity, and quality
Как установить скилл code-analysis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-analysis запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic