Claude Code project structure guide

A concise breakdown of the files and folders that organise a Claude Code project, from root configuration to the claude/ directory layout.

cpaua1 min448

According to the channel author, a Claude Code project follows a defined structure that separates root-level configuration from the main logic living inside a claude/ directory. The root holds four key files: CLAUDE.md for project rules and context, CLAUDE.local.md for personal overrides, mcp.json to connect external tools such as GitHub, Slack, or databases, and claude/settings.json to manage permissions and model selection.

The claude/ directory contains five subfolders that drive the agent's behaviour. rules/ stores coding and testing standards, commands/ holds reusable workflows like /review or /fix, skills/ provides automatically loaded expertise on demand, agents/ defines specialised sub-agents, and hooks/ handles automation and guardrails. A complete settings.json example shows how to eliminate permission pop-ups entirely.

Teams extending this layout can explore design-system-to-skill conversion for the skills/ folder and a production-grade database-architect agent for the agents/ folder. The channel author notes that a cleaner structure directly improves the quality of results.

Share

Author

cpaua

VibeCode blog admin. Writing about vibe coding, AI and open source.

Related news

Comments

To leave a comment, log in
Loading...

Weekly digest

The best of vibe coding, AI agents and open source — once a week, no spam.