qodo-get-rules
Loads coding rules from Qodo most relevant to the current coding task by generating a semantic search query from the assignment.
Skill by Atul-Chahar
Chalk Labs
Need help deploying qodo-get-rules?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/atul-chahar-qodo-get-rules
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: writing, productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/qodo-get-rules
Tools it pre-approves 1
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
Bash
What's inside
- Skill name
qodo-get-rules- Description
- Loads coding rules from Qodo most relevant to the current coding task by generating a semantic search query from the assignment. Use when Qodo is configured and the user asks to write, edit, refactor, or review code, or when starting implementation planning. Skip if rules are already loaded.
- License
- MIT
- Allowed tools
- Bash
- Instructions
- 191 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Pre-approves any shell command
Files (6)
- SKILL.md
- output-format.md · references/
- query-generation.md · references/
- repository-scope.md · references/
- search-endpoint.md · references/
- scope-parse.sh · tests/
SKILL.md (first lines)
# Get Qodo Rules Skill
## Description
Fetches the most relevant Qodo coding rules for the current coding task. Generates a focused semantic search query from the coding assignment and calls `POST /rules/search` to retrieve only the rules most relevant to the task at hand, ranked by relevance.
**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 and Detect Repository Scope
Check that the current directory is inside a git repository. If not, inform the user that a git repository is required and exit gracefully.
After confirming a git repository exists, extract the repository scope to pass to the search API. Scope narrows results to rules relevant to this specific repository.
Use only POSIX shell here — no `sed`, no `grep`. Parameter expansion and `case` behave
identically on macOS (BSD) and Linux (GNU); `sed` does not (see
[repository scope detection](references/repository-scope.md#portability)).
```bash
# 1. Confirm inside a git repository
git rev-parse --is-inside-work-tree
# 2. Get the remote URL
REMOTE_URL=$(git remote get-url origin 2>/dev/null)
# 3. Parse the URL into a scope path
SCOPE=""
if [ -n "$REMOTE_URL" ]; then
# Trailing slash first, then .git — the other order leaves ".git" on
# "https://host/org/repo.git/", because %.git only strips an exact suffix.
REPO_PATH="${REMOTE_URL%/}"
REPO_PATH="${REPO_PATH%.git}"
case "$REPO_PATH" in
# local clone — no rules are scoped to a filesystem path
file://*)
REPO_PATH=""
;;
# scheme://[user[:pass]@]host/path — https, http, ssh, git
*://*)
REPO_PATH="${REPO_PATH#*://}" # drop scheme
REPO_PATH="${REPO_PATH#*/}" # drop [userinfo@]host
;;
# scp-like: [user@]host:path — git@github.com:org/repo
*:*/*)
REPO_PATH="${REPO_PATH#*:}"
;;
*)
REPO_PATH=""
;;
esac
# Require at least org/repo; reject absolute and Windows paths
case "$REPO_PATH" in
/*|*\\*) REPO_PATH="" ;;
*/*) ;;
*) REPO_PATH="" ;;
esac
if [ -n "$REPO_PATH" ]; then
# 4. Detect module-level scope: is cwd inside modules/<name>/ ?
# --show-prefix is the cwd relative to the repo root, "" at the root,
# with a trailing slash. No realpath, no python3.
PREFIX=$(git rev-parse --show-prefix)
MODULE=""
case "$PREFIX" in
modules/*/*)
MODULE="${PREFIX#modules/}"
MODULE="${MODULE%%/*}"
;;
esac
if [ -n "$MODULE" ]; then
SCOPE="/${REPO_PATH}/modules/${MODULE}/"
else
SCOPE="/${REPO_PATH}/"
fi
fi
fi
# If SCOPE is empty (no remote, unparseable URL), proceed without scope — graceful degradation
```
Pass `SCOPE` in the search request body if set (see Step 5). If `SCOPE` is empty or unset, omit the `scopes` field entirely and proceed — org-wide search still returns relevant results.
See [repository scope detection](references/repository-scope.md) for URL format details and degradation behavior.
### 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). Environment variable `QODO_API_KEY` takes precedence. If not found, inform the user that an API key is required and provide setup instructions, then exit gracefully.
- **Environment name**: Read from `~/.qodo/config.json` (`ENVIRONMENT_NAME` field), with `QODO_ENVIRONMENT_NAME` environment variable taking precedence. If not found or empty, use production.
- **API URL override** (optional): Read from `~/.qodo/config.json` (`QODO_API_URL` field). If present, use `{QODO_API_URL}/rules/v1` as the API base URL. If absent, the `ENVIRONMENT_NAME`-based URL is used.
- **Request ID**: Generate a UUID (e.g. `python3 -c "import uuid; print(uuid.uuid4())"`) to use as `request-id` for all API calls in this invocation.
Example config parsing:
```bash
API_KEY=$(python3 -c "import json,os; c=json.load(open(os.path.expanduser('~/.qodo/config.json'))); print(c['API_KEY'])")
ENV_NAME=$(python3 -c "import json,os; c=json.load(open(os.path.expanduser('~/.qodo/config.json'))); print(c.get('ENVIRONMENT_NAME',''))")
QODO_API_URL=$(python3 -c "import json,os; c=json.load(open(os.path.expanduser('~/.qodo/config.json'))); print(c.get('QODO_API_URL',''))")
REQUEST_ID=$(uuidgen || python3 -c "import uuid; print(uuid.uuid4())")
# Determine API_URL: QODO_API_URL takes precedence over ENVIRONMENT_NAME
if [ -n "$QODO_API_URL" ]; then
API_URL="${QODO_API_URL}/rules/v1"
elif [ -z "$ENV_NAME" ]; then
API_URL="https://qodo-platform.qodo.ai/rules/v1"
else
API_URL="https://qodo-platform.${ENV_NAME}.qodo.ai/rules/v1"
fi
```From Atul-Chahar/Foreman, MIT.
More from Atul-Chahar/Foreman
- 0.518score
reviewer
Atul-Chahar
Review every swarm diff before a human sees it — security checklist first, spec fidelity second.
SkillBFreshness: BClaude Code +9 - 0.518score
implementer
Atul-Chahar
Implement exactly one task spec — minimal diff, tests first, stay inside the declared scope.
SkillBFreshness: BClaude Code +9 - 0.518score
security-review
Atul-Chahar
A precision-first checklist applied to every diff — secrets, dynamic execution, injection, deserialization, authz.
SkillBFreshness: BClaude Code +9 - 0.518score
planner
Atul-Chahar
Turn rough backlog issues into structured, conflict-aware task specs before anything is dispatched.
SkillBFreshness: BClaude Code +9 - 0.516score
context-budget
Atul-Chahar
Token discipline for subagents — ask for listed context only, summarize instead of dumping, never request the repo tree.
SkillBFreshness: BClaude Code +9 - 0.513score
tdd-workflow
Atul-Chahar
Red, green, refactor — the failing test comes first and the spec's test command is the arbiter.
SkillBFreshness: BClaude Code +9 - 0.513score
build-fix
Atul-Chahar
Diagnose from the failing output, isolate, apply the minimal fix, re-run — never widen the blast radius.
SkillBFreshness: BClaude Code +9 - 0.513score
reconciler
Atul-Chahar
Watch the health of main, dispatch bounded fix agents when the build breaks, escalate instead of looping.
SkillBFreshness: BClaude Code +9 - 0.513score
search-first
Atul-Chahar
Read what exists before writing anything new — extend, don't duplicate.
SkillBFreshness: BClaude Code +9 - 0.499score
qodo-pr-resolver
Atul-Chahar
Use when the user wants to review Qodo PR feedback or fix code review comments.
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 26, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Atul-Chahar/Foreman
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Atul-Chahar
- 0.518score
reviewer
Atul-Chahar
Review every swarm diff before a human sees it — security checklist first, spec fidelity second.
SkillBFreshness: BClaude Code +9 - 0.518score
implementer
Atul-Chahar
Implement exactly one task spec — minimal diff, tests first, stay inside the declared scope.
SkillBFreshness: BClaude Code +9 - 0.518score
security-review
Atul-Chahar
A precision-first checklist applied to every diff — secrets, dynamic execution, injection, deserialization, authz.
SkillBFreshness: BClaude Code +9 - 0.518score
planner
Atul-Chahar
Turn rough backlog issues into structured, conflict-aware task specs before anything is dispatched.
SkillBFreshness: BClaude Code +9 - 0.516score
context-budget
Atul-Chahar
Token discipline for subagents — ask for listed context only, summarize instead of dumping, never request the repo tree.
SkillBFreshness: BClaude Code +9 - 0.513score
tdd-workflow
Atul-Chahar
Red, green, refactor — the failing test comes first and the spec's test command is the arbiter.
SkillBFreshness: BClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get qodo-get-rules running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
qodo-get-rules skill. Agent Mart. https://agentmart.dev/skills/atul-chahar-qodo-get-rules (last updated 2026-10-24)