jpskill.com
🛠️ 開発・MCP コミュニティ

daem0nmcp-protocol

Use when Daem0nMCP tools are available - enforces the sacred covenant (commune at session start, seek counsel before changes, inscribe decisions, seal outcomes)

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o daem0nmcp-protocol.zip https://jpskill.com/download/18302.zip && unzip -o daem0nmcp-protocol.zip && rm daem0nmcp-protocol.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/18302.zip -OutFile "$d\daem0nmcp-protocol.zip"; Expand-Archive "$d\daem0nmcp-protocol.zip" -DestinationPath $d -Force; ri "$d\daem0nmcp-protocol.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して daem0nmcp-protocol.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → daem0nmcp-protocol フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

[Skill 名] daem0nmcp-protocol

Daem0n のプロトコル

概要

Daem0nMCP のメモリツールが利用可能な場合、このプロトコルに必ず従ってください。規律のないメモリはノイズです。

コア原則: 変更する前に確認し、決定したことを記録し、それがうまくいったかどうかを追跡します。

ツールの検出

まず、Daem0nMCP ツールが利用可能であることを確認します。

利用可能なツールの中から、以下のツールを探してください:
- mcp__daem0nmcp__get_briefing
- mcp__daem0nmcp__context_check
- mcp__daem0nmcp__remember
- mcp__daem0nmcp__record_outcome
- mcp__daem0nmcp__link_memories
- mcp__daem0nmcp__trace_chain
- mcp__daem0nmcp__get_graph
- mcp__daem0nmcp__find_code
- mcp__daem0nmcp__analyze_impact
- mcp__daem0nmcp__index_project

ツールが利用できない場合: このスキルは適用されません。通常通り進めてください。

ツールが利用可能な場合: 以下のプロトコルに従ってください。例外はありません。

プロトコル

1. セッション開始 (交渉不可)

daem0nmcp ツールが利用可能になったらすぐに:

mcp__daem0nmcp__get_briefing()

以下のことはしないでください:
- 最初にユーザーに何をしたいか尋ねる
- 「簡単なタスクだから」という理由でブリーフィングをスキップする
- 前回のセッションから覚えていると仮定する

ブリーフィングは以下をロードします:

  • 過去の決定とその結果
  • 避けるべき警告と失敗したアプローチ
  • 従うべきパターン
  • 前回のセッションからの Git の変更

2. コード変更前

ファイルに触れる前に:

mcp__daem0nmcp__context_check(description="これから何をするか")

または、特定のファイルの場合:

mcp__daem0nmcp__recall_for_file(file_path="path/to/file")

context_check が返す場合:

  • WARNING: ユーザーにそれを認めさせる必要があります
  • FAILED APPROACH: あなたのアプローチがどのように異なるかを説明してください
  • must_not: これらはハードな制約です - 違反しないでください

3. 決定後

重要な決定をするたびに:

memory_result = mcp__daem0nmcp__remember(
    category="decision",  # または "pattern", "warning", "learning"
    content="何を決定したか",
    rationale="なぜそれを決定したか",
    file_path="relevant/file.py",  # オプション
    tags=["relevant", "tags"]
)

MEMORY ID を保存してください - `record_outcome` で必要になります

カテゴリガイド: | カテゴリ | 使用目的 | 永続性 | |----------|---------|-------------| | decision | アーキテクチャ/設計の選択 | 30 日で減衰 | | pattern | 従うべき再発するアプローチ | 永続的 | | warning | 避けるべきこと | 永続的 | | learning | 経験からの教訓 | 30 日で減衰 |

4. 実装後 (重要)

実装とテストの後:

mcp__daem0nmcp__record_outcome(
    memory_id=<remember からの id>,
    outcome="実際に何が起こったか",
    worked=true  # または false
)

失敗は貴重です。 何かがうまくいかない場合:

  • worked=false と説明を記録します
  • 失敗したアプローチは、将来の検索で 1.5 倍ブーストされます
  • 過去の過ちを目にすることになります - それがポイントです

危険信号 - 停止

  • recall_for_file を呼び出さずにファイルを編集しようとしている
  • remember を呼び出さずに重要な決定を下している
  • 実装は完了したが、record_outcome が呼び出されていない
  • コンテキストチェックが WARNING を返したが、それを認めなかった
  • 以前に失敗したアプローチを繰り返している

合理化の防止

言い訳 現実
「小さな変更だ」 小さな変更が積み重なって大きな問題になる
「後で覚えているだろう」 覚えていません。今すぐ記録してください。
「コンテキストチェックは大げさだ」 今 5 秒費やすか、後で数時間デバッグするか
「警告は当てはまらない」 警告は、以前に誰かが失敗したために存在する
「失敗を記録する必要はない」 失敗は最も貴重な記憶です

強制 (2026 年の更新)

神聖な契約は、助言ではなく、強制されるようになりました。

ステップをスキップした場合に何が起こるか

  1. get_briefing() をスキップ: すべてのツールが COMMUNION_REQUIRED ブロックを返します
  2. context_check() をスキップ: 変更ツールが COUNSEL_REQUIRED ブロックを返します
  3. 各ブロックには remedy が含まれています: それを修正するための正確なツール呼び出し

強制デコレータ

ツールは分類されます:

  • @requires_counsel: remember, remember_batch, add_rule, update_rule, prune_memories, cleanup_memories, compact_memories, export_data, import_data, ingest_doc
  • @requires_communion: get_briefing と health を除く他のすべてのツール
  • Exempt: get_briefing, health

プリフライトトークン

context_check() の後、レスポンスで preflight_token を受け取ります。 これは、Daem0n に相談したことの暗号証明です。 トークンは 5 分間有効です。

並列プリフライト

ファイルを編集する前に、並列プリフライトスキルを使用して以下を実行します:

  • context_check + recall_for_file + analyze_impact

最大限の効率のために並行して実行します。

ワークフローの概要

セッション開始
    └─> get_briefing()

変更前
    └─> context_check("何をしているか")
    └─> 特定のファイルの場合は recall_for_file("path")
    └─> 警告を認める

決定後
    └─> remember(category, content, rationale)
    └─> memory_id を保存
    └─> 他の決定と因果関係がある場合は link_memories()

実装後
    └─> record_outcome(memory_id, outcome, worked)

コンテキストの調査
    └─> 意思決定の履歴を理解するために trace_chain()
    └─> 関係を視覚化するために get_graph()

これが重要な理由

プロトコルの規律がない場合:

  • 過去の過ちを繰り返す
  • セッション間で決定が失われる
  • パターンがキャプチャされない
  • 失敗から学習されない
  • メモリシステムが無用なノイズになる

プロトコルの規律がある場合:

  • 過去の過ちが繰り返される前に表面化する
  • 決定がセッションを超えて持続する
  • パターンがプロジェクトの知識に複合される
  • 失敗が学習の機会になる
  • AI が実際に時間の経過とともに賢くなる

グラフメモリツール

メモリを明示的にリンクして、ナレッジグラフを作成できます。決定が因果関係にある場合は、これらを使用してください。

関係の種類

タイプ 意味
led_to A が B を引き起こした/結果として生じた 「PostgreSQL の選択により、接続プーリングパターンが発生した」
supersedes A が B を置き換える (B は古い) 「新しい認証フローが古い JWT アプローチに取って代わる」
depends_on A が有効であるためには B が必要 「キャッシング戦略は o
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

The Daem0n's Protocol

Overview

When Daem0nMCP memory tools are available, you MUST follow this protocol. Memory without discipline is noise.

Core principle: Check before you change, record what you decide, track whether it worked.

Tool Detection

First, verify Daem0nMCP tools are available:

Look for these tools in your available tools:
- mcp__daem0nmcp__get_briefing
- mcp__daem0nmcp__context_check
- mcp__daem0nmcp__remember
- mcp__daem0nmcp__record_outcome
- mcp__daem0nmcp__link_memories
- mcp__daem0nmcp__trace_chain
- mcp__daem0nmcp__get_graph
- mcp__daem0nmcp__find_code
- mcp__daem0nmcp__analyze_impact
- mcp__daem0nmcp__index_project

