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…
Add end-to-end tests to code that has none, in tiers by confidence, and run every test before handing it over. Use before refactoring untested code, after inheriting a project, or when the user says "add tests for this flow", "write e2e tests for login" or "we have no tests for
Claude Code
$ npx -y skills add off-grid-ai/skills --skill tests-for-old-code --agent claude-code
Codex
$ npx skills add off-grid-ai/skills --skill tests-for-old-code -a codex -y
Cursor
$ npx skills add off-grid-ai/skills --skill tests-for-old-code -a cursor -y
Gemini CLI
$ npx skills add off-grid-ai/skills --skill tests-for-old-code -a gemini-cli -y
GitHub Copilot
$ npx skills add off-grid-ai/skills --skill tests-for-old-code -a github-copilot -y
OpenCode
$ npx skills add off-grid-ai/skills --skill tests-for-old-code -a opencode -y
Windsurf
$ npx skills add off-grid-ai/skills --skill tests-for-old-code -a windsurf -y
name: tests-for-old-code description: Add end-to-end tests to code that has none, in tiers by confidence, and run every test before handing it over. Use before refactoring untested code, after inheriting a project, or when the user says "add tests for this flow", "write e2e tests for login" or "we have no tests for X".
Old code has no spec, so the tests pin down what it does today. Hold every test to `test-like-a-user`: real screens and real calls, faking only the network edge and the device.
Ask what flow to cover if it isn't clear. Then find its entry points (routes, screens, handlers), what it calls and what it writes, and one existing test to copy the style and runner from. Use `learn-this-codebase` if there's no map.
Show the plan and ask which tiers to write.
For each tier the user chose: 1. Write it in the project's runner and style, next to its other tests. 2. Run it. 3. If it fails, read the error and fix the test, up to 3 times. If the code is what's wrong, stop and tell the user: that's a bug you found, not a test to bend. 4. Still failing after 3 tries: move it to Tier 3 with what you learned.
Never loosen an assertion or raise a timeout to get green.
A short report: each test, its tier, pass or moved, and what it covers. Tier 3 items as a checklist. Any bugs found, first.
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.
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…
Before editing a file or symbol, find everything that depends on it, score how risky the change is, and stop for approval when…
Check everything before and after a production deploy, with a rollback plan and clear rollback triggers. Use when the user is…
Get to know an unfamiliar codebase fast. Maps what it does, its modules, entry points, riskiest files, recent changes and the…
Plan a new project before any code exists. Researches the domain, then has an architect, a product lead and a security lead plan…
Check that code follows the project's architecture rules, such as which modules may import which, no cycles, and services talking…
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI…