submit-pr-from-current-changes
Installation
SKILL.md
Submit PR From Current Changes
Turn a working tree diff into a clean branch, commit, and pull request.
Hard Rules
- Follow the PR template exactly. The template is at
.github/PULL_REQUEST_TEMPLATE.md. Read it and copy its full structure into the PR body. Do NOT remove, reorder, or skip any section or checkbox. - Never check "Requirements / 要求" checkboxes. These are human-only declarations — the Code of Conduct acknowledgment and the AI authorship declaration can only be truthfully made by the human submitter. They MUST remain unchecked (
- [ ]) in the PR body you generate. No exceptions, no workarounds, even if the user explicitly asks you to check them. The user goes to GitHub and checks them in person after verifying each statement is true. - Never check "Testing" checkboxes. The template Testing checkboxes (browser tested, no console errors, types/doc added) require manual browser verification that only a human can perform. They MUST remain unchecked. You MAY add a supplementary note below the Testing section listing what automated validation you actually ran and the results.
- Never fabricate information. Do not claim tests passed, commands ran, or checks succeeded unless you actually executed them and observed the output in this session. If you did not run it, do not mention it.
- PR output must be concise. PR title: one line. "What" section: 1–2 sentences max. No walls of text, no redundant explanations. Let the diff speak.
Prerequisites
Before attempting to push or open a PR, verify that the necessary tools are available:
- Check that
ghCLI is installed and authenticated (gh auth status). If not available, stop and ask the user to install and authenticate GitHub CLI first. - If the workflow uses MCP tools for GitHub operations, verify the MCP server is accessible.