Add agent skill for backporting PRs to WP Core - #80594
Conversation
|
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. |
|
Flaky tests detected in 9bc5703. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/30302791788
|
There was a problem hiding this comment.
Pull request overview
Adds a discoverable “gutenberg-backport-pr” agent skill to guide automated back-merging of Gutenberg PHP changes into WordPress/wordpress-develop, with a Claude Code compatibility entrypoint that delegates to the generic skill file.
Changes:
- Add a generic agent skill definition at
.agents/skills/gutenberg-backport-pr/SKILL.mdthat points to the authoritative backport procedure docs and includes pre-flight prompts. - Add a
.claude/skills/.../SKILL.mdcompatibility entrypoint that forwards Claude Code users to the generic.agentsskill.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.agents/skills/gutenberg-backport-pr/SKILL.md |
Introduces the generic, auto-discoverable backport skill that references the canonical docs and outlines the workflow. |
.claude/skills/gutenberg-backport-pr/SKILL.md |
Provides a non-symlink Claude Code entrypoint that delegates to the .agents skill. |
Establishes a lightweight .claude/skills/ pattern by adding a single skill file that delegates to the existing back-merging doc. The SKILL.md contains only the trigger metadata and a pre-flight checklist; all durable procedural content lives at docs/contributors/code/back-merging-to-wp-core.md so that non-Claude tools and human contributors read the same source of truth.
29e1573 to
fe86ef3
Compare
| Check the Gutenberg PR labels first. If any of these are set, no back-merge is needed and the workflow can stop: | ||
|
|
||
| - `Backport from WordPress Core` | ||
| - `Backported to WordPress Core` | ||
| - `No Core Sync Required` |
There was a problem hiding this comment.
The back-merging guide lists Backported to WordPress Core as an exception, while the changelog workflow and README only recognize Backport from WordPress Core and No Core Sync Required.
What's the up-to-date info? We should make all skills/docs are aligned
What?
Add a
skills/gutenberg-backport-pr/SKILL.mdfile that gives coding agents task-scoped guidance for back-merging PRs towordpress-develop.This also adds a root
AGENTS.mdrouting entry for backporting tasks, following the progressive-discovery convention introduced in #80650.All durable content stays in
docs/contributors/code/back-merging-to-wp-core.md; the skill is a thin pointer with workflow-shaping hints for agent tools.Why?
Contributors using agent-assisted coding tools can invoke skills by name or trigger phrase. Placing a small skill file at the repository-standard
skills/<domain>/SKILL.mdpath lets compatible agents discover it automatically when a contributor asks about backporting a PR, without embedding tool-specific procedural content in the wider docs.Two design choices worth flagging:
AGENTS.mdroutes to the task skill, the skill stays short, and the substantive procedure remains in the public back-merging guide.SKILL.mdis intentionally short. The substantive procedure lives in the doc so there is a single source of truth for both humans and AI tools. The skill only carries trigger metadata, pointers to the doc, a pre-flight checklist, a brief note on approach (local clone vsghCLI + PHPCS), and a reminder to commit thebackport-changelogentry once the WP Core PR is open.How?
Adds:
skills/gutenberg-backport-pr/SKILL.md, the repository-standard skill fileAGENTS.mdprogressive-discovery route for backporting/back-merging tasksThe skill includes:
docs/contributors/code/back-merging-to-wp-core.mdandbackport-changelog/readme.mdBackport from WordPress Core,Backported to WordPress Core,No Core Sync Required), the target WordPress version, and the Trac ticketghCLI, mechanical vs compat-shim file mapping, and running PHPCS before pushingbackport-changelog/<wp-version>/<wp-develop-pr-number>.mdentry back to the Gutenberg PR once the wordpress-develop PR is openTesting Instructions
skills/gutenberg-backport-pr/SKILL.mdexists.AGENTS.mdroutes backporting/back-merging tasks toskills/gutenberg-backport-pr/SKILL.md.docs/contributors/code/back-merging-to-wp-core.mdexists ontrunk.skills/discovery.Use of AI Tools
This PR was drafted with Claude Code and updated with Codex. Per the WordPress AI Guidelines, the human author takes responsibility for the content.