KBManager Skills Index
KBManager is a persistent mathematical research knowledge base maintained by
Codex. Use this index when the user asks generally to work with KBManager or
you need to pick the right workflow.
Architecture
KBManager uses an incrementally maintained, persistent wiki rather than
reconstructing knowledge through retrieval on every query. It has three layers:
${DATA_DIR:-data}/raw_sources/is the immutable source of truth.${DATA_DIR:-data}/wiki/is the compiled, interlinked Markdown knowledge
base.
AGENTS.mdand the skills in this directory define the behavioral schema
that maintains those artifacts.
Cross-referencing and synthesis happen primarily during ingest. Queries begin
with wiki/index.md and retrieve only the relevant cards. wiki/log.md is an
append-only chronological record using
## [YYYY-MM-DD] action | Title.
Human edits to wiki pages are authoritative. Researchers may inspect and edit
the wiki directly, including through Obsidian; later operations must read the
current files before changing them. Create scoped Git checkpoints after major
ingest, archive, repair, or reorganization operations unless the human asks
otherwise.
Skills
| Skill | Use |
|-------|-----|
| orchestrator | Route KBManager workflows through specialist subagents |
| source-management | Fetch public resources, queue inaccessible resources, register local files into hash-addressed raw sources |
| ingest | Dispatch registered files to the right ingest mode |
| ingest-source | Ingest external references into Source_* pages and concept cards |
| ingest-analysis | Ingest problem-solving notes into reusable Analysis_*, PartialProof_*, or Obstruction_* proof memory |
| query | Answer from $DATA_DIR/wiki/ and persist only non-obvious new insights |
| wiki-maintenance | Check wiki health and backfill missing semantic links |
| lean-archive | Organize Lean 4 source files and create wiki proof cards |
Core Files
- Project rules:
AGENTS.md - Architecture and routing rules:
.agents/skills/ - Runtime data:
${DATA_DIR:-data} - Wiki map:
${DATA_DIR:-data}/wiki/index.md - Operation log:
${DATA_DIR:-data}/wiki/log.md - Source registry:
${DATA_DIR:-data}/sources_manifest.md - Download queue:
${DATA_DIR:-data}/download_queue.md
Default Selection
- User asks for multi-step KBManager work: use
orchestrator. - User provides URL or local file: use
source-management. - User asks to process a registered file: use
ingestto choose source-style,
analysis-style, or Lean archive handling.
- User asks a research question about accumulated knowledge: use
query. - User asks to check/fix wiki health or links: use
wiki-maintenance. - User provides
.leanfile: uselean-archive.