用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/vincentchalamon/bike-trip-planner --skill pick命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Implement all issues from a sprint in parallel via worktree agents
Goal-loop quality gate — run QA/tests and fix until green, with real output as proof
Close a sprint — clean up local worktrees/branches, update main, and run a retrospective into the Claude config
基于 SOC 职业分类
正在显示 SKILL.md
| name | pick |
| description | Implement a GitHub issue end-to-end (branch, code, test, PR, CI, review) |
| argument-hint | <issue-number> [base-branch] |
| allowed-tools | Bash(git *), Bash(gh *), Bash(make *), Bash(docker run:*), Bash(docker compose:*), Bash(rsync *), Read, Edit, Write, Glob, Grep |
Implement GitHub issue $ARGUMENTS end-to-end. Parse the arguments: first token is the issue number, second token (optional) is the base branch (default main).
If no issue number is provided, ask the user for it before proceeding.
Execute these steps in order:
Check that the issue number is a valid number. If not, ask the user for a valid issue number.
Run gh issue view <issue-number> --comments and display the issue title and body summary. Ask the user to confirm before proceeding. Also ask if they want to use a different base branch than the default.
Read the comments, not only the body — a comment can contradict the scope and then it is the comment that is authoritative. Sprint 49, #884: the body sketched a five-key name-resolution cascade; a comment carried the measurement from #878 showing two of those keys had 0 occurrences over 16 886 rows and a third only 11, all of them useless values. Implementing the body as written would have shipped code with no data behind it. gh issue view alone does not show comments, which is why the flag is not optional.
git fetch origin && git worktree add -b feature/<issue-number> .claude/worktrees/feature-<issue-number> origin/<base-branch>
All subsequent steps MUST be executed from the worktree directory (
.claude/worktrees/feature-<issue-number>).
The worktree starts with empty vendor/ and node_modules/. Running make install per worktree is slow (≈30s composer + ≈25s npm) and Docker compose spins up a separate project per worktree path, so each tool invocation re-installs apk packages. Hard-link the existing deps from the main repo instead:
MAIN=$(git worktree list | awk 'NR==1{print $1}')
for p in api/vendor api/vendor-bin provisioner/vendor provisioner/vendor-bin pwa/node_modules; do
[ -d "$MAIN/$p" ] && rsync -a --link-dest="$MAIN/$p/" "$MAIN/$p/" "$p/"
done
Only run make install if the issue actually touches composer.json or package.json.
Understand all requirements from the issue before writing any code.
Implement the solution respecting CLAUDE.md rules (architecture, SOLID, patterns, tests). If backend DTOs change, run make typegen.
Run QA from the worktree before pushing. On a dev machine make qa OOM-kills at the Rector leg (exit 137 — the 768M cap on the php service), so it never exits 0: run the legs individually via the container recipes in .claude/local-qa.md and paste their per-leg output as evidence. PHP-CS-Fixer, Rector and Prettier auto-apply fixes — re-stage and commit those changes (style: or amend the previous commit). PHPStan / TypeScript / ESLint errors must be fixed by hand, then re-run the leg. Every leg must be green individually.
Skipping this and pushing raw code wastes a CI round-trip per autofixable issue (observed in Sprint 33: PR #538 went red three times in a row on php-cs-fixer because the agent never ran QA locally).
If make qa can't run fully (e.g. the frontend leg is broken by a stale node_modules), still run make rector and make php-cs-fixer on their own before pushing — they are deterministic and PHP-only, and a skipped Rector autofix fails CI in dry-run mode (observed Sprint 34.5: #580 PHP 8.4 new without parentheses, #585 NewlineAfterStatementRector).
Run the test suites. make test cannot complete on a dev machine either (it chains QA + needs the full stack + a PWA served on https://localhost for Playwright) — run PHPUnit tests/Unit+tests/Integration via the container recipe in .claude/local-qa.md; CI is the gate for the Functional suite and Playwright (say so plainly, don't imply local E2E coverage). Fix any failures until green.
From the worktree directory, run git diff <base-branch>...HEAD. Look for:
console.log, dump(), dd(), or debug statementsFix anything found, commit, and push.
git push -u origin feature/<issue-number>gh pr create --fill --base <base-branch>Run the bounded surveillance loop (max 3 cycles) until the PR is READY. Never merge — the user merges.
Each cycle:
gh pr checks. If red: read the logs (gh run view --log-failed), fix, push.gh pr view --json comments) and inline (gh api repos/:owner/:repo/pulls/<pr>/comments) comments. Fix, don't reply: address actionable points by changing the code and pushing (which auto-resolves the review bot's own threads); do not post replies or resolve threads yourself (commenting in the user's name needs explicit consent). Report any point left unactioned, with the reason, to the user — not as a PR comment.gh pr view --json mergeable,mergeStateStatus. If CONFLICTING: rebase onto the base and resolve conservatively; if ambiguous or risky, stop and flag rather than force.feature/<n> and that branch has new commits on origin since the last sync, rebase: git fetch origin && git rebase origin/feature/<n>, then git push --force-with-lease. Resolve conflicts conservatively, flag if ambiguous.READY when: CI green AND mergeable AND not draft AND claude-code-review.yml has completed (gh run view --workflow=claude-code-review.yml shows completed) with no new blocking (Critical/High) comment. Wait for that workflow to finish before evaluating — it runs asynchronously after each push. After 3 cycles without convergence, report NEEDS ATTENTION with the blocker.
feature/<issue-number>. Commit and push.git worktree remove .claude/worktrees/feature-<issue-number> (if it fails on root-owned files like .phpunit.cache/, flag to the user — Docker containers write as root).