Analyzing Codebases

Runs real static-analysis tooling and ranks refactor hotspots by churn x complexity.

Autor: wayne930242 · wayne930242/Reflexive-Claude-Code

Działa po konfiguracji ★ 8.0/10

Analyzing Codebases — Runs real static-analysis tooling and ranks refactor hotspots by churn x complexity.

Co robi ten skill

Detects a project's languages and monorepo shape, runs the matching static-analysis toolchain (dependency graph, duplication, cognitive complexity, semantic patterns), and writes a machine-parseable refactor map ranking the top 20 hotspots by git churn times complexity. Triggers on /aref or an explicit ask to analyze a codebase before refactoring.

Raport z testu

Ran the real toolchain on a throwaway TS repo: jscpd correctly caught an exact-clone duplication cluster and git-churn math correctly ranked the touched-and-duplicated file above its untouched twin (score 96 vs 16, both cognitive complexity 16). But the reference doc's literal commands for dependency-cruiser and eslint-plugin-sonarjs both failed out of the box (needed --no-config plus --include-only, and a manually added @typescript-eslint/parser) — friction not mentioned anywhere in the skill.

Testowano: 2026-07-15 · Claude Code 2.x (agent harness)

Instalacja

git clone https://github.com/wayne930242/Reflexive-Claude-Code
mkdir -p ~/.claude/skills
cp -r Reflexive-Claude-Code/plugins/aref/skills/analyzing-codebases ~/.claude/skills/analyzing-codebases

Komendy i przykładowe prompty

  • /analyzing-codebasesRuns real static-analysis tooling and ranks refactor hotspots by churn x complexity.

Skille uruchamiają się na zwykłe polecenia — bez komend do zapamiętania. Po instalacji aktywują go prompty takie jak te (po angielsku):

  • Analyze this codebase and tell me what needs refactoring first
  • Give me a hotspot map of the messiest, most complex files before we refactor
  • Which files here have the highest git churn combined with high complexity?