albkhachikyan

Claude Code Project Memory — Development skill for Claude Code

Development community

Claude Code skill: per-project memory that learns from its own mistakes.

How to install Claude Code Project Memory

This entry records only its repository, not the path inside it, so there is no exact command to give. Open albkhachikyan/claude-code-project-memory and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Code Project Memory does

Claude Code skill: per-project memory that learns from its own mistakes. Hooks capture failed commands and your corrections, reflection turns them into evidence-checked rules, promoted rules load in every session. Local, zero dependencies, injection- and hallucination-checked.

Alternatives in Development

  • CORS — Scan an endpoint for CORS misconfiguration — arbitrary-origin reflection, null-origin trust, credential exposu 4.5k ★
  • Arreflect — AgentRecall consolidation & reflection — periodic triage of recurring corrections; proposes rule changes, neve 370 ★
  • Jianing Skills — Agent skills for Claude Code and Codex: self-reflection, content, slides, WeChat formatting 328 ★

README

Project Memory: a Claude Code skill whose per-project memory learns from its mistakes

**Project Memory is a Claude Code skill and plugin that gives each project a memory that learns from its own mistakes.** Hooks capture errors and user corrections from the session as scrubbed episode files. Reflection turns them into candidate rules backed by evidence, and scripts check every change before it is saved. Promoted rules are rendered to `RULES.md` and mirrored into Claude Code's native auto-memory, so they load in every session.

/plugin install project-memory --marketplace albkhachikyan/claude-code-project-memory

Why

Claude Code forgets between sessions. Monday it runs `npm install` in a pnpm repo and you correct it. Wednesday it does the same thing again. `CLAUDE.md` only helps if you remember to write the rule down, and auto-memory saves whatever the model decides to save, with no evidence and no way to remove it once it's wrong.

Project Memory treats every mistake as data:

  • A failed command, a rejected tool call or a "no, not like that" is recorded by a script at no token cost.
  • At the end of a task, /project-memory reflect turns those records into lessons, each one citing the exact event it came from.
  • A lesson becomes a rule only after it holds up in a second, separate session, or when you state it yourself.
  • Rules that start causing harm are retired automatically.

What you get in `RULES.md` (and in every new session):

- When running pnpm test in packages/api → start the db container first (ECONNREFUSED on 5432) [L-0001 · 2 sessions · last 2026-11-24]
- When installing packages in this repo → use pnpm, not npm (pnpm-lock.yaml; user corrected it) [L-0003 · user · last 2026-11-24]

And what reflect shows you before anything is saved:

+ L-new  When pnpm test in packages/api → start db first   ← #3 tool_error network "ECONNREFUSED"
↑ L-0002 reinforce (2nd session)                            ← #5 USER: "agai