agentleFS
vbcherepanovvbcherepanov/total-agent-memory/codex-skill/SKILL.md

memory

Skill78 starsChanged 3 days agoMITView on GitHub

Activate this skill when starting a new session, beginning a new task, saving knowledge, recalling past decisions, or after completing significant work. Also activate on errors to log them for pattern analysis. Relevant when the user asks about memory, past context, lessons learned, decisions history, project conventions, or self-improvement.

123 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use ecosystem-reference, fractal-delegation 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.
  • naman10parikhSkill

    ecosystem-reference

    Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the harness.

    Also in 5 projects that use this

  • naman10parikhSkill

    fractal-delegation

    Also in 5 projects that use this

  • roronoazoroshao369Skill

    memory-compression

    Also in 5 projects that use this

  • Maliot100XSkill

    send-user-message

    Send a proactive message to a paired user via their channel (Discord, Telegram, or WhatsApp). Use when the agent needs to notify, alert, or send an unsolicited message to a user — especially during heartbeat invocations, scheduled tasks, or when the agent wants to reach out without a prior user message in the current conversation. Triggers: 'send message to user', 'notify user', 'alert user', 'message the user on discord/telegram/whatsapp', or any need to proactively communicate with a paired sender.

    Also in 4 projects that use this

  • jh941213Skill

    docs-ci

    문서 CI(링크·OpenAPI lint·breaking 게이트·mermaid 검증)나 문서 드리프트 감지(docs.yaml 신선도 검사)를 설치하거나 돌릴 때 사용. 문서 내용 작성은 docs-architecture·docs-interfaces·docs-manuals.

    Also in 3 projects that use this

  • jh941213Skill

    docs-interfaces

    API·이벤트 인터페이스 문서(OpenAPI·swagger·AsyncAPI 명세, 엔드포인트 레퍼런스, API 구성도·시퀀스, API CHANGELOG)를 만들거나 코드와 맞출 때 사용. 시스템 구성도는 docs-architecture, API 설계 원칙은 api-design-principles.

    Also in 3 projects that use this

  • +5 more from naman10parikh
  • +1 more from jh941213

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 105 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always run these two calls before any work:

    line 18
  2. Distinctive:

    If relevant knowledge is found, mention it briefly and apply it.

    line 25
  3. Distinctive:

    Do NOT save: trivial edits, intermediate steps, information obvious from the code.

    line 52
  4. Very specific:

    When pattern_detected: true is returned (3+ similar errors), extract an insight:

    line 68
  5. Very specific:

    Use <private>...</private> tags to explicitly exclude sensitive content:

    line 86

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

Persistent Memory System

You have access to a persistent cross-session memory via MCP tools. Knowledge survives between sessions and is shared across agents working on the same project.

Session Start

Always run these two calls before any work:

self_rules_context(project="<project>")
memory_recall(query="<current task description>", project="<project>")

If relevant knowledge is found, mention it briefly and apply it.

Auto-Save Rules

Save knowledge automatically -- never ask the user whether to save.

EventtypeWhat to save
Architectural decisiondecisionDecision + WHY + rejected alternatives
Non-trivial bug fixsolutionSymptom -> root cause -> fix
Gotcha or pitfall discoveredlessonExpected vs actual + takeaway
Infrastructure or config setupfactConfig details + key parameters
Project pattern establishedconventionRule + code example
Session endingfactSummary of what was done + what remains

Format:

memory_save(
    content="Concise, actionable description",
    type="decision|solution|lesson|fact|convention",
    project="<project>",
    tags=["relevant", "tags"],
    context="Why this matters. For decisions: always explain WHY."
)

Do NOT save: trivial edits, intermediate steps, information obvious from the code.

Error Logging

On any error (command failure, wrong assumption, API error, timeout), log it automatically:

self_error_log(
    description="What went wrong",
    category="code_error|logic_error|config_error|api_error|timeout|loop_detected|wrong_assumption|missing_context",
    severity="low|medium|high|critical",
    fix="How it was fixed (empty if unresolved)",
    project="<project>"
)

When pattern_detected: true is returned (3+ similar errors), extract an insight:

self_insight(action="add", content="Generalized lesson", category="<error_category>", source_error_ids=[...])

Self-Improvement Pipeline

Errors -> Insights -> Rules (SOUL).

  • Insights with importance >= 5 and confidence >= 0.8 can be promoted to rules
  • Rules are loaded at session start via self_rules_context
  • Rate rules after task completion: self_rules(action="rate", id=N, success=true/false)
  • At session end, reflect: self_reflect(reflection="...", task_summary="...", outcome="success|partial|failure")

Privacy

The server auto-redacts API keys, JWTs, passwords, emails, and credit cards before storage. Use <private>...</private> tags to explicitly exclude sensitive content:

memory_save(content="Connected to <private>prod-host:5432</private>", type="fact", project="<project>")

Quick Reference (32 tools)

Core Memory (12):

ToolPurpose
memory_recallSearch past knowledge (4-tier: keyword, semantic, fuzzy, graph)
memory_saveStore new knowledge with type, project, tags
memory_updateSupersede existing knowledge with a new version
memory_timelineBrowse session history
memory_statsHealth metrics and storage info
memory_consolidateFind and merge duplicate records
memory_exportExport all knowledge as JSON
memory_forgetApply retention policy
memory_historyView version chain for a record
memory_deleteSoft-delete a record
memory_relateCreate typed relations between records
memory_search_by_tagBrowse knowledge by tag

Self-Improvement (6):

ToolPurpose
self_error_logLog structured errors for pattern analysis
self_insightManage insights (add/upvote/downvote/promote)
self_rulesManage behavioral rules (list/fire/rate/suspend)
self_patternsAnalyze error patterns and improvement trends
self_reflectSave session reflections
self_rules_contextLoad active rules at session start

Knowledge Graph (4):

ToolPurpose
memory_graphTraverse knowledge graph from a record
memory_conceptsDiscover concept clusters
memory_graph_indexRebuild graph index
memory_graph_statsGraph metrics (nodes, edges, density)

Episodic Memory (2):

ToolPurpose
memory_episode_saveSave rich session episodes
memory_episode_recallRecall episodes by semantic search

Skills & Competencies (3):

ToolPurpose
memory_skill_getGet skill level and history
memory_skill_updateUpdate skill level with tracking
memory_self_assessSelf-assessment across all skills

Advanced (5):

ToolPurpose
memory_observeLightweight file change tracking (30-day retention)
memory_associateAssociative search across knowledge
memory_context_buildBuild full task context in one call
memory_reflect_nowOn-demand reflection and insight synthesis
memory_extract_sessionProcess pending session transcripts

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.