ワンクリックで
pr-workflow
Complete workflow for submitting code changes — create branch, commit, open PR, check CI, fix failures, and merge.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Complete workflow for submitting code changes — create branch, commit, open PR, check CI, fix failures, and merge.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Work on Synapse pre-experiment research: project context, research questions, literature search, related works, and deep research reports.
Write and update Synapse documents, reports, synthesis, and Markdown figures. Use when embedding charts, plots, images, or report visuals in Synapse documents.
Plan, revise, execute, and report Synapse experiments, including compute access and result submission.
Understand the Synapse Claude Code plugin hooks, session lifecycle, and multi-agent parallel execution. Covers what each hook does, where plugin state lives, and how to run multiple experiments in parallel via Task sub-agents.
Synapse platform overview and router skill. Use it to orient on projects and then hand off to the stage-specific Synapse skills.
Drive the Claude Code-client autonomous research loop — analyze project state, propose the next experiment, dispatch sub-agents to execute it, and iterate.
| name | pr-workflow |
| description | Complete workflow for submitting code changes — create branch, commit, open PR, check CI, fix failures, and merge. |
| license | AGPL-3.0 |
| metadata | {"author":"synapse","version":"0.1.0","category":"development"} |
Complete workflow for taking local code changes through branch creation, PR, CI verification, failure fix, and merge.
origin is configuredgh CLI is authenticatedgit status
git diff --stat
git log --oneline -5
Verify before proceeding:
Branch from current HEAD. Naming convention:
| Type | Prefix | Example |
|---|---|---|
| Bug fix | fix/ | fix/remove-legacy-textarea |
| Feature | feat/ | feat/structured-ac-editor |
| Refactor | refactor/ | refactor/service-layer |
| Test | test/ | test/e2e-proposal-flow |
| Docs | docs/ | docs/api-reference |
| Chore | chore/ | chore/bump-deps |
git checkout -b {prefix}{short-description}
Stage specific files only — never use git add . or git add -A:
git add path/to/file1 path/to/file2
Note: Next.js paths need shell escaping:
git add src/app/\(dashboard\)/projects/\[uuid\]/file.tsx
Commit with HEREDOC for clean multi-line messages:
git commit -m "$(cat <<'EOF'
{type}: {concise description of why, not what}
{Optional body explaining context or trade-offs}
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
EOF
)"
git push -u origin {branch-name}
gh pr create --title "{type}: {title under 70 chars}" --body "$(cat <<'EOF'
## Summary
- Change 1
- Change 2
## Changed files
| File | Change |
|------|--------|
| `path/file.ts` | What changed |
## Test plan
- [x] Automated test passed
- [ ] Manual verification needed
Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
gh pr checks {pr-number}
Get the failed logs:
gh pr checks {pr-number} # find failed run ID
gh run view {run-id} --log-failed 2>&1 | tail -80 # read failure details
Common failure types and fixes:
| Failure | Local repro | Fix |
|---|---|---|
| Test assertion | npx vitest run path/to/test.ts | Update test expectations to match new behavior |
| Type error | npx tsc --noEmit | Fix types; check only your errors with | grep {keyword} |
| Lint error | pnpm lint | Auto-fix or manual fix |
| Missing test update | grep -r "changedField" src/**/__tests__/ | Update test fixtures/helpers using the old field |
After fixing:
git add {fixed-files}
git commit -m "$(cat <<'EOF'
fix: {what was fixed in tests/types}
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
EOF
)"
git push
Re-check CI — repeat until green:
gh pr checks {pr-number}
Only when user explicitly requests. Default to squash merge:
gh pr merge {pr-number} --squash --delete-branch
git checkout main && git pull
Before opening PR:
npx tsc --noEmit passes (or no new errors)Before merging: