project-context
Skill1 starsChanged 3 months agoApache-2.0View on GitHub
Read and maintain a project's durable context files: OVERVIEW.md (how the project works now), MEMORY.md (decisions and rejected alternatives), and ERRORS.md (failed approaches worth remembering). Use at the start of a session, before changing an existing design, before debugging something that looks familiar, and after finishing work that made one of those files wrong. Also use when the user says "log this decision", "add this to memory", "write this up in ERRORS", "update the overview", "what did we decide about X", "did we try this before", or asks to set these files up in a new project.
19 other projects use a version of this.
Adopted by
Most recently taken up by
- upex-galaxy/agentic-qa-boilerplatetheir own version, first seen Oct 5, 2026
- shinpr/ai-coding-project-boilerplatetheir own version, first seen Oct 3, 2026
- linchpin/skillstheir own version, first seen Oct 2, 2026
- 1pedroosilva/databricks-genie-skillstheir own version, first seen Oct 2, 2026
- r00tbear/project-context-skilltheir own version, first seen Sep 23, 2026
- novatic-cu/nova-skillstheir own version, first seen Sep 20, 2026
Other versions19 projects use a version of this.
Word for word · 1
- pinkpixel-dev/skills★ 1100% same
Edited · 0
None found.
Wrote their own version · 18
- shinpr/ai-coding-project-boilerplate★ 231same name
- TenureAI/PhD-Zero★ 53same name
- upex-galaxy/agentic-qa-boilerplate★ 26same name
- KalarisLabs/Skill-Doctor★ 13same name
- sergeeey/Claude-cod-top-2026★ 9same name
- perhapsspy/project-context★ 7same name
- aida-core/aida-marketplace★ 4same name
- 95gabor/agentic-workflow★ 2same name
- gootf/software-agent-sop★ 2same name
- r00tbear/project-context-skill★ 2same name
8 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- clear-writingSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 12 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
All three live in /DOCS. README.md and CHANGELOG.md stay at the repository root.
- Distinctive: line 35
Read before you change code, not after you break something.
- Distinctive: line 53
Read the headings first, then read only the entries that match:
- Distinctive: line 73
Write after the work is done and verified, not while you are still guessing.
- Distinctive: line 77
Ask one question per file.
- Distinctive: line 94
When in doubt, leave it out.
- Very specific: line 98
Run date before writing a dated entry.
- Very specific: line 100
Use absolute dates in YYYY-MM-DD form as ## section headings.
- Distinctive: line 102
If a section for today's date already exists, add to it instead of creating a second one.
- Distinctive: line 106
Check the existing file and match it.
- Distinctive: line 110
Keep the exact field labels.
- Distinctive: line 151
No em dashes. No filler adjectives.
- Distinctive: line 152
Do not claim you verified something you inferred.
- Distinctive: line 156
When a project has none of these files, do not invent content for them.
- Very specific: line 158
Create /DOCS if it does not exist.
- Very specific: line 161
Leave MEMORY.md and ERRORS.md empty apart from their headers.
- Distinctive: line 167
Start of session, when prior context could matter:
“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Project Context: Read Before You Change, Write After You Learn
A project carries three kinds of knowledge that code does not hold on its own:
| File | Question it answers | Tense |
OVERVIEW.md | How does this project work right now? | Present |
MEMORY.md | Why is it built this way, and what did we turn down? | Past, dated |
ERRORS.md | What already failed, and what worked instead? | Past, dated |
All three live in /DOCS. README.md and CHANGELOG.md stay at the repository root.
The point of these files is to stop the same conversation from happening twice. An agent that reads them does not re-propose a rejected design or re-debug a solved problem. An agent that writes to them leaves the next session in better shape than it found it.
They only work if they stay small enough to trust. Most of this skill is about what not to write.
Read Phase
Read before you change code, not after you break something.
What to read, and when
| Situation | Read |
| Starting a session in an unfamiliar repository | OVERVIEW.md in full |
| About to change existing behavior, structure, or a data model | MEMORY.md, filtered |
| About to propose an alternative to something already built | MEMORY.md, filtered |
| Debugging, or picking an approach to a hard problem | ERRORS.md, filtered |
| Touching tests, build config, emulators, or CI | ERRORS.md, filtered |
| Answering "why is it like this?" | MEMORY.md |
| Answering "what does this do?" | OVERVIEW.md |
Filter, do not dump
These files grow. A real MEMORY.md on a project six months in can pass 700 lines, and reading all of it to answer one question wastes the context you need for the actual work.
Read the headings first, then read only the entries that match:
grep -n "^#\{2,3\} " DOCS/MEMORY.md
grep -in "reminder\|push\|cron" DOCS/MEMORY.md
sed -n '281,300p' DOCS/MEMORY.mdEntry titles are written to be greppable for exactly this reason. Read OVERVIEW.md in full the first time, because it is the map. After that, grep it too.
When a file contradicts the code
The code wins as a description of what happens. The file wins as a description of what was intended. If they disagree, say so out loud before you change anything, then fix the file as part of the work.
Never quietly reverse a logged decision
If the task asks for something MEMORY.md already rejected, stop and say which entry covers it and what its stated reason was. The user may still want the change, and reasons expire. But the reversal has to be deliberate, and it needs a new entry recording why the old reason no longer holds.
Write Phase
Write after the work is done and verified, not while you are still guessing.
The qualification bar
Ask one question per file. If the answer is no, write nothing.
MEMORY.md: Would a competent contributor, seeing only the code, plausibly change this back without knowing what it cost?
ERRORS.md: Would this waste more than an hour of someone's time again?
OVERVIEW.md: Did this change make something the file currently says untrue or incomplete?
What does not qualify
These are the four ways the files rot:
- Turning
MEMORY.mdinto a changelog. "Added the reminders page" is a changelog line. It has no decision, no reasoning, and no rejected alternative. - Turning
ERRORS.mdinto a bug tracker. A bug you found and fixed in ten minutes is not a lesson. It is a commit. - Turning
OVERVIEW.mdinto a history. "We used to store this in Redis, then moved to SQLite" belongs inMEMORY.md.OVERVIEW.mdsays where it lives now. - Logging routine implementation. Naming a variable, picking a loop, splitting a component that had to be split. There was no fork in the road, so there is nothing to record.
When in doubt, leave it out. A short file that people read beats a long file that people skip.
Dates
Run date before writing a dated entry. Do not guess, and do not reuse a date you saw earlier in the conversation.
Use absolute dates in YYYY-MM-DD form as ## section headings. Never write "last week", "recently", or "in the previous session" inside an entry. Those stop meaning anything within a month.
If a section for today's date already exists, add to it instead of creating a second one.
Ordering
Check the existing file and match it. The examples in this repository run oldest first. Newest first also works. What breaks a file is mixing the two, which happens when an agent appends without looking.
Entry formats
Keep the exact field labels. They are what makes the files greppable and scannable.
MEMORY.md:
### Decision: <short imperative statement of what was decided>
What was decided: <one or two sentences, specific, naming real files or routes>
Why: <the reason that would otherwise be lost>
Rejected: <the alternative, and what was wrong with it>ERRORS.md:
### Note: <short statement of the trap, not the symptom>
What did not work: <the approach and the actual observed failure>
What worked instead: <the fix, specific enough to repeat>
Note for next time: <the general lesson, one sentence>Detailed rules, quality bars, and worked examples for each file:
references/memory.mdreferences/errors.mdreferences/overview.mdreferences/examples.mdfor side-by-side good and bad entries
Writing style
These files are read under pressure by someone who is already confused. Write accordingly.
- Name real files, routes, functions, and thresholds.
getOrCreateCategoryinsrc/lib/notes/category-service.tsis useful. "the category logic" is not. - Include the number that matters: the timeout, the similarity threshold, the version you pinned.
- Say what actually happened, not what usually happens.
- Plain language, active voice, short sentences.
- No em dashes. No filler adjectives. No "seamless", "robust", "comprehensive", "leverage".
- Do not claim you verified something you inferred.
Bootstrapping A Project
When a project has none of these files, do not invent content for them.
- Create
/DOCSif it does not exist. - Copy
templates/OVERVIEW.md,templates/MEMORY.md, andtemplates/ERRORS.mdinto it. - Fill in
OVERVIEW.mdfrom what the code actually shows: stack, main flow, structure, data model, routes, commands, environment, current limits. Leave aTODOmarker anywhere you would have to guess. - Leave
MEMORY.mdandERRORS.mdempty apart from their headers. They fill up from real work.
Backfilling MEMORY.md with decisions you reconstructed after the fact produces confident, wrong history. If the user wants past decisions captured, ask them what they remember and write down what they say, not what you inferred.
Session Checklist
Start of session, when prior context could matter:
OVERVIEW.mdread, or grepped for the area being touchedMEMORY.mdchecked for decisions covering this areaERRORS.mdchecked for prior attempts at this problem
End of a task:
- Did anything in
OVERVIEW.mdbecome untrue? Fix it. - Was there a real fork in the road with a rejected option? Log it in
MEMORY.md. - Did anything take more than two attempts or have a surprising cause? Log it in
ERRORS.md. daterun before writing any dated entry.- Nothing logged that is really a changelog line, a fixed bug, or routine implementation.
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.

