sql-correlated-subquery-rewrite
100 / 100 · Low risk
Fine to try.
Optimize a SQL query over a large unindexed table by collapsing repeated correlated subqueries or per-group "top-N" lookups into a single computation, then verify output equivalence. Trigger when the task needs one rewritten SQL deliverable and schema inspection shows no indexes.
What this skill can do
We found nothing in the files we read that matches our rules. That does not prove the skill is safe: see the limits of static scanning.
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'sql-correlated-subquery-rewrite' ] || [ -L ~/.agents/skills/'sql-correlated-subquery-rewrite' ]; then echo 'A skill folder named sql-correlated-subquery-rewrite already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/RUC-NLPIR/FlashRSI' "$d" && git -C "$d" checkout --quiet '37837ec5052aee24a252c88fd3b10215ccb4af7d' -- 'exports/harnesses/evoharness-claude_code-terminalbench/skills/sql-correlated-subquery-rewrite' && mkdir -p ~/.agents/skills && cp -R "$d"/'exports/harnesses/evoharness-claude_code-terminalbench/skills/sql-correlated-subquery-rewrite' ~/.agents/skills/'sql-correlated-subquery-rewrite' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'sql-correlated-subquery-rewrite' ~/.claude/skills/'sql-correlated-subquery-rewrite' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
[](https://zalavijaysinh.github.io/skilltrust/repos/RUC-NLPIR/FlashRSI/)
Score history
| Date | Version | Score |
|---|---|---|
| 2026-11-14 | 37837ec | 100 |
| 2026-11-09 | 0ce41eb | 100 |