一键导入
pr
Open a pull request with a strict minimal body — Summary (2-4 sentences) plus an ASCII Flow diagram plus `Closes
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Open a pull request with a strict minimal body — Summary (2-4 sentences) plus an ASCII Flow diagram plus `Closes
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Work through review comments on the current PR. Triages each comment as Address / Push-back / Escalate and executes immediately — no approval gate. Addressed comments produce code changes, commits, and silent thread resolution via GraphQL (no reply text). Pushed-back comments stay unresolved. Escalations invoke /interview or /architect inline. Watches GitHub Actions after push — the loop is not complete until all checks pass.
Re-derive the simplest, cleanest architecture from first principles. Enforces minimal code, composition, single source of truth, deep modules, clear abstractions, clean interfaces, functional core, state machines for lifecycle, ports/adapters, typed recovery, no silent fallbacks, Effect primitives in Effect-owned code, and game-theoretic incentive compatibility. Output uses ASCII diagrams and code contracts, never mermaid, and fits one to two screens. Hands off to /review.
Fan out six focused reviewer personas against the current PR — correctness, testing, maintainability, project-standards, security, and previous-findings. Each reviewer applies first-principles and game-theoretic pressure: invariants, incentives, information asymmetry, local shortcuts, repeated-game health, and adversarial behavior. Dedupe, validate, verify diff-line commentability, then post one GitHub review with summary plus inline comments where possible. No autofix, no approval, no request-changes. Hands off to /address.
This skill encodes Emil Kowalski's philosophy on UI polish, component design, animation decisions, and the invisible details that make software feel great.
Explore a codebase to find opportunities for architectural improvement, focusing on making the codebase more testable by deepening shallow modules. Use when user wants to improve architecture, find refactoring opportunities, consolidate tightly-coupled modules, or make a codebase more AI-navigable.
Interview the user in five-question rounds until the problem, values, constraints, non-goals, incentives, failure modes, and solution direction are locked. Uses first-principles decomposition, game-theoretic incentive analysis, concrete examples, 5 Whys, laddering, QFT-style question selection, and Socratic pressure. Hands off to /architect.
| name | pr |
| description | Open a pull request with a strict minimal body — Summary (2-4 sentences) plus an ASCII Flow diagram plus `Closes |
Before rendering user-facing output, read ../_shared/plain-output.md and ../_shared/ascii-diagrams.md.
Open a pull request with a minimal, opinionated body.
git remote get-url origin must succeed.gh authenticated. gh auth status must succeed.git diff --name-only --diff-filter=U prints anything, stop and tell the user to resolve conflicts first.START_BRANCH="$(git branch --show-current)"
git status --short
START_BRANCH is main, master, or trunk, create a PR branch without asking. Derive the name from the issue number when known, otherwise from the task title or timestamp:git switch -c "<type>/<short-kebab-task>"
Do not stash first; the working tree moves with the new branch. This keeps unrelated dirty files present but uncommitted.
Find the linked issue number. Options, in order:
--issue <n> or <n> argument, use it.git log -20 --format=%B) for Refs #<n>, Fixes #<n>, or Closes #<n>. Use the most common match.Fetch the issue title and labels: gh issue view <n> --json title,labels. Use them as input, not as the PR title directly.
Build a PR title that satisfies the repository's pr-title / commitlint rules:
type(scope): subject or type: subject.feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert.fix only for bug repairs and feat only for user-visible behavior, otherwise use chore.#<issue> in the title; the body owns Closes #<n>.Validate the title before creating the PR. If the repository has commitlint installed, run it against the title from the repo root:
printf '%s\n' "$PR_TITLE" | bunx commitlint
If validation fails, fix the title and rerun validation. Do not open a PR with a title that fails commitlint.
Commit only the PR-relevant changes if needed:
git status --short and git diff --stat.git add -- <path>....git add -A, git add ., or git commit -a in a dirty repo.fix(pr): handle dirty worktrees\n\nRefs #<n>.Build the PR body using the template in REFERENCE.md:
## Summary — 2-4 sentences. What and why. Written against the issue's problem statement.## Flow — an ASCII diagram showing the runtime or user flow introduced by this PR (see ../_shared/ascii-diagrams.md). Required.Closes #<n>.Write the body to a temp file (the heredoc keeps the ASCII diagram intact).
Push the branch:
git push -u origin "$(git branch --show-current)"
if gh pr view --json number,url >/tmp/current-pr.json 2>/dev/null; then
gh pr edit --title "$PR_TITLE" --body-file "<tmpfile>"
else
gh pr create --title "$PR_TITLE" --body-file "<tmpfile>"
fi
Do not create duplicate PRs for the same branch.
Fallback create command:
gh pr create --title "$PR_TITLE" --body-file "<tmpfile>"
Capture the PR URL. Delete the temp file.
Wait for GitHub Actions. Do not hand off until checks terminate. The PR is not complete until all checks pass.
gh pr checks "<pr-number>" --watch --fail-fast
--watch blocks until every check finishes (success, failure, cancelled, or skipped).--fail-fast returns non-zero the moment any check fails, so you surface failures promptly instead of waiting for the rest.gh pr checks returns "no checks reported on the branch", there are no workflows — treat this as a pass and continue.gh run view <run-id> --log-failed (find run-id with gh pr checks <n> --json link -q '.[]|select(.state=="FAILURE")|.link')./code-review — either fix the underlying bug in this branch, or if the failure is unrelated infra, explicitly say so and I will proceed."Use Plain Senior output with the PR URL and final CI status (all-pass, none-configured, or failed).
## Decision
PR opened or updated: <url>.
## Why
CI status: <all-pass | none-configured | failed>.
## Example
```bash
gh pr checks "<pr-number>" --watch --fail-fast
```
## Risk
<failed check summary, no checks configured, or "None known">
## Next
<handoff line below>
Only proceed to the handoff when CI has terminated cleanly (all-pass or no-checks). If CI failed, do NOT print the handoff — print the failure summary and stop.
On success, end with exactly this line and stop:
PR opened: . CI green. Run
/code-reviewto fan out reviewers and post findings to the PR.