Guides for every AI coding agent
How Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI and Antigravity read a repo, and how one setup serves them all. Every example is a real file from a real generated Next.js repo. Copy what you need, or generate the whole set for your stack.
- CLAUDE.md template for Next.js, with real examplesA CLAUDE.md template for Next.js you can copy, where the file goes, what belongs in it, and how a repo shared with other agents loads AGENTS.md instead.Updated October 8, 2026
- AGENTS.md examples, from a real Next.js repoWhat AGENTS.md is, a template to copy, real root and nested files from a generated Next.js repo, and how Codex, Cursor, Copilot and Claude Code load them.Updated October 8, 2026
- CLAUDE.md vs AGENTS.md: which one you needCLAUDE.md is Claude Code's file. AGENTS.md is the one Codex, Cursor, Copilot and most other agents read. Who reads what, and how to keep both in sync.Updated October 8, 2026
- Cursor rules for Next.js, with real .mdc examplesHow Cursor rules work: the .mdc format, globs, alwaysApply and the four rule types, when a nested AGENTS.md is enough, and real Next.js rules to copy.Updated October 8, 2026
- Claude Code skills, with 29 real examplesA Claude Code skill is a SKILL.md file that becomes a slash command Claude can also load on its own. How to write one, what to avoid, and 29 real examples.Updated October 8, 2026
- Claude Code hooks, with 7 real guard scriptsClaude Code hooks are scripts that run before or after a tool call. A PreToolUse hook that exits 2 blocks it. The settings.json shape, matchers and real guards.Updated October 8, 2026
- Claude Code subagents, with 7 real examplesA Claude Code subagent is a markdown file in .claude/agents/ with its own prompt, tools and context window. How to write one, when to use it, and real examples.Updated October 8, 2026
- The Claude Code setup for a Next.js appThe full Claude Code setup for a Next.js repo: instructions, path-scoped rules, skills, subagents, guard hooks and MCP. What goes where, with real files.Updated October 8, 2026
- Codex setup for a Next.js appHow Codex reads AGENTS.md and its 32 KiB limit, runs skills as $name, blocks commands with .codex/hooks.json, and loads subagents and MCP. Real files.Updated October 8, 2026
- GitHub Copilot setup for a Next.js appCopilot reads AGENTS.md, custom agents, hooks, a plugin and MCP from your repo. Where each file goes, with the real ones from a generated Next.js repo.Updated October 8, 2026
- Gemini CLI and Antigravity setup with AGENTS.mdPoint Gemini CLI at AGENTS.md with context.fileName, and set up Antigravity's .agents/ rules, skills, hooks and MCP. Real files from a generated Next.js repo.Updated October 8, 2026
- Agent Skills: one SKILL.md for every coding agentAgent Skills are SKILL.md folders most coding agents load. Which folder each agent reads, why a repo needs .agents/skills plus two copies, and a real skill.Updated October 8, 2026
- One set of guard hooks for 7 coding agentsThe same guard scripts block rm -rf, DROP TABLE, force pushes and .env reads in Claude Code, Codex, Cursor, Copilot, Gemini CLI and more. Configs and limits.Updated October 8, 2026