Install any skill in seconds. Free to start, no credit card required.
Get Started Free →microck/PostgreSQL Syntax Reference
Consult PostgreSQL's parser and grammar (gram.y) to understand SQL syntax, DDL statement structure, and parsing rules when implementing pgschema features
Passed 22 of 23 test cases with the skill, and 20 of 23 without it.
2 fixed20 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
When generating DDL for computed generated columns in PostgreSQL, developers are unsure whether `STORED` or `VIRTUAL` keywords are required. What does the PostgreSQL grammar rule for generated column constraints mandate?
| Checked | Without skill | With skill |
|---|---|---|
| States that GeneratedConstraintElem in gram.y requires the STORED keyword. | Missed | Passed |
The instructions your model reads when the skill loads.
Use this skill when you need to understand PostgreSQL's SQL syntax, DDL statement structure, or how PostgreSQL parses specific SQL constructs. This is essential for correctly parsing SQL files and generating valid DDL in pgschema.
Invoke this skill when:
ir/parser.gointernal/diff/*.goMain parser directory: https://github.com/postgres/postgres/blob/master/src/backend/parser/
Key files to reference:
gram.y - Main grammar file - Yacc/Bison grammar defining PostgreSQL SQL syntaxscan.l - Lexical scanner (Flex/Lex) - tokenization ruleskeywords.c - Reserved and non-reserved keywordsparse_clause.c - Parsing of clauses (WHERE, GROUP BY, ORDER BY, etc.)parse_expr.c - Expression parsing (operators, function calls, etc.)parse_type.c - Type name parsing and resolutionparse_relation.c - Table and relation parsingparse_target.c - Target list parsing (SELECT list, etc.)parse_func.c - Function call parsingparse_utilcmd.c - Utility commands (DDL statements like CREATE, ALTER, DROP)analyze.c - Post-parse analysisparse_node.c - Parse node creation utilitiestest cases passed, vs 20 / 23 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.