agentleFS
itsjwillitsjwill/claude-memory/skills/capture/SKILL.md

capture

Skill15 starsChanged 10 months agoMITView on GitHub

Save important context to persistent memory for future sessions.

  • Reads credentials

29 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use health, brief and 5 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.
  • genomewalkerSkill

    health

    Soul system health check with remediation

    Also in 3 projects that use this

  • AnthropicSkill

    brief

    Generate contextual briefings for legal work — daily summary, topic research, or incident response. Use when starting your day and need a scan of legal-relevant items across email, calendar, and contracts, when researching a specific legal question across internal sources, or when a developing situation (data breach, litigation threat, regulatory inquiry) needs rapid context.

    Also in 3 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 7 projects that use this

  • SentrySkill

    onboard

    Onboard a service to sentry-options. Use when integrating a new service, creating schemas, or setting up the multi-repo sentry-options workflow.

    Also in 3 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 4 projects that use this

  • OpenAISkill

    audit

    Audit or critique a product flow, journey, workflow, funnel, onboarding path, checkout path, settings path, screen, or multi-step product experience by capturing screenshots first, then reporting UX, design, and accessibility findings inline from that evidence. Use Figma only when the user explicitly asks for a board. Use when the user asks to audit, review, critique, inspect, assess, analyze, evaluate, or give feedback on a product experience.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 10 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 27 edited versions we read keep these.

  • 10

    Distinctive

    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:

    When you detect important context in conversation (decisions, learnings, client info, etc.), call this skill SILENTLY without asking the …

    line 37
  2. Distinctive:

    Check for duplicates: Search existing memories - if similar exists, it auto-merges

    line 62
  3. Distinctive:

    Store the memory: Use memory_store with metadata (type, tags, timestamp)

    line 63
  4. Distinctive:

    Silent operation: Do NOT notify user - just capture and continue

    line 64
  5. Distinctive:

    When in doubt, capture it.

    line 70
  6. Very specific:

    If --type not provided, detect from content:

    line 92
  7. Distinctive:

    Before storing, search for similar memories:

    line 142
  8. Distinctive:

    If highly similar memory exists (same topic):

    line 147
  9. Distinctive:

    Update existing memory quality score instead of creating duplicate

    line 148
  10. Distinctive:

    Use memory_update to add new tags if relevant

    line 149
  11. Distinctive:

    Only for memories that should be instantly visible at session start

    line 172

“Common” is measured: kept by at least 6 in 10 of the 27 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

Memory Capture

Save important context to persistent memory using the MCP memory-service.

How to Use

Manual Invocation

/capture "Pinnacle Title invoice is $1,500/month"
/capture "Billy V4 LONGS ONLY - shorts lost $2,226 in backtests" --type decision
/capture "API key stored in /root/.env" --type reference --tags trading,credentials

Automatic Invocation

When you detect important context in conversation (decisions, learnings, client info, etc.), call this skill SILENTLY without asking the user. Just capture and continue.

Arguments

  • $ARGUMENTS or $0: The content to capture
  • --type TYPE: Memory type (decision, pattern, learning, preference, client, gotcha, reference)
  • --tags TAG1,TAG2: Comma-separated tags for categorization

Memory Types

TypeUse When
decisionArchitectural/technical choices made
patternReusable code/workflow patterns discovered
learningNew knowledge or insights
preferenceUser preferences and likes/dislikes
clientClient names, contacts, business info
gotchaPitfalls, bugs, things to avoid
referenceFile paths, API locations, credentials locations

Execution Steps

  1. Parse the input: Extract content, type, and tags from arguments
  2. Auto-classify: Infer type from content if not provided
  3. Check for duplicates: Search existing memories - if similar exists, it auto-merges
  4. Store the memory: Use memory_store with metadata (type, tags, timestamp)
  5. Silent operation: Do NOT notify user - just capture and continue

Capture Philosophy: REMEMBER EVERYTHING

No filtering. No threshold. Capture aggressively.

When in doubt, capture it. Storage is cheap, lost context is expensive.

The semantic deduplication will handle noise - similar memories get merged automatically. Quality ratings will surface the good stuff over time.

Capture triggers (if ANY match, capture it):

  • Decisions (even tentative ones)
  • Learnings (even small ones)
  • Names, numbers, dates, amounts
  • File paths, URLs, API references
  • Preferences (even implied ones)
  • Errors and how they were fixed
  • Patterns noticed
  • Questions asked (context for why we explored something)

The only things to skip:

  • Pure greetings ("hi", "thanks")
  • Confirmations ("ok", "got it", "sure")
  • Meta-discussion about the conversation itself

Auto-Classification Rules

If --type not provided, detect from content:

  • Contains "decided", "chose", "going with" → decision
  • Contains "learned", "realized", "discovered" → learning
  • Contains "API", "key", "path", "credentials", ".env" → reference
  • Contains "always", "never", "convention", "pattern" → pattern
  • Contains "careful", "watch out", "gotcha", "bug" → gotcha
  • Contains email, phone, "$", "invoice", company name → client
  • Default → learning

Auto-Tagging Rules

Extract tags from:

  • Project names mentioned (botsniper, foodshot, etc.)
  • Technology names (python, node, react, etc.)
  • Client names (pinnacle, etc.)
  • Domain terms (trading, invoice, api, etc.)

Storage Format

Store using mcp__memory-service__memory_store with:

{
  "content": "<the memory content>",
  "metadata": {
    "type": "<memory type>",
    "tags": "<comma-separated tags>",
    "source": "capture-skill",
    "timestamp": "<ISO timestamp>",
    "project": "<current working directory if relevant>"
  }
}

Example Execution

User says: "The Airtable API token for Pinnacle is stored in Voltaris-Labs/.env"

Auto-capture (silent):

  1. Detect: Contains "API", "token", ".env" → type: reference
  2. Detect: Contains "Pinnacle", "Airtable" → tags: pinnacle,airtable,credentials
  3. Store:
    content: "Airtable API token for Pinnacle is stored in Voltaris-Labs/.env"
    metadata: {type: "reference", tags: "pinnacle,airtable,credentials,api"}
  4. Continue conversation without mentioning the capture

Deduplication

Before storing, search for similar memories:

memory_search(query="<content summary>", limit=3)

If highly similar memory exists (same topic):

  • Update existing memory quality score instead of creating duplicate
  • Use memory_update to add new tags if relevant

Quality Feedback

The memory system learns from feedback. When you notice a memory was:

Useful (helped with a task):

mcp__memory-service__memory_quality(action="rate", content_hash="<hash>", rating="1", feedback="Helped with X")

Not useful (irrelevant or wrong):

mcp__memory-service__memory_quality(action="rate", content_hash="<hash>", rating="-1", feedback="Was outdated/wrong")

Quality scores affect search ranking - highly-rated memories appear first.

Integration with MEMORY.md

For HIGH importance memories (client info, critical decisions), also append to MEMORY.md:

  • Location: ~/.claude/projects/*/memory/MEMORY.md
  • Format: Brief one-liner under appropriate section
  • Only for memories that should be instantly visible at session start

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.