A structured, git-committed workspace for Claude Code that separates what Claude knows, how Claude behaves, and where a workflow is right now.
Built by Yuri Vonchitzki. Used across Ninjabot client builds.
Most Claude Code setups start as a single CLAUDE.md file. It works. Then it grows. Instructions, domain knowledge, session state, agent definitions — all in one file Claude re-interprets differently every session.
The result: inconsistent outputs, setups that only the original author can run, and no way to audit what Claude was told to do.
The fix is a single structural decision: separate what Claude knows from how it behaves from where it is in a workflow.
That is what this repo does.
Option A — GitHub template (recommended)
Click "Use this template" at the top of this page. Name your repo, clone it, and start filling in the files.
Option B — Clone and copy
git clone https://github.com/[your-handle]/dot-claude-architecture.git
cp -r dot-claude-architecture/.claude your-project/
cp dot-claude-architecture/CLAUDE.md your-project/Option C — Claude Code
Drop SKILL.md into your project's .claude/skills/ folder.
Claude Code will use it to scaffold or audit your setup automatically.
dot-claude-architecture/
├── README.md ← you are here
├── SKILL.md ← Claude Code skill for setup and audit
├── CLAUDE.md ← starter entry point (edit for your project)
├── CLAUDE.local.md ← personal overrides template (gitignored)
├── .gitignore ← pre-configured for Claude Code projects
└── .claude/
├── STRUCTURE.md ← what each folder is for
├── settings.json ← shared permissions starter
├── settings.local.json ← personal permissions (gitignored)
├── settings.env.json ← dev / staging / prod config
├── commands/ ← human-triggered slash commands
├── agents/ ← subagent persona definitions
├── rules/ ← behavioural instructions
├── context/ ← persistent domain knowledge
├── schemas/ ← output shape definitions
├── skills/ ← auto-invoked workflows
├── protocols/ ← agent-to-agent contracts
└── memory/ ← runtime state (gitignored)
Every file in this repo answers one of three questions:
| Question | Folder(s) |
|---|---|
| How should Claude behave? | rules/ |
| What should Claude know? | context/, schemas/ |
| Where is the workflow right now? | memory/ |
commands/, agents/, skills/, and protocols/ layer on top.
memory/ is gitignored — it's the only folder that changes between runs.
| Folder | What belongs here | Changes how often |
|---|---|---|
rules/ |
Behavioural instructions — coding style, tone, API conventions | Rarely |
context/ |
Domain knowledge — brand voice, topic taxonomy, audience definitions | Occasionally |
schemas/ |
Output shape definitions — structured output contracts for agents | Occasionally |
commands/ |
Slash command definitions — human-triggered actions | Rarely |
agents/ |
Subagent personas — isolated roles with defined scope | Occasionally |
skills/ |
Auto-triggered workflows — conditions mapped to actions | Rarely |
protocols/ |
Agent handoff contracts — inter-agent payload formats | Rarely |
memory/ |
Runtime state only — where the workflow is right now | Every run |
SKILL.md is a Claude Code skill. Drop it into any project's
.claude/skills/ folder and Claude Code will:
- Scaffold a new
.claude/structure from scratch - Audit an existing setup against the checklist
- Guide you through filling in each subfolder correctly
It works independently of this template repo — useful if you're adding structure to an existing project rather than starting fresh.
When you clone this template, start here (in order):
CLAUDE.md— replace the placeholder text with your project's purpose, stack, and folder pointersrules/— add one file per behavioural domain (code style, brand voice, API conventions)context/— add one file per knowledge domain (audience, topic taxonomy, approved sources)schemas/— add a schema for every structured output your agents producememory/state.json— leave empty until your first agent run
This structure is one implementation layer of the CALMER framework — a deliberate, sustainable approach to AI adoption for SMB operators.
More at futurebrief.ai.
MIT. Use it, adapt it, ship it.