agentleFS
Ericcccccc777Ericcccccc777/CCC-MAGI/skills/remember/SKILL.md

remember

Skill1 starsChanged 5 months agoApache-2.0View on GitHub

Append an observation, decision, or failure to .harness/memory/observations.jsonl for future Claude Code sessions to recall. Reads $ARGUMENTS as the summary text; asks the user to clarify kind / feature / details if missing. Trigger when the user invokes /remember, says "remember this", "note for later", "save this decision", "记一下", "记到 memory", or similar intent.

50 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use forget, autopilot and 8 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

  • 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

  • AnthropicSkill

    status

    Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.

    Also in 4 projects that use this

  • +1 more from anthropics

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 2 are distinctive, and 13 are very specific to this project.

  • 0

    Common

    Most of the 45 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 13

    Very specific

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

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

    If .harness/memory/ or observations.jsonl doesn't exist, this skill creates them.

    line 26
  2. Very specific:

    Treat $ARGUMENTS as the proposed summary text.

    line 32
  3. Very specific:

    If the user-provided summary exceeds 200 chars, propose splitting: keep the first ≤200 chars in summary, move the rest into details.

    line 44
  4. Very specific:

    Use the same logic as .harness/scripts/memory-recall.sh:

    line 50
  5. Very specific:

    If BRANCH matches feat/<name>-* or fix/<name>-* → <name> is everything between the prefix and the first dash (or the whole rest if no dash).

    line 58
  6. Very specific:

    Don't over-engineer this — if it's ambiguous, default to observation.

    line 77
  7. Very specific:

    Run git status --short in the project root.

    line 83
  8. Very specific:

    If you can't infer meaningful tags, propose [].

    line 94
  9. Very specific:

    If the summary is self-explanatory (e.g., "FlashList is 5x faster than FlatList here"), propose details="".

    line 100
  10. Very specific:

    Path resolution: use ${CLAUDE_PROJECT_DIR:-$(pwd)} (not raw $CLAUDE_PROJECT_DIR) for all filesystem paths in this skill — the env var may …

    line 106
  11. Very specific:

    If [2], ask which field(s) to edit, accept new values, re-show the confirmation.

    line 130
  12. Very specific:

    If [3], abort silently — write nothing.

    line 132
  13. Distinctive:

    Ensure the directory exists:

    line 140
  14. Distinctive:

    If the user cancels at Step 6, nothing is written.

    line 186
  15. Very specific:

    If jq is missing, surface the error and abort — do not fall back to hand-rolled JSON (quoting bugs would corrupt the file).

    line 187

“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

Manually capture a decision, failure, or observation into the project's memory layer so future Claude Code sessions can recall it.

Companion to the automatic capture path (PreCompaction hook). This skill is the user-curated entry point — what the human explicitly wants persisted, not what an LLM guesses is important.

Language Awareness

This skill's instructions are in English. When you talk to the user (proposing values, confirming the entry), use the user's OS locale language. See CLAUDE.md § Language Awareness. The JSON written to observations.jsonl defaults to English unless the user explicitly enters non-English content; do not translate user-entered strings.

What this skill produces

A single new line appended to .harness/memory/observations.jsonl:

{"ts":"2026-05-22T14:00:00Z","kind":"decision","summary":"<one-line, ≤200 chars>","details":"<optional longer text>","feature":"<name or null>","files":["..."],"tags":["..."],"source":"manual"}

If .harness/memory/ or observations.jsonl doesn't exist, this skill creates them.


Step 0 — Parse $ARGUMENTS

Treat $ARGUMENTS as the proposed summary text. If $ARGUMENTS is empty, ask the user:

What do you want to remember?
(One sentence, ≤200 chars. Examples:
 - "Use Supabase RLS, not middleware — middleware p99 was 800ms"
 - "Google Vision API too expensive at our scale; use local model"
 - "FlashList is 5x faster than FlatList here")

Wait for user response before continuing.

If the user-provided summary exceeds 200 chars, propose splitting: keep the first ≤200 chars in summary, move the rest into details. Ask the user to confirm or rewrite.


Step 1 — Auto-extract feature from current git branch

Use the same logic as .harness/scripts/memory-recall.sh:

BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "")

Then derive FEATURE:

  • If BRANCH matches feat/<name>-* or fix/<name>-* → <name> is everything between the prefix and the first dash (or the whole rest if no dash).
  • Else if BRANCH matches <name>/... → <name> is the segment before the first slash.
  • Else FEATURE="" (will be written as null in JSON).

