/john-skills:project-memoriesfrom john-skills
Maintains durable project memories as markdown files in a docs/memories/ folder with an llms.txt index. Replaces ad-hoc session memory for facts and conventions that should outlive the current session.
Ships in john-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Keep durable project knowledge in files that travel with the repo: one markdown file per memory under docs/memories/, indexed by docs/memories/llms.txt. This replaces ad-hoc memory mechanisms — bd remember, a stray notes file, an agent's own session memory — for anything that should outlive the session and the tool that recorded it.
A memory holds a durable fact or decision: a convention, a gotcha, a reason something is the way it is. It is not a changelog entry and not a TODO. Write it so an agent or teammate who never saw the session can read it and act correctly.
Durable knowledge has three homes, and a memory is the narrowest of them. Put content in the wrong home and docs rot while decisions get relitigated.
docs/ARCHITECTURE.md, docs/STYLE_GUIDE.md, docs/DEPLOYMENT_STEPS.md) describe the system as it is — what it does and how to work on it, for a general reader. They are living text: when reality changes you rewrite them, and the old version has no value.docs/adr/) record a choice among alternatives with lasting consequences — "use async queue processing for distributed jobs", "put all objects in S3" — along with the context that forced the choice. They are point-in-time and immutable: a new ADR supersedes an old one, and you never edit one into a new position.The test, in order:
Memories also graduate. Once a memory's content turns normative — a rule everyone must follow, a section a real doc should own — move the rule into that doc or ADR, then retire the memory (or slim it down to the decision trail) with a pointer to its new home. Never let a memory fork a normative document: one of them wins, and the memory has to say which.
These files get committed, so anything in one is as exposed as the rest of the repo. If the repo is public, or might ever become public, a memory must contain no secrets, credentials, account identifiers, IP addresses, hostnames, internal URLs, or other private infrastructure detail.
Before writing any memory:
<REDACTED> and shipping the rest is not good enough. Leave the memory out of the repo and tell the user it belongs somewhere private: local agent memory, bd remember kept private, a password manager, private notes.rocky-surf-deploy entry in 1Password" — never the value itself.When in doubt, leave it out and say why. A missing memory is recoverable; a leaked credential in git history is not.
docs/memories/llms.txtOne llms.txt file, one bullet per memory. Group the bullets or keep them flat — most projects stay small enough for a flat list.
# Project Memories
> Durable project knowledge for <Project>. Each link is a self-contained
> memory file. Retired memories are kept for history, not deleted.
> Statuses: active | retired.
- [db-migration-strategy](2026-08-21-db-migration-strategy.md): [active] Migrations run forward-only, no down migrations — team decided rollback-by-redeploy is safer than reversible migrations.
- [legacy-auth-flag](2026-06-02-legacy-auth-flag.md): [retired] The LEGACY_AUTH env flag existed during the 2026 auth migration; removed once the migration completed.
Entry format: - [key](filename.md): [status] one-line summary.
docs/memories/YYYY-MM-DD-<key>.mdYYYY-MM-DD is the date the memory was established — look it up, don't assume it. <key> is a short slug, lowercase and dash-separated, matching the KEY field.
---
KEY: db-migration-strategy
DATE: 2026-08-21
UPDATED: 2026-08-21
STATUS: active
SOURCE: session decision
---
We run database migrations forward-only; there are no down migrations.
The team decided this after a rollback attempt corrupted staging data in
[incident/context if known]. Rolling back by redeploying the previous
migrated state is safer than trusting a hand-written down migration that
is rarely tested. New migrations must be additive or reversible-by-forward-fix,
never destructive without a forward-only remediation path.
Frontmatter fields:
KEY — the slug; matches the index entry and the filenameDATE — when the memory was first established, which is usually but not always the day the file was writtenUPDATED — last revision date; equals DATE until the first updateSTATUS — active or retiredSOURCE — where the memory came from, e.g. "session decision", "bd remember, migrated 2026-08-21", "code review, PR #142"Body: prose, not bullet fragments. State the memory plainly, then the reasoning behind it. A paragraph or two — this is a record, not documentation.
date +%Y-%m-%d
git rev-parse --show-toplevel 2>/dev/null || pwd
If the root looks like a skills or plugin checkout (it contains /.claude/skills/ or /skills/, or has a plugin.json at the top), stop and ask the user which project the memory belongs to.docs/memories/ and its llms.txt (header only, no entries) if they don't exist yet.llms.txt for a collision. A key that already exists means this is an update, not a new memory.docs/memories/YYYY-MM-DD-<key>.md with the frontmatter and body above.llms.txt.Use this when the underlying fact is still true but needs correction or more detail. If it is no longer true and the old version is worth keeping, retire it and write a new memory instead.
UPDATED to today. Leave DATE alone — it marks when the memory was first established.llms.txt if the substance moved enough to make the old summary misleading.Use this when a memory is no longer true or no longer relevant, but the history is worth keeping — "why we used to do X before switching to Y".
STATUS: retired in the frontmatter and bump UPDATED.llms.txt entry to [retired], noting what superseded it if that helps.Read docs/memories/llms.txt first — never the whole directory — and open only the files whose one-line summaries bear on the task at hand. Same discipline as an ADR index: scan, then fetch selectively.
bd rememberWhen a project has been using beads' memory feature and wants its durable, shareable knowledge in files:
bd memories
bd recall <key>
docs/memories/ file with SOURCE: bd remember, migrated YYYY-MM-DD.bd remember, or move it to whatever private mechanism the project actually uses. No scrubbed versions in the repo: either it's safe as-is or it doesn't go in.bd remember as part of the migration unless the user asks. Treat it as a copy until they confirm the beads memories are no longer needed.Offer to add a pointer so agents find the index on their own, in whatever instructions file the project uses (CLAUDE.md, AGENTS.md):
## Project Memories
Durable project knowledge lives in `docs/memories/llms.txt` (index) and
`docs/memories/*.md` (one file per memory). Read the index first; open
only the files relevant to the current task. To add, update, or retire a
memory, use the project-memories skill.
Before telling the user a memory is done:
KEY matches the filename slug and the llms.txt entrySOURCE reflects where this actually came fromllms.txt updated: new entry, or summary and status revisedDo
Don't
DATE on updatedocs/memories/ as a changelogWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
32 skills in this plugin
/architecture-decision-recordsWrite and maintain Architecture Decision Records (ADRs) that capture the context and rationale behind significant technical decisions. Use when documenting an architectural or technology choice, recording a design trade-off, superseding a past decision, or setting up an ADR process. Also use proactively to offer an ADR when a significant decision is made during a coding session (database, framework, auth scheme, API style, integration pattern). Triggers on "write an ADR", "document this decision", "record this architecture choice", "add a decision record", "supersede ADR"./aws-learningsProactively catch common AWS infrastructure mistakes before they happen. Use when creating or modifying AWS components — CloudFormation, CDK, Lambda, API Gateway, IAM, S3, CloudFront, EC2, EventBridge, SQS, Secrets Manager, or SSM — to find and apply hard-won deployment lessons and avoid known pitfalls. Read-only: fetches lessons, does not add them./aws-learnings-addContribute a new lesson to the AWS Learnings library (the llms.txt-format library at github.com/jbdamask/aws-learnings-library). Use this whenever you've just debugged, fixed, or discovered a non-obvious AWS gotcha — CloudFormation, CDK, Lambda, API Gateway, IAM, S3, CloudFront, EC2, EventBridge, SQS, Secrets Manager, SSM — and want to capture it for next time. Triggers on phrases like 'add an AWS learning', 'save this AWS lesson', 'capture this gotcha', 'add this to the learnings library', or after solving a tricky AWS deployment problem worth remembering. This skill WRITES files (a new lesson file + an updated index) and prepares a pull request; it is the write companion to the read-only 'aws-learnings' skill.npx claudepluginhub jbdamask/john-claude-skills --plugin john-skillsOther plugins' skills for the same job