cyclomatic-complexity-skillsaurabhkumar8112/cyclomatic-complexity-skill
Identifies and refactors code with excessive cyclomatic complexity, breaking hard-to-test and hard-to-maintain functions…
No ratings yet
Rate this skill
Stars405
Forks10
Watchers405
Open Issues0
InstallOne-line install
UnconfirmedWhether this repository follows the Agent Skills spec (that is, whether it contains a SKILL.md) has not been verified yet. Until that is settled, clone it and use what you need:
git clone https://github.com/saurabhkumar8112/cyclomatic-complexity-skill.git
OverviewOverview
Key Features
Identifies and refactors code with excessive cyclomatic complexity, breaking hard-to-test and hard-to-maintain functions into simpler structures. Key capabilities include: 1. Complexity diagnosis: calculates cyclomatic complexity per function and pinpoints over-limit locations, identifying which conditional branches and loops raise the complexity; 2. Refactoring rewrite: splits high-complexity functions into smaller ones by responsibility, converts nested conditions into early returns or separate branches, and reduces the number of decision paths per function; 3. Post-refactor verification: recalculates complexity on the rewritten code to confirm the value drops while original behavior is preserved, avoiding new defects from refactoring.
Use Cases
reducing function cyclomatic complexity, splitting long conditional branches, refactoring hard-to-maintain legacy code, quality cleanup before code review.
Target Roles
Backend Developer, Full-stack / Indie Developer, Test / QA Engineer, DevOps / Operations Engineer.
TopicsTopics
RatingUser ratings
Nobody has rated this skill yet. Yours would be the first on the site — your vote becomes the initial average.
RepositoryRepository
| Skill ID | 2031 |
|---|---|
| Data source | GitHub |
| Repository | saurabhkumar8112/cyclomatic-complexity-skill |
| Category | Development & Engineering / Code Quality & Refactoring |
| Primary language | Other |
| License | Apache License 2.0 |
| Default branch | master |
| GitHub repository ID | 1347659559 |
| Node ID | R_kgDOUFOnJw |
| Rank | #1527 (position within the source ranking) |
| Site-wide popularity rank | #1728 (computed live from Stars, across all 5833 entries) |
GrowthStar / Fork growth
One snapshot per day, tracking how Stars and Forks changed
- Now405
- Previous point · 09-25 399
- vs previous point +6
- 2 data points 16 days
- Now10
- Previous point · 09-25 10
- vs previous point ±0
- 2 data points 16 days
TimelineTimeline
Repository created2026-08-26 18:17:342 months ago
Data last updated2026-10-26 12:15:4721 days ago
Last commit2026-08-26 18:17:412 months ago
CommitLatest commit
Version [latest] committed by saurabhkumar8112. Update Category: Codebase Iteration & Routine Maintenance. Commit details: cyclomatic-complexity skill v1. This update updates core functional modules and advances project iteration.