프로젝트
GitHub에서 보기
saurabhkumar8112/cyclomatic-complexity-skill
소개
Claude 스킬: 코드 리팩터링으로 순환 복잡도 낮추기
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalcyclomatic-complexity
A Claude skill that refactors code to reduce cyclomatic complexity. Built for AI-generated code: it works, but branches like a jungle. This skill makes Claude measure complexity, refactor hotspots, and keep code maintainable for humans and the long-term vision of the codebase.
What it does
- Measures cyclomatic complexity per function (radon, eslint, gocyclo, lizard, or manual count)
- Respects your project's own linter thresholds when configured
- Refactors worst hotspots first: guard clauses, extract function, lookup tables, named predicates
- Refuses to game the metric. Complexity moves into well-named functions, not into clever one-liners
- Ends every refactor with a before/after complexity table
Install
Claude Code
/plugin marketplace add saurabhkumar8112/cyclomatic-complexity-skill
/plugin install cyclomatic-complexity@cyclomatic-complexity-skill
Claude.ai
Download the .skill file from Releases (or zip the skills/cyclomatic-complexity folder) and upload it under Settings → Capabilities → Skills.
Claude API
Upload via the Skills API.
Usage
Triggers automatically on refactoring, cleanup, and code review requests. Or invoke directly:
"Use the cyclomatic complexity skill to refactor parser.py"
Example output
## Complexity report
| Function | Before | After |
|----------|--------|-------|
| parseOrder | 14 | 4 |
Extracted: validateHeader, resolveDiscount
Behavior verified: existing test suite passes
License
Apache 2.0
관련 프로젝트 살펴보기
불러오는 중…