Skip to content
Back to skills

Knowledge Agent

ASecurity

Answer questions using accumulated project memory as a knowledge base. Use when the user asks "why did we choose X", "what's our approach to Y", "what do we know about Z", "explain how our auth works", "what's the deployment process", "what libraries are we using", "remind me why we did X this way", or any question that has likely been answered or decided in a previous session. Also trigger when making architectural decisions to check if a similar decision was already made.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 7, 2026
ai-agentspythongobash

Security analysis

A100/100

Scanned October 7, 2026

npx -y skills add MSApps-Mobile/claude-plugins --skill knowledge-agent --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Knowledge Agent?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Knowledge Agent
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/msapps-mobile-knowledge-agent/badge)](https://www.skillsdirectory.com/skills/msapps-mobile-knowledge-agent)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: knowledge-agent
description: >
  Answer questions using accumulated project memory as a knowledge base.
  Use when the user asks "why did we choose X", "what's our approach to Y",
  "what do we know about Z", "explain how our auth works", "what's the
  deployment process", "what libraries are we using", "remind me why we
  did X this way", or any question that has likely been answered or decided
  in a previous session. Also trigger when making architectural decisions
  to check if a similar decision was already made.
---

# 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

```bash
# 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:
```bash
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?":
```bash
# 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."

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.