Files. Layers.
Architecture.
An introduction to the engineering and philosophy behind how your Claude system actually works — and what to tell it from day one.
Most people skip
the foundation.
They start prompting before they’ve built anything for Claude to stand on. No file structure. No rules. No context system. Every session starts from zero because there’s nothing to start from.
Every Claude system has
four layers.
Whether you’ve built one intentionally or not, these layers exist in every system. The question is whether yours are designed or accidental.
The files that make up
your system.
Every Claude system is built from a small set of file types. Each one has a distinct job. Understanding these is understanding the atoms of your system.
How your folders
should look.
Your working directory is the physical container for everything. Organize it by domain, not by file type.
├── _CLAUDE_RULES.md ← master operating rules
├── TASK_FLOW.md ← capture inbox between sessions
├── System Debriefs/ ← reference docs for orientation
├── project-maps/ ← visual trackers per project
├── skills/ ← reusable capability files
├── 01_PROJECT_A/
│ └── _CLAUDE_RULES.md ← project-level overrides
├── 02_PROJECT_B/
│ └── _CLAUDE_RULES.md
└── 99_ARCHIVE/ ← completed or inactive work
What each piece
actually does.
2. Context files — The shared brain. Persists across sessions and interfaces. Updated as the system evolves.
3. Skills (SKILL.md) — Reusable workflows. When a type of work comes up, the skill fires and handles it with zero re-explanation.
4. Dashboards (.html) — Visual state. Command centers, project maps, client trackers. Claude reads and writes the data; you see the result.
5. Logs and debriefs — Institutional memory. What happened, what was decided, what the next session needs to know.
The rules file is the
most important file you’ll write.
• Who Claude is in this context — its role, its domain, its boundaries
• What it should do at session start — what to read, what to check, what to report
• How work gets routed — what belongs here vs. what gets handed off
• Naming conventions — how files, projects, and codes work
• Voice and tone standards — how output should sound
• Hard no’s — things Claude must never do (these prevent drift)
• Protocols — session-open, handoff, end-of-day, approval loops
This file is a living document. It gets smarter every session. When Claude gets something wrong, you codify the correction. When a pattern emerges, you add it. The document accumulates intelligence.
How everything
connects.
Files don’t work in isolation. The logical layer defines how data flows between components, what triggers what, and how the system stays coherent.
Teach Claude where things go
from day one.
Project routing: "Anything about X goes to folder Y."
Domain routing: "Tasks about marketing go here. Client work goes there."
Approval routing: "Internal work runs autonomously. External work needs my sign-off."
Handoff routing: "If a session is getting long, write a handoff report and tell me where to pick up."
Without routing rules, Claude has to guess where things go. Guessing creates drift. Routing creates order.
The philosophy that makes
everything coherent.
• What is Claude’s role? — Infrastructure, not a tool. An operator, not an assistant.
• What do I own vs. what does Claude own? — Creative direction and approval vs. execution and continuity.
• What should compound? — Context, skills, and institutional knowledge. Every session makes the next one better.
• What should never happen? — External actions without approval. Generic output. Lost context between sessions.
When you’re unsure how to set something up, your principles give you the answer. They’re the constitution of your system.
What to tell Claude
from day one.
You don’t need a perfect system to start. But you need to start with the right things in place.
2. Write your first _CLAUDE_RULES.md. Even five lines is enough: who Claude is, what your domain is, what it should never do.
3. Establish naming conventions. How files are named. How projects are coded. One system, used everywhere.
4. Set up a capture inbox. A TASK_FLOW.md or equivalent. Somewhere to drop things between sessions so nothing falls through.
5. Define the approval boundary. What can Claude do autonomously? What needs your sign-off? Draw the line on day one.
From foundation to
full system.
Build the system
first.
Files. Layers. Routing. Principles. This is the backend of your Claude system. Everything you prompt, everything Claude produces, everything that compounds — it all stands on this architecture.