postgresql-code-review
仓库创建 2025年6月14日最近提交 1 个月前SkillHot 收录 22 天前
▸ 精选理由
定位 PostgreSQL 特有反模式和安全/性能改进点。
这个 Skill 做什么
针对 PostgreSQL 提供专门的代码审查建议与最佳实践。
对 PostgreSQL 的 SQL、模式和函数做专门的代码审查,指出性能陷阱、反模式以及安全/设计改进建议。在做 PR review、优化查询或设计 schema 时会用到,特别关注 JSONB、数组、自定义类型、函数优化和 Row Level Security (RLS) 等 Postgres 特有问题。优势是在数据库特性层面给出实操性强的改进方案。
▸ 展开 SKILL.md 英文原文
PostgreSQL-specific code review assistant focusing on PostgreSQL best practices, anti-patterns, and unique quality standards. Covers JSONB operations, array usage, custom types, schema design, function optimization, and PostgreSQL-exclusive security features like Row Level Security (RLS).
313
Stars
56
Forks
20
仓库内 Skill
+5
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/syahiidkamil/Software-Engineer-AI-Agent-Atlas/main/.claude/skills/postgresql-code-review/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/syahiidkamil/Software-Engineer-AI-Agent-Atlas/main/.claude/skills/postgresql-code-review/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# PostgreSQL Code Review Assistant
Expert PostgreSQL code review for ${selection} (or entire project if no selection). Focus on PostgreSQL-specific best practices, anti-patterns, and quality standards that are unique to PostgreSQL.
## 🎯 PostgreSQL-Specific Review Areas
### JSONB Best Practices
```sql
-- ❌ BAD: Inefficient JSONB usage
SELECT * FROM orders WHERE data->>'status' = 'shipped'; -- No index support
-- ✅ GOOD: Indexable JSONB queries
CREATE INDEX idx_orders_status ON orders USING gin((data->'status'));
SELECT * FROM orders WHERE data @> '{"status": "shipped"}';
-- ❌ BAD: Deep nesting without consideration
UPDATE orders SET data = data || '{"shipping":{"tracking":{"number":"12via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有