What problem does it solve?
Ensures code generation and modification comply with organization and repository coding rules by loading Qodo-hosted rules before any code writing, refactoring, or review task, preventing rule violations and security oversights.
Core Features & Use Cases
- Scope detection: detects git remote and working directory to derive query scope (org, repo, or path/module) for targeted rule queries.
- Configuration validation: checks for API key and environment name in ~/.qodo/config.json or environment variables and provides setup guidance if missing.
- Paginated fetching and robust error handling: retrieves up to 100 pages of rules, handles HTTP status errors (401, 403, 404, 429, 5xx) and network issues with clear user messages.
- Formatted output and enforcement guidance: groups rules by severity (ERROR, WARNING, RECOMMENDATION), prints a structured summary, and prescribes enforcement actions and reporting expectations.
- Use Case: run this before asking the assistant to write, refactor, or review code so all generated changes adhere to team standards and security requirements.
Quick Start
Load Qodo coding rules for the current repository and print the formatted rules summary.