koriym/koriym.sqlquality/sql-params-generate
Claude Code and agent skill by koriym/koriym.sqlquality
- community
Checking that the SKILL.md file is still in the repository.
Write the parameter file sql-quality needs for SQL files with :name placeholders, using values that exist in the database. Use when sql-quality skips files with UnboundParameter, or when asked to generate SQL parameters.
Install
npx vskill@latest install koriym/koriym.sqlquality/sql-params-generateSKILL.md
SQL Parameters Generator
Give every :name placeholder of a SQL directory a value, so sql-quality can EXPLAIN the statements.
Arguments
$ARGUMENTS: the SQL directory, optionally the params file to write (default <dir>/params.json).
Steps
1. Find what is missing
Every skipped entry UnboundParameter: a, b names the parameters a file still needs. Entries for EmptyListParameter need a non-empty list. Keep the parameters an existing file already has.
2. Pick values from the data
Run these lookups against the development or test database sql-quality analyzes, never a large production one: without an index they read the whole table.
Read the statement, find the column each placeholder is compared with, and take a real value:
- Equality on a key: a value that exists, with a typical row count. MySQL estimates rows per value,
so a value much more or less frequent than usual can give a different plan; check a second value before trusting the plan or a try-index result.
- Ranges and dates: bounds inside the data.
IN (:list): a JSON array of two to five existing values.LIMIT/OFFSET: integers, not strings.LIKE: the pattern the application builds, wildcards included.- A placeholder in an expression (
price * :tax_rate) has no column to read: take the value the
application sets, from its configuration or code, and ask the user when it cannot be found.
- Personal or secret data (email, name, phone, address, account numbers, tokens): do not copy real
values into the file, which is committed. Use a made-up value of the same shape, and say in your report that a value absent from the table can get a lower row estimate than a real one.
Prefer values that return some rows: /sql-quality-fix needs rows to check a rewrite.
3. Write the file
JSON keyed by SQL file name; files without placeholders need no entry.
A PHP file returning the same array also works (--params=params.php).
4. Check
Run step 1 again with --params=<file>. No UnboundParameter or EmptyListParameter may remain. Report the other skipped entries (DDL, syntax errors) as they are.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sql-params-generate/SKILL.md
Popularity
- Repository stars
- 5
- Repository forks
- 2
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/koriym/koriym.sqlquality/sql-params-generate)