Thanks for wanting to help. Here's how to get started.
git clone https://github.com/MutharasuArchunan13/codebase-intel.git
cd codebase-intel
uv sync --dev # or: pip install -e ".[dev]"# Run tests
uv run pytest tests/unit/ -x -q
# Lint
uv run ruff check src/ tests/
uv run ruff format src/ tests/
# Type check
uv run mypy src/ --ignore-missing-imports
# Run against a real project
uv run codebase-intel init /path/to/your/project
uv run codebase-intel benchmark /path/to/your/project-
Contract packs — Write quality rules for your framework (Django, Spring Boot, Next.js, etc.). Drop a YAML file in
community-contracts/. -
Language extraction — Improve parsing for specific languages in
src/codebase_intel/graph/parser.py. The generic extractor works but language-specific extractors (like Python and JS already have) produce better results. -
Decision mining — Improve git history analysis in
src/codebase_intel/decisions/miner.py. Better keyword detection, PR description parsing, code review comment extraction. -
Benchmarks — Run
codebase-intel benchmarkon your repos and share results. Real numbers from diverse projects strengthen the case. -
Auto-pattern detection — Add new pattern detectors in
src/codebase_intel/contracts/auto_generator.py. The more conventions we detect automatically, the lower the adoption barrier.
- Pydantic v2 models for all structured data — never raw dicts
- Async-first for all I/O operations
- Repository pattern for storage — models never touch SQLite directly
- Type hints on every function (params + return)
- Custom exceptions with structured context — never bare try/except
- Run
ruff checkandruff formatbefore committing - Tests should cover edge cases, not just happy paths
- Comments explain why, not what
- Keep PRs focused — one feature or fix per PR
- Include test coverage for new code
- Update
CLAUDE.mdif you change architecture
To contribute a contract pack:
- Create a YAML file in
community-contracts/ - Include 5+ rules with clear descriptions
- Add
fix_suggestionfor every rule - Test it: copy to a project's
.codebase-intel/contracts/and runcodebase-intel benchmark
See existing packs (fastapi.yaml, react-typescript.yaml, nodejs-express.yaml) for the format.