Thank you for your interest in contributing to lean-intel! This guide will help you get started.
- Node.js >= 22.0.0
- npm (included with Node.js)
- Git
# Clone the repository
git clone https://github.com/leandigital/lean-intel.git
cd lean-intel
# Install dependencies
npm install
# Build the project
npm run build
# Link for local development
npm link| Script | Description |
|---|---|
npm run build |
Compile TypeScript |
npm run dev |
Run CLI in development mode (via tsx) |
npm run watch |
Watch mode for TypeScript compilation |
npm test |
Run tests |
npm run test:watch |
Run tests in watch mode |
npm run lint |
Lint source files |
npm run format |
Format source files with Prettier |
npm run relink |
Rebuild and relink the CLI globally |
- Use GitHub Issues
- Include steps to reproduce, expected vs actual behavior, and your environment
- Fork the repository
- Create a feature branch from
main(git checkout -b feature/your-feature) - Make your changes
- Run
npm run buildandnpm testto verify - Commit with a clear, descriptive message
- Push to your fork and open a Pull Request against
main
- Keep PRs focused — one feature or fix per PR
- Update documentation if your change affects user-facing behavior
- Ensure the build passes and tests are green
- Add tests for new functionality where applicable
src/— CLI source code (TypeScript)prompts/api/— TypeScript prompt generators with Zod validationdocumentation/— Standalone Markdown prompts for documentation generationanalyzer/— Standalone Markdown prompts for code analysis
If you're modifying prompt files (documentation/ or analyzer/):
- Test changes by running a full generation on a real codebase
- Maintain the 100% codebase verification principle — never add assumptions or invented code
- Ensure bash commands work cross-platform (Mac and Linux)
- See CLAUDE.md for detailed prompt engineering guidelines
By contributing, you agree that your contributions will be licensed under the Apache License 2.0.