Claude Code Boilerplate: Templates and Starter Configs

By Tyler Cyert

A Claude Code boilerplate is a pre-configured project template that includes your CLAUDE.md, settings.json, agent definitions, rules, skills, and directory structure — ready to use from the first session. Instead of setting up your agent configuration from scratch for every project, you start with a working template and customize.

Think of it like Create React App, but for your AI coding agent's configuration. The boilerplate handles the scaffolding so you can focus on the work.

What Goes in a Boilerplate

A complete Claude Code boilerplate includes:

FilePurpose
CLAUDE.mdProject instructions — stack, conventions, architecture
.claude/settings.jsonPermissions, hooks, environment variables
.claude/agents/Agent definitions for multi-agent workflows
.claude/skills/On-demand skills for specialized procedures
.claude/rules/Scoped rules for file-type conventions
.gitignoreEntries for CLAUDE.local.md, settings.local.json
Working directoriesStructured folders with INSTRUCTIONS.md

Boilerplate by Project Type

Web Application (React + TypeScript)

API Service (Node.js + Express/Fastify)

Full-Stack Application

Content/Documentation Project

Building Your Own Boilerplate

Step 1: Start with a Real Project

The worst boilerplates are theoretical. Start with a project you are actively working on. Get your Claude Code configuration working well for that project, then extract the reusable parts.

Step 2: Identify What Is Project-Specific

Separate configuration that changes per project from configuration that stays the same:

Reusable (Boilerplate)Project-Specific (Customize)
Permission patternsProject description
Hook configurationsArchitecture section
Rule templatesSpecific build commands
Agent role structuresWorking directory names
Gitignore entriesEnvironment variables

Step 3: Template the Variable Parts

In your CLAUDE.md, leave clear markers for sections that need customization. Use descriptive headings so the developer knows what to fill in.

Step 4: Test on a New Project

Apply your boilerplate to a fresh project. Does Claude Code work well from the first session? Are there missing conventions? Does it ask questions your boilerplate should have answered? Iterate until the first session is productive.

Sharing Boilerplates

Team Boilerplates

Keep a shared boilerplate in a team repository. When someone starts a new project, they copy the boilerplate and customize. The boilerplate evolves as the team learns what works.

Community Boilerplates

Share your boilerplate publicly for others to use. Include a README explaining the stack it targets, the conventions it enforces, and how to customize it.

Boilerplates and OpenCode

The instruction content in a Claude Code boilerplate is mostly platform-agnostic. The same conventions, rules, and agent roles work whether loaded by Claude Code (from CLAUDE.md and .claude/) or by OpenCode (from AGENTS.md and .opencode/). Only the file paths and directory names change.

Generating Boilerplates with DotBox

DotBox is built for this. Draw the agents, skills and scripts your projects start with, then copy one setup prompt. Paste it into Claude Code in a fresh folder and it writes the boilerplate — CLAUDE.md, the .claude/ directory with agents, skills and settings.json, executable scripts, and working directories.

Instead of maintaining a template repository and manually keeping it updated, you keep the graph in DotBox and copy a fresh prompt whenever you start a project. When your conventions evolve, change the graph and the next prompt carries the change.