claude-project-structure
Skill1 starsChanged 59 days agoMITView on GitHub
Set up and maintain a multi-session project's Claude-facing structure: a one-line CLAUDE.md pointer template, logs/ (dated work log), memories/ (project decisions and state), notes/ (subject documentation). Use when starting a new multi-session project, when asked to set up project docs, a project knowledgebase, persistent context, contextual persistence, session continuity, or a resumable project, when asked to continue from here, and whenever working inside a directory that already has this logs/memories/notes layout.
In this repository10 other files it gives its agents.
- notes/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- code-philosophySkill
- writing-documentationSkill
- fact-checkingSkill
- product-researchSkill
- professional-communicationSkill
- skill-creationSkill
- skill-refactoringSkill
- tooling-researchSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 8 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
After doing any work, append to today's logs/MM-DD-YYYY.md.
- Very specific: line 10
Never read a logs/ file without a reason.
- Very specific: line 11
Never put user-specific information in memories/ or notes/.
- Distinctive: line 12
Ask before creating a git repo, and ask track-vs-gitignore.
- Very specific: line 13
Write notes/ with the documentation skill.
- Distinctive: line 29
Run git rev-parse --git-dir in the working directory.
- Distinctive: line 31
Create CLAUDE.md if absent.
- Distinctive: line 37
If CLAUDE.md already exists, add that line and leave the rest of the file alone.
- Very specific: line 38
Create logs/, memories/, and notes/.
- Distinctive: line 48
Before writing, check whether today's file exists.
- Distinctive: line 51
Write-mostly. Rule 3 governs reads.
- Distinctive: line 72
Never store: user preferences, personal details, credentials, anything identifying.
- Distinctive: line 74
Before adding a memory, check for a file that already covers it and update that instead.
- Very specific: line 75
Every memory cites its evidence: the logs/MM-DD-YYYY.md file where the work happened, and any notes/ page holding the detail.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Rules
- At session start, read
memories/MEMORY.mdthen every file inmemories/. Read nothing else until a task needs it. - After doing any work, append to today's
logs/MM-DD-YYYY.md. - Never read a
logs/file without a reason. The only reasons: the user references it, a memory references it, or a note references it. - Never put user-specific information in
memories/ornotes/. Assume every such project is public facing. - Ask before creating a git repo, and ask track-vs-gitignore. Decide neither.
- Write
notes/with thedocumentationskill.
Structure
./ project root
./CLAUDE.md one line, pointing at this skill. user can add to this.
./logs/ dated work logs, MM-DD-YYYY.md
./memories/ project decisions and state, one fact per file, plus MEMORY.md
./notes/ subject documentation, one file per subjectSetup steps
In order. Steps 1 and 2 are questions, not actions.
- Run
git rev-parse --git-dirin the working directory. If there is no repo, ask whether to create one. Do not rungit initunless told to. - Once a repo exists (pre-existing or just created), ask: track
CLAUDE.md,logs/,memories/, andnotes/in git, or add them to.gitignore. Apply the answer. Create
CLAUDE.mdif absent. Its only line:Use the claude-project-structure skill to understand this directory and how to interact with itIf
CLAUDE.mdalready exists, add that line and leave the rest of the file alone.- Create
logs/,memories/, andnotes/. Leave them empty. No placeholder files, with one exception: if step 2 decided to track them in git, add an empty.gitkeeptomemories/andnotes/. Git does not track empty directories, so without it a clone is missing both.logs/needs none; step 2's decision is recorded there as the first entry, so the directory is never empty. If the directories are gitignored, or there is no repo, add nothing.
logs/
- One file per day, named
MM-DD-YYYY.md(March 4 2026 is03-04-2026.md). Zero-pad month and day. - Before writing, check whether today's file exists. Append if it does, create it if it does not.
- Entry content: what was tried, what was found, what was decided and why, the outcome.
- Append only. Once a day has passed, never rewrite that day's file. Correct it in a later entry.
- Write-mostly. Rule 3 governs reads.
memories/
One fact per file, plus MEMORY.md as the index.
File format:
---
name: <short-kebab-case-slug>
description: <one-line summary, used to decide relevance during recall>
---
<the fact, then **Why:** and **How to apply:** lines. Link related memories
with [[their-name]]. Cite the work it came out of as logs/MM-DD-YYYY.md.>MEMORY.md holds one line per memory: - [Title](file.md) - hook. No frontmatter, no memory content.
- Store: decisions and the reasoning behind them, problems hit and how they were resolved, constraints, anything a fresh session needs to pick up where the last one left off.
- Never store: user preferences, personal details, credentials, anything identifying.
- Convert relative dates to absolute.
- Before adding a memory, check for a file that already covers it and update that instead. Delete memories that turn out to be wrong.
- Every memory cites its evidence: the
logs/MM-DD-YYYY.mdfile where the work happened, and anynotes/page holding the detail. A[[wikilink]]with no matching file yet is fine; it marks a memory worth writing.
notes/
- One file per subject, written with the
documentationskill. - Name by subject matter.
ls notes/alone must tell a reader what is in each file. - Audience is both a human looking for documentation and a later session recalling something already researched or learned.
- Cite the
logs/MM-DD-YYYY.mdentries the note's content came out of.
Notes
logs/uses MM-DD-YYYY, not ISO. It sorts wrong underls. Find today's file by constructing its name, not by position in a listing.- This layout has no changelog index. Current project state lives in
memories/, history inlogs/. - A memory or note referencing a log file is the only sanctioned way back into
logs/. Write those references when creating the memory or note, or that day's work becomes unreachable. CLAUDE.mdstarts at one line. The user can modify as they please.memories/is project-scoped. Anything about the user rather than the project belongs in Claude's own memory directory, not here.
Example
User: "Set up persistent project docs for this repo."
Skill applied. git rev-parse --git-dir fails, so ask before touching anything:
"No git repo here. Two questions:
- Create one?
- Either way: track
CLAUDE.md,logs/,memories/, andnotes/in git, or add them to.gitignore?"
User: "Yes, and track them."
Then: git init, write CLAUDE.md with the single pointer line, create empty logs/, memories/, notes/, and append the first entry to logs/03-04-2026.md recording the initialization and the tracking decision. Add a memory for the tracking decision only if it constrains later work.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

