qodo-get-rules
The skill retrieves organization-specific coding rules from Qodo using semantic queries and applies them to guide implementation, refactoring, or code review.
Identity proven by GitHub's verified organisation badge (qodo-ai)
- Agents
- Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode
- License
- MIT (permissive)
- Pin
- 866d301pinned Oct 9, 2026
- Context cost
- about 3,000 tokenswhen the skill loads
- GitHub stars
- 56on qodo-ai/qodo-skills
- Scripts
- None found
What it does
“Retrieve and apply Qodo coding rules relevant to implementation, planning, refactoring, or code review. Use on "get rules", "load qodo rules", or "relevant standards" and when starting a concrete coding task. Reuse rules already retrieved for the same workspace, repository, and task scope; refresh when that scope changes.”
Generated summary from the skill's own text
The skill retrieves organization-specific coding rules from Qodo using semantic queries and applies them to guide implementation, refactoring, or code review. It structures queries around task purpose and cross-cutting standards, merges ranked results, and enforces rules based on severity levels during development.
When to use it
- Starting concrete coding tasks like implementing features or APIs
- Refactoring code or preparing for team code review
- When explicit request for standards like 'load qodo rules'
- Validating compliance with organizational coding guidelines
When not to
- Qodo CLI is not installed or older than version 0.1.0-next.37
- Task scope is too vague to form semantic queries
- No organizational standards are configured in Qodo
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add qodo-ai/qodo-skills --skill qodo-get-rulesInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install qodo-ai/qodo-skills qodo-get-rules@866d301dfbec39d5bb18bde72ac0dc770cc759a1Installs the commit we checked (866d301).
Copy by hand
Download the folder at 866d301 and put it in .claude/skills/qodo-get-rules for Claude Code and in .agents/skills/qodo-get-rules for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Claude Code plugin
/plugin install qodo@claude-plugins-officialThe publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.
Claude Code plugin
/plugin install qodo-standards@claude-plugins-officialThe publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "qodo-get-rules" by Qodo. Source, pinned to commit 866d301dfbec39d5bb18bde72ac0dc770cc759a1: https://github.com/qodo-ai/qodo-skills/tree/866d301dfbec39d5bb18bde72ac0dc770cc759a1/packages/qodo-standards/skills/qodo-get-rules 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/qodo-get-rules/ for Claude Code and .agents/skills/qodo-get-rules/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Listing and checks: https://www.agentnative.dev/skills/qodo/qodo-get-rules-qodo-skills-3
SKILL.md at the pin
---
name: qodo-get-rules
description: Retrieve and apply Qodo coding rules relevant to implementation, planning, refactoring, or code review. Use on "get rules", "load qodo rules", or "relevant standards" and when starting a concrete coding task. Reuse rules already retrieved for the same workspace, repository, and task scope; refresh when that scope changes.
owner: Qodo
metadata:
vendor: qodo
version: "1.1.5"
recommended: "false"
package: "qodo-standards"
distribution: "marketplace"
instruction_mode: "embedded"
---
# Get Rules
## Description
Use the `qodo` CLI to fetch the workspace's coding rules most relevant to the task at
hand, then **apply them while producing the code**. Retrieval is semantic — the quality
of what comes back is decided by how you write the query, so follow the query format
below exactly.
## Prerequisites
- The optional Qodo Standards package is installed and loaded explicitly.
- The Qodo CLI is installed, authenticated, and exposes the read-only rules search tool.
- The task is concrete enough to form semantic queries; already-loaded rules are reused.
## Instructions
Follow the detailed workflow below: preserve update notices, verify the current tool contract,
build focused semantic queries, merge ranked results, explain the applicable constraints, then apply them.
First check the reuse condition in Preflight. If prior results still cover the task, go directly
to Output, then apply; no runtime, identity, catalog, or search call is needed for that path.
## Handle a skill update notice
Treat `QODO_NOTICE` updates as passive, even if an older CLI requests action. Continue the task
without inventory or update questions; mention each event at most once. Dismissal leaves recorded maintenance
policy and opt-outs unchanged. Updated skills load next session; do not interrupt this one.
For user-requested updates, follow the [manual-update procedure](references/skill-updates.md).
## Runtime compatibility gate
Only on the retrieval path, resolve the executable using the `qodo: command not found` fallback below. Before any other
Qodo command, run `<qodo> --version` exactly as shown, with no provenance flags.
This unadorned probe is intentionally compatible with older Qodo CLIs. This skill requires Qodo
CLI **0.1.0-next.37 or newer**.
If the version is older or cannot be parsed, do not run `whoami`, `login`, or a managed tool and
do not describe the failure as an authentication problem. Explain that the skill is newer than the
runtime, show `qodo update` as the update command for the runtime's already-recorded origin, and ask
once before running it. For a customer deployment, keep its organization-provided update origin;
never switch it to the public service. After an approved update, rerun the unadorned version probe
and continue only when it satisfies the minimum. If the user declines or the update fails, stop with
the current skill and user files unchanged.
## Quick start
```
qodo --version # compatibility probe — run this FIRST
qodo read whoami --json --skill qodo-get-rules --skill-version 1.1.5 --distribution marketplace --host claude-code
qodo read rules search --query "Name: JWT Authentication Endpoint Validation
Category: Security
Content: Implementing a login endpoint that validates credentials and issues JWT tokens securely" --top-k 20 --scopes "/owner/repo/" --json
qodo read tools rules --json # exact safe flags (renders offline)
```
The newlines inside the quoted `--query` value are literal — a multi-line double-quoted
string works as-is in POSIX sh/bash/zsh and in PowerShell. Don't use Bash-only `$'…'`
quoting. (cmd.exe can't express multi-line strings — run the command from PowerShell or
bash there.)
**`qodo: command not found`?** That's PATH, not a missing install: GUI-launched agents run
shells with a minimal PATH. Retry with the absolute path `~/.qodo/bin/qodo` (or
`$QODO_HOME/bin/qodo` if set) and keep using it. Only if that file is missing too is qodo
actually not installed; tell the user to obtain a checksum-pinned installer command from
Qodo or their organization's administrator. Installers are served from https://get.qodo.ai,
but never invent a digest or pipe an installer directly into a shell.
**Sandbox auth diagnostic.** Missing credentials can mean inaccessible keychain access. When that
is plausible, request one exact read-only `qodo read whoami` retry through the host's approval
flow before recommending login. Stop on denial; that approval covers no other command. Reuse a
successful check in the same executable/workspace/deployment and execution context; request each
required host approval. Network, TLS, service, and explicit authorization failures retain their
own diagnosis, not a login recommendation or an automatic sandbox bypass.
## Preflight
1. **Reuse relevant evidence.** Reuse actual retrieved rules and their scope, not a heading or
an earlier claim that rules were loaded. If the workspace, repository, or task concern changed,
retrieve rules for the new scope. A previous empty result is reusable only for the scope checked;
a failed retrieval is not an empty result. When prior results still cover the task, skip retrieval
and apply them directly: stop Preflight here and go to Output, without any Qodo command.
Honor an explicit request to refresh.
2. **Auth and catalog — only when retrieval is needed.** Run `qodo read whoami` unless a successful check still covers this
execution context. After the sandbox diagnostic when applicable, only explicit missing credentials
call for login: preserve the organization's exact login command/endpoint, never guess or switch
a customer deployment to Cloud. `No tool catalog cached` is not proof of missing credentials;
refresh once with `qodo tools --refresh` and retry the check. Other failures retain their error
and stop this workflow. After identity succeeds, an unknown managed command permits one catalog
refresh and schema recheck. If still absent or `tool_unavailable`, report the missing capability;
do not repeat login or refresh.
3. **Repository scope** (optional, improves precision). From the repo's `origin` remote,
take the **full path after the host** and strip a `.git` suffix — `git@host:a/b` and
`https://host/a/b` both parse to `a/b`, and a deeper hosted path survives intact
(GitLab subgroups `group/subgroup/repo`, Azure DevOps `org/project/repo` — don't
collapse to two segments). Wrap as `/<path>/`. If the cwd is inside a
`modules/<name>/` subdirectory of the repo root, narrow to
`/<path>/modules/<name>/`. No remote / unparseable → **omit `--scopes` entirely**
(org-wide search still works); never pass an empty scopes value.
## Write the queries
Generate **two** structured queries — retrieval data shows a single topic query
systematically misses the cross-cutting standards rules that dominate real reviews.
Each query is a three-line block mirroring how rules are indexed:
```
Name: <concise 5-10 word title of the rule this task would trigger>
Category: <one of: Security, Correctness, Quality, Reliability, Performance, Testability, Compliance, Accessibility, Observability, Architecture>
Content: <1-2 sentences describing what should be checked or enforced; mention the tech stack when known>
```
- **Topic query** — the assignment's primary concern. Pick the category by the change's
*purpose*, not a side effect (rate limiting → Reliability, not Security); prefer Security
when it's genuinely a candidate; don't default everything to Correctness — structural
work is Architecture, style is Quality, fault tolerance is Reliability, instrumentation
is Observability.
- **Cross-cutting query** — the standards the org applies to *all* changes. Default:
`Name: Code Quality and Standards Compliance / Category: Architecture / Content: Module
directory structure, type annotations or type safety, structured logging, repository or
service layer patterns, dependency injection, and naming conventions` — adjust Content
to the repo's stack.
- **Never** pass keyword lists, flat sentences, or filler ("please", "I need to") — they
retrieve poorly against the structured index.
## Search and merge
Run `qodo read rules search` **once per query** (in parallel when you can), each with
`--top-k 20` and `--json`. Add `--scopes "$SCOPE"` only when detection produced a scope:
```
# With a detected scope:
qodo read rules search --query "$TOPIC_QUERY" --top-k 20 --scopes "$SCOPE" --json
qodo read rules search --query "$CROSS_QUERY" --top-k 20 --scopes "$SCOPE" --json
# Without a detected scope, omit both the flag and its value:
qodo read rules search --query "$TOPIC_QUERY" --top-k 20 --json
qodo read rules search --query "$CROSS_QUERY" --top-k 20 --json
```
Merge: topic results first (in order), then cross-cutting results not already present —
dedup by rule `id`. Topic rules are task-specific guidance; treat cross-cutting rules as
supplementary and deprioritize any that are semantically distant from the task.
**Low-return fallback:** topic query returns < 3 rules → re-run it once with a broadened
Content line (add adjacent concepts for the domain: e.g. auth → token validation,
credential handling, session management) before merging. An **empty merged list is a valid
outcome** — proceed without rule constraints, never treat it as an error.
**Unscoped search caveat:** when you had to omit `--scopes`, the results are org-wide —
before applying each rule, check it plausibly applies to THIS repo/stack (a rule naming a
different service, language, or framework doesn't); skip mismatches and say so rather than
imposing another repo's standards.
## Output, then apply
Use **relevant standards retrieved through Qodo → implications for this change → application
or justified deviations**. Before coding, mention Qodo naturally once as the way you retrieved
the organization's standards; the standards belong to the organization. Explain each applicable
rule in terms of the current task, preserving its name, reference, supplied severity, and every
applicable requirement when condensing the wording. Link or cite the returned reference when
available; do not invent missing identifiers or severities.
Adapt this pattern: “I loaded your team's [topic] standards through Qodo. For this change,
[rule] means [implementation choice and reason].” Use a short list for multiple rules, without
branded headings, emoji banners, slogans, footers, or repeated summary blocks. State briefly
when no standards apply; do not imply retrieval succeeded after a tool failure. Distinguish
standards **loaded** from standards **applied**; loading alone does not establish compliance.
Apply the applicable rules to the code you produce. When a rule carries a severity:
| Severity | Enforcement |
|---|---|
| **ERROR** | Must comply — non-negotiable; if you must deviate, stop and ask the user |
| **WARNING** | Comply by default; briefly explain any deliberate skip in your response |
| **RECOMMENDATION** | Apply when appropriate; mention only if it shaped a design decision |
After coding, report which rules shaped the implementation and the evidence of their application,
without repeating the entire list. Explain permitted deviations, including skipped WARNING rules,
using the user's decisions and implementation evidence; resolve ERROR conflicts through the gate
above. If none applied, say so plainly.
## Configuration
Use `--json`, the exact scopes relevant to the task, and the current CLI-provided rules schema.
Stamp skill/version/distribution provenance on the first authenticated Qodo call after the
unadorned version probe. Never install or update this optional skill implicitly with the default package.
## Error Handling
An empty result is valid. Preserve authentication, capability, validation, and rate-limit errors;
follow the bounded recovery above and continue without invented rules when retrieval cannot
safely succeed.
## Guardrails
- `rules search` is read-only; it never changes workspace state.
- Reuse rules while their retrieved scope still covers the task; an empty result is valid.
- A rate-limit error (the search is capped per organisation) → wait for the indicated
reset, or proceed without rules and say so — don't hammer retries.
- Don't fabricate rules: apply exactly what came back, cite rules by their returned name.
From qodo-ai/qodo-skills at 866d301, shown as plain text under its license: MIT (permissive). The license text is in LICENSE.
View SKILL.md on GitHub at 866d301Files
- SKILL.md13 KB · d79070c0d19c
- agents/
- openai.yaml336 B · a8d3ba196ee9
- references/
- skill-updates.md1.7 KB · 79ba59edb2c7
3 files, 15 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at 866d301More from Qodo
qodo-codebase-wisdom
The agent uses the Qodo CLI to investigate codebases, understand code history, and trace dependencies across repositories through read-only tools.
Claude Code, Codex, Cursor +3 · about 3K tokens · pinned 6 days ago
qodo-codebase-wisdom
This skill integrates the Qodo CLI to help agents understand codebases, retrieve code history, and map repository dependencies without requiring local…
Claude Code, Codex, Cursor +3 · about 3K tokens · pinned 6 days ago
qodo-codebase-wisdom
This skill gives the agent the ability to understand codebases, retrieve their change history, and map dependencies across repositories using the qodo CLI's…
Claude Code, Codex, Cursor +3 · about 3K tokens · pinned 6 days ago
qodo-codebase-wisdom
Uses the qodo CLI to investigate how code works, trace historical changes, and understand dependencies across repositories.
Claude Code, Codex, Cursor +3 · about 3K tokens · pinned 6 days ago
qodo-codebase-wisdom
This skill uses the Qodo CLI's read-only tools to help understand codebases, retrieve historical changes, and trace dependencies across repositories.
Claude Code, Codex, Cursor +3 · about 3K tokens · pinned 6 days ago
qodo-get-rules
The skill retrieves organizational coding rules from Qodo using semantic queries tailored to the current task, then applies those rules during implementation…
Claude Code, Codex, Cursor +3 · about 3K tokens · pinned 6 days ago
Related in Coding workflow
planning
This skill orchestrates multi-workflow projects with dependencies and shared data tables by creating a task graph in the orchestrator via the create-tasks tool.
by n8nOfficial publisher
Claude Code, Codex, Cursor +3 · about 2.4K tokens · pinned 6 days ago
progressive-building
This skill implements incremental workflow development for agents building or extending workflows.
by n8nOfficial publisher
Claude Code, Codex, Cursor +3 · about 1.4K tokens · pinned 6 days ago
workflow-builder
Builds and edits n8n workflows using the TypeScript SDK.
by n8nOfficial publisher
Claude Code, Codex, Cursor +3 · about 14.2K tokens · pinned 6 days ago
remotion-upgrade
This skill upgrades Remotion and its related packages to the latest stable version.
by RemotionOfficial publisher
Claude Code, Codex, Cursor +3 · about 460 tokens · pinned 6 days ago
remotion-upgrade
This skill upgrades Remotion and related packages across a project, automatically detecting the package manager and workspaces.
by RemotionOfficial publisher
Claude Code, Codex, Cursor +3 · about 460 tokens · pinned 6 days ago
final-release-review
Audits Python SDK release candidates or plans against the previous release, comparing diffs for regressions, API changes, and version compatibility.
by OpenAIOfficial publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 5.4K tokens · pinned 6 days ago