·sql-patterns
</>

sql-patterns

0xdarkmatter/claude-mods

常见 SQL 模式、CTE、窗口函数和索引策略的快速参考。触发器:sql 模式、cte 示例、窗口函数、sql 连接、索引策略、分页 sql。

14安装·0热度·@0xdarkmatter

安装

$npx skills add https://github.com/0xdarkmatter/claude-mods --skill sql-patterns

SKILL.md

| ROWNUMBER() | Unique sequential numbering | | RANK() | Rank with gaps (1, 2, 2, 4) | | DENSERANK() | Rank without gaps (1, 2, 2, 3) | | LAG(col, n) | Previous row value | | LEAD(col, n) | Next row value | | SUM() OVER | Running total | | AVG() OVER | Moving average |

| INNER JOIN | Only matching rows | | LEFT JOIN | All left + matching right | | RIGHT JOIN | All right + matching left | | FULL JOIN | All rows, NULL where no match |

| B-tree | Range queries, ORDER BY | | Hash | Exact equality only | | GIN | Arrays, JSONB, full-text | | Covering | Avoid table lookup |

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/0xdarkmatter/claude-mods --skill sql-patterns
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 sql-patterns?

常见 SQL 模式、CTE、窗口函数和索引策略的快速参考。触发器:sql 模式、cte 示例、窗口函数、sql 连接、索引策略、分页 sql。 来源:0xdarkmatter/claude-mods。

如何安装 sql-patterns?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/0xdarkmatter/claude-mods --skill sql-patterns 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/0xdarkmatter/claude-mods