Repository navigation
Fix postgresql-optimization and prompt-optimizer skill content errors - #6613
milddrunker wants to merge 3 commits into
Conversation
…EXPLAIN ANALYZE note pg_stat_statements renamed total_time/mean_time to total_exec_time/mean_exec_time in PostgreSQL 13. Remove stray replacement characters from three headings and note that EXPLAIN ANALYZE executes the statement.
The output format section forced a generic template that contradicted the workflow and examples, and two different closing lines were given. Describe the output in line with the workflow and use the closing line from the examples.
🚦 Submission status: 👀 Ready for reviewRisk tier: Why this tier
Automated checks
Review
Commands
Updated for |
🔒 PR Risk Scan ResultsScanned 4 changed file(s).
✅ No matching risk patterns were detected in changed files.
|
There was a problem hiding this comment.
🟡 Changes recommended
The change still has an active moderate issue because the bundled skill update is not reflected in the distributing plugin and marketplace versions.
1 open issue
What changed in this PR
This PR corrects version-specific PostgreSQL guidance and resolves contradictory output instructions in two existing skills, improving their accuracy, consistency, and safety without changing skill metadata.
Changes:
- Updated
pg_stat_statementsexamples for PostgreSQL 13+ and documented PostgreSQL 12-and-earlier column names. - Clarified that
EXPLAIN ANALYZEexecutes statements and added transaction guidance for data-modifying queries. - Removed corrupted PostgreSQL heading characters.
- Aligned the prompt-optimizer output format and standardized its required closing instruction.
| File | Description |
|---|---|
| skills/prompt-optimizer/SKILL.md | Aligns the output-format guidance and closing-line instructions with the workflow and examples. |
| skills/postgresql-optimization/SKILL.md | Corrects PostgreSQL version compatibility, heading encoding, and EXPLAIN ANALYZE safety guidance. |
Review effort: Lite (adaptive)
| -- Identify slow queries from pg_stat_statements | ||
| SELECT query, calls, total_time, mean_time, rows, | ||
| -- (PostgreSQL 13+; on 12 and earlier the columns are total_time and mean_time) | ||
| SELECT query, calls, total_exec_time, mean_exec_time, rows, |
🔍 Vally Lint Results✅ All checks passed
Summary
Full linter output |

Pull Request Checklist
npm startand verified thatREADME.mdis up to date.mainbranch for this pull request.Description
Content fixes to two existing skills. Only the body of each
SKILL.mdchanges. Thenameanddescriptionfrontmatter fields are untouched, so the generated tables indocs/README.skills.mdare not affected.postgresql-optimization: thepg_stat_statementsqueries fail on PostgreSQL 13 and later, three headings contain corrupted characters, and theEXPLAIN ANALYZEexample does not say that it runs the statement.prompt-optimizer: the "Output format" section contradicts the rest of the skill, and two different closing lines are given.skills/postgresql-optimization/SKILL.mdpg_stat_statementsqueries select and order bytotal_timeandmean_time. These columns were renamed in PostgreSQL 13, so the queries error on current versions.total_exec_timeandmean_exec_time, with a comment that PostgreSQL 12 and earlier use the old names.skills/postgresql-optimization/SKILL.mdskills/postgresql-optimization/SKILL.mdEXPLAIN (ANALYZE, BUFFERS)example and the optimization tip do not mention thatANALYZEexecutes the statement, which matters for INSERT, UPDATE and DELETE.BEGIN ... ROLLBACK.skills/prompt-optimizer/SKILL.mdskills/prompt-optimizer/SKILL.mdType of Contribution
Additional Notes
${selection}) are unchanged.By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.