Example: branch feat/auth-rls-migration → FEATURE=auth. Example: branch main → FEATURE="".


Step 2 — Propose kind based on summary phrasing

Heuristic (case-insensitive):

Phrase pattern in summaryProposed kind
starts with "use X", "we use", "switch to", "chose", "decided"decision
contains "didn't work", "failed", "broke", "too expensive", "too slow", "regression"failure
anything else (general note, perf comparison, gotcha)observation

Don't over-engineer this — if it's ambiguous, default to observation.


Step 3 — Auto-propose files

Run git status --short in the project root. Take the first 3 modified/staged paths as the proposed files array. If git status is empty, propose [].


Step 4 — Propose tags

Pick 1-3 short tags from the summary's key nouns. Examples:

  • "Use Supabase RLS, not middleware" → ["auth", "rls", "supabase"]
  • "FlashList is 5x faster than FlatList here" → ["perf", "list-rendering"]

If you can't infer meaningful tags, propose [].


Step 5 — Propose details (optional)

If the summary is self-explanatory (e.g., "FlashList is 5x faster than FlatList here"), propose details="". Otherwise propose a short rationale line that adds context the summary couldn't fit (e.g., the "why" or the measurement).


Step 6 — Confirm the proposed entry with the user

Path resolution: use ${CLAUDE_PROJECT_DIR:-$(pwd)} (not raw $CLAUDE_PROJECT_DIR) for all filesystem paths in this skill — the env var may be empty in some Bash subshell contexts.

Display the full proposed JSON entry in the user's locale, formatted for human reading:

About to append this entry to .harness/memory/observations.jsonl:

  ts       : <ISO 8601 UTC of now>
  kind     : decision
  summary  : Use Supabase RLS, not middleware — middleware p99 was 800ms
  details  : (empty)
  feature  : auth
  files    : ["src/auth.ts", "supabase/migrations/0042_rls.sql"]
  tags     : ["auth", "rls", "supabase"]
  source   : manual

Looks right?
  [1] Yes, append it
  [2] Edit one or more fields
  [3] Cancel

Wait for user response before continuing.

If [2], ask which field(s) to edit, accept new values, re-show the confirmation. Loop until [1] or [3].

If [3], abort silently — write nothing.


Step 7 — Append to observations.jsonl

On [1]:

  1. Ensure the directory exists:

    mkdir -p "${CLAUDE_PROJECT_DIR:-$(pwd)}/.harness/memory"
  2. Compute the ISO 8601 UTC timestamp:

    TS=$(date -u +%Y-%m-%dT%H:%M:%SZ)
  3. Build the JSON line. Prefer jq -c -n to avoid quoting bugs:

    ENTRY=$(jq -c -n \
      --arg ts "$TS" \
      --arg kind "$KIND" \
      --arg summary "$SUMMARY" \
      --arg details "$DETAILS" \
      --arg feature "$FEATURE" \
      --argjson files "$FILES_JSON" \
      --argjson tags "$TAGS_JSON" \
      '{ts:$ts, kind:$kind, summary:$summary, details:$details, feature:(if $feature=="" then null else $feature end), files:$files, tags:$tags, source:"manual"}')
  4. Append:

    echo "$ENTRY" >> "${CLAUDE_PROJECT_DIR:-$(pwd)}/.harness/memory/observations.jsonl"
  5. Confirm to the user (in their locale):

    ✓ Remembered at <TS>.
      File: .harness/memory/observations.jsonl (now <N> entries)

Trust contract

  • This skill writes to exactly one file: .harness/memory/observations.jsonl.
  • It never reads, modifies, or deletes any other project file.
  • The entry is always source: "manual" (auto-capture entries use source: "session").
  • If the user cancels at Step 6, nothing is written.
  • If jq is missing, surface the error and abort — do not fall back to hand-rolled JSON (quoting bugs would corrupt the file).

Anti-patterns the skill blocks

  • Writing without user confirmation → always show the JSON and wait for [1].
  • Translating user-entered summary/details into English → write what the user typed, verbatim.
  • Inferring feature from the summary text → only the git branch is authoritative; if branch doesn't yield a feature, ask the user or use null.
  • Setting source: "session" → this skill is the manual path; auto-capture is a separate mechanism.

Completion criteria

/remember is complete when:

  • Either a single new line has been appended to observations.jsonl and the user has seen the confirmation message, or
  • The user explicitly cancelled at Step 6 (nothing written).

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.