Get qodo rules

From DingyangLyu/MatClaw · View interactive version

Get qodo rules is an AI agent skill from the GitHub repository DingyangLyu/MatClaw. Loads org- and repo-level coding rules from Qodo before code tasks begin, ensuring all generation and modification follows team standards. Use before any code generation or modification task when rules are not already loaded. Invoke when user asks to write, edit, refactor, or review code, or when st

How to use this skill

Skill file

Get Qodo Rules Skill

Description

Fetches repository-specific coding rules from the Qodo platform API before code generation or modification tasks. Rules include security requirements, coding standards, quality guidelines, and team conventions that must be applied during code generation.

Use before any code generation or modification task when rules are not already loaded. Invoke when user asks to write, edit, refactor, or review code, or when starting implementation planning.

Skip if "Qodo Rules Loaded" already appears in conversation context


Workflow

Step 1: Check if Rules Already Loaded

If rules are already loaded (look for "Qodo Rules Loaded" in recent messages), skip to step 6.

Step 2: Verify working in a git repository

See repository scope detection for details.

Step 3: Verify Qodo Configuration

Check that the required Qodo configuration is present. The default location is ~/.qodo/config.json.

Step 4: Fetch Rules with Pagination

See pagination details for the full algorithm and error handling.

Step 5: Format and Output Rules

See output format details for the exact format.

Step 6: Apply Rules by Severity

| Severity | Enforcement | When Skipped |

|---|---|---|

| ERROR | Must comply, non-negotiable. Add comment documenting compliance (e.g., # Following Qodo rule: No Hardcoded Credentials) | Explain to user and ask for guidance |

| WARNING | Should comply by default | Briefly explain why in response |

| RECOMMENDATION | Consider when appropriate | No action needed |

Step 7: Report

After code generation, inform the user about rule application:


How Scope Levels Work

Determines scope from git remote and working directory (see Step 2):

Scope Hierarchy:


Configuration

See ~/.qodo/config.json for API key setup. Set QODO_ENVIRONMENT_NAME env var or ENVIRONMENT_NAME in config to select environment.


Common Mistakes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.