# Guides for Claude Code, Codex and Cursor

CLAUDE.md, AGENTS.md, Cursor rules, skills, hooks and subagents. Every example is a real file from a generated Next.js repo.

- [CLAUDE.md template for Next.js, from a real repo](https://agenticboilerplate.com/guides/claude-md-template): A CLAUDE.md template for Next.js you can copy, a real one from a generated repo, where the file goes, what belongs in it, and the mistakes that get it ignored.
- [AGENTS.md examples, from a real Next.js repo](https://agenticboilerplate.com/guides/agents-md-examples): What AGENTS.md is, a template to copy, real root and nested AGENTS.md files from a generated Next.js repo, and how Codex, Cursor and Claude Code load them.
- [CLAUDE.md vs AGENTS.md: which one you need](https://agenticboilerplate.com/guides/claude-md-vs-agents-md): CLAUDE.md is for Claude Code. AGENTS.md is the shared file Codex, Cursor and others read. Which tool reads what, and how to run both without them drifting.
- [Cursor rules for Next.js, with real .mdc examples](https://agenticboilerplate.com/guides/cursor-rules-nextjs): How Cursor rules work: the .mdc format, globs, alwaysApply and the four rule types, plus real Next.js rules from a generated repo that you can copy.
- [Claude Code skills, with 28 real examples](https://agenticboilerplate.com/guides/claude-code-skills): A 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 28 real examples.
- [Claude Code hooks, with 7 real guard scripts](https://agenticboilerplate.com/guides/claude-code-hooks): Claude 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.
- [Claude Code subagents, with 7 real examples](https://agenticboilerplate.com/guides/claude-code-subagents): A 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.
- [The Claude Code setup for a Next.js app](https://agenticboilerplate.com/guides/claude-code-setup-nextjs): The best Claude Code setup for a Next.js repo: a short CLAUDE.md, path-scoped rules, skills, subagents, guard hooks and MCP. What goes where, with real files.

---

Agentic Boilerplate: A Next.js repo your agent already knows. Free during launch, then $99 once.

- Site map for agents: https://agenticboilerplate.com/llms.txt
- Public API: https://agenticboilerplate.com/openapi.json
- Contact: agenticstudio@gmail.com
