AI Vibing

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

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.

See all 10 steps

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
Instagram
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

ToolsGitHubOnederyClaudeGitClaude Code

Do thisStep by step

0 of 10 steps done
  1. 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.

  2. Add CLAUDE.local.md for personal overrides

    Create CLAUDE.local.md for your own preferences that the team should not share (the post says it supports local overrides). Reel Playbooks addition: add CLAUDE.local.md and .claude/settings.local.json to .gitignore so personal notes and local permissions are not committed.

  3. Add AGENTS.md if you use other coding tools

    Per the post, AGENTS.md is 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.md and keep Claude specific notes below it.

  4. Add .mcp.json for tool connections

    .mcp.json stores 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.

  5. Create the .claude folder with settings and rules

    Inside .claude/ add settings.json (permissions and tool access, model, hooks, sandbox, plugins and env) and settings.local.json for local overrides. Add a rules/ folder of modular markdown files by topic, such as code-style.md, testing.md and api-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.

  6. Turn repeated tasks into skills

    Add .claude/skills/<name>/SKILL.md for each task you repeat, for example deploy/ with SKILL.md and deploy-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.

  7. Define sub-agents for specialist work

    Add .claude/agents/code-reviewer.md and .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.

  8. Add hooks as guardrails

    Add .claude/hooks/validate-bash.sh and 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.

  9. 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 .gitignore as 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.

  10. 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 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.

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:
  1. Create a short CLAUDE.md in the project root

  2. Add CLAUDE.local.md for personal overrides

  3. Add AGENTS.md if you use other coding tools

  4. Add .mcp.json for tool connections

  5. Create the .claude folder with settings and rules

  6. Turn repeated tasks into skills

  7. Define sub-agents for specialist work

  8. Add hooks as guardrails

  9. Plan before complex edits and ignore worktrees

  10. Commit the shared files and test

Who created this method?

GenAI.Works. Original strategy on Instagram.

Watch the original video on Instagram

GE

GenAI.Works

@genai.worksIG

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.

Watch the original video

Reel Playbooks credits and links to the original creator. See For creators to request changes or removal.