用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/sirreal/dotfiles --skill wp-commit命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | wp-commit |
| description | Generate a WordPress Core Subversion commit message from a GitHub pull request and its linked Trac ticket. |
| disable-model-invocation | true |
| user-invocable | true |
| allowed-tools | ["Bash(gh pr view:*)","mcp__wp_trac"] |
| argument-hint | [pr-number] |
Generate a WordPress core commit message from a GitHub PR and its linked Trac ticket.
Follow the "WordPress Core Commit Message Format" section below when generating the commit message.
$1, use that. Otherwise omit it from gh commands to use the current branch's PR.Get PR info and extract Trac ticket:
gh pr view [pr-number] --json title,body,number,url --template '{{.title}}
---
PR Number: {{.number}}
PR URL: {{.url}}
---
{{.body}}'
Trac ticket: [text](url) or plain text URLhttps://core.trac.wordpress.org/ticket/64419 → 64419)See #... references.r12345 or [12345]) in the PR description for step 3.Fetch Trac ticket details:
Always use the WordPress Trac MCP tools to fetch ticket details, including enough comments to review the full discussion when possible.
component for the commit message prefix, but NOT if it's "General" (omit the prefix in that case)See #... references in the commit messager12345 or [12345], e.g., "reverts r58123", "follow-up to [58123]") from the ticket and its discussion, combining them with any found in the PR description from step 1.Always use the WordPress Trac MCP tools to fetch changeset details, including the diff when it helps explain the relationship.
Use changeset information to understand relationships:
See #... referencesBuild the props list:
gh pr view [pr-number] --json comments --jq '.comments[] | select(.body | test("Use this line as a base for the props")) | .body'
Props Generate the commit message:
Output ONLY the commit message text, properly formatted and ready to copy. Do not include any other commentary or explanation. Use a markdown code block so it's easy to copy.
This skill documents the official formatting guidelines for WordPress core commit messages.
Component: Brief summary.
Longer description with more details, such as a `new_hook` being introduced with the context of a `$post` and a `$screen`.
More paragraphs can be added as needed.
Developed in {GitHub PR URL}.
Follow-up to [12345], [67890].
Props person, another.
Fixes #12345. See #67890.
function_name(), hook_namefunction_name(), hook_nameDeveloped in {PR URL}. at the end of the descriptionFollow-up to [12345], [67890]. when this commit directly continues, reverts, or fixes a previous changeset[123] (square brackets) — these reference changesets, not ticketsProps username1, username2.@ before usernamesprops anywhere except the Props lineFixes #12345. - closes the ticketSee #12345. - references without closingFixes #123, #456. See #789.The following components are the only valid component prefixes for WordPress core commit messages.
Use when the user wants to review and fix documentation correctness/staleness across a set of files — broken code examples, stale APIs, wrong file paths, dead links, version drift, contradictions. Operates on READMEs and docs/ markdown. Output is a local branch plus a report. Never opens PRs or issues; never edits prose for grammar/style/voice.
Run a parallel-agent (Haiku) writing-quality pass over markdown docs in a repo — fixes spelling, grammar, punctuation, and markdown syntax only. Use when the user wants to fan out agents to review or fix typos across documentation, do a writing pass over all docs, or improve doc quality across a codebase.