Skip to content
Back to skills

Audit A Module

ASecurity

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\".

  • 189 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsgit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add wednesday-solutions/alfred --skill audit-a-module --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Audit A Module?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Audit A Module
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wednesday-solutions-audit-a-module/badge)](https://www.skillsdirectory.com/skills/wednesday-solutions-audit-a-module)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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 `see-what-a-change-breaks` 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 `see-what-a-change-breaks` |
| 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.

Files in this skill

  • README.md488 B
  • SKILL.md1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.