aditya-deokar/software-factory/agent-memory
Claude Code and agent skill by aditya-deokar/software-factory
- community
Checking that the SKILL.md file is still in the repository.
Keep a repo's hard-won facts (root causes, environment quirks, decisions, pitfalls) in .factory/memory/, each with the PR or issue it came from, so agents stop re-learning them. Use when starting any task in a repo with .factory/ (read the index), before re-deriving a root cause or debugging an environment problem (search first), when a person corrects you or tells you something twice, and at the end of a task to save what the next agent needs.
Install
npx vskill@latest install aditya-deokar/software-factory/agent-memorySKILL.md
The same SKILL.md was published earlier as aditya-deokar/software-factory/agent-memory.
Agent memory
Skills hold procedures. Memory holds facts: that the macOS CI runner times out on its first npx call, that the orders table is sharded by region, that we decided against websockets in March and why. Without memory, an agent that fixed a bug last week re-derives the same root cause today, and pays for it in tokens and time.
Each memory is one file in .factory/memory/, with a source link, committed with the PR that learned it. A human reviews every memory the same way they review code, and git keeps the history.
Find the script
At the start of a task: read the index
Read .factory/memory/INDEX.md. It is one line per memory, so it stays cheap. Open a memory file only when its line bears on the task. (The Claude Code plugin's session hook prints the index for you; without it, read the file yourself.)
Before re-deriving anything: search
Before debugging an error, investigating a flaky test, or working out why something is built the way it is:
When a memory helps, count it. The use count decides which memories graduate into skills, and a run record without it undercounts what memory saved:
Treat a memory as a lead, not a verdict. Check that it still holds before acting on it; code moves. If it is wrong, fix it in the same PR (add --update) and say so.
At the end of a task: save what the next agent needs
Save a fact when all three are true:
- It cost something to learn: a debugging session, a failed attempt, or
a person's correction.
- It is not in the code, a skill, or `AGENTS.md`. Anything a reader of
those would already know is noise.
- It will matter again. A one-off data fix does not.
| Type | For | Example | |
|---|---|---|---|
pitfall | A trap and how to avoid it | Symlink install fails on Windows without Developer Mode; use --copy | |
fact | How something actually behaves | The staging DB is restored from prod every Sunday at 02:00 UTC | |
decision | What was chosen, and why | No websockets: the proxy drops idle connections at 60s (PR #88) | |
reference | Where something lives | Flaky test quarantine list is in ci/quarantine.txt |
Rules for the text:
- The description is the index line. Write it with the words someone
would search for: the error text, the component name.
- Say how to apply it, not only what happened.
- Always give a source. A PR, issue, or commit URL. A memory nobody can
trace cannot be checked, so the script refuses one without a source.
- One fact per memory. If
addwarns that a new memory is similar to an
existing one, update that one instead (--update).
- Never store secrets, credentials, or customer data. The script refuses
known token shapes, but it cannot catch everything. Memory is in git.
Then put this in the PR body, so reviewers see what memory did:
When a person corrects you
A correction repeated twice means memory failed. Save the correction as a pitfall or decision right away, with the message or comment as the source, and record the correction as a touch in the ledger. The repeated-correction friction pattern counts these, and the outer loop watches that number.
Upkeep
Graduation. A memory used three or more times is really part of a procedure. Propose moving it into the skill that owns that procedure, or into AGENTS.md, and delete the memory in the same PR. skill-feedback-loop does this on its weekly pass; do it by hand when you notice one.
Conflicts. INDEX.md is generated. On a merge conflict, take either side and run memory.mjs index. Never hand-merge it.
Do not do these
- Do not save the task log. "Fixed the login bug by changing X" belongs
in the commit message.
- Do not save what a skill already says. Improve the skill instead.
- Do not edit memory outside a PR. Unreviewed memory is how a wrong fact
spreads to every future task.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/agent-memory/SKILL.md
Popularity
- 7-day trend score
- 0
Refreshed 24 Nov 2026, 3 days ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aditya-deokar/software-factory/agent-memory)