This file provides project-specific context and instructions for the Gemini CLI agent.
This is a self-driving code base powered by GitHub Actions and Gemini CLI. The agent helps with:
- Issue triage and classification
- Code review
- Documentation maintenance
- Bug diagnosis
- Feature implementation
- Write clean, readable code with meaningful names
- Follow existing patterns in the codebase
- Keep functions small and focused (single responsibility)
- Add appropriate error handling
- Write tests for new functionality
- Use
constandlet, avoidvar - Use arrow functions where appropriate
- Use meaningful variable names
- Add JSDoc comments for complex functions
- Use async/await over raw promises
- Use template literals for string interpolation
- Follow PEP 8 style guide
- Use type hints where beneficial
- Use list/dict comprehensions where appropriate
- Add docstrings to modules and functions
- Use
logginginstead ofprintfor important output
- Follow Go code review comments
- Use meaningful package names
- Error handling:
if err != nil { return err } - Use context for cancellation
- Write table-driven tests
- Update README when adding features
- Add inline comments for complex logic
- Document public APIs
- Include usage examples for new features
type(scope): description
[optional body]
[optional footer]
Types: feat, fix, docs, style, refactor, test, chore
- Reference the issue number in the PR title
- Describe what changes were made
- Include screenshots for UI changes
- Ensure all tests pass
- Update documentation as needed
- Unit tests for new functions/methods
- Integration tests for new features
- Test edge cases and error conditions
- Aim for >80% coverage on new code
- Never commit secrets or API keys
- Sanitize user input
- Use parameterized queries
- Validate all inputs
- Follow OWASP security guidelines
src/ - Source code
tests/ - Test files
docs/ - Documentation
scripts/ - Build/utility scripts
config/ - Configuration files
- Lint - Code style checks
- Test - Run test suite
- Build - Compile/build artifacts
- Deploy - Deploy to environment
- Check existing issues and PRs
- Review documentation
- Ask in discussions