agentleFS
iagocavalcanteiagocavalcante/claude-turbo-search/skills/remember/SKILL.md

remember

Skill15 starsChanged 9 months agoMITView on GitHub

Save the current work session to persistent memory for future context. Summarizes accomplishments, tracks files modified, and stores learnings for cross-session continuity.

50 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use forget, recall and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ThisisYoYoDevSkill

    forget

    Soft-delete data from the RAG database — by session, project, or all. Data can be restored later.

    Also in 3 projects that use this

  • termdockSkill

    recall

    Retrieves cross-session memories about past decisions, lessons, and patterns. Use when user asks about prior work, past decisions, or mentions a feature. Triggers include check memory, what did we decide, how did we solve.

    Also in 14 projects that use this

  • an8079Skill

    autopilot

    Also in 4 projects that use this

  • nicodianskSkill

    wrap

    Use when ending a session, taking a break, or context is getting full. Captures session state, decisions, and generates a resume prompt for the next session. Critical for multi-session continuity.

    Also in 3 projects that use this

  • genomewalkerSkill

    resume

    Resume a thread by loading its ~800-token context capsule

    Also in 3 projects that use this

  • AnthropicSkill

    onboarding

    Generate an onboarding checklist and first-week plan for a new hire. Use when someone has a start date coming up, building the pre-start task list (accounts, equipment, buddy), scheduling Day 1 and Week 1, or setting 30/60/90-day goals for a new team member.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 10 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 45 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    When the user invokes /remember, you should:

    line 12
  2. Distinctive:

    When writing summaries, facts, or knowledge entries, follow these rules to maximize information density:

    line 36
  3. Distinctive:

    Resolve pronouns to concrete entities: Write "JWT middleware validates tokens" not "it validates them"

    line 38
  4. Very specific:

    Use absolute file paths: Write "src/auth/middleware.ts" not "this file" or "the auth file"

    line 39
  5. Distinctive:

    Avoid filler phrases: Do not use "I think", "basically", "sort of", "actually" — state facts directly

    line 41
  6. Distinctive:

    Use ISO dates: Write "2026-02-11" not "today" or "yesterday" — temporal references decay quickly

    line 42
  7. Distinctive:

    Create a concise summary (2-3 sentences) that captures:

    line 48
  8. Very specific:

    Use the memory-db.sh script to save:

    line 62
  9. Distinctive:

    If during the session you learned something important about the codebase that should be remembered:

    line 81
  10. Distinctive:

    Before clearing the activity log, calculate and persist token metrics for this session:

    line 99
  11. Very specific:

    If the user has configured a personal web dashboard with memory-db.sh config set, sync the updated database to it:

    line 124
  12. Distinctive:

    After saving, clear the activity log:

    line 136
  13. Distinctive:

    If the user wants to add specific knowledge or facts, they can say:

    line 169
  14. Distinctive:

    Ask clarifying questions if the summary scope is unclear.

    line 173

“Common” is measured: kept by at least 6 in 10 of the 45 edited versions of this file we could read. “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

/remember - Save Session to Memory

Summarize the current work session and save it to persistent memory for future context.

Instructions

When the user invokes /remember, you should:

1. Check for Activity Log

First, check if there's an activity log from this session:

REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || echo "$PWD")
ACTIVITY_FILE="$REPO_ROOT/.claude-memory/activity.log"
if [ -f "$ACTIVITY_FILE" ]; then
    cat "$ACTIVITY_FILE"
fi

2. Analyze the Session

Review what was accomplished in this conversation:

  • What files were read, created, or modified?
  • What was the main goal or task?
  • What key decisions were made?
  • Were there any important patterns or learnings?

2.5. Compression Guidelines

When writing summaries, facts, or knowledge entries, follow these rules to maximize information density:

  • Resolve pronouns to concrete entities: Write "JWT middleware validates tokens" not "it validates them"
  • Use absolute file paths: Write "src/auth/middleware.ts" not "this file" or "the auth file"
  • Write dense, self-contained summaries: Each memory entry should be understandable without the original conversation context
  • Avoid filler phrases: Do not use "I think", "basically", "sort of", "actually" — state facts directly
  • Use ISO dates: Write "2026-02-11" not "today" or "yesterday" — temporal references decay quickly

The system automatically compresses text at write time (normalizing dates, stripping filler), but writing clean summaries upfront produces better results.

3. Generate Summary

