Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.49 KB

File metadata and controls

37 lines (25 loc) · 1.49 KB

codewiki

A Claude Code skill that keeps C/C++ code and documentation in sync. You configure which code modules to focus on, and the LLM compiles, updates, and maintains structured wiki documentation as code evolves.

Inspired by forge (Karpathy's LLM Knowledge Base pattern), adapted for code-documentation synchronization with C/C++ AST awareness.

Install

git clone https://github.com/VOIDXAI/codewiki.git ~/.claude/skills/codewiki

Commands

Command What it does
/codewiki init Initialize docs for a C/C++ project
/codewiki compile Detect code changes, generate/update documentation
/codewiki lint Check doc-code consistency + coverage report
/codewiki query <question> Query the documentation
/codewiki evolve Auto-improve: fill gaps, update stale docs

How It Works

  1. Configure: Define modules and focus files in .codewiki.yaml
  2. Compile: tree-sitter extracts symbols from .h/.c files, LLM generates structured docs
  3. Incremental: Hash diff + symbol diff detect what changed, only affected docs update
  4. Lint: Verify signatures match, check coverage, detect broken links
  5. Evolve: Auto-fill documentation gaps based on lint results

Optional Enhancements

  • tree-sitter — AST parsing for precise C/C++ symbol extraction (strongly recommended). Install: pip install tree-sitter tree-sitter-c

License

MIT