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…
Check that code follows the project's architecture rules, such as which modules may import which, no cycles, and services talking only through their APIs. Reports each new violation with the commit that added it and a fix. Use on a PR that crosses module boundaries, when the
Claude Code
$ npx -y skills add off-grid-ai/skills --skill stay-in-the-lines --agent claude-code
Codex
$ npx skills add off-grid-ai/skills --skill stay-in-the-lines -a codex -y
Cursor
$ npx skills add off-grid-ai/skills --skill stay-in-the-lines -a cursor -y
Gemini CLI
$ npx skills add off-grid-ai/skills --skill stay-in-the-lines -a gemini-cli -y
GitHub Copilot
$ npx skills add off-grid-ai/skills --skill stay-in-the-lines -a github-copilot -y
OpenCode
$ npx skills add off-grid-ai/skills --skill stay-in-the-lines -a opencode -y
Windsurf
$ npx skills add off-grid-ai/skills --skill stay-in-the-lines -a windsurf -y
name: stay-in-the-lines description: Check that code follows the project's architecture rules, such as which modules may import which, no cycles, and services talking only through their APIs. Reports each new violation with the commit that added it and a fix. Use on a PR that crosses module boundaries, when the user asks "are we following the architecture" or "is this import allowed", or as a weekly health check.
Look for a `boundaries` JSON block in `PLAN.md`, then `ARCHITECTURE.md`, then lint rules (eslint import rules, dependency-cruiser, ArchUnit, import-linter). If there are none, propose a few from how the code is laid out today, show them to the user, and add them to `PLAN.md` only once they agree:
{
"boundaries": [
{ "rule": "ui-never-imports-db", "from": "src/app/**", "to": "src/db/**", "type": "forbidden" },
{ "rule": "services-talk-over-api", "from": "services/a/**", "to": "services/b/**", "type": "no-direct-import" },
{ "rule": "no-cycles", "scope": "**", "type": "no-cycle" }
]
}Rule types: `forbidden` (A must never import B), `no-direct-import` (go through the API), `no-cycle`, `ownership` (this logic lives only in its owner module).
For each violation: the rule, the exact import or call (file:line), the commit that added it (`git log -S`), and the fix that keeps the rule's intent. Report each once.
Never fix a violation without asking. Sometimes the rule is what's wrong; say so when it is.
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…
Add end-to-end tests to code that has none, in tiers by confidence, and run every test before handing it over. Use before…
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…