Search this project's own memory before doing something it may already have opinions about. Use before running a build/test/deploy command, before choosing a library or approach, before changing configuration or CI, and before re-opening a decision that may already have been settled. Also use when a task resembles something the project has plausibly hit before.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Check Memory Before Acting?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/giulioder-check-memory-before-acting)
---
name: check-memory-before-acting
description: Search this project's own memory before doing something it may already have opinions about. Use before running a build/test/deploy command, before choosing a library or approach, before changing configuration or CI, and before re-opening a decision that may already have been settled. Also use when a task resembles something the project has plausibly hit before.
---
# Check memory before acting
This project has a RE-call memory store: notes, decisions and postmortems written by earlier
sessions, searchable through the `recall_search` tool. It answers with a verdict per hit and
refuses when nothing clears its threshold, so a confident answer from it means something.
## Why this skill exists, and what it is correcting
Measured over 54 paired sessions, this memory layer eliminated a class of known hazard when the
relevant memo reached the agent, and reached it in only about a third of sessions. The layer was
not the problem. **The queries were.** The agent searched for what it was doing rather than for
what could go wrong, and a memo written about the failure did not match a query written about the
task.
One recorded example, in full, because the shape is the whole lesson:
| The agent searched for | The memo that would have saved it was written as |
|---|---|
| "version bump script versioning conventions" | "why does a file edited by a python script show as modified with no content change" |
Both are about the same file. Neither query retrieves the memo. Every session then wrote CRLF into
a tree configured for LF, which is exactly what the memo warns about.
⛔ **You cannot look up a hazard you do not know exists.** That is not a reason to skip the search.
It is the reason to search for the *hazard* rather than the *task*.
## How to search
You cannot name a symptom you have not hit yet. What you can always name is the **operations** you
are about to perform: the tools, file types and commands the task will actually touch. A memo about
a failure names those same operations, because they are where the failure happened. So decompose
the task into its operations, and search for each operation plus its failure:
- Not "bump the version" but "python script edits a file", "file shows as modified with no change".
- Not "how do I run the test suite here" but "test suite hangs", "tests pass locally fail in CI",
"database tests silently skipped".
- Not "add a dependency" but "dependency breaks the build", "lockfile conflict", "version pin".
- Not "deploy the service" but "deploy failed", "migration locked the table", "rollback".
Two or three short searches with different words beat one long one. Symptom words, error text and
file names retrieve well; a sentence describing your plan does not.
## When to do this
The moment that matters is **before your first file edit or state-changing command in a task**, not
after something breaks. A search after the failure can only explain it; a search before the first
write is the only way to prevent it. In particular:
- Before a command that changes state: a build, a migration, a deploy, a release, a force push.
- Before choosing a library, a pattern or an approach, where the project may have tried one and
rejected it.
- Before editing configuration, CI, or anything under a path you have not touched this session.
- When something looks like a decision that may already have been made. Re-opening a settled
question is the failure this store was built to prevent.
## Reading the answer
`recall_search` returns a verdict per hit rather than a ranked list to interpret.
- **`ok`**: a live claim. Use it.
- **`superseded`**: a claim that was retracted, carrying a pointer to what replaced it. Follow the
pointer. **Do not act on a superseded hit**: the corpus is telling you the newer document won.
- **`low_confidence`** and an abstention: the store is saying it does not know. Treat it as no
answer, not as a weak yes.
- **`DEGRADED:INDEX_NOT_READY`** means the corpus has no fitted calibration; weigh its verdicts
accordingly and mention it if a decision turns on one.
## What not to do
- Do not paste secrets, credentials or customer data into a search.
- Do not treat memory as authoritative over the code in front of you. When they disagree, the code
wins and the memo is worth correcting.
- Do not search once, find nothing, and conclude the project has no opinion. Try the hazard's
vocabulary before concluding the corpus is silent.