一键导入
open-pr
Create a draft PR with an AngriestBird-style summary, link issues, update Changelog.txt for unlisted changes, and report what issue numbers are needed.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a draft PR with an AngriestBird-style summary, link issues, update Changelog.txt for unlisted changes, and report what issue numbers are needed.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | open-pr |
| description | Create a draft PR with an AngriestBird-style summary, link issues, update Changelog.txt for unlisted changes, and report what issue numbers are needed. |
| user-invocable | true |
| allowed-tools | ["Bash","Read","Edit","Write","Glob","Grep"] |
Create a draft PR for the current branch with an AngriestBird-style summary, linked GitHub issues, and changelog entries for any changes not yet listed in Changelog.txt.
Arguments (optional, space-separated):
1354 1261"Fix Cuba AI and Egypt bugs"Requested arguments: $ARGUMENTS
git rev-parse --abbrev-ref HEAD
git log origin/main..HEAD --oneline
git diff origin/main...HEAD --stat
git diff origin/main...HEAD
If the branch has no commits ahead of main, stop: "No commits ahead of main, nothing to open a PR for."
From $ARGUMENTS:
If no issue numbers were given: scan the step-1 commit messages for #N patterns and collect them as candidates. Do NOT fail; continue without Closes #N lines. At the end, tell the user which issue numbers you found in commits and prompt them to re-run as /open-pr N M to link them.
For each issue number from step 2, run:
gh issue view <N> --repo MillenniumDawn/Millennium-Dawn --json number,title,body,labels
Use the title and body to write an accurate root-cause sentence in the summary. If gh errors (not found or private), note the failure and skip that number.
If the user supplied a quoted title, use it verbatim.
Otherwise: strip a fix/, feature/, chore/, or content/ prefix from the branch name, replace hyphens and underscores with spaces, title-case each word, then append (#N, #M) if issue numbers were given.
Examples:
fix/cuba-egypt-bugs + issues 1354, 1261 → "Fix Cuba Egypt Bugs (#1354, #1261)"thegeneral-uk (no prefix): prefer the most descriptive commit subject line as the title.For a personal fork branch with no clear description (e.g. thegeneral-uk), derive the title from the most descriptive commit subject in the log. Keep it under 70 characters.
Use this exact structure (AngriestBird format):
Closes #N
Closes #M
### Summary
#### Bug Fixes
- **Fixes #N: [Issue Title].** [Root cause in 1-2 sentences, specific: name focus ID, event ID, wrong value vs. correct value, using `backtick` for code identifiers.]
#### [Other grouping, e.g. "AI", "Content", "Localisation", "Validation"]
- **[Component or focus/event ID].** [What was added or changed and why.]
Rules:
Closes #N lines only when issue numbers were given. Place them above ### Summary with one blank line between the last close and ### Summary.#### Bug Fixes: one bullet per distinct fix. Group micro-changes (e.g. "Fixed 12 log copy-paste errors") into a single bullet.#### AI, #### Content, etc.): include only if there are non-bug changes in that category.—, U+2014) anywhere: not in the PR title, body, bullet separators, Changelog.txt, or any .yml file. Replace with a colon (introducing the explanation), a period (ending the bolded prefix, new sentence), or a comma (continuing the clause). Standing user rule, no exceptions even when mimicking AngriestBird's example PRs.**Fixes #N: Issue Title.**), a space, then the description. No — separator.Closes #N lines are always preserved.
The test plan is not part of the PR body. After creating the PR, run /test-plan to generate and attach an approximate playthrough checklist (.claude/skills/test-plan/SKILL.md).Changelog.txtApply the /changelog process (.claude/skills/changelog/SKILL.md) to add entries for any branch changes not already listed: identify the top-most version heading, reuse only the file's existing categories (never invent one), and insert past-tense - [TAG] ... bullets with no em dashes. Skip changes already present (grep the focus/event/decision ID or Issue #N).
If entries were added, stage and commit them separately before creating the PR:
git add Changelog.txt
git commit -m "Update Changelog.txt"
If Changelog.txt is already up to date, skip this step and note "Changelog already up to date."
Push the branch if not already on the remote:
git push -u origin HEAD
Then create the draft PR:
gh pr create --draft \
--repo MillenniumDawn/Millennium-Dawn \
--title "<title from step 4>" \
--body "$(cat <<'EOF'
<body from step 5>
EOF
)"
Output:
Changelog.txt was updated and which entries were added, or "Changelog already up to date."#N references found in commits and tell the user: "To link these issues, re-run as /open-pr N M."/test-plan to generate and attach an approximate playthrough checklist."Rewrite a country rework/additions TASK issue into a clear, mechanic-by-mechanic design brief: study its mockups, inventory the country's existing assets, and reframe each mechanic (goal / real-world idea / starting state / influences / player choices / progression) with AI/tooling hints stripped. Use when asked to reframe, clarify, or rewrite a rework task or roadmap issue, e.g. "/rework-brief JAP 801".
Check a file or the branch diff against the full MD content review checklist (economic, political, visual, military, AI, code) with blocker tags. Use when asked to content-review country content or verify content-guideline compliance before merge.
Scaffold generals, field marshals, and admirals for a country using the MD count formulas and region skill ranges, writing character and recruit_character entries. Use when asked to add leaders, generals, or admirals for a TAG, e.g. "/add-leader NIG".
Wire a country-specific income or expense stream into the MD money system: calculation block, hidden tooltip idea, loc key, and granting effect. Use when asked to add an income or expense stream, e.g. "/additional-income GRE golden_visa income".
Adversarial edge-case hunt over the branch diff or a single file: challenges every change for unhandled scenarios, silent failures, scope/timing/variable traps, and logic gaps rule-based review misses. Use when asked to adversarially review, stress-test, or find edge cases in a change.
Comprehensive pre-merge review of one file or the whole branch diff: dispatches parallel reviewer agents (correctness, adversarial edge cases, performance, simplification, content) and merges findings. Use when asked to audit or fully review a branch or file. Replaces /review-branch.