Set up Cursor, Copilot, Claude Code, Windsurf, Cline, Codex or Antigravity in one command
On this page
Every AI coding tool wants its instructions in a different place, with different frontmatter. Get either wrong and the file is silently ignored: a .md instead of .mdc in Cursor, a Copilot instructions file with no applyTo, which never applies automatically, a skill in .agents/skills/ that Claude Code never looks at.
The presets-dev CLI handles that for you. Here's the one command for each tool, and exactly what it writes, using the Next.js stack as the example.
npx presets-dev add nextjs --tool <tool>
You need Node.js 22 or later. No install, no account.
Cursor
npx presets-dev add nextjs --tool cursorcreated .cursor/rules/nextjs-rules.mdc
created .cursor/skills/nextjs-code-review/SKILL.md
The rule is an .mdc file with globs for the App Router files, so it attaches when you work on them. Run the skill with /nextjs-code-review. Cursor guide
GitHub Copilot
npx presets-dev add nextjs --tool copilotcreated .github/instructions/nextjs.instructions.md
created .github/skills/nextjs-code-review/SKILL.md
Path-specific instructions with applyTo, leaving your .github/copilot-instructions.md alone. Copilot guide
Claude Code
npx presets-dev add nextjs --tool claudecreated .claude/rules/nextjs-rules.md
created .claude/skills/nextjs-code-review/SKILL.md
A path-scoped rule (paths frontmatter) that loads when Claude touches matching files, without changing your CLAUDE.md. Claude Code guide
Windsurf (Devin Desktop)
npx presets-dev add nextjs --tool windsurfcreated .devin/rules/nextjs-rules.md
created .devin/skills/nextjs-code-review/SKILL.md
Windsurf is Devin Desktop now, and .devin/ is the preferred folder. The rule uses trigger: model_decision. Nothing is written to .windsurf/, so the rule doesn't load twice. Windsurf / Devin guide
Cline
npx presets-dev add nextjs --tool clinecreated .clinerules/nextjs-rules.md
created .cline/skills/nextjs-code-review/SKILL.md
A conditional rule with paths, and a skill in Cline's recommended folder. Cline guide
Codex
npx presets-dev add nextjs --tool codexcreated AGENTS.md
created .agents/skills/nextjs-code-review/SKILL.md
If AGENTS.md exists, the stack is appended between markers; your content stays. Call the skill with $nextjs-code-review. Codex guide
Antigravity CLI
npx presets-dev add nextjs --tool antigravitycreated GEMINI.md
created .agents/skills/nextjs-code-review/SKILL.md
Appended to GEMINI.md, or to AGENTS.md with --agents-md. The skill becomes /nextjs-code-review automatically. Antigravity CLI guide
Don't know which? Let it detect
npx presets-dev add nextjsThe CLI looks for .cursor/, .claude/, CLAUDE.md, AGENTS.md, .github/instructions/, .devin/, .clinerules, GEMINI.md and similar signals, then asks you to confirm. In CI or with --yes, it uses everything it detected. Pass --tool when you want to be exact.
Useful flags
| Flag | Use |
|---|---|
--dry-run | See every file it would write |
--only standards / --only skill | Install one half |
--force | Replace installed files, or only the marked section in AGENTS.md / GEMINI.md |
--cwd apps/web | Install into a monorepo package |
--ref <commit> | Pin the content version |
Several stacks at once works too:
npx presets-dev add nextjs tailwind prisma --tool cursorTeams with more than one tool
Many tools read each other's folders. Cursor, Copilot and Cline all read .claude/skills/; Cursor, Copilot, Devin, Cline, Codex and Antigravity all read .agents/skills/. Install for every tool and some will see the same skill twice. Two clean recipes:
Codex or Antigravity in the mix: one shared install.
npx presets-dev add nextjs --tool codex,antigravity --agents-mdClaude Code plus an editor: skills in .claude/skills/, editor gets standards only.
npx presets-dev add nextjs --tool claudenpx presets-dev add nextjs --tool cursor --only standardsThe full explanation is in One repo, many AI tools.
It's safe to run twice
Existing files are skipped (skipped (exists)), shared files get marked sections, and nothing is written outside your project. Run npx presets-dev list to see all 30 stacks.