Skip to content

VOIDXAI/codewiki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Claude Code skill: C/C++ code-documentation sync with AST-aware incremental updates

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors