Muninのロゴ

Munin

コミュニティ
bacnh85
munin

Use Munin long-term memory before non-trivial repo work, bug fixes with recurring symptoms, architecture/dependency/setup changes, and when storing durable verified knowledge for future sessions. Search, retrieve, verify, list, store, or share project knowledge across sessions. Use munin_search for pre-work context, munin_store for post-work storage. Use when the user mentions memory, recall, remember, past work, previously, store this, document this, or when work could benefit from prior project knowledge.

概要

公開者bacnh85
リポジトリpi-extensions
スキル名munin
スター
42
フォーク
15
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    bacnh85がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Munin」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/bacnh85/pi-extensions/tree/main/pi-munin/skills/munin
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bacnh85/pi-extensions.git /tmp/pi-extensions
mkdir -p .claude/skills
cp -r /tmp/pi-extensions/pi-munin/skills/munin .claude/skills/munin
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでMuninを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にMuninを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Muninは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Munin

Munin is the canonical memory system for Pi. Use it for all memory operations — project-local and cross-project.

Use the Munin Pi extension tools to recover and preserve verified project knowledge through native Pi-native tool calls. Memory results are leads, not authority: verify them against the current repository, docs, command output, or user-provided facts before relying on them.

How It Works

  1. The pi-munin extension provides native tools: munin_search, munin_get, munin_store, munin_list, munin_recent, munin_delete, munin_capabilities, munin_share.
  2. Credentials are loaded from .env.local / .env or environment variables (MUNIN_API_KEY, MUNIN_PROJECT).
  3. Print readable output by default, or raw JSON via tool details.
  4. Store only durable knowledge that is verified and useful in a future session.

Quick Start

Pre-work: search context:

munin_search query="auth refresh token timeout" tags="type:bug-fix,domain:auth" topK=5

Post-work: store knowledge:

munin_store
  key="bug-fix/auth-refresh-timeout"
  title="Auth refresh timeout fix"
  content="Conclusion: The auth refresh timeout was caused by missing timeout fallback...\n\nWhy it matters: Future auth work should avoid this pattern...\n\nEvidence/verification: Verified with test_auth_refresh.py passing...\n\nAnchors: src/auth.ts:42, AuthService.refreshToken"
  tags="type:bug-fix,domain:auth"

Targeted operations:

munin_search query="cache policy" tags="type:decision" topK=5
munin_get key="architecture/cache-policy"
munin_store key="setup/new-db-migration" title="..." content="..." tags="type:fact,domain:infra"
munin_list limit=20
munin_recent limit=10

Tag Discipline

CategoryExamplesRequired
type:decision, bug-fix, fact, dependencyYes, at least one
domain:auth, frontend, backend, infra, memoryYes, at least one
status:active, deprecated, experimentalOptional
priority:high, medium, lowOptional

Search Query Quality

Use 4-8 word queries with quoted phrases ("JWT TTL") and capitalized entity names (Stripe, Munin). Quoted phrases get +0.25 score boost; named entities get +0.15. DO NOT use single-word queries — they return noise. Example: ✅ "EAI_AGAIN" MongoDB Atlas connection drop — ❌ auth.

Tool Selection

ToolWhen to Use
munin_searchTargeted search with specific filters before work.
munin_getRetrieve full content of a specific memory by key.
munin_storeStore verified knowledge with tag validation.
munin_list / munin_recentBrowse or audit what is stored.
munin_deleteOnly when user explicitly requests removal.
munin_capabilitiesCheck what server features are available.
munin_shareShare memories across projects.

What to Store

Store one verified concept per memory:

  • Architecture or product decisions and rationale.
  • Recurring bug symptoms, root causes, fixes, and verification.
  • Stable setup facts, conventions, constraints, and dependency choices.
  • Durable user/project preferences when they materially guide work.
  • Cross-reference related memories by mentioning their keys in content (e.g., See also: architecture/cache-policy). This enables Munin's semantic search to surface related knowledge together.

Do not store:

  • Secrets, credentials, tokens, private keys, or connection strings.
  • Raw logs, transient task progress, temporary TODOs, or unverified guesses.
  • Information already trivial to derive from repository files.

Workflow

Pre-work: munin_search with 4-8 word query + tags → munin_get promising results → verify against repo. Post-work: munin_store with conclusion + why + evidence + anchors + tags.

Examples

Pre-work search for a bug:

munin_search query="auth refresh timeout error" tags="type:bug-fix,domain:auth"
→ I found relevant memory: bug-fix/auth-refresh-timeout — Missing fallback caused 500ms timeout. Verified against src/auth.ts before using it.

Post-work store:

munin_store
  key="architecture/cache-policy"
  title="Cache policy decision"
  content="Conclusion: Use LRU with 1h TTL for API responses, no-cache for auth tokens.\n\nWhy it matters: Prevents stale data and reduces backend load.\n\nEvidence/verification: Benchmarked with k6: 40% reduction in DB queries.\n\nAnchors: src/cache.ts, CachePolicy class"
  tags="type:decision,domain:backend"

Troubleshooting

  • Missing extension: Install pi-munin extension.
  • Missing credentials: Set MUNIN_API_KEY and MUNIN_PROJECT in .env.local or environment.
  • "Project not found" errors: Do not pass the project parameter to tool calls. It defaults to $MUNIN_PROJECT, which is already set correctly. Hardcoding a value like the repo directory name causes this error.
  • Tag validation failed: Ensure at least one type: and one domain: tag. Check spelling.
  • Single-word search queries return noise: Use 4-8 word queries with at least one quoted phrase or capitalized entity name. See "Search Query Quality" section above.
  • No results: Try broader queries, fewer tags, or munin_list to see what exists.

よくある質問

AIスキル「Munin」では何ができますか?

Use Munin long-term memory before non-trivial repo work, bug fixes with recurring symptoms, architecture/dependency/setup changes, and when storing durable verified knowledge for future sessions. Search, retrieve, verify, list, store, or share project knowledge across sessions. Use munin_search for pre-work context, munin_store for post-work storage. Use when the user mentions memory, recall, remember, past work, previously, store this, document this, or when work could benefit from prior project knowledge.

TypingMindでMuninを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Muninはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにMuninをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/bacnh85/pi-extensions/tree/main/pi-munin/skills/muninを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Muninを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Muninで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもMuninを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Munin」は無料ですか?

bacnh85がGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