agentleFS
strikersamstrikersam/autonomous-ai-agency/.agents/skills/replay-learnings/SKILL.md

replay-learnings

Skill9 starsChanged 3 months agoMITView on GitHub

Surface relevant past patterns before starting work. Read the learnings file and extract rules that apply to the current task. Prevents repeating past mistakes.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    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. Distinctive:

    Before working on a module you've touched before

    line 25
  2. Very specific:

    After cooldown-resume loads the checkpoint (learnings provide extra context)

    line 26
  3. Distinctive:

    When the user asks "what did we learn about X?"

    line 27
  4. Distinctive:

    If the file doesn't exist, skip to Step 3 (no learnings yet).

    line 39
  5. Distinctive:

    Check for documented blockers that are still unresolved.

    line 74
  6. Distinctive:

    Before starting work, briefly confirm which rules apply:

    line 78
  7. Distinctive:

    Start working, and the learnings will accumulate over time.

    line 92

≈ “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

Skill: replay-learnings

When to Use

Run this skill:

  • At the start of a new session before touching any code
  • Before working on a module you've touched before
  • After cooldown-resume loads the checkpoint (learnings provide extra context)
  • When the user asks "what did we learn about X?"

Instructions

Step 1 — Read the learnings file

cat .claude/state/learnings.md

If the file doesn't exist, skip to Step 3 (no learnings yet).

Step 2 — Filter relevant learnings

From all entries, extract those relevant to the current task. Match by:

  • Module name — does the learning mention a file you're about to touch?
  • Operation type — does the learning apply to commits, auth, routing, tests?
  • Keyword overlap — does the learning's situation match the current context?

Present the relevant learnings as a short list:

Relevant learnings for this task:
- [2026-03-15] Never use git add -A — stage specific files only.
- [2026-03-22] Always read router/CLAUDE.md before touching model_router.py.
- [2026-04-01] risky-module-review is required for admin_auth.py even for 1-line changes.

Step 3 — Check recent checkpoint history

tail -20 .claude/state/checkpoint.jsonl 2>/dev/null || echo "No checkpoint history."

Look for patterns:

  • Steps that were retried (same step_id appearing twice)
  • Steps that failed
  • Any "partial" status entries

Step 4 — Surface blockers from previous session

cat .claude/state/NEXT_ACTION.md 2>/dev/null || echo "No next action file."

Check for documented blockers that are still unresolved.

Step 5 — Apply relevant rules

Before starting work, briefly confirm which rules apply:

Applying rules from learnings:
✓ Will stage specific files (not git add -A)
✓ Will read router/CLAUDE.md before touching routing code
✓ Will invoke risky-module-review for auth module

Learnings File Doesn't Exist?

This is expected on a fresh clone. The file is created by learn-rule and wrap-up. Start working, and the learnings will accumulate over time.


Acceptance Checks

  • .claude/state/learnings.md read (or confirmed absent)
  • Relevant rules identified for the current task
  • Recent checkpoint history reviewed
  • Any previous blockers from NEXT_ACTION.md noted
  • Rules applied (stated explicitly before starting work)

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.