Index Learnings
Indexes all learning markdown files into ChromaDB and generates a manifest summarizing topics.
Usage
code
/index-learnings
What It Does
- •Discovers
.mdfiles in~/.projects/learnings/(global) and[repo]/.projects/learnings/(repo) - •Extracts
**Topic:**and**Tags:**from each file - •Indexes into ChromaDB
- •Generates
~/.projects/learnings/MANIFEST.md
Manifest Format
markdown
# Learnings Manifest Generated: 2026-02-03T14:30:00Z ## Global Learnings (47 total, 3 gotchas) | Topic | Count | Keywords | |-------|-------|----------| | authentication | 12 (2⚠️) | jwt, oauth, refresh, session | | error-handling | 8 | retry, timeout, fallback | | testing | 7 | mock, fixture, integration | | other | 2 | | ## Repo: my-project (23 total) | Topic | Count | Keywords | |-------|-------|----------| | api-integration | 9 | github, slack, webhook | | other | 2 | |
- •Topics and keywords come from explicit
**Topic:**and**Tags:**fields (written by Claude) - •
**Type:** gotchalearnings are flagged with ⚠️ - •Falls back to "other" if no Topic specified
Learning File Format
markdown
# Title **Type:** pattern | gotcha | security **Topic:** authentication **Tags:** jwt, oauth, refresh tokens ## Problem ... ## Solution ...
Notes
- •Requires ChromaDB running (
/start-learning-db) - •Safe to run multiple times (upsert)
- •Skips MANIFEST.md files