agentleFS
derjochenmeyerderjochenmeyer/claude-code-craft/skills/craft-project-remember/SKILL.md

craft-project-remember

Skill2 starsChanged 7 months agoMITView on GitHub

Save facts, decisions, lessons, and context to project memory. Writes structured files that /craft-project-dream can consolidate and maintain.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

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

    If .craft/memory/ does not exist: create it, create an empty MEMORY_INDEX.md, create an empty learned-rules.md.

    line 28
  2. Distinctive:

    If no argument was given: review the current conversation context and identify the most valuable non-obvious information.

    line 32
  3. Distinctive:

    If an argument was given: use it as the content, enrich with context from the conversation if helpful.

    line 34
  4. Very specific:

    Read MEMORY_INDEX.md. If a similar entry already exists (same topic, overlapping keywords): update the existing file instead of creating a …

    line 48
  5. Very specific:

    If the type is lesson: also append to learned-rules.md.

    line 72
  6. Very specific:

    Read learned-rules.md, find the highest existing L-number (e.g., ## L003), increment by one.

    line 74
  7. Very specific:

    If the section heading for the type does not exist yet, create it (e.g., ## Warnings).

    line 98

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

craft-project-remember

Save something to project memory so future sessions can use it.

Invocation

  • /craft-project-remember -- Claude picks the most valuable insight from the current context
  • /craft-project-remember [what] -- saves exactly what was specified

Memory structure

Target directory: .craft/memory/ in the current working directory.

.craft/memory/
  INDEX.md              index of all entries (one line per entry)
  learned-rules.md      lessons with L001 numbering (read by session-start hook)
  YYYYMMDD_slug.md      individual memory files

If .craft/memory/ does not exist: create it, create an empty MEMORY_INDEX.md, create an empty learned-rules.md.

Step 1: Determine what to save

If no argument was given: review the current conversation context and identify the most valuable non-obvious information. Prioritize: decisions > lessons > facts > context.

If an argument was given: use it as the content, enrich with context from the conversation if helpful.

Step 2: Classify

TypeWhen to use
factTechnical or domain knowledge not in the code itself
decisionA choice with rationale (why not the alternative?)
lessonSomething learned from a mistake, correction, or unexpected behavior
contextBackground information future sessions might need
warningSomething easy to get wrong, with explanation

Step 3: Check for duplicates

Read MEMORY_INDEX.md. If a similar entry already exists (same topic, overlapping keywords): update the existing file instead of creating a new one.

Step 4: Write the memory file

Filename: YYYYMMDD_slug.md -- today's date, slug derived from the title (lowercase, spaces to hyphens, max 40 characters).

Format:

---
title: [short title]
type: [fact | decision | lesson | context | warning]
date: YYYY-MM-DD
---

[Content -- precise, not verbose. 1-5 sentences.]

**Why:** [rationale or source, if applicable]

**How to apply:** [when/where this matters in future sessions]

Step 5: Handle lessons specially

If the type is lesson: also append to learned-rules.md.

Read learned-rules.md, find the highest existing L-number (e.g., ## L003), increment by one.

Append:

## L004: [Title]

[Content from the memory file]

**Why:** [rationale]
**How to apply:** [guidance]
**Context:** saved on YYYY-MM-DD

This ensures the session-start hook can surface lesson titles without reading every memory file.

Step 6: Update INDEX.md

Append one line under the appropriate section heading:

- [Title](YYYYMMDD_slug.md) -- type | One-sentence summary

If the section heading for the type does not exist yet, create it (e.g., ## Warnings).

Step 7: Confirm

Output:

Saved: [Title]
  Type: [type] | File: .craft/memory/[filename].md
  "[First sentence of content as preview]"

Quality rules

  • Precise, not verbose -- if it fits in 3 sentences, don't use 10
  • No code that's already in the code -- only save what can't be read from source files
  • No duplicates -- update existing entries, don't pile up near-identical files
  • Do not save: temporary debugging state, in-progress task details, things already in CLAUDE.md or decisions.md
  • Always include Why and How to apply -- bare facts without context lose value across sessions

Examples

/craft-project-remember
--> Reads context, saves the most important non-obvious insight

/craft-project-remember Shopify API rate limit is 2 req/s for this app
--> Saves as fact with file .craft/memory/20260417_shopify-rate-limit.md

/craft-project-remember We chose Tailwind over CSS modules because Liquid partials make scoped CSS impractical
--> Saves as decision, includes rationale in Why field

/craft-project-remember Never run migrations without backing up the theme first -- lost 2 hours last time
--> Saves as lesson, also appends to learned-rules.md as L005

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.