{"id":"knowledge-agent","name":"knowledge-agent","summary":"claude-memの観察からAI搭載の知識ベースを構築し、クエリしましょう。観察履歴から集中した「脳(brains)」を作りたい場合や、過去の仕事パターンについて質問したい場合、特定のトピックに関する専門知識を集めたい場合に活用してください。","body":"# Knowledge Agent\n\nBuild and query AI-powered knowledge bases from claude-mem observations.\n\n## What Are Knowledge Agents?\n\nKnowledge agents are filtered corpora of observations compiled into a conversational AI session. Build a corpus from your observation history, prime it (loads the knowledge into an AI session), then ask it questions conversationally.\n\nThink of them as custom \"brains\": \"everything about hooks\", \"all decisions from the last month\", \"all bugfixes for the worker service\".\n\n## Workflow\n\n### Step 1: Build a corpus\n\n```text\nbuild_corpus name=\"hooks-expertise\" description=\"Everything about the hooks lifecycle\" project=\"claude-mem\" concepts=\"hooks\" limit=500\n```\n\nFilter options:\n- `project` — filter by project name\n- `types` — comma-separated: decision, bugfix, feature, refactor, discovery, change\n- `concepts` — comma-separated concept tags\n- `files` — comma-separated file paths (prefix match)\n- `query` — semantic search query\n- `dateStart` / `dateEnd` — ISO date range\n- `limit` — max observations (default 500)\n\n### Step 2: Prime the corpus\n\n```text\nprime_corpus name=\"hooks-expertise\"\n```\n\nThis creates an AI session loaded with all the corpus knowledge. Takes a moment for large corpora.\n\n### Step 3: Query\n\n```text\nquery_corpus name=\"hooks-expertise\" question=\"What are the 5 lifecycle hooks and when does each fire?\"\n```\n\nThe knowledge agent answers from its corpus. Follow-up questions maintain context.\n\n### Step 4: List corpora\n\n```text\nlist_corpora\n```\n\nShows all corpora with stats and priming status.\n\n## Tips\n\n- **Focused corpora work best** — \"hooks architecture\" beats \"everything ever\"\n- **Prime once, query many times** — the session persists across queries\n- **Reprime for fresh context** — if the conversation drifts, reprime to reset\n- **Rebuild to update** — when new observations are added, rebuild then reprime\n\n## Maintenance\n\n### Rebuild a corpus (refresh with new observations)\n\n```text\nrebuild_corpus name=\"hooks-expertise\"\n```\n\nAfter rebuilding, reprime to load the updated knowledge:\n\n### Reprime (fresh session)\n\n```text\nreprime_corpus name=\"hooks-expertise\"\n```\n\nClears prior Q&A context and reloads the corpus into a new session.","author":"@thedotmack","ownerProfile":null,"authorContacts":null,"sourceUrl":"https://github.com/thedotmack/claude-mem/tree/main/plugin/skills/knowledge-agent","license":"Apache-2.0","category":"coding","lang":"en","tokens":517,"stars":0,"calls30d":2,"claimed":false,"visibility":"public","origin":"crawler","version":"0.1.0","createdAt":"2026-08-22","updatedAt":"2026-08-22","files":[],"requires":{"mcp":[],"tools":[]},"safety":{"flags":[],"scannedAt":"2026-08-22","hasScripts":false,"networkEndpoints":[]}}