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…
Write and fix tests that catch real bugs, by testing behaviour, faking only the device boundary and seeding data the way the product writes it. Use when a bug needs a test that fails first, or a unit test is failing or flaky, or when the user says "add a test for this bug", "fix
Claude Code
$ npx -y skills add off-grid-ai/skills --skill bug-trap --agent claude-code
Codex
$ npx skills add off-grid-ai/skills --skill bug-trap -a codex -y
Cursor
$ npx skills add off-grid-ai/skills --skill bug-trap -a cursor -y
Gemini CLI
$ npx skills add off-grid-ai/skills --skill bug-trap -a gemini-cli -y
GitHub Copilot
$ npx skills add off-grid-ai/skills --skill bug-trap -a github-copilot -y
OpenCode
$ npx skills add off-grid-ai/skills --skill bug-trap -a opencode -y
Windsurf
$ npx skills add off-grid-ai/skills --skill bug-trap -a windsurf -y
name: bug-trap description: Write and fix tests that catch real bugs, by testing behaviour, faking only the device boundary and seeding data the way the product writes it. Use when a bug needs a test that fails first, or a unit test is failing or flaky, or when the user says "add a test for this bug", "fix this failing test" or "why is this test flaky". For the bar every test is held to, use test-like-a-user.
1. **Test behaviour, not layout.** Tests should survive a UI redesign. 2. **Below the UI first:** engine and service contract tests for what the feature does. 3. **Rendered tests** find elements by role, label or test id. Never by copy or position. 4. **Fake only the device boundary:** native modules, network, disk, clock, memory. No mocks of the project's own code. 5. **Seed through the product's own write paths.** Data enters the way the app writes it (capture, import, analysis), never by `INSERT` into its tables. A hand-seeded row tests your guess of the schema, not the product. 6. **A failing test is a finding.** Fix the cause. Never loosen the test or raise a timeout. 7. **Hard cases:** read `test-like-a-user/reference/test-doctrine.md`. For the full standard on journeys and review verdicts, see `test-like-a-user`.
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…