スキル一覧に戻る
astrosteveo

using-engram

by astrosteveo

Semantic memory for Claude Code - persistent context across sessions

0🍴 0📅 2026年1月17日
GitHubで見るManusで実行

SKILL.md


name: using-engram description: This skill should be used when the user asks about "engram memory", "how to use memory tools", "semantic search in Claude", "persist context across sessions", "remember things for later", or needs guidance on using engram MCP tools effectively. user-invocable: false

Using Engram - Semantic Memory for Claude Code

Engram provides persistent semantic memory across Claude Code sessions. Information persists in a local ChromaDB index at .engram/ and remains searchable across sessions.

Core Concepts

Memory Types

TypePurposeExample
exchangeConversation Q&A pairsUser question + assistant response
tool_useTool invocations and resultsEdit, Bash, Grep operations
rememberedExplicitly saved contextKey decisions, preferences
decisionArchitectural choices"Selected React over Vue because..."
lessonPatterns and gotchas"Watch out for X when doing Y"

Engram uses 70% semantic + 30% keyword (BM25) search:

  • Semantic: Finds conceptually similar content
  • Keyword: Finds exact matches

Wrap queries in quotes for exact matching: "FastAPI authentication".

Available Tools

Semantic search across project memory.

mcp__plugin_engram-mcp_engram__memory_search
  query: "authentication implementation patterns"
  n_results: 5
  filter_type: "decision"  # Optional: remembered, exchange, tool_use, decision, lesson

memory_resume

Get context to resume previous work. Returns last session state, active todos, plan files, and recent exchanges.

mcp__plugin_engram-mcp_engram__memory_resume

memory_remember

Explicitly save important information for future sessions.

mcp__plugin_engram-mcp_engram__memory_remember
  content: "User prefers functional components over class components"
  tags: ["preference", "react", "components"]

memory_decision

Record architectural or implementation decisions with alternatives considered.

mcp__plugin_engram-mcp_engram__memory_decision
  content: "Selected PostgreSQL for the database. Reasons: JSONB support, mature ecosystem."
  category: "architecture"  # architecture, implementation, tradeoff, tooling
  alternatives: ["MongoDB", "SQLite"]

memory_lesson

Record patterns, gotchas, and lessons learned.

mcp__plugin_engram-mcp_engram__memory_lesson
  content: "When using React Query, always set staleTime to avoid unnecessary refetches"
  category: "gotcha"  # bug_fix, gotcha, pattern, anti_pattern
  root_cause: "Default staleTime is 0"

memory_insights

Search past decisions and lessons.

mcp__plugin_engram-mcp_engram__memory_insights
  query: "database architecture"
  insight_type: "decision"  # decision, lesson, all
  n_results: 5

memory_sync

Index the current session transcript.

mcp__plugin_engram-mcp_engram__memory_sync

memory_stats

Get memory statistics for current project.

mcp__plugin_engram-mcp_engram__memory_stats

Best Practices

When to Search Memory

Search memory at the START of significant tasks:

  • Beginning a new feature
  • Investigating a bug
  • Making architectural decisions
  • Resuming after a break

When to Save Memory

Save memory for information that should persist:

  • User preferences and constraints
  • Key architectural decisions with rationale
  • Bugs fixed and their root causes
  • Patterns that work well in this codebase
  • Gotchas specific to this project

Effective Queries

Good queries - specific and semantic:

  • "authentication implementation with JWT"
  • "database schema decisions"
  • "error handling patterns in API routes"

Poor queries - too vague or keyword-only:

  • "auth"
  • "bug"
  • "code"

Memory Hygiene

  • Use appropriate categories (decision vs lesson)
  • Include context in content ("When implementing X, do Y because Z")
  • Add relevant tags for filtering
  • Record alternatives considered for decisions
  • Include root cause for lessons when known

Integration Points

Session Lifecycle

Engram hooks automatically handle:

  • SessionStart: Resume context injection
  • PostToolUse: Live indexing of tool results
  • Stop/SessionEnd: Final indexing
  • PreCompact: Index before compaction

With Workflow Skills

Workflow phases integrate with engram:

PhaseEngram Usage
DiscoverySearch for similar features
DesignGet past architecture decisions
ImplementFind implementation patterns, record lessons
SummaryPersist completion record, sync session

Troubleshooting

Memory Not Found

  1. Check .engram/ directory exists
  2. Run memory_stats to verify index health
  3. Try memory_sync to index current session

Stale Results

The BM25 index may become stale. Run memory_sync to refresh.

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です