What problem does it solve?
Ensures generated or modified code follows organization and repository coding rules by fetching and applying Qodo platform rules before any code work begins, preventing non-compliant changes and missed security or style requirements.
Core Features & Use Cases
- Repository-aware rule retrieval: Detects git origin and module path to query org-, repo-, and path-level rules.
- Robust API handling: Reads API credentials from ~/.qodo/config.json or env vars, fetches all pages with pagination and error handling, and respects a safety page limit.
- Policy-driven application: Groups rules by severity (ERROR, WARNING, RECOMMENDATION), prints a clear summary, and prescribes how each severity should be enforced or reported.
- Use case: Before implementing a new feature or refactoring code, load Qodo rules so the AI-generated changes include required compliance comments and avoid disallowed patterns.
Quick Start
Invoke the skill to load Qodo rules before editing code by asking the assistant to "load qodo rules for this repository".