Refine wp-patterns skill - #79
Conversation
Apply writing-great-skills principles: prune duplication, disclose reference behind pointers, sharpen completion criteria, and anchor behaviour on leading words (block markup, preset, distinctive). Co-authored-by: Cursor <cursoragent@cursor.com>
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
bgrgicak
left a comment
There was a problem hiding this comment.
Thanks for working on this @karmatosed!
The new skill is missing Verification and Failure section which are required.
These top-level sections are required by repo convention and were over-pruned during the writing-great-skills refactor. Remove the verification reference file to keep a single source of truth in SKILL.md. Co-authored-by: Cursor <cursoragent@cursor.com>
…ers. Add Query Loop patterns section (pagination, query-no-results, inherited context) to pattern-categories reference. Enrich description with trigger terms for starter/template patterns, registration, markup, accessibility, and i18n without reverting to coverage-list identity prose. Co-authored-by: Cursor <cursoragent@cursor.com>
Align with the repo-wide compatibility contract used by other skills. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Thank you for review @bgrgicak. I had moved to separate file as thought that was maybe an option on verification but absolutely can move back. I did also iterate this round to a more slimmed down failure, because we need to maybe not be as verbose. I am happy to be pushed back on though. Once we have a path for how we want to iterate skills now, I can take this and review all our skills in bank. |
Sorry I missed that it was just moved. I'm ok with it being a reference. |
bgrgicak
left a comment
There was a problem hiding this comment.
Thanks for the improvements @karmatosed!
mikeyarce
left a comment
There was a problem hiding this comment.
Overall looks good! I think if we make a few small changes we can ship this. Thanks @karmatosed !
Restore always-on guardrail constraints and escalation framing in SKILL.md, and move social/nav/search/404 plus comparison pattern guidance into the categories reference. Co-authored-by: Cursor <cursoragent@cursor.com>
|
@mikeyarce I updated with your feedback, thank you. |
…-skill Co-authored-by: Cursor <cursoragent@cursor.com> # Conflicts: # skills/wp-patterns/SKILL.md
Summary
Refactors the
wp-patternsskill to improve predictability — the agent following the same process every run — by applying thewriting-great-skillsskill framework from https://github.com/mattpocock/skills/tree/main/skills along with own suggestions.SKILL.mdshrinks from 309 to 121 lines; detailed reference moves behind context pointers into sibling files.Changes and rationale
SKILL.md— description and frontmatterPattern:as the leading word in the descriptionwp-block-development,wp-interactivity-api) into description onlySKILL.md— structure and contentblock markup,presetSKILL.mdanti-patterns.mdpattern-registration.mdalready holds header fields and examplespattern-categories-and-types.mdpointer — reuse step 1 decisions in step 3references/design-with-tokens.mdSKILL.mdstep 1presetleading word consistentlyreferences/anti-patterns.mdSKILL.md)SKILL.md)design-with-tokens.mdNew reference files
references/visual-composition.mdreferences/verification.mdreferences/example-prompts.mdNet effect
SKILL.md(−61%)_distinctive_, checklists, verification)Test plan
SKILL.mddescription triggers on "create a block pattern" and "improve pattern design"design-with-tokens.md,anti-patterns.md,verification.md,visual-composition.mdSKILL.mdtoreferences/*.md