One-scan repo context generation with codebase-md
Codebase-md scans your repo and auto-generates consistent AI coding context files for popular tools, reducing manual drift and improving prompt quality across teams. The tool inspects languages, frameworks, architecture, dependencies, and git history, then emits formats like CLAUDE.md and .cursorrules from a single source model ([DEV Community](https://dev.to/saurav_anand_75e32e8d0c76/i-built-a-tool-that-generates-ai-coding-context-for-every-tool-from-one-scan-ie0), [Forem mirror](https://forem.com/saurav_anand_75e32e8d0c76/i-built-a-tool-that-generates-ai-coding-context-for-every-tool-from-one-scan-ie0)). It uses tree-sitter ASTs to infer conventions and parses package manifests to flag version freshness and potential breaking changes. Smart context routing chunks your project into 12 topics and ranks results via TF-IDF to answer targeted queries like “database models,” ready to feed into any LLM. A plugin-style generator layer and 300+ tests suggest it’s designed for extension and CI use. Usage is simple: pip install, scan the repo, then generate formats in one go. This helps standardize AI assistant inputs across Claude Code, Cursor, Windsurf, multi-agent setups, and more without hand-maintaining multiple files.