Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

memory-management

БесплатноБез исполняемых скриптовНе проверен

Persistent memory management for AI assistants via AutoMem. Use this skill when: - Starting a session (recall project context, decisions, patterns) - Making…

verygoodpluginsот verygoodplugins★ 67 звёзд на GitHub18 установок в других каталогах

Об этом скилле

Memory Management Skill

Use AutoMem to maintain persistent context across conversations and coding sessions.

Tool examples below use short names (recall_memory, store_memory); call them on whichever AutoMem MCP server is wired in (plugin installs namespace them as mcp__plugin_automem_memory__*, user-level servers as mcp__memory__*). Other hosts, including Grok Bot, assign their own connector/tool names; discover the available AutoMem tools and use the names exposed by that host.

This skill teaches the current AutoMem playbook: Recall early, store durable outcomes, avoid session-summary noise.

Phase 1: Session Start (Recall)

Always Recall For

  • Project context questions (architecture, tooling, deployment)
  • Architecture discussions or decisions
  • User preferences and code style
  • Debugging issues (search for similar past problems)
  • Refactoring (understand why current structure exists)
  • Integration or API work (check past implementations)
  • Performance optimization discussions

Standard Recall Pattern

  • Preferences first: recall with tags: ["preference"], limit: 20, sort: "updated_desc"
  • Task context second: one semantic query built from actual nouns in the request, optional project slug if unambiguous
  • Debugging on demand: recall with the error text as the semantic query and NO tags — bugfix/solution tagging is incomplete, and a tag gate hides cross-corpus fixes

Skip Recall For

  • Pure syntax questions ("How does Array.map work?")
  • Trivial edits (typos, formatting, simple renames)
  • Direct factual queries about current code
  • File content requests that can be answered by reading

Recall Examples

// Preferences first
recall_memory({
  tags: ["preference"],
  limit: 20,
  sort: "updated_desc"
})

// Task context recall
recall_memory({
  query: "authentication timeout PostgreSQL auth.ts retry logic",
  tags: ["myapp"],   // drop if ambiguous
  time_query: "last 90 days",
  limit: 30
})

// Debug similar errors (no tag gate — a hard gate hides cross-corpus fixes)
recall_memory({
  query: "TimeoutError authentication request timed out",
  limit: 20
})

Phase 2: During Work (Store)

What to Store with Importance Levels

Bug fixes: Insight, importance 0.75, confidence 0.85. Articulated patterns: Pattern, importance 0.8. User corrections: Preference, importance 0.9, confidence 0.95.

Type Importance When to Store
Decision 0.9 Architecture, library choices, pattern decisions
Insight 0.75 Root cause discoveries, key learnings, bug fixes
Pattern 0.8 Reusable approaches, best practices
Preference 0.9 for corrections User config choices, style preferences
Context 0.5-0.7 Feature summaries, refactoring notes

Storage Format

Content: "Brief title. Context and details. Impact/outcome."
Tags: [category, project-slug, language]
Type: Decision | Pattern | Insight | Preference | Style | Habit | Context

Use bare tags only. No namespace prefixes (project/*, lang/*), no platform tags, and no date-stamped tags. Keep source attribution in metadata and dates in timestamp / t_valid / t_invalid.

Storage Examples

Decision:

store_memory({
  content: "Chose PostgreSQL over MongoDB. Need ACID guarantees for transactions. Impact: Ensures data consistency.",
  type: "Decision",
  tags: ["decision", "myapp", "database"],
  importance: 0.9,
  confidence: 0.9,
  metadata: {
    alternatives_considered: ["MongoDB", "DynamoDB"],
    deciding_factors: ["ACID", "relationships", "team_expertise"]
  }
})

Bug Fix:

store_memory({
  content: "Auth timeout on slow connections. Root: Missing retry logic. Solution: Added exponential backoff with 3 retries.",
  type: "Insight",
  tags: ["bugfix", "solution", "myapp", "auth"],
  importance: 0.75,
  confidence: 0.85,
  metadata: {
    error_signature: "TimeoutError: Authentication request timed out",
    solution_pattern: "exponential-backoff-retry",
    files_modified: ["src/auth/client.ts"]
  }
})

User Correction:

store_memory({
  content: "User corrected the previous nesting preference: use early returns over nested conditionals in validation code.",
  type: "Preference",
  tags: ["preference", "correction", "code-style"],
  importance: 0.9,
  confidence: 0.95
})

Recall the prior preference and invalidate it with INVALIDATED_BY when it exists.

After Storing: Create Associations

Link related memories to build a knowledge graph:

associate_memories({
  memory1_id: "related-memory-id",
  memory2_id: "new-memory-id",
  type: "INVALIDATED_BY",  // or PREFERS_OVER, LEADS_TO, EXEMPLIFIES
  strength: 0.9
})

Prefer update_memory over near-duplicate stores when a fact changed in place.

Best Practices

Do

  • Load context automatically at session start
  • Store high-signal events (decisions, bug
Полный SKILL.md на GitHub

Установить memory-management в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

mcp__plugin_automem_memory__store_memory
mcp__plugin_automem_memory__recall_memory
mcp__plugin_automem_memory__associate_memories
mcp__plugin_automem_memory__update_memory
mcp__plugin_automem_memory__delete_memory
mcp__plugin_automem_memory__check_database_health
mcp__memory__store_memory
mcp__memory__recall_memory
mcp__memory__associate_memories
mcp__memory__update_memory
mcp__memory__delete_memory
mcp__memory__check_database_health

Вложенные файлы

patterns.md

FAQ

Что делает скилл memory-management?

Persistent memory management for AI assistants via AutoMem. Use this skill when: - Starting a session (recall project context, decisions, patterns) - Making architectural decisions or library choices - Fixing bugs (store root cause and solution) - Learning user preferences or code style - Debugging issues (search for similar past problems)

Как установить скилл memory-management?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл memory-management запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить memory-management с