SeekDB Code Review
oceanbase/seekdb
Reviews seekdb pull requests and diffs for real defects in correctness, resources, concurrency, security and tests, reporting only Blocker or Major findings.
Inspect Rust changes for SQLx queries. An agent skill from macro-inc/macro.
$ npx skills add macro-inc/macro --skill sqlx-query-validator -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install macro-inc/macro sqlx-query-validator --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/macro-inc/macro.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.pi/skills/sqlx-query-validator .claude/skills/sqlx-query-validator && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "sqlx-query-validator" agent skill from https://github.com/macro-inc/macro/tree/main/.pi/skills/sqlx-query-validator into .claude/skills/sqlx-query-validator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sqlx-query-validator", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/macro-inc/macro/tree/main/.pi/skills/sqlx-query-validatorType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add macro-inc/macro --skill sqlx-query-validator -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install macro-inc/macro sqlx-query-validator --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/macro-inc/macro.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.pi/skills/sqlx-query-validator .agents/skills/sqlx-query-validator && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "sqlx-query-validator" agent skill from https://github.com/macro-inc/macro/tree/main/.pi/skills/sqlx-query-validator into .agents/skills/sqlx-query-validator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sqlx-query-validator", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add macro-inc/macro --skill sqlx-query-validator -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install macro-inc/macro sqlx-query-validator --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/macro-inc/macro.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.pi/skills/sqlx-query-validator .cursor/skills/sqlx-query-validator && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "sqlx-query-validator" agent skill from https://github.com/macro-inc/macro/tree/main/.pi/skills/sqlx-query-validator into .cursor/skills/sqlx-query-validator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sqlx-query-validator", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/macro-inc/macro.git --path .pi/skills/sqlx-query-validator--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add macro-inc/macro --skill sqlx-query-validator -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install macro-inc/macro sqlx-query-validator --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/macro-inc/macro.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.pi/skills/sqlx-query-validator .gemini/skills/sqlx-query-validator && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "sqlx-query-validator" agent skill from https://github.com/macro-inc/macro/tree/main/.pi/skills/sqlx-query-validator into .gemini/skills/sqlx-query-validator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sqlx-query-validator", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install macro-inc/macro sqlx-query-validatorInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add macro-inc/macro --skill sqlx-query-validator -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/macro-inc/macro.git skills-src && mkdir -p .github/skills && cp -r skills-src/.pi/skills/sqlx-query-validator .github/skills/sqlx-query-validator && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "sqlx-query-validator" agent skill from https://github.com/macro-inc/macro/tree/main/.pi/skills/sqlx-query-validator into .github/skills/sqlx-query-validator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sqlx-query-validator", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add macro-inc/macro --skill sqlx-query-validator -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install macro-inc/macro sqlx-query-validator --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/macro-inc/macro.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.pi/skills/sqlx-query-validator .opencode/skills/sqlx-query-validator && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "sqlx-query-validator" agent skill from https://github.com/macro-inc/macro/tree/main/.pi/skills/sqlx-query-validator into .opencode/skills/sqlx-query-validator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sqlx-query-validator", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
sqlx-query-validatorInspect Rust changes for SQLx queries. An agent skill from macro-inc/macro.
Sqlx Query Validator is an agent skill from macro-inc/macro. Inspect Rust changes for SQLx queries. Use after modifying Rust code that adds or changes SQLx queries to ensure compile-time SQLx macros are used, run just preparedb for offline query cache, and review queries for performance and security issues.
Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Business, Finance & HR. It works with Rust and SQL. The repository describes itself as: Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory. The licence is AGPL-3.0.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 49418e7. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
BashReadEditGlobGrepFrom allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
justFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Sqlx Query Validator loads about 1.1k tokens when it runs. Until then it costs about 68 tokens; SKILL.md has 536 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Bash, Read, Edit, Glob, GrepAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from macro-inc/macro at commit 49418e7, republished under its AGPL-3.0 licence (© macro-inc). 536 words, ~1,105 tokens.
.claude/skills/sqlx-query-validator/SKILL.md (or your agent's skills folder).Use this skill after substantial Rust changes that add, remove, or modify SQLx queries.
This is a focused review pass, not something to run after every edit. Batch related Rust changes first, then validate the changed queries before handing the task back to the user.
From the repository root, identify changed Rust files using the repository's VCS:
If a .jj directory exists at the repository root, use Jujutsu:
jj diff --name-onlyOtherwise, use Git:
git diff --name-onlyInspect changed .rs files for SQLx usage, including:
sqlx::querysqlx::query_assqlx::query_scalarsqlx::query_filequery(...), query_as(...), query_scalar(...), or query_file(...)sqlx::query!, sqlx::query_as!, sqlx::query_scalar!, and sqlx::query_file!If no SQLx queries were changed, say so in the final response and do not run just prepare_db unless the user explicitly asked for it.
Prefer compile-time checked SQLx macros for changed queries:
sqlx::query!sqlx::query_as!sqlx::query_scalar!sqlx::query_file!Flag changed code that calls SQLx query functions directly, such as:
sqlx::query("SELECT ...")
sqlx::query_as::<_, MyType>("SELECT ...")
sqlx::query_scalar("SELECT ...")Replace direct function calls with the equivalent macro whenever the SQL text is static enough for SQLx to check at compile time.
Only allow direct SQLx query functions when the SQL must be dynamically assembled and cannot reasonably be expressed with a macro. In that case:
.bind(...); never interpolate user-controlled values into SQL strings.When SQLx queries were changed, run this from the repository root:
just prepare_dbIf it fails, inspect the error. Fix in-scope query/cache issues and rerun just prepare_db. If it still fails for environmental reasons, stop and report the failure clearly.
For each changed query, inspect the SQL and surrounding code for likely performance problems:
LIMIT, pagination, or keyset pagination where applicable.SELECT * in production queries; select only needed columns.LIKE / ILIKE searches, broad JSON scans, or functions on indexed columns that may prevent index use.For each changed query, inspect for security issues:
format!, concatenation, or raw user input in SQL text.DELETE, UPDATE, INSERT ... ON CONFLICT) and ensure predicates are correctly scoped.Briefly summarize:
just prepare_db passed, failed, or was skipped because no SQLx queries changed.© macro-inc, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .pi/skills/sqlx-query-validator of macro-inc/macro.
Open the folder on GitHubat commit 49418e7
Sqlx Query Validator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Sqlx Query Validator this skillmacro-inc/macro | 4.6k | — | ~1.1k | Automated safety check: Notes | AGPL-3.0 | |
| SeekDB Code Reviewoceanbase/seekdb | 3.1k | — | ~2.1k | Automated safety check: Pass | Apache-2.0 | |
| Resolve PR Reviewshencangsheng/easydb_app | 590 | — | ~2.4k | Automated safety check: Pass | MIT | |
| Coding Agentmastra-ai/mastra | 29k | — | ~2.3k | Automated safety check: Pass | Custom licence | |
| Rust No Unwrapshencangsheng/easydb_app | 590 | — | ~802 | Automated safety check: Pass | MIT | |
| Webapp Buildersidequery/sidemantic | 129 | — | ~5.5k | Automated safety check: Pass | AGPL-3.0 |
oceanbase/seekdb
Reviews seekdb pull requests and diffs for real defects in correctness, resources, concurrency, security and tests, reporting only Blocker or Major findings.
shencangsheng/easydb_app
Resolve pull request code review comments end-to-end. An agent skill from shencangsheng/easydb_app.
mastra-ai/mastra
Authoring playbook for building agents that write, edit, review, or refactor code.
shencangsheng/easydb_app
Enforces strict avoidance of unwrap() in Rust code. An agent skill from shencangsheng/easydb_app.
sidequery/sidemantic
Build interactive analytics webapps, demos, dashboards, or embedded app surfaces from Sidemantic semantic models using copyable component primitives and deterministic query inspection.
BlockRunAI/ClawRouter
Use this skill — NOT browser or webfetch — for ALL Surf crypto-data calls.
macro-inc/macro
Interact with the Mintlify REST API to manage deployments, trigger builds, and query documentation site metadata programmatically.
macro-inc/macro
Add or change an in-app feature tour (a view's guided flyover) in the web app.
macro-inc/macro
Define a frontend feature flag with defineFlag and wire its readers.
macro-inc/macro
Run the Macro app on Cursor Cloud and pick up edits. An agent skill from macro-inc/macro.
macro-inc/macro
Wrap a new backend endpoint in the TypeScript SDK (packages/sdk), or record it as skipped.
macro-inc/macro
Enforce hexagonal architecture in the Rust backend. An agent skill from macro-inc/macro.
Categories
Inspect Rust changes for SQLx queries. An agent skill from macro-inc/macro. Sqlx Query Validator is an agent skill from macro-inc/macro. Inspect Rust changes for SQLx queries.
Sqlx Query Validator fits situations like: business, Finance & HR work in your project.
Run `npx skills add macro-inc/macro --skill sqlx-query-validator -a claude-code`. Or copy the skill folder (.pi/skills/sqlx-query-validator in macro-inc/macro) into .claude/skills/sqlx-query-validator in your project. Claude Code loads it when a task matches its description.
Run `npx skills add macro-inc/macro --skill sqlx-query-validator -a codex`. Or copy the skill folder (.pi/skills/sqlx-query-validator in macro-inc/macro) into .agents/skills/sqlx-query-validator in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add macro-inc/macro --skill sqlx-query-validator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sqlx-query-validator, .gemini/skills/sqlx-query-validator, .github/skills/sqlx-query-validator and .opencode/skills/sqlx-query-validator in your project.
Going by SKILL.md and its folder, Sqlx Query Validator needs the command-line tools its instructions call (just). Its frontmatter pre-approves these tools: Bash, Read, Edit, Glob, Grep.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Sqlx Query Validator is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.1k tokens (SKILL.md is roughly 4.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Sqlx Query Validator: SeekDB Code Review (oceanbase/seekdb, 3.1k stars), Resolve PR Review (shencangsheng/easydb_app, 590 stars), Coding Agent (mastra-ai/mastra, 29k stars) and Rust No Unwrap (shencangsheng/easydb_app, 590 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
macro-inc (a GitHub organization) maintains it in macro-inc/macro, which has 4,590 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 8, 2026.
Source: macro-inc/macro on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.