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…
Hold every test to one bar, real integration tests that walk the whole user journey and prove the intended end state, with fakes only at boundaries you can't control. Use when writing, fixing, reviewing or auditing tests, or when the user says "write a test", "add tests for
Claude Code
$ npx -y skills add off-grid-ai/skills --skill test-like-a-user --agent claude-code
Codex
$ npx skills add off-grid-ai/skills --skill test-like-a-user -a codex -y
Cursor
$ npx skills add off-grid-ai/skills --skill test-like-a-user -a cursor -y
Gemini CLI
$ npx skills add off-grid-ai/skills --skill test-like-a-user -a gemini-cli -y
GitHub Copilot
$ npx skills add off-grid-ai/skills --skill test-like-a-user -a github-copilot -y
OpenCode
$ npx skills add off-grid-ai/skills --skill test-like-a-user -a opencode -y
Windsurf
$ npx skills add off-grid-ai/skills --skill test-like-a-user -a windsurf -y
name: test-like-a-user description: Hold every test to one bar, real integration tests that walk the whole user journey and prove the intended end state, with fakes only at boundaries you can't control. Use when writing, fixing, reviewing or auditing tests, or when the user says "write a test", "add tests for this", "are these tests any good", "test this properly", "audit the tests" or "review this test".
This standard works for web apps, services, mobile apps and desktop apps. "The project's own code" means everything in the repo you are testing: its source folders, services, stores, hooks, components, screens, navigators, parsers and registries. Find those folders first (for example `src/`, `app/`, `lib/`, `packages/*`).
1. State the behaviour the user can see and the failure being guarded against. 2. Define the intended end state and name the old paths or surfaces that must disappear. 3. Find the real screen, navigation path, production stack and outside boundary. 4. Reuse an existing boundary fake, or add the smallest faithful fake at that boundary. 5. Write the integration test through real actions, URLs and history where they apply, and visible assertions. 6. For a bug, run the test against the broken code and confirm it fails for the reason you expect. 7. Fix the production seam and remove the old path. Do not patch the test around a poor abstraction. 8. Run the visual check, the focused test, related suites, and the project's lint, format and type checks. Run native tests when the change crosses a native boundary. 9. Remove leaked timers, subscriptions, processes and pending promises. A suite that needs a force-exit flag to hide unfinished work is not clean.
Fail the review when a test mocks the project's own code, makes up state instead of using the product, asserts only calls or source text, skips a known bug, keeps a duplicate or replaced journey, leaves out visual or navigation proof for changed UI, or passes while async work outlives teardown. Name the exact file and the real integration test that should replace it.
For the deeper method (fakes vs stubs vs mocks, observing the transition, debugging a test), see `reference/test-doctrine.md` in this skill. The companion skill `bug-trap` is the short checklist.
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…