Bootstrap Rules
When to use bootstrap
Section titled “When to use bootstrap”If your repo has no AI rule files yet (no CLAUDE.md, AGENTS.md, .cursor/rules/, etc.), bootstrap generates a starter set tailored to your stack.
bunx @lambdacurry/anvil bootstrap ./my-repo \ --output ./bootstrap-draft.mdWhat it detects
Section titled “What it detects”Anvil reads signals from your project to determine the tech stack:
package.json— dependencies and scriptstsconfig.json— TypeScript configuration- Framework configs — Next.js, Remix, Vite, etc.
- Tool configs — ESLint, Prettier, Tailwind, etc.
Output
Section titled “Output”The bootstrap draft includes:
- Project context rules — tech stack, build commands, test commands
- Coding conventions — patterns inferred from your tooling
- Common guardrails — based on the detected framework and language
- Placeholder sections — for you to fill in project-specific knowledge
After bootstrapping
Section titled “After bootstrapping”- Review the generated draft
- Fill in project-specific sections (architecture decisions, gotchas, etc.)
- Place the final rules in the appropriate locations (CLAUDE.md, AGENTS.md,
.cursor/rules/) - Run
anvil auditto score your new rule set