Create a concise summary (2-3 sentences) that captures:

  • What was done (the main accomplishment)
  • Why it matters (the purpose or problem solved)
  • Key details (important files, patterns, or decisions)

4. Extract Metadata

Identify:

  • Files touched: List of file paths worked on
  • Topics: 3-5 keywords for searchability (e.g., "auth, jwt, middleware, security")
  • Tools used: Main tools used (Read, Write, Edit, Bash, etc.)

5. Save to Memory

Use the memory-db.sh script to save:

PLUGIN_DIR="${PLUGIN_DIR:-$HOME/claude-turbo-search}"
MEMORY_SCRIPT="$PLUGIN_DIR/memory/memory-db.sh"

# Initialize if needed
"$MEMORY_SCRIPT" init

# Save session
"$MEMORY_SCRIPT" add-session \
    "YOUR_SUMMARY_HERE" \
    '["file1.ts", "file2.ts"]' \
    '["Read", "Edit", "Bash"]' \
    "topic1, topic2, topic3"

6. Optionally Add Knowledge or Facts

If during the session you learned something important about the codebase that should be remembered:

For code area knowledge:

"$MEMORY_SCRIPT" add-knowledge \
    "src/auth" \
    "Authentication module using JWT tokens with refresh token rotation" \
    "Tokens expire in 15min, refresh tokens in 7 days"

For project facts:

"$MEMORY_SCRIPT" add-fact "Uses PostgreSQL with Prisma ORM" "architecture"
"$MEMORY_SCRIPT" add-fact "All API routes require authentication except /health" "convention"

6.5. Save Token Metrics

Before clearing the activity log, calculate and persist token metrics for this session:

PLUGIN_DIR="${PLUGIN_DIR:-$HOME/claude-turbo-search}"
MEMORY_SCRIPT="$PLUGIN_DIR/memory/memory-db.sh"
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || echo "$PWD")
ACTIVITY_FILE="$REPO_ROOT/.claude-memory/activity.log"

if [ -f "$MEMORY_SCRIPT" ] && [ -f "$ACTIVITY_FILE" ]; then
    # Get the session ID just saved (most recent)
    SESSION_ID=$("$MEMORY_SCRIPT" recent 1 2>/dev/null | grep -o '"id":[0-9]*' | head -1 | grep -o '[0-9]*')

    if [ -n "$SESSION_ID" ]; then
        SEARCHES=$(grep -c "SEARCH:" "$ACTIVITY_FILE" 2>/dev/null || echo "0")
        READS=$(grep -c "|Read|" "$ACTIVITY_FILE" 2>/dev/null || echo "0")
        EDITS=$(grep -c "|Edit|" "$ACTIVITY_FILE" 2>/dev/null || echo "0")
        "$MEMORY_SCRIPT" add-token-metrics "$SESSION_ID" "$SEARCHES" "$READS" "$EDITS" 2>/dev/null || true
    fi
fi

This step is non-blocking — if memory-db.sh is unavailable or fails, the session save still succeeds.

6.6. Push to Remote Dashboard (Optional)

If the user has configured a personal web dashboard with memory-db.sh config set, sync the updated database to it:

"$MEMORY_SCRIPT" push 2>/dev/null || true

This step is non-blocking — failures are silent. When no remote is configured, push exits with a clear error that we discard. When a remote is configured, the gzipped database is uploaded so the dashboard reflects this session immediately.

See docs/plans/web-sync.md for the dashboard architecture and web/README.md for deploy instructions.

7. Clear Activity Log

After saving, clear the activity log:

ACTIVITY_FILE="$REPO_ROOT/.claude-memory/activity.log"
[ -f "$ACTIVITY_FILE" ] && rm "$ACTIVITY_FILE"

8. Confirm to User

Report what was saved:

Saved to memory:
- Summary: [your summary]
- Topics: [topics]
- Files: [count] files tracked

Memory now contains [X] sessions. Use /memory-stats to see details.

Example Output

Saved to memory:
- Summary: Implemented JWT authentication with refresh token rotation. Added middleware for protected routes and updated user model with token fields.
- Topics: auth, jwt, middleware, tokens, security
- Files: 4 files tracked

Memory now contains 12 sessions.

Additional Commands

If the user wants to add specific knowledge or facts, they can say:

  • "Remember that this project uses X" -> Add as fact
  • "Remember how the auth module works" -> Add as knowledge

Ask clarifying questions if the summary scope is unclear.

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.