knowledge-agent

A question-answering guide that uses stored project memory as a knowledge base.

In plain words
What is it for?
Use it to answer questions about project decisions, authentication, deployment, libraries, architecture, and other information recorded in memory.
Why use it?
It checks existing notes before answering, which can reveal why a past technical choice was made or how a project process works.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/msapps-mobile/claude-plugins/knowledge-agent
Any agent
npx skills add MSApps-Mobile/claude-plugins --skill knowledge-agent
Clone the repo
git clone --depth 1 https://github.com/MSApps-Mobile/claude-plugins

Made for: Claude Code, Codex.

Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 547 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00106 $0.00547
Opus 5 $0.00053 $0.00273
Sonnet 5 $0.00021 $0.00109
Haiku 4.5 $0.00011 $0.00055

Measured 2d ago against content hash a89d60ae33f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

knowledge-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/cowork-mem/skills/knowledge-agent/SKILL.md · 61 lines

What it actually says

knowledge-agent: Memory as Knowledge Base

Your memory DB contains decisions, insights, and notes from past sessions. Before answering questions from scratch, search it — you may have already figured this out.

Query Workflow

# 1. Semantic search for the concept
COWORK_MEM_DB=~/mnt/.claude/.cowork-mem/memory.db \
python3 {SKILL_DIR}/scripts/vector_search.py "<question>" --limit 8

# 2. Keyword search for specific terms
python3 {SKILL_DIR}/scripts/memory_store.py search "<key term>" --limit 5

# 3. Fetch full text for the most relevant results
python3 {SKILL_DIR}/scripts/memory_store.py get <id1> <id2>

Answering from Memory

After retrieving relevant observations:

  1. Synthesize, don't quote — distill what the observations say into a direct answer
  2. Cite the age — "We decided this 3 days ago" gives the user confidence in freshness
  3. Flag uncertainty — if observations are old or sparse, say so
  4. Update if stale — if the situation has clearly changed, save a new observation

When Memory Doesn't Know

If search returns nothing relevant:

  1. Answer from your general knowledge or by reading the codebase
  2. If you derive something new and useful, save it:
python3 {SKILL_DIR}/scripts/memory_store.py add insight \
  "<what you learned>" --tags "<relevant,tags>"

Decision Archaeology

When the user asks "why did we do X this way?":

# Search specifically for past decisions
python3 {SKILL_DIR}/scripts/memory_store.py search "<X>" --type decision --limit 10

If you find a past decision, explain it with context. If you don't, note that "this decision isn't in memory — here's what I'd infer from the codebase."

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 61 lines · 106 tokens per session scan A a89d60ae33f8

Subscribe to this mod's changes

knowledge-agent is a skill published in the GitHub repository MSApps-Mobile/claude-plugins (9 stars, last pushed 6d ago), licensed MIT. It adds 106 tokens to every session and 547 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

change

Track and inspect graph changes, diffs, temporal updates, and the impact of new data on Semantica knowledge graphs.

semantica-agi/semantica · 27 tokens

review

5-pass structured code review — correctness, security, performance, readability, consistency.

SethGammon/Citadel · 17 tokens

scaffold

Project-aware file generation. Reads existing codebase conventions (naming, structure, imports, exports, test patterns) then generates new files that match exactly. Wires generated files into the project's registration points.

SethGammon/Citadel · 44 tokens

design

Generates and maintains a design manifest for visual consistency. In existing projects, reads current styles and documents the design language. In new projects, asks a few questions and generates a starter manifest. The post-edit hook reads the manifest and flags deviations.

SethGammon/Citadel · 51 tokens

marshal

Meta-orchestrator that takes any direction — broad, specific, or vague — and autonomously chains skills and context into actionable work. Gathers context from codebase, docs, and memory. Only asks the user when it genuinely cannot proceed. Single-session orchestrator.

SethGammon/Citadel · 56 tokens

organize

Repository structure only: directory layout, file placement, naming conventions, and where-does-this-belong decisions. Detects the project's convention, audits files against it, and executes move plans with import-path updates. Never changes code inside files beyond the import updates a move forces; in-file…

SethGammon/Citadel · 66 tokens