Review Sql
CheckedProvides code review guidance and assistance for working with databases and data persistence.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add nesnilnehc/ai-cortex --skill review-sql -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
nesnilnehc
Taken from the source listing. We haven't verified who controls this account.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
This skill passed all 6 checks. We read its files at one commit and looked for the things that make a skill dangerous to run — not for whether it works.
Declares what it does: passed
SKILL.md parses and declares a name and a description.
SKILL.md exists, its frontmatter parses, and it declares a name and a description.
No undeclared network calls: passed
Makes no network calls.
Every host the skill dials — from its scripts, its config endpoints or the commands it tells the agent to run — is either well-known package and API infrastructure or declared in its own frontmatter. Links in documentation are not counted.
No obfuscated payloads: passed
No encoded or obfuscated payloads.
No base64, hex or compressed blob is decoded and then executed, and no encoded shell commands.
No credential access: passed
Reads no keys, tokens, keychains or credential files.
Neither the code nor the SKILL.md instructions read SSH keys, cloud credentials, keychains, token stores, browser cookie databases or dotfiles that hold secrets.
No pipe-to-shell installers: passed
No pipe-to-shell or download-and-run installers.
No `curl … | sh` pattern, in the code or in the instructions, that runs code fetched at run time.
Pinned to a commit: passed
Scanned nesnilnehc/ai-cortex at 3d3325ab58.
The exact upstream commit SHA that was scanned is recorded, so the result refers to specific bytes.
- Commit
- 3d3325ab58
- Manifest
- skills/review-sql/SKILL.md
- Scanned
- 2 files, 200 lines
About this skill
What it does
The review-sql skill allows AI agents to analyze and critique SQL queries. It can identify potential errors, suggest improvements for efficiency or readability, and explain the query's logic in plain English. This skill is designed to help users understand complex SQL code and ensure its correctness before execution.
When to use it
- Debugging: You have a SQL query that isn’t returning the expected results and need assistance identifying the issue.
- Optimization: You want to improve the performance of an existing SQL query, but aren't sure where to start.
- Learning: You are new to SQL or trying to understand a complex query written by someone else.
- Code Review: You need a quick assessment of a colleague’s SQL code for potential errors or inefficiencies.
Key capabilities
- Error identification in SQL queries
- Suggestion of improvements for efficiency and readability
- Explanation of SQL query logic in plain English
Example prompts
- "Review this SQL query:
SELECT * FROM users WHERE age > 30." - "Can you suggest ways to optimize this query:
SELECT product_name, price FROM products ORDER BY price DESC LIMIT 10?" - "Explain what this SQL query does:
SELECT COUNT(*) FROM orders WHERE order_date BETWEEN '2023-01-01' AND '2023-12-31'."
Tips & gotchas
The skill requires a valid SQL query as input. Complex or very large queries may take longer to process, and the quality of feedback depends on the clarity and correctness of the original SQL code.