Skip to content

[feat] New skill: language-sql #94

@lugassawan

Description

@lugassawan

Goal

A language-sql skill encodes SQL query and schema engineering idioms so agents give principled guidance when working with relational databases.

Motivation

SQL is orthogonal to all other language skills — it appears inside Python, Go, TypeScript, and Java codebases alike. No language skill currently covers SQL. Agents default to training-data patterns when evaluating query efficiency, transaction isolation, or window function usage.

Surface

  • Skill — language-*

Sketch (optional)

File: skills/language-sql/SKILL.md

Key topics:

  • Query optimization fundamentals (index usage, avoid SELECT *, predicate pushdown)
  • EXPLAIN/EXPLAIN ANALYZE reading
  • Schema design: normalization, foreign keys, constraint placement
  • Transaction isolation levels and their practical implications
  • Deadlock avoidance patterns
  • Window functions: ROW_NUMBER, RANK, LAG, LEAD — when and how
  • CTEs vs subqueries: readability and performance tradeoffs
  • Pagination patterns (keyset vs offset)

Acceptance (optional)

  • skills/language-sql/SKILL.md exists with valid frontmatter
  • scripts/validate.py passes

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions