sql-check
Analyze SQL queries for performance and security issues
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- sql-check
- description
- Analyze SQL queries for performance and security issues
02 资源文件 1
- 参考文档_meta.json467 B
03 SKILL.md 正文
SQL Checker
Paste your SQL, get performance tips and security warnings. Catches N+1s and injection risks.
Quick Start
npx ai-sql-check "SELECT * FROM users WHERE name LIKE '%john%'"
What It Does
- Identifies performance issues
- Flags SQL injection risks
- Suggests missing indexes
- Warns about N+1 queries
Usage Examples
# Check a query
npx ai-sql-check "SELECT * FROM orders WHERE status = 'pending'"
# Check from file
npx ai-sql-check --file ./queries/report.sql
# With schema for better analysis
npx ai-sql-check --file query.sql --schema ./schema.sql
Issues It Catches
- SELECT * anti-pattern
- Missing WHERE clause
- Unindexed columns in WHERE
- LIKE with leading wildcard
- Cartesian joins
- SQL injection patterns
Output Example
⚠️ Performance Issues:
- SELECT * returns unnecessary columns
- LIKE '%john%' can't use index
? Security Issues:
- None detected
? Suggestions:
- Add index on users(name)
- Select only needed columns
Requirements
Node.js 18+. OPENAI_API_KEY required.
License
MIT. Free forever.
Built by LXGIC Studios
- GitHub: github.com/lxgicstudios/ai-sql-check
- Twitter: @lxgicstudios
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.