agentleFS
ss2codess2code/nanoclaw-ops/.claude/skills/get-qodo-rules/SKILL.md

get-qodo-rules

Skill1 starsChanged 41 days agoMITView on GitHub

Optional: loads org- and repo-level coding rules from Qodo when explicitly requested. Do not invoke this skill merely because a task involves code.

  • Reads credentials

6 other projects use a version of this, 6 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-telegram-swarm and add-voice-transcription.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • juancruzmunozalbeloSkill

    add-telegram-swarm

    Add Agent Swarm (Teams) support to Telegram. Each subagent gets its own bot identity in the group. Requires Telegram channel to be set up first (use /add-telegram). Triggers on "agent swarm", "agent teams telegram", "telegram swarm", "bot pool".

    Also in 4 projects that use this

  • juancruzmunozalbeloSkill

    add-voice-transcription

    Add voice message transcription to NanoClaw using OpenAI's Whisper API. Automatically transcribes WhatsApp voice notes so the agent can read and respond to them.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

11 rules. 8 are common, 0 are distinctive, and 3 are very specific to this project.

  • 8

    Common

    Most of the 6 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Common:

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

    line 20
  2. Common:

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

    line 28
  3. Common:

    Check that the current directory is inside a git repository.

    line 32
  4. Very specific:

    Check that the required Qodo configuration is present.

    line 40
  5. Very specific:

    API key: Read from ~/.qodo/config.json (API_KEY field).

    line 42
  6. Very specific:

    Environment name: Read from ~/.qodo/config.json (ENVIRONMENT_NAME field), with QODO_ENVIRONMENT_NAME environment variable taking precedence.

    line 43
  7. Common:

    Stop after 100 pages maximum (safety limit).

    line 50
  8. Common:

    If no rules are found after all pages, inform the user and exit gracefully.

    line 51
  9. Common:

    After code generation, inform the user about rule application:

    line 74
  10. Common:

    Re-running when rules are loaded: - Check for "Qodo Rules Loaded" in context first

    line 102
  11. Common:

    Forgetting to report when no rules apply: - Always inform the user when no rules were applicable, so they know the rules system is active

    line 104

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Get Qodo Rules Skill

Description

Fetches repository-specific coding rules from the Qodo platform API when the user explicitly asks for Qodo rules. Rules can include security requirements, coding standards, quality guidelines, and team conventions.

This is an opt-in skill. Do not invoke it merely because the task involves code; the repository's normal instructions apply unless the user asks to load Qodo rules. 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

  • Check that the current directory is inside a git repository. If not, inform the user that a git repository is required and exit gracefully.
  • Extract the repository scope from the git origin remote URL. If no remote is found, exit silently. If the URL cannot be parsed, inform the user and exit gracefully.
  • Detect module-level scope: if inside a modules/* subdirectory, use it as the query scope; otherwise use repository-wide scope.

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.

  • API key: Read from ~/.qodo/config.json (API_KEY field). If not found, report briefly that Qodo is not configured and exit gracefully; do not suggest setup unless the user asked to enable Qodo.
  • Environment name: Read from ~/.qodo/config.json (ENVIRONMENT_NAME field), with QODO_ENVIRONMENT_NAME environment variable taking precedence. If not found, report briefly that Qodo is not configured and exit gracefully; do not suggest setup unless the user asked to enable Qodo.

Step 4: Fetch Rules with Pagination

  • Fetch all pages from the API (50 rules per page) until no more results are returned.
  • On each page, handle HTTP errors and exit gracefully with a user-friendly message.
  • Accumulate all rules across pages into a single list.
  • Stop after 100 pages maximum (safety limit).
  • If no rules are found after all pages, inform the user and exit gracefully.

See pagination details for the full algorithm and error handling.

Step 5: Format and Output Rules

  • Print the "📋 Qodo Rules Loaded" header with repository scope, scope context, and total rule count.
  • Group rules by severity and print each non-empty group: ERROR, WARNING, RECOMMENDATION.
  • Each rule is formatted as: - **{name}** ({category}): {description}
  • End output with ---.

See output format details for the exact format.

Step 6: Apply Rules by Severity

SeverityEnforcementWhen Skipped
ERRORMust comply, non-negotiable. Add comment documenting compliance (e.g., # Following Qodo rule: No Hardcoded Credentials)Explain to user and ask for guidance
WARNINGShould comply by defaultBriefly explain why in response
RECOMMENDATIONConsider when appropriateNo action needed

Step 7: Report

After code generation, inform the user about rule application:

  • ERROR rules applied: List which rules were followed
  • WARNING rules skipped: Explain why
  • No rules applicable: Inform: "No Qodo rules were applicable to this code change"
  • RECOMMENDATION rules: Mention only if they influenced a design decision

How Scope Levels Work

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

Scope Hierarchy:

  • Universal (/) - applies everywhere
  • Org Level (/org/) - applies to organization
  • Repo Level (/org/repo/) - applies to repository
  • Path Level (/org/repo/path/) - applies to specific paths

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

  • Re-running when rules are loaded - Check for "Qodo Rules Loaded" in context first
  • Missing compliance comments on ERROR rules - ERROR rules require a comment documenting compliance
  • Forgetting to report when no rules apply - Always inform the user when no rules were applicable, so they know the rules system is active
  • Not in git repo - Inform the user that a git repository is required and exit gracefully; do not attempt code generation
  • No API key - Inform the user with setup instructions; set QODO_API_KEY or create ~/.qodo/config.json
  • No rules found - Inform the user; set up rules at app.qodo.ai

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.