SQL 代码审查
原名:sql-code-review
检查 MySQL、PostgreSQL、SQL Server 等 SQL 的安全、正确性和可维护性。
中文 Skills 技能说明
适合合并数据库查询或迁移前使用。重点检查参数化、权限、事务、空值和跨数据库差异;默认只读分析,执行 SQL、修改结构或数据前必须备份并确认目标环境。
上游能力依据
上游原始适用说明:Universal SQL code review assistant that performs comprehensive security, maintainability, and code quality analysis across all SQL databases (MySQL, PostgreSQL, SQL Server, Oracle). Focuses on SQL injection prevention, access control, code standards, and anti-pattern detection. Complements SQL optimization prompt for complete development coverage.
上游 SKILL.md 主要章节(保留原文标题):
- 🔒 Security Analysis
- SQL Injection Prevention
- Access Control & Permissions
- Data Protection
- ⚡ Performance Optimization
- Query Structure Analysis
- Index Strategy Review
- Join Optimization
- Aggregate and Window Functions
- 🛠️ Code Quality & Maintainability
使用边界
先确认数据口径、只读或写入权限以及备份方案。查询结果需要说明范围,任何结构或数据变更都应先预览并人工确认。
作者、翻译与许可证
- 原作者
- GitHub, Inc. 与 awesome-copilot contributors
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://github.com/github/awesome-copilot/tree/3f0bba475ec40b9680e1d0311b9caffeec5ad4c3/skills/sql-code-review
适用范围
平台:linux、macos、windows;标签:数据与数据库、SQL 代码审查
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。