Cursorでclaude-memのMCPサーバーにアクセスし、過去のセッション記録を検索・新しい観測を記録。トリガー: 'メモリ検索', 'claude-mem', '過去の判断', '記録して', 'memory search', 'past decisions'. Do NOT load for: 通常のコーディング、一時的なメモ、実装作業。
Accesses claude-mem MCP server from Cursor to search past session records and log new observations. Triggers on keywords like 'memory search', 'past decisions', and 'record this' for knowledge sharing across sessions.
/plugin marketplace add Chachamaru127/claude-code-harness/plugin install claude-code-harness@claude-code-harness-marketplaceThis skill is limited to using the following tools:
examples.mdCursorからClaude-memを活用するスキル。Claude CodeとCursorで同じメモリデータベースを共有し、セッション間の知識を引き継ぎます。
Cursor上でclaude-memのMCPツールを直接利用できます:
mcp__claude-mem__search: キーワードでメモリを検索mcp__claude-mem__timeline: 時系列で記録を取得mcp__claude-mem__get_recent_context: 最近の文脈を取得mcp__claude-mem__get_observation: 特定の観測を取得mcp__claude-mem__create_entities: 新しいエンティティを作成mcp__claude-mem__create_relations: エンティティ間の関連を作成mcp__claude-mem__add_observations: 観測を追加# harness リポジトリ内に claude-mem-mcp がインストールされている前提
# 絶対パスで参照
HARNESS_PATH="/path/to/claude-code-harness"
プロジェクトルートに .cursor/mcp.json を作成:
{
"mcpServers": {
"claude-mem": {
"type": "stdio",
"command": "/absolute/path/to/claude-code-harness/scripts/claude-mem-mcp"
}
}
}
⚠️ 重要: command には絶対パスを指定してください。
設定後、Cursorを再起動してMCPサーバーを認識させます。
詳細な使用例は examples.md を参照してください。
ユーザー: 「認証方式の選定理由を確認したい」
Cursor(Composer):
mcp__claude-mem__search を使用
→ クエリ: "認証 JWT Supabase 選定理由"
→ 過去の決定記録(decisions)を取得
ユーザー: 「この実装パターンを記録しておいて」
Cursor(Composer):
mcp__claude-mem__add_observations を使用
→ タイプ: pattern
→ タグ: source:cursor, review, best-practice
→ 内容: 実装パターンの説明
Claude CodeとCursorで統一されたタグ体系を使用します:
| タグ | 用途 |
|---|---|
source:cursor | Cursorから記録された情報 |
source:claude-code | Claude Codeから記録された情報 |
type:decision | 意思決定の記録 |
type:pattern | 再利用可能なパターン |
type:bug | バグ修正の記録 |
type:review | レビューでの気付き |
type:handoff | 引き継ぎ事項 |
~/.claude-mem/claude-mem.db)を使用問題: MCPツールが認識されない 解決策:
.cursor/mcp.json のパスが正しいか確認chmod +x scripts/claude-mem-mcp問題: ワーカーが起動しない 解決策:
curl http://127.0.0.1:37777/healthnode ~/.claude/plugins/cache/thedotmack/claude-mem/*/scripts/worker-cli.js startThis skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.