Course contents
Install AI coding presets with one command: npx presets-dev
On this page
Before you start
You need Node.js 22 or later (the version the npm package declares in engines). There's nothing to install globally and no account; npx downloads the CLI when you run it. The CLI fetches preset files from the public presets.dev content repo at run time, so you always get the current release.
1. See what's available
npx presets-dev listEach line is a stack and the skill that comes with it:
nextjs nextjs-code-review
react react-performance-audit
python python-test-writer
typescript typescript-code-review
supabase supabase-security-review
...
There are 30 stacks, from Next.js and Django to Terraform and MCP servers. Browse them on the site with Browse.
2. Preview the install
Run from your project root. --dry-run prints the plan and writes nothing:
npx presets-dev add nextjs --dry-runWith no --tool, the CLI looks for signs of each tool in your project, like a .cursor/ folder, a CLAUDE.md, or an AGENTS.md. If it finds none, it asks which tool you use.
3. Install
Name your tool to be explicit:
npx presets-dev add nextjs --tool claudecreated .claude/rules/nextjs-rules.md
created .claude/skills/nextjs-code-review/SKILL.md
2 file action(s), 0 skipped. https://presets.dev
That's the whole install: two files.
- The standards file (a rule or instructions file) is scoped to the stack's files where the tool supports it, so it loads when the agent works on Next.js files.
- The skill runs when you ask for a Next.js review, or when you type
/nextjs-code-review.
What each tool gets
--tool | Standards | Skill |
|---|---|---|
cursor | .cursor/rules/nextjs-rules.mdc | .cursor/skills/nextjs-code-review/SKILL.md |
copilot | .github/instructions/nextjs.instructions.md | .github/skills/nextjs-code-review/SKILL.md |
claude | .claude/rules/nextjs-rules.md | .claude/skills/nextjs-code-review/SKILL.md |
windsurf | .devin/rules/nextjs-rules.md | .devin/skills/nextjs-code-review/SKILL.md |
cline | .clinerules/nextjs-rules.md | .cline/skills/nextjs-code-review/SKILL.md |
codex | Section appended to AGENTS.md | .agents/skills/nextjs-code-review/SKILL.md |
antigravity | Section appended to GEMINI.md (to AGENTS.md with --agents-md, or when Codex is also selected) | .agents/skills/nextjs-code-review/SKILL.md |
Pick two or more tools that read .agents/skills/ (all of these except claude) and the skill is written there once instead of into each tool's folder.
4. Verify it worked
- Open the files and skim them. They're plain Markdown.
- Start a new session in your tool.
- Open a file in
app/and ask: "Where does request interception go in this app?" A Next.js 16 project should getproxy.ts, notmiddleware.ts. - Ask for a review: "Review my last change for problems." You should get findings listed by severity, in the skill's format.
Each tool's lesson in Module 2 shows how to check what loaded.
5. Commit it
git add .claude
git commit -m "Add presets.dev Next.js rule and review skill"
Now everyone on your team who uses that tool gets the same guidance.
Running it again is safe
The CLI never overwrites a file that exists, unless you pass --force:
0 file action(s), 2 skipped. https://presets.dev/browse?tag=nextjs
For AGENTS.md and GEMINI.md, it appends a section between <!-- presets.dev:nextjs:start --> and <!-- presets.dev:nextjs:end --> markers, and skips that stack on later runs.
How to undo it
There's no remove command yet. Removing is a plain file operation:
- Delete the files the CLI listed as
created. - In
AGENTS.mdorGEMINI.md, delete everything from thepresets.dev:<stack>:startmarker to itsendmarker. - Or, before committing,
git restoreandgit cleanthe changes.
Common mistakes
- Running outside the project root. Use
--cwd path/to/projectorcdfirst. - Letting auto-detect pick several tools. In a non-interactive shell, every detected tool is installed. Pass
--toolto be explicit. - Testing in an old chat. Start a new session after installing.
Recap
npx presets-dev listshows stacks;npx presets-dev add <stack> --tool <tool>installs.- You get a standards file and a skill, in the tool's native locations.
- Re-runs are safe; shared files get marked sections.
- Undo by deleting the created files or the marked section.
Next step
Every flag and recipe: CLI reference.