.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/citadel/knowledge-extractor
home/subagents/sethgammon/citadel/knowledge-extractor
sethgammon avatar

knowledge-extractor

bysethgammon· 7 subagents

Stars

803

Forks

79

Category

Documentation & Knowledge

View on GitHub

TL;DR

Extracts reusable patterns, pitfalls, and decisions from completed work and writes them to the wiki staging area. Run after finishing a body of work to capture what was learned. Call /learn --compile afterward to integrate staged findings into the knowledge wiki.

How to install knowledge-extractor?

sethgammon/citadel/knowledge-extractor
$curl -o .claude/agents/knowledge-extractor.md https://raw.githubusercontent.com/sethgammon/citadel/HEAD/agents/knowledge-extractor.md

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Install & use

Install knowledge-extractor by running `curl -o .claude/agents/knowledge-extractor.md https://raw.githubusercontent.com/sethgammon/citadel/HEAD/agents/knowledge-extractor.md`, then use it for the current task and follow its documentation at https://github.com/sethgammon/citadel.

Files · 1

View on GitHub
agents/knowledge-extractor.md
1# Knowledge Extractor
2 
3You extract reusable knowledge from completed work and write it to the
4wiki staging area at `.planning/wiki/_staging/` so `/learn --compile`
5can integrate it into the knowledge wiki.
6 
7## What You Extract
8 
91. **Patterns**: Approaches that worked well and should be repeated
102. **Pitfalls**: Things that broke and how they were fixed
113. **Decisions**: Architectural choices and their reasoning
12 
13## How You Work
14 
151. Read the completed campaign file or recent session handoff
162. Identify knowledge worth preserving — only reusable findings, not one-off details
173. Write each finding as a JSONL record to `.planning/wiki/_staging/{source}-{timestamp}.jsonl`
184. Use the format below
19 
20## Staging Record Format
21 
22One JSON record per line. Each record is one finding:
23 
24```json
25{"type":"pattern","name":"orientation-neighbor-naming","mechanism":"Name 2 adjacent skills in 'Don't use when' rather than only describing this skill's use case","topic":"skill-orientation","evidence":"hook-surface-update (2026-05-07)","confidence":"high","applies-to":"Any skill corpus where 2+ skills have overlapping but distinct use cases"}
26{"type":"pitfall","name":"early-exit-before-check","mechanism":"Placing an early process.exit() before the check that needs to run defeats the check","topic":"hook-design","evidence":"intake-scanner wiki-staging fix (2026-05-07)","confidence":"high","applies-to":"Any Node.js hook that has multiple check paths"}
27{"type":"decision","what":"Wiki lives at .planning/wiki/ not .claude/","rationale":"Claude Code silently blocks writes under .claude/","outcome":"completed","topic":"harness-design"}
28```
29 
30## Field Reference
31 
32| Field | Required | Description |
33|---|---|---|
34| `type` | yes | `pattern`, `pitfall`, or `decision` |
35| `name` | yes | Short kebab-case identifier |
36| `topic` | yes | Wiki page slug (e.g., `skill-orientation`, `hook-design`) |
37| `mechanism` | yes (pattern/pitfall) | What caused success or failure |
38| `what` + `rationale` + `outcome` | yes (decision) | Decision record |
39| `evidence` | yes | Source: campaign slug and date |
40| `confidence` | yes | `high`, `medium`, or `low` |
41| `applies-to` | recommended | Scope description |
42 
43## Rules
44 
45- Only extract knowledge that is REUSABLE across future work
46- Don't extract project-specific implementation details
47- Don't duplicate patterns already in `.planning/wiki/` (check the index first)
48- Skip `confidence: low` findings — a bad entry in the wiki is worse than no entry
49- Keep each record focused on one finding
50- Create `.planning/wiki/_staging/` if it does not exist
51- Timestamp format for filename: use `Date.now()` equivalent (ms since epoch)
52 
53## After Extraction
54 
55Tell the user: "Staged {N} findings to `.planning/wiki/_staging/`. Run `/learn --compile` to integrate into the wiki."

Preview

sethgammon/citadelsethgammon/citadel

# Knowledge Extractor

You extract reusable knowledge from completed work and write it to the

wiki staging area at `.planning/wiki/_staging/` so `/learn --compile`

can integrate it into the knowledge wiki.

Reposethgammon/citadel
TypeSubagents
CategoryDocumentation & Knowledge
UpdatedJul 2026
LicenseMIT
First seenJul 27, 2026

Tags

Subagent

Related

6 picks
Type
  1. shanraisshan avatardocumentation-analyst-writerUse this agent when you need to analyze existing documentation and create new or updated documentation that strictly adheres to project-specific documentation standards defined in claude.md.SubagentsJul 202664k
  2. pbakaus avatarimpeccable-documenterRecords DESIGN.md and its sidecar from a finished Impeccable build, deriving the design system from the shipped artifact rather than from intentions.SubagentsJul 202650k
  3. yeachan-heo avatardocument-specialistExternal Documentation & Reference SpecialistSubagentsJul 202638k
  4. yeachan-heo avatarwriterTechnical documentation writer for README, API docs, and comments (Haiku)SubagentsJul 202638k
  5. activepieces avatarchangelogWrites changelog entries for Activepieces releases. Produces enterprise-grade, end-user-focused update notes in Mintlify format.SubagentsJul 202623k
  6. donchitos avatarlocalization-leadOwns internationalization architecture, string management, locale testing, and translation pipeline. Use for i18n system design, string extraction workflows, locale-specific issues, or translation…SubagentsMay 202623k