wp2next contribute
Turns what a migration taught you into a shareable playbook and, if you agree, a pull request on wp2next.
| Synopsis | wp2next contribute [<builder-or-theme-slug>] (Claude desktop and Claude Code plugin: /wp2next:contribute; Codex: $wp2next contribute; Cursor: /wp2next contribute) |
|---|---|
| Changes code | No project code. It drafts files in the project's .wp2next/contrib/ and works in a separate copy (fork) of wp2next outside the project |
| Touches outside services | GitHub, in three separate questions, each with its own yes: fork and clone, then branch and commit, then push and open the pull request. It never pushes to MTRCio/wp2next directly and never touches the client's repo |
| Reads | The project's notes (.wp2next/notes/), the project CLAUDE.md (departures, content), lesson drafts from feedback, the newest upstream playbook |
| Writes | .wp2next/contrib/ (the playbook draft and its base), a line at the top of the notes file once contributed |
What it does
- Collects what you learned: the notes opened during the migration for builders or themes without a playbook, the departures and content notes, any lesson drafts, and anything else you tell it.
- Picks the playbook: the one matched in phase 1, the notes file's name, or the slug you give. It either updates an existing playbook (adding to its sections) or starts a new one from the template. A playbook's status only moves up by evidence: one migration makes a stub a draft, two or more make it tested.
- Drafts from the newest upstream version, not your installed copy, so the diff shows only your additions. Anything not checked first-hand is marked Not yet confirmed.
- Scrub check, which must pass: no domain, URLs, project code, account names, IDs, emails, phones, people's or business names, addresses, paths, site copy, screenshots or secrets.
- Shows the diff and asks: open a pull request, edit, or keep it local.
- Pull request with the GitHub CLI, in a scratch folder outside the client
project so no client file can be committed by accident. Without the CLI, it tells you how to do
the same in GitHub's website, or suggests
feedback lessoninstead.
Arguments and options
| Argument | Effect |
|---|---|
| (none) | Uses the playbook matched in phase 1, or the notes file's name |
<builder-or-theme-slug> | The playbook to create or update, lowercase with dashes, for example elementor or acf-flexible-content |
Examples
For Claude desktop
/wp2next:contribute/wp2next:contribute$wp2next contribute/wp2next contributewp2next contribute elementor: add what you learned to the Elementor playbook.
Related
feedback· Concepts: playbooks- Contributing (external site) · Maintainers
- Playbooks:
skills/wp2next/references/playbooks/ (external site) - Agent instructions:
references/commands/contribute.md (external site)