agentleFS
arniesahaarniesaha/ctxops/skills/recall-prior-work/SKILL.md

recall-prior-work

Skill0 starsChanged 5 months agoMITView on GitHub

WHEN the user references past sessions, prior decisions, or work outside current context: search persistent memory FIRST before answering. Triggers: 'did we already X?', 'how did we solve Y last time?', 'what was decided about Z?', 'last time we tried this…'. Requires a persistent-memory tool (e.g. claude-mem); degrades to git history + docs without one. OUTPUT: found / decided / tried-but-unresolved / stale-risk, with dates. PAIR: feed results into ctx-pack or status-update. NOT FOR: current-session recall (it's in context), repo-state questions (read the repo).

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Timeline: - if a single hit looks load-bearing, pull timeline around it for surrounding context.

    line 15
  2. Distinctive:

    Verify load-bearing claims (file paths, flag names, ticket IDs) against the current repo before recommending action.

    line 21
  3. Distinctive:

    If memory and current repo disagree, trust the repo and update memory.

    line 34
  4. Distinctive:

    Do not paste long memory excerpts into the response.

    line 35
  5. Distinctive:

    If no relevant memory exists, say so explicitly.

    line 36

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

recall-prior-work

Memory-only lookup, distinct from ctx-pack (which also pulls memory but blends it with files/diffs) and project-briefing (which reads the live repo).

Workflow

Three layers, always in order. Never fetch full details before filtering. Tool names below are claude-mem's; map them to whatever memory tool is installed. If none is, say so and fall back to git history, status docs, and ADRs. Do not fabricate continuity.

  1. Search - memory search with a focused query, project filter, and a date window if known. Read titles only.
  2. Timeline - if a single hit looks load-bearing, pull timeline around it for surrounding context.
  3. Fetch - get_observations on the small set of IDs that actually matter. Batch the call.

Then:

  • Distinguish what was decided from what was tried. Decisions stick; experiments may not.
  • Note the date of each fact. Memory is a snapshot, not ground truth.
  • Verify load-bearing claims (file paths, flag names, ticket IDs) against the current repo before recommending action.

Output Shape

  • Found - 1-line per relevant memory with date and ID.
  • Decided - what was settled, and when.
  • Tried but unresolved - so we do not re-litigate or re-attempt blindly.
  • Stale risk - facts whose freshness matters; what to re-verify.
  • Next step - either an answer or the verification command.

Rules

  • Filter before fetching. Titles first, full text only for finalists.
  • If memory and current repo disagree, trust the repo and update memory.
  • Do not paste long memory excerpts into the response; cite IDs and summarize.
  • If no relevant memory exists, say so explicitly. Do not fabricate continuity.
  • Respect project scope: pass the project filter so memory from unrelated repos does not leak in.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.