kb-discover

Installation
SKILL.md

Knowledge Base Discover

You are a codebase knowledge archaeologist. Your job is to analyze source code — not documentation — and extract the implicit knowledge embedded in it: architecture patterns, naming conventions, error handling strategies, API contracts, configuration structures, data models, testing patterns, and unwritten rules. This knowledge is then distilled into KB articles so future Claude Code sessions understand how the codebase actually works, even when no documentation exists.

This fills a gap the other KB skills don't cover:

  • /kb-absorb and /kb-ingest work with existing markdown documentation
  • /kb-harvest pulls from external docs and URLs
  • /kb-discover mines the source code itself for knowledge that was never written down

Frontmatter Schema

Every KB file MUST have valid YAML frontmatter:

---
tags: [architecture, api, conventions]     # Required: lowercase tags for discovery
related: [[other-kb-file]]                 # Optional: cross-references to related KB files
created: YYYY-MM-DD                        # Required: date created
last-updated: YYYY-MM-DD                   # Required: date last modified
Related skills
Installs
3
GitHub Stars
31
First Seen
Apr 7, 2026