If tools are NOT available: This skill does not apply. Proceed normally.

If tools ARE available: Follow the protocol below. No exceptions.

The Protocol

1. SESSION START (Non-Negotiable)

IMMEDIATELY when you have daem0nmcp tools:

mcp__daem0nmcp__get_briefing()

DO NOT:
- Ask user what they want first
- Skip briefing because "it's a quick task"
- Assume you remember from last session

The briefing loads:

  • Past decisions and their outcomes
  • Warnings and failed approaches to AVOID
  • Patterns to FOLLOW
  • Git changes since last session

2. BEFORE ANY CODE CHANGES

BEFORE touching any file:

mcp__daem0nmcp__context_check(description="what you're about to do")

OR for specific files:

mcp__daem0nmcp__recall_for_file(file_path="path/to/file")

If context_check returns:

  • WARNING: You MUST acknowledge it to the user
  • FAILED APPROACH: Explain how your approach differs
  • must_not: These are HARD CONSTRAINTS - do not violate

3. AFTER MAKING DECISIONS

AFTER every significant decision:

memory_result = mcp__daem0nmcp__remember(
    category="decision",  # or "pattern", "warning", "learning"
    content="What you decided",
    rationale="Why you decided it",
    file_path="relevant/file.py",  # optional
    tags=["relevant", "tags"]
)

SAVE THE MEMORY ID - you need it for record_outcome

Category Guide: | Category | Use For | Persistence | |----------|---------|-------------| | decision | Architectural/design choices | Decays over 30 days | | pattern | Recurring approaches to follow | PERMANENT | | warning | Things to avoid | PERMANENT | | learning | Lessons from experience | Decays over 30 days |

4. AFTER IMPLEMENTATION (Critical)

AFTER implementing and testing:

mcp__daem0nmcp__record_outcome(
    memory_id=<id from remember>,
    outcome="What actually happened",
    worked=true  # or false
)

FAILURES ARE VALUABLE. If something doesn't work:

  • Record worked=false with explanation
  • Failed approaches get 1.5x boost in future searches
  • You WILL see past mistakes - that's the point

Red Flags - STOP

  • About to edit a file without calling recall_for_file
  • Making a significant decision without calling remember
  • Implementation complete but no record_outcome called
  • Context check returned WARNING but you didn't acknowledge it
  • Repeating an approach that previously failed

Rationalization Prevention

Excuse Reality
"It's a small change" Small changes compound into big problems
"I'll remember later" You won't. Record now.
"Context check is overkill" 5 seconds now vs hours debugging later
"The warning doesn't apply" Warnings exist because someone failed before
"I don't need to record failures" Failures are the most valuable memories

Enforcement (2026 Update)

The Sacred Covenant is now ENFORCED, not advisory:

What Happens If You Skip Steps

  1. Skip get_briefing(): ALL tools return COMMUNION_REQUIRED block
  2. Skip context_check(): Mutating tools return COUNSEL_REQUIRED block
  3. Each block includes a remedy: The exact tool call to fix it

Enforcement Decorators

Tools are classified:

  • @requires_counsel: remember, remember_batch, add_rule, update_rule, prune_memories, cleanup_memories, compact_memories, export_data, import_data, ingest_doc
  • @requires_communion: All other tools except get_briefing and health
  • Exempt: get_briefing, health

Preflight Token

After context_check(), you receive a preflight_token in the response. This is cryptographic proof you consulted the Daem0n. Token is valid for 5 minutes.

Parallel Preflight

Before file edits, use the parallel-preflight skill to run:

  • context_check + recall_for_file + analyze_impact

IN PARALLEL for maximum efficiency.

Workflow Summary

SESSION START
    └─> get_briefing()

BEFORE CHANGES
    └─> context_check("what you're doing")
    └─> recall_for_file("path") for specific files
    └─> ACKNOWLEDGE any warnings

AFTER DECISIONS
    └─> remember(category, content, rationale)
    └─> SAVE the memory_id
    └─> link_memories() if causally related to other decisions

AFTER IMPLEMENTATION
    └─> record_outcome(memory_id, outcome, worked)

INVESTIGATING CONTEXT
    └─> trace_chain() to understand decision history
    └─> get_graph() to visualize relationships

Why This Matters

Without protocol discipline:

  • You repeat past mistakes
  • Decisions get lost between sessions
  • Patterns aren't captured
  • Failures aren't learned from
  • The memory system becomes useless noise

With protocol discipline:

  • Past mistakes surface before you repeat them
  • Decisions persist across sessions
  • Patterns compound into project knowledge
  • Failures become learning opportunities
  • The AI actually gets smarter over time

Graph Memory Tools

Memories can be explicitly linked to create a knowledge graph. Use these when decisions are causally related.

Relationship Types

Type Meaning Example
led_to A caused/resulted in B "PostgreSQL choice led to connection pooling pattern"
supersedes A replaces B (B is outdated) "New auth flow supersedes old JWT approach"
depends_on A requires B to be valid "Caching strategy depends on database choice"
conflicts_with A contradicts B "Sync processing conflicts with async pattern"
related_to General association "Both relate to authentication"

Link Memories

mcp__daem0nmcp__link_memories(
    source_id=<memory_id>,
    target_id=<other_memory_id>,
    relationship="led_to",
    description="Optional context for the link"
)

When to link:

  • A decision directly caused another decision
  • A pattern emerged from a specific choice
  • An approach supersedes a previous one

Trace Causal Chains

mcp__daem0nmcp__trace_chain(
    memory_id=<id>,
    direction="backward",  # "forward", "backward", or "both"
    max_depth=5
)

Use cases:

  • "What decisions led to this pattern?" → trace backward
  • "What emerged from this architectural choice?" → trace forward
  • "Show me the full context around this decision" → trace both

Visualize the Graph

mcp__daem0nmcp__get_graph(
    memory_ids=[1, 2, 3],  # OR
    topic="authentication",
    format="mermaid"  # or "json"
)

Returns a mermaid diagram or JSON structure showing nodes and edges.

Remove Links

mcp__daem0nmcp__unlink_memories(
    source_id=<id>,
    target_id=<id>,
    relationship="led_to"
)

OpenSpec Integration

If the project uses OpenSpec (spec-driven development), the openspec-daem0n-bridge skill provides bidirectional integration:

Auto-detection: After get_briefing(), if openspec/ directory exists, specs are automatically imported as patterns and rules.

Before creating proposals: Use "prepare proposal for [feature]" to query past decisions and failures.

After archiving changes: Use "record outcome for [change-id]" to convert completed work to learnings.

See the openspec-daem0n-bridge skill for full workflow details.

Enhanced Search & Indexing (v2.15.0)

Automatic Tag Inference

Memories now auto-detect tags from content:

  • bugfix: fix, bug, error, issue, broken, crash
  • tech-debt: todo, hack, workaround, temporary
  • perf: cache, performance, slow, fast, optimize
  • warning: Added automatically for warning category

You don't need to manually tag common patterns.

Condensed Mode for Large Projects

For projects with many memories, use condensed recall:

mcp__daem0nmcp__recall(topic="authentication", condensed=True)

Returns compressed output (~75% token reduction):

  • Content truncated to 150 chars
  • Rationale/context stripped
  • Ideal for broad surveys before deep dives

Code Intelligence Tools

Index your codebase:

mcp__daem0nmcp__index_project()  # Index all code entities

Search code semantically:

mcp__daem0nmcp__find_code(query="user authentication")

Analyze change impact:

mcp__daem0nmcp__analyze_impact(entity_name="UserService.authenticate")

Incremental Indexing

Only re-indexes changed files:

  • Uses SHA256 content hashes
  • Automatically skips unchanged files
  • Entities have stable IDs (survive line changes)

Enhanced Health Monitoring

mcp__daem0nmcp__health()

Now returns:

  • code_entities_count: Total indexed entities
  • entities_by_type: Breakdown by class/function
  • last_indexed_at: When index was last updated
  • index_stale: True if >24 hours since last index

The Bottom Line

Memory tools exist. Use them correctly.

Check context. Record decisions. Track outcomes. Link related memories.

This is non-negotiable when Daem0nMCP tools are available.