Thanks for your interest in improving this toolkit! Here are guidelines for contributing.
- Be respectful and inclusive
- Focus on the problem, not the person
- Welcome diverse perspectives
-
Fork the repository
git clone https://github.com/YOUR-USERNAME/claude-api-optimization.git cd claude-api-optimization -
Create a branch
git checkout -b feature/your-feature-name
-
Make your changes
- Write clean, well-documented code
- Follow the existing code style
- Add tests for new functionality
-
Run tests
npm test -
Commit and push
git add . git commit -m "feat: add your feature description" git push origin feature/your-feature-name
-
Submit a Pull Request
- Provide clear description of changes
- Reference any related issues
- Include performance impacts if applicable
- JavaScript: Use Node.js best practices
- Comments: Document complex logic
- Functions: Keep functions focused and testable
- Variables: Use clear, descriptive names
Follow conventional commits format:
feat:- New featurefix:- Bug fixdocs:- Documentationtest:- Test additionsperf:- Performance improvementrefactor:- Code refactoring
Example:
feat: add token budget estimator
- Estimates token usage for batch operations
- Helps users plan batch sizes
- Includes test coverage
- Advanced token estimation algorithms
- Integration examples for popular frameworks
- Monitoring dashboard component
- Performance benchmarks for different workloads
- Additional caching strategies
- Cost prediction models
- Documentation translations
- CLI improvements
- Example configurations
- Blog posts and guides
- Community discussions
# Run all tests
npm test
# Run specific test file
npm test cost-monitor.test.js
# Run with coverage
npm test -- --coverage- Update README.md for user-facing changes
- Add API documentation for new functions
- Include examples for complex features
- Keep CONTRIBUTING.md updated
- Open an issue with the
questionlabel - Start a discussion in the repository
- Check existing issues first
By contributing, you agree that your contributions will be licensed under the MIT License.
Thank you for contributing to making Claude API usage more affordable! 🚀