anthropics / claude-plugins-official
Code health
Hotspots average 5.5, the place fixes pay off most.
Explore this codebase
- Code health map11hotspots across 490 files
- Ownership132sole-owned files: one author, no second reader
- Architecture3modules, 4 entry points
- Decisions10recorded, of which 0 in force and 10 background
- Refactoring45open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 4
4 things worth doing in the week to Oct 16, the last indexed commit.
Worth planning
Start breaking up readSnapshot (CCN 124, 382 lines): first lift lines 554-566
plugins/code-modernization/hooks/reader/progress.ts:554
readSnapshot nests deeply; easier to read and change once split, which also removes a duplicate; its file is imported by 10 files, changed 4 times in 90 days.
- gain
- up to +0.5 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 124, 382 lines, nests 4 deep
- severity
- medium
Medium effort, worth a checkBreak up register (CCN 151, 902 lines)
plugins/code-modernization/hooks/register.ts:1216
register nests deeply; easier to read and change once split, which also removes a duplicate; function changed in 5 commits; changed 6 times in 90 days.
- gain
- up to +0.4 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 151, 902 lines, nests 4 deep
- severity
- medium
Medium effort, worth a checkTidy the code shape this week's commits left: 8 findings in 3 files
5 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
plugins/security-guidance/hooks/llm.py(6 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 8
- files
- 3
- commits
- 5
Medium effortStart breaking up handle_commit_review_posttooluse (CCN 100, 319 lines)
plugins/security-guidance/hooks/security_reminder_hook.py:1221
handle_commit_review_posttooluse nests deeply; easier to read and change once split, which also removes a duplicate; its file is imported by 1 file, changed 21 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 100, 319 lines, nests 4 deep
- severity
- medium
Medium effort, worth a check
Improve what Repowise can see
Add a test coverage report
Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.
- line coverage
- Unknown, no report
Small effort
Everything we found
5 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health860 open findingsCriticalChange entropy · plugins/security-guidance/hooks/gitutil.py31 findings · 8.4 deducted
- Refactoring45 open opportunitiesMediummain+1.5 health, M effort · plugins/code-modernization/scripts/render_rules.py
- Decisions0 drifting from the codeMediumplugins/security-guidance/hooks/security_reminder_hook.pyHigh-churn file with no governing decision
- Ownership132 sole-owned filesMediumplugins/code-modernization/workflows/extract-rules.jsOne author, no second reader
- Dead code3LowDECK_IDUnreachable constant (1 lines)