Skip to content
AI & Agents
Skill

/audit-a-module

Health check one module or service and recommend what to do with it: leave it, clean it up, refactor it with care, or don't touch it without a senior. Covers what it does, who depends on it, risk, test coverage, churn and rule breaks. Use when the user says \"audit this

From plugin
skills
18515 skills

Claude Code

$ npx -y skills add off-grid-ai/skills --skill audit-a-module --agent claude-code

SKILL.md

audit-a-module.SKILL.md
name: audit-a-module
description: "Health check one module or service and recommend what to do with it: leave it, clean it up, refactor it with care, or don't touch it without a senior. Covers what it does, who depends on it, risk, test coverage, churn and rule breaks. Use when the user says \"audit this module\", \"is it safe to refactor X\", \"how healthy is this service\" or \"should we rewrite X\"."

Audit a module

1. Gather, in parallel where you can

  • **Purpose:** what it does in two sentences, from its code, README and callers.
  • **Shape:** size, public surface, what it imports, what imports it (use `blast-radius` for the full list and score).
  • **Tests:** which tests cover it, whether they test behaviour, and roughly what share of its public surface is covered.
  • **History:** churn over 90 days, bug-fix commits (`git log --grep -i fix`), how many people touch it.
  • **Rules:** any architecture rule it breaks (`stay-in-the-lines`), and any danger zone in `CODEBASE.md`.
  • **Smells:** cycles, dead exports, copy-pasted logic, files over 500 lines, functions with deep nesting.

2. Report on one screen

| | | |---|---| | What it does | … | | Risk | score and band from `blast-radius` | | Dependents | count, and which cross a boundary | | Tests | covered / thin / none | | Churn | commits and fixes in 90 days | | Breaks rules | … |

Then a **recommendation**: leave it / clean up / refactor with care / senior sign-off first. Give the three changes that would help most, in order, each with its risk.

3. If tests are thin and risk is high

Offer `tests-for-old-code` before any refactor. Show the plan first; don't write tests unasked.

Never recommend a rewrite without the dependent count and a path that keeps it working the whole way.

Read more
@wednesday-solutions
Ships withskills

These are the skills I use every day. I built Off Grid AI on my own with them, and it reached 250,000+ downloads on 7 platforms without spending a dollar on ads. Install them and your AI works the way mine does.

Stars on GitHub

Momentum

stars in total
185
Star history of wednesday-solutions/ai-agent-skills on GitHub, a chart by star-history.com

Other skills on skills.

blast-radius

blast-radius

Before editing a file or symbol, find everything that depends on it, score how risky the change is, and stop for approval when…

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw3w393k
@openclaw@openclawInstall Skill

Questions about audit-a-module.

Which coding agents can use audit-a-module?
audit-a-module installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.