Skip to content

Fix postgresql-optimization and prompt-optimizer skill content errors - #6613

Open
milddrunker wants to merge 3 commits into
github:mainfrom
milddrunker:fix/skill-content-errors
Open

milddrunker wants to merge 3 commits into
github:mainfrom
milddrunker:fix/skill-content-errors

Conversation

@milddrunker

Copy link
Copy Markdown

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • I have read and followed the Guidance for submissions involving paid services.
  • My contribution adds a new instruction, prompt, agent, skill, workflow, or canvas extension file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, agent, skill, workflow, or canvas extension with GitHub Copilot.
  • I have run npm start and verified that README.md is up to date.
  • I am targeting the main branch for this pull request.

Description

Content fixes to two existing skills. Only the body of each SKILL.md changes. The name and description frontmatter fields are untouched, so the generated tables in docs/README.skills.md are not affected.

  • postgresql-optimization: the pg_stat_statements queries fail on PostgreSQL 13 and later, three headings contain corrupted characters, and the EXPLAIN ANALYZE example 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.
Skill File Problem (before) Fix (after)
postgresql-optimization skills/postgresql-optimization/SKILL.md Two pg_stat_statements queries select and order by total_time and mean_time. These columns were renamed in PostgreSQL 13, so the queries error on current versions. Queries use total_exec_time and mean_exec_time, with a comment that PostgreSQL 12 and earlier use the old names.
postgresql-optimization skills/postgresql-optimization/SKILL.md Headings "PostgreSQL-Specific Features", "PostgreSQL Performance Tuning" and "PostgreSQL Advanced Data Types" start with a corrupted character (U+FFFD, the Unicode replacement character; the third also has a stray variation selector). The corrupted characters are removed. The original emoji cannot be recovered, so the headings are plain text.
postgresql-optimization skills/postgresql-optimization/SKILL.md The EXPLAIN (ANALYZE, BUFFERS) example and the optimization tip do not mention that ANALYZE executes the statement, which matters for INSERT, UPDATE and DELETE. Both places now say the statement is executed and that data-modifying statements should be run inside BEGIN ... ROLLBACK.
prompt-optimizer skills/prompt-optimizer/SKILL.md "Output format" says "Always exactly this" and gives a fixed generic template ("You are helping with the user's request...") that none of the workflow steps or the five examples produce. The section now states that the output is a single code block whose content follows the rewrite workflow and the two hard rules, ending with the closing line. The "no text before or after" rules are kept.
prompt-optimizer skills/prompt-optimizer/SKILL.md "What you output" offers two closing lines, "Think before answering (maximum reasoning)" and "Take time to think through this carefully before responding.", while the output format section and all five examples use "Think before answering (take time to reason through this carefully)." One closing line, the one used in the examples, is documented. The note on adapting the wording now refers to the prompt's language, matching the existing edge case for non-English input.

Type of Contribution

  • New instruction file.
  • New prompt file.
  • New agent file.
  • New plugin.
  • New skill file.
  • New agentic workflow.
  • New canvas extension.
  • Update to existing instruction, prompt, agent, plugin, skill, workflow, or canvas extension.
  • Other (please specify):

Additional Notes

  • Two commits, one per skill.
  • No new files. Existing prompt variables (${selection}) are unchanged.
  • Skill names and descriptions are unchanged, so the generated README tables should not change.

By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

…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.
@milddrunker
milddrunker requested a review from a team as a code owner November 26, 2026 11:30
Copilot AI adaptive review requested due to automatic review settings November 26, 2026 11:30
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

🚦 Submission status: 👀 Ready for review

Risk tier: merge-risk:medium — New or substantially changed resource without privileged execution
Required to merge: passing submission-gate checks plus 1 approval from reviewers with write access.

Why this tier
  • Changes 47 lines (low-risk limit is 40)

Automated checks

Check Status Details
Line endings ✅ Passed Passed · logs
Spelling ✅ Passed Passed · logs
Generated README consistency ✅ Passed Passed · logs
Plugin and extension validation ✅ Passed Passed · logs
Plugin structure ✅ Passed Passed · logs
Skill validation ✅ Passed Passed · logs
Skill lint (vally) ✅ Passed Passed · logs
Risk scan ✅ Passed Passed · logs
Contributor reputation ✅ Passed Passed · logs
Duplicate resource scan ✅ Passed Passed · logs
PR quality signal ⏭️ Skipped Skipped by its workflow · logs
Canvas/plugin smoke test ✅ Passed Passed · logs

Review

  • Approvals: 0/1
  • Assigned reviewer: not assigned yet — comment /request-review to ask for one
  • Review target date: not set
  • Still needed: 1 more approval(s)
  • No staffed reviewer pool owns these files yet; any reviewer with write access counts as the domain reviewer.

Commands

Command Who What it does
/rerun-checks PR author, maintainers Re-runs failed or incomplete checks and re-evaluates this gate
/request-review PR author, maintainers Asks the review rotation to assign a reviewer (adds needs-reviewer)

Updated for 40bc8aa · gate run · This comment is maintained automatically — see submission gate docs.

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

🔒 PR Risk Scan Results

Scanned 4 changed file(s).

Severity Count
🔴 High 0
🟠 Medium 0
ℹ️ Info 0

✅ No matching risk patterns were detected in changed files.

This is an automated soft-gate report. Findings indicate review targets and do not block merge by themselves.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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_statements examples for PostgreSQL 13+ and documented PostgreSQL 12-and-earlier column names.
  • Clarified that EXPLAIN ANALYZE executes 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,
@github-actions

Copy link
Copy Markdown
Contributor

🔍 Vally Lint Results

✅ All checks passed

Scope Checked
Skills 2
Agents 0
Total 2
Severity Count
❌ Errors 0
⚠️ Warnings 0
ℹ️ Advisories 0

Summary

Level Finding
ℹ️ ✅ postgresql-optimization (2/2 checks passed)
ℹ️ ✓ [spec-compliance] All 1 skill(s) are spec-compliant.
ℹ️ ✓ spec-compliance: All spec checks passed.
ℹ️ ✓ [valid-refs] All file references across 1 skill(s) are valid.
ℹ️ ✓ valid-refs: All file references resolve to existing files within the skill directory.
ℹ️ 1 skill(s) linted, 1 passed
ℹ️ ✅ prompt-optimizer (2/2 checks passed)
ℹ️ ✓ [spec-compliance] All 1 skill(s) are spec-compliant.
ℹ️ ✓ spec-compliance: All spec checks passed.
ℹ️ ✓ [valid-refs] All file references across 1 skill(s) are valid.
Full linter output
### Linting skills/postgresql-optimization
✅ postgresql-optimization (2/2 checks passed)
    ✓ [spec-compliance] All 1 skill(s) are spec-compliant.
        ✓ spec-compliance: All spec checks passed.
    ✓ [valid-refs] All file references across 1 skill(s) are valid.
        ✓ valid-refs: All file references resolve to existing files within the skill directory.

1 skill(s) linted, 1 passed

### Linting skills/prompt-optimizer
✅ prompt-optimizer (2/2 checks passed)
    ✓ [spec-compliance] All 1 skill(s) are spec-compliant.
        ✓ spec-compliance: All spec checks passed.
    ✓ [valid-refs] All file references across 1 skill(s) are valid.
        ✓ valid-refs: All file references resolve to existing files within the skill directory.

1 skill(s) linted, 1 passed

@github-actions github-actions Bot added ready-for-review Submission passed intake validation and is ready for maintainer review and removed awaiting-automation labels Nov 26, 2026
@milddrunker
milddrunker requested a review from a team as a code owner November 26, 2026 13:02
Copilot AI adaptive review requested due to automatic review settings November 26, 2026 13:02
@github-actions github-actions Bot added plugin PR touches plugins awaiting-automation labels Nov 26, 2026
@github-actions github-actions Bot added ready-for-review Submission passed intake validation and is ready for maintainer review and removed ready-for-review Submission passed intake validation and is ready for maintainer review awaiting-automation labels Nov 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are identified, so the documented PostgreSQL, prompt-optimizer, and version-metadata updates are ready to proceed.

1 open issue

Review effort: Lite (adaptive)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk:medium plugin PR touches plugins ready-for-review Submission passed intake validation and is ready for maintainer review skills PR touches skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants