krilliac/agent-workbench/repo-audit

Claude Code and agent skill by krilliac/agent-workbench

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Read-only sweep of a C++ engine repo for tech debt, dead code, TODO/FIXME/HACK counts, cyclomatic outliers, and stale branches. TRIGGER when the user says "audit the repo", "code health", "what should we refactor first", "find dead code", "how much tech debt", "TODO count", "cyclomatic complexity", "stale branches". DO NOT TRIGGER for code review of a specific diff (use engineering:code-review) or refactor planning (use refactor-planner agent). Produces a rank-ordered debt report -- not a plan, not a diff, just a survey.

Install

npx vskill@latest install krilliac/agent-workbench/repo-audit

SKILL.md

The same SKILL.md was published earlier as krilliac/agent-workbench/repo-audit.

repo-audit

Output

# Repo audit -- <repo> -- <date>
## Executive summary
- N files, M SLOC, K markers.
## Debt hotspots (rank-ordered)
1. file.cpp -- CCN X, N TODOs, last modified <date>. Notes.
## Dead code candidates
## Stale branches
## Suggested first refactors (top 5)

Method

  1. cloc . --exclude-dir=build,vendored,third_party,.vs --quiet for SLOC.
  2. git grep -c "TODO\|FIXME\|HACK\|XXX" -- "*.cpp" "*.h" | sort -t: -k2 -n -r | head -30 for marker density.
  3. lizard -l cpp -T CCN=15 . for cyclomatic outliers. CCN>15 worth looking, >30 untestable.
  4. cppcheck --enable=unusedFunction + clangd cross-refs for dead code candidates (30% false positive; verify).
  5. git for-each-ref --sort=-committerdate refs/remotes/origin for stale branches (>180 days = candidate delete).

Debt density score

score = 0.4 * CCN + 0.3 * markers + 0.2 * (stale?10:0) + 0.1 * (size>500?10:0)

Top 20 = shortlist.

Exclude

Generated files, third_party/, external/, test fixture data.

Handoff

Audit is diagnostic. Rank list -> refactor-planner or human triage.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/krilliac/agent-workbench/repo-audit/badge)](https://verified-skill.com/skills/krilliac/agent-workbench/repo-audit)

Something wrong with this skill or its page? Tell us.