Set Up Your Claude Code Project Structure: CLAUDE.md, Rules, Skills, Agents, Hooks and MCP in One Folder Map

Do this first
Create a short CLAUDE.md in the project root
CLAUDE.md is loaded at the start of every session. Put in a project overview, the tech stack, the commands to run, build and test, and your coding conventions. The post says to keep it under 200 lines; its first tip is to keep CLAUDE.md short. Reel Playbooks addition: write it as short bullet rules, not essays, and move anything long into the rules files in step 5.
Summary
GenAI.Works (@genai.works) posted a November 2026 infographic arguing that your Claude Code setup matters more than longer prompts. It maps the files that make Claude reliable on a real project: a short CLAUDE.md, an optional CLAUDE.local.md, AGENTS.md, .mcp.json, and a .claude/ folder holding settings, rules, skills, agents, hooks and worktrees. Set it up once and every session starts with your standards instead of a long prompt.
- Skill level
- Intermediate
- Time to implement
- 60 min
- Cost
- Free
- Platform
- Tools
- GitHub, Onedery, Claude, Git, Claude Code
- Outcomes
- Saves time, Free to do
- Last verified
- Nov 29, 2026
Set upWhat you need
Claude Code installed and a project folder under Git
A code editor to create the files and folders below
Your project's tech stack, run and test commands, and coding conventions written down
Optional: a GitHub repo so the team shares the setup through git
Optional: if you build client sites or automations, keep the same structure in every client repo, including ones that connect to Onedery
Do thisStep by step
Create a short CLAUDE.md in the project root
CLAUDE.md is loaded at the start of every session. Put in a project overview, the tech stack, the commands to run, build and test, and your coding conventions. The post says to keep it under 200 lines; its first tip is to keep CLAUDE.md short. Reel Playbooks addition: write it as short bullet rules, not essays, and move anything long into the rules files in step 5.
Add CLAUDE.local.md for personal overrides
Create
CLAUDE.local.mdfor your own preferences that the team should not share (the post says it supports local overrides). Reel Playbooks addition: addCLAUDE.local.mdand.claude/settings.local.jsonto.gitignoreso personal notes and local permissions are not committed.Add AGENTS.md if you use other coding tools
Per the post,
AGENTS.mdis read when no CLAUDE.md exists and is the same file that Codex, Cursor and Copilot use (agents.md). You can import it from CLAUDE.md so both tools read one source of truth. Reel Playbooks addition: in CLAUDE.md add a line like@AGENTS.mdand keep Claude specific notes below it.Add .mcp.json for tool connections
.mcp.jsonstores MCP integration configs, such as GitHub, JIRA, Slack and databases, and is shared across the team through git. Reel Playbooks addition: never paste API keys into this file; reference environment variables instead, and only add servers you trust.Create the .claude folder with settings and rules
Inside
.claude/addsettings.json(permissions and tool access, model, hooks, sandbox, plugins and env) andsettings.local.jsonfor local overrides. Add arules/folder of modular markdown files by topic, such ascode-style.md,testing.mdandapi-conventions.md; the post notes rules can be scoped to paths with frontmatter. Reel Playbooks addition: start with just the two or three rules you repeat most often in code review.Turn repeated tasks into skills
Add
.claude/skills/<name>/SKILL.mdfor each task you repeat, for exampledeploy/withSKILL.mdanddeploy-config.md. Per the post, skills are auto triggered by task context, load only when needed, and double as slash commands such as/deploy. See Claude Code skills. Reel Playbooks addition: a good first skill is your release checklist or a pull request review routine.Define sub-agents for specialist work
Add
.claude/agents/code-reviewer.mdand.claude/agents/security-auditor.md. The post says agents are specialized sub-agents with roles, isolated context windows, and their own tools, model and git worktree. See sub-agents. Reel Playbooks addition: give each agent a one paragraph role, a short list of allowed tools and a clear definition of done.Add hooks as guardrails
Add
.claude/hooks/validate-bash.shand register it in settings. The post says hooks are event driven scripts (30 plus hook events) that automate validation, linting and formatting and block unsafe operations. See hooks. Reel Playbooks addition: start with one hook that blocks destructive shell commands such as deleting folders or force pushing, and one that runs your formatter after edits.Plan before complex edits and ignore worktrees
Plan mode before any large change is the second tip in the post's caption: ask Claude for a plan, review it, then let it edit. Add the
.claude/worktrees/folder to.gitignoreas the post notes. Reel Playbooks addition: run this prompt on a fresh project:Look at this repo and draft a CLAUDE.md under 150 lines with overview, stack, commands and conventions. Do not invent commands; list anything you could not confirm as a question.Commit the shared files and test
Commit CLAUDE.md, AGENTS.md, .mcp.json,
.claude/settings.json, rules, skills, agents and hooks. Open a fresh Claude Code session and ask it to summarize the project rules it loaded, then make a small change and confirm the hook and the rules behave as expected.
Heads upCommon mistakes & tips
Keep CLAUDE.md short. A long file crowds the context; the post's rule of thumb is under 200 lines.
Reel Playbooks addition: the exact file names, the 200 line guideline and the hook count come from the infographic; Claude Code changes quickly, so confirm against the current official docs before relying on a detail.
Reel Playbooks addition: do not commit secrets, personal settings or local overrides.
Reel Playbooks addition: the post does not claim measured results; the reliability benefit is the creator's opinion until you test it on your own project.
Quick answersCommon questions
- What is Set Up Your Claude Code Project Structure: CLAUDE.md, Rules, Skills, Agents, Hooks and MCP in One Folder Map in short?
GenAI.Works (@genai.works) posted a November 2026 infographic arguing that your Claude Code setup matters more than longer prompts. It maps the files that make Claude reliable on a real project: a short
CLAUDE.md, an optionalCLAUDE.local.md,AGENTS.md,.mcp.json, and a.claude/folder holding settings, rules, skills, agents, hooks and worktrees. Set it up once and every session starts with your standards instead of a long prompt.- What do I need before starting?
Claude Code installed and a project folder under Git
A code editor to create the files and folders below
Your project's tech stack, run and test commands, and coding conventions written down
Optional: a GitHub repo so the team shares the setup through git
Optional: if you build client sites or automations, keep the same structure in every client repo, including ones that connect to Onedery
- How many steps does it take?
- 10 steps:
Create a short CLAUDE.md in the project root
Add CLAUDE.local.md for personal overrides
Add AGENTS.md if you use other coding tools
Add .mcp.json for tool connections
Create the .claude folder with settings and rules
Turn repeated tasks into skills
Define sub-agents for specialist work
Add hooks as guardrails
Plan before complex edits and ignore worktrees
Commit the shared files and test
- Who created this method?
GenAI.Works. Original strategy on Instagram.
GenAI.Works
Original strategy by GenAI.Works. Watch the original on Instagram.
MeasureHow to know it worked
A new session summarizes your conventions correctly without a long prompt, repeated tasks run through a skill or slash command, unsafe commands are blocked by the hook, and a teammate who clones the repo gets the same behavior.
ProvenanceSource & adaptation notes
Original
The image post titled Claude Code Project Structure (November 2026 edition) shows a folder tree with CLAUDE.md, CLAUDE.local.md, AGENTS.md, .mcp.json and a .claude folder containing settings.json, settings.local.json, rules, skills (deploy), agents (code-reviewer, security-auditor), hooks (validate-bash.sh) and worktrees, with a short note beside each. The caption lists four ways to make Claude Code more reliable: keep CLAUDE.md short, plan before complex edits, turn repeated tasks into skills, and use hooks for guardrails.
Reel Playbooks additions
Reel Playbooks additions: ordered setup steps, .gitignore guidance, the AGENTS.md import line, a starter prompt for drafting CLAUDE.md, first hook and first skill suggestions, secrets warning, and links to official docs.
AttributionCredit
Original infographic by GenAI.Works (@genai.works) on Instagram (see the original post).
Adapted from GenAI.Works's post; steps expanded by Reel Playbooks.
Reel Playbooks credits and links to the original creator. See For creators to request changes or removal.