Skip to content

About

Claude Project Template

Resources

Stars

31 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

.claude/ Folder Architecture

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.


The problem this solves

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.


How to use this

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.


What's in the repo

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)

The three questions

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 reference

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

The SKILL.md

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.


What to fill in first

When you clone this template, start here (in order):

  1. CLAUDE.md — replace the placeholder text with your project's purpose, stack, and folder pointers
  2. rules/ — add one file per behavioural domain (code style, brand voice, API conventions)
  3. context/ — add one file per knowledge domain (audience, topic taxonomy, approved sources)
  4. schemas/ — add a schema for every structured output your agents produce
  5. memory/state.json — leave empty until your first agent run

Part of the CALMER framework

This structure is one implementation layer of the CALMER framework — a deliberate, sustainable approach to AI adoption for SMB operators.

More at futurebrief.ai.


License

MIT. Use it, adapt it, ship it.

About

Claude Project Template

Resources

Stars

31 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors