agentleFS
lalulalilalulali/vespyr/.agents/skills/memory/SKILL.md

memory

Skill11 starsChanged 9 days agoMITView on GitHub

Search archived memory entries — retrieve historical context that has been compacted. Use when the user says "what was the decision we made about X", "show me past lessons on Y", "find the architecture decision for Z", or invokes /memory to search project history.

99 other projects use a version of this.

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

  • 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

  • +6 more from naman10parikh
  • +1 more from jh941213

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 82 edited versions we read keep these.

  • 4

    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:

    Write for systemic patterns only, not single-instance events:

    line 40
  2. Distinctive:

    Write: "Tests consistently need JWT mocking — documented the pattern."

    line 41
  3. Very specific:

    Don't write: "Fixed a typo in auth.ts."

    line 42
  4. Distinctive:

    Write: "API gateway times out due to unbounded connection pooling."

    line 43
  5. Distinctive:

    Don't write: "Saw a 504 once."

    line 44
  6. Very specific:

    Every agent calls this on entry, before loading context — it keeps project-context.md accurate no matter which agent is invoked ad-hoc.

    line 74

“Common” is measured: kept by at least 6 in 10 of the 82 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 — Persistent Context Search

What this skill does

Searches the archive index for historical context. Use when you need to find a past decision, pattern, or lesson that may have been compacted out of active memory files. Also documents when and how to write to memory.

When to use

  • "What was the auth decision we made?"
  • "Show me past lessons about performance"
  • "Find the architecture decision for the data model"
  • Any query about historical project context

When NOT to use

  • For current project context (use @memory-controller load [agent] [task] instead — memory files are never read directly)
  • For active decisions (use @memory-controller load [agent] [task] instead)

The memory files

FilePurposeWhen to write
project-context.mdStack, constraints, architecture snapshot, machine state fenceSet during init, synced automatically at every session (session-start, session-write, complete, set-phase)
session-summaries/latest.mdSingle authoritative live cursor and wrap-up of the last sessionAt session shutdown (session-write)
active-decisions.mdRunning record of current-cycle decisionsAfter every resolved decision
lessons-learned.mdEngineering insights, bugs, gotchasAfter non-obvious fixes or discoveries
patterns-and-conventions.mdReusable patterns, coding conventionsWhen a pattern repeats across 3+ instances
blockers-and-risks.mdActive blockers, known risksWhen blocked; remove when resolved

When to write to memory

Write for systemic patterns only, not single-instance events:

  • Write: "Tests consistently need JWT mocking — documented the pattern."
  • Don't write: "Fixed a typo in auth.ts."
  • Write: "API gateway times out due to unbounded connection pooling."
  • Don't write: "Saw a 504 once."

Entry format strings

TagUse forExample
[AUTH]Authentication, authorization, sessions, tokensAuth flow requires email verification
[API]API contracts, endpoints, versioning, error codesPayment API returns 402 on declined card
[DATA]Data models, schemas, migrations, storageUser table migrated to UUID primary keys
[ARCH]System architecture, component design, boundariesChose PostgreSQL over MongoDB for ACID compliance
[INFRA]Infrastructure, CI/CD, deployment, environmentsCI runs integration tests before deployment
[SECURITY]Security decisions, vulnerabilities, threat modelRate limiting not implemented on login endpoint
[PERF]Performance, caching, query optimization, loadQuery planner change cut report time by 60%
[PRODUCT]Product decisions, scope, features, prioritiesDropped offline mode from MVP scope
[PROCESS]Team process, workflow, handoffs, conventionsFeature branch review requires 2 approvals
[CODE]Coding patterns, conventions, standardsAll React components use named exports
[TEST]Testing strategy, coverage, QA decisionsE2E suite runs nightly on staging
[ML]Machine learning, models, pipelines, dataEmbedding model upgraded to v3
[UX]UX decisions, flows, accessibility, interactionsOnboarding reduced from 5 steps to 3
[MARKET]Market research, competitive intelligenceCompetitor added free tier
[RISK]Known risks, blockers, mitigations, dependenciesThird-party API rate limits could block launch
[LESSON]Bugs, gotchas, fixesRace condition in websocket handler
[DECISION]Resolved decisions with rationaleMonorepo with Nx — unified tooling

These are the canonical 17 domain tags (see .agents/templates/memory/memory-entry-template.md). Entries with any other tag are rejected.

Workflow

Step 0: Session start (project-context refresh)

Every agent calls this on entry, before loading context — it keeps project-context.md accurate no matter which agent is invoked ad-hoc. Run:

node .agents/scripts/orchestrator_state.js session-start --agent {agent} --domain {domain} --goal "{one-line goal}"

The mandatory complete call also refreshes project-context as a backstop, so the context updates even if session-start is skipped.

Step 1: Search archive

@memory-controller search $ARGUMENTS

Step 2: Load specific entries (optional)

Archived entries are retrieved by keyword query, not by ID — there is no load-archive [entry-id] command. To pull a specific entry, pass a distinctive phrase from it:

node .agents/scripts/memory_filter.js --search "<distinct phrase from the entry>" --max 5

This is what @memory-controller search [query] delegates to; it scans archive/index.ndjson.

Step 3: Report

Return results with title, domain tag, relevance score, summary, source, and date.

Step 4: Write to memory (on request)

@memory-controller write [entry-type] [content]

Compaction triggers

Compaction is word-based, matching .agents/scripts/compaction_guard.js (the executable source of truth) and @memory-controller's Operation 4 thresholds:

FileWord threshold
project-context.md500
active-decisions.md1,800
patterns-and-conventions.md1,500
lessons-learned.md1,300
blockers-and-risks.md900
session-summaries/latest.md600

project-context.md is never compacted (static file). When a file exceeds its threshold, the oldest resolved/stale entries are archived. Archived entries remain searchable via @memory-controller search.

State machine integration

After write: node .agents/scripts/orchestrator_state.js complete --agent memory-controller --artifact {file}

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.