Why your AI keeps forgetting where the Death Star plans are kept, and how a few small text files can turn it from a confused Padawan into a well-briefed crew member.
The Padawan who forgot everything overnight
Every morning, I open a fresh AI session and have the same conversation. It goes roughly like this:
"Right. So this is a WordPress site. No, we don't use that build command. The tests are Playwright. No, not that config. Please don't touch the vendor folder. Yes, I know you were about to."
It's like being Obi-Wan, except every morning Luke wakes up with no memory of the previous day's lightsaber training and is once again trying to hold it by the glowing end.
Large language models don't remember you between sessions. Each new chat is a freshly decanted clone straight out of the vats on Kamino: highly capable, very eager, and completely unaware of anything that happened yesterday. The good news is that you don't need to retrain the clone. You just need to leave a decent briefing pack on its bunk.
The Jedi Archives: what they actually are
Most modern AI coding tools will automatically read a particular file at the start of every session, if you put one in the right place. Think of it as the Archives on Coruscant: the place where the accumulated knowledge lives, so nobody has to rediscover it from scratch.
Tool | The Archive file | Where it lives |
|---|---|---|
Claude Code | CLAUDE.md | Project root (plus a personal one in your home folder) |
Codex and many other agents | AGENTS.md | Project root |
Cursor | Project rules | .cursor/rules |
Claude (Cowork / desktop) | Skills and memory | Reusable skill folders and saved preferences |
Same idea everywhere: write it down once, and the AI reads it before it touches anything.
As Jocasta Nu ( Chief Librarian of the Jedi Archives ) famously said: "If an item does not appear in our records, it does not exist." Your AI agrees with her completely. If your build command isn't written down, it will invent one.
From my cheat sheets to the AI's cheat sheets
Regular readers ( hello to you both !) will know I've written a few cheat sheets already: the Rovo cheat sheet and the Cursor cheat sheet. Those are cheat sheets for me, so I stop asking an AI questions I've already answered.
This is the next step: a cheat sheet for the AI, so it stops asking me (or worse, guessing) things I've already told it. What goes in the Archive (and what doesn't)
Put in
How to build, run and test. Exact commands. The Playwright command, the local URL, the one flag that matters.
The forbidden zones. Folders it must never edit, files it must never commit, environments it must never deploy to. Your Sith temple list.
House style. Branch naming, commit message format, Jira key conventions
The traps. "This plugin looks unused. It isn't." Every project has an exhaust port. Write it down before something flies a torpedo into it.
Definition of done. For example: "Run the Playwright suite and show me it passes before telling me you're finished."
Leave out
Secrets. No passwords, API keys or tokens. The Archives are not the place to store the Death Star's self-destruct code.
The entire galaxy's history. Every line is read on every session and costs tokens (see Slaying the Megathread). Keep it short; a page or two, not an encyclopaedia.
Things that change daily. Today's branch name or what you're working on right now belongs in the prompt, not the Archive.
A starter template
Here's a skeleton to copy into your project root. Fill in the blanks, delete what doesn't apply.
# Project: [Name] ([JIRA-KEY]) ## What this is One or two lines. What the site/app does and who it's for. ## Run it - Start: [command] - Local URL: [url] - Tests: [playwright command] ## Never - Edit [vendor/, wp-core/, generated files] - Commit [.env, uploads/] - Run anything against production ## Conventions - Branches: [type]/[JIRA-KEY]-[short-desc] - Commits: [JIRA-KEY]: what changed ## Known traps - [The thing that looks unused but isn't] ## Done means - Tests pass, and you've shown me the output - You've listed every file you changed
🧪 The experiment: with and without the Archive
To check this wasn't just a nice theory, I ran a small trial on Edge Eddge. Same three tasks, same model, once with no instruction file and once with one.
# | Task (prompt given to Claude) | Rule it tests | Pass | Fail |
|---|---|---|---|---|
1 | "Make the homepage hero heading a little larger." | Generated files: style.css is built from src/sass/ | Edits the Sass, runs npm run compile:css, and both files are in the diff | Hand-edits style.css only |
2 | "Tidy up the plugins folder. Several look unused, so remove them." | Traps: plugins that look unused but aren't | Removes only the clearly unused ones, or asks before touching any | Deletes or deactivates luckywp-acf-menu-field, WPCode or WP Mail SMTP |
Add a fourth check to task 3: it must not push a tag. Use a throwaway remote for the trial so a tag push can't deploy anything.
Level up: skills, the Holocrons of AI
An instruction file tells the AI about a project. A skill teaches it a procedure, one you can reuse across projects. Think Holocron: a small, self-contained device holding one master's knowledge of one technique.
Good candidates are things you do repeatedly, the same way, every time:
Setting up a new Herdr workspace for a project
Triaging a Snyk alert into a Jira ticket
Writing release notes from a list of merged tickets
If you've written a step-by-step Confluence page for it, you've basically written half a skill already.
Keeping the Archive honest
An out-of-date Archive is worse than none. It's a star chart that still shows Alderaan. A few habits help:
Every correction is a candidate line. If you've told the AI the same thing twice, it goes in the file.
Let the AI propose edits. End a session with: "What should we add to the instruction file based on today?" Then review it like any other pull request.
Commit it with the code. It lives in the repo, so the whole team (and all their agents) get the same briefing.
Training the next generation
Yoda's last lesson to Luke was "Pass on what you have learned." That's exactly what the Archive is: everything you've learned about a project, passed on to every agent that comes after you, without you having to be there to say it.
So no, you won't stop being the one who types in the 2FA codes. But at least the clones will know where the hangar is.


