ワンクリックで
orchestrate
End-to-end feature workflow - branch, implement, improve, PR, wait, pr-fix
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
End-to-end feature workflow - branch, implement, improve, PR, wait, pr-fix
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Build the project (auto-detects build system)
Find and remove dead code, unused imports, and technical debt
Create git commits in logical groups for all current changes
Create a git commit with conventional commit message
Pick up unfinished work from where the last session left off
Debug and fix failing tests or errors
| name | orchestrate |
| description | End-to-end feature workflow - branch, implement, improve, PR, wait, pr-fix |
| argument-hint | <feature description> |
Full end-to-end pipeline: sync the base branch, cut a new working branch, implement the feature, run improve cycles, open a PR, then auto-fix CI once checks have had time to run.
$ARGUMENTS - Feature, fix, or chore description. This doubles as the branch name source and the input to the implementation step.The base branch is NOT always main. Ask GitHub for the repo's configured default branch:
BASE=$(gh repo view --json defaultBranchRef -q .defaultBranchRef.name)
echo "BASE=$BASE"
If gh is not authenticated or the repo has no remote on GitHub, fall back to the local origin/HEAD symref:
if [ -z "$BASE" ]; then
BASE=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')
fi
If both fail, STOP and ask the user which branch to base the work on — do NOT guess.
Sync the base branch:
git fetch origin
git checkout "$BASE"
git pull --ff-only origin "$BASE"
If the working tree is dirty when this runs, STOP and ask the user how to proceed (do NOT stash or discard their changes).
Derive a slug from $ARGUMENTS:
--Prefix based on intent parsed from $ARGUMENTS:
fix/ for bug fixesfeat/ for featuresrefactor/ for refactorschore/ for maintenancedocs/ for docsSLUG=<computed slug>
BRANCH="feat/$SLUG" # or fix/, refactor/, etc.
git checkout -b "$BRANCH"
Based on $ARGUMENTS and a quick scan of the affected areas, classify the work into ONE of these buckets and record the cycle count:
| Complexity | Signals | Cycles |
|---|---|---|
| Small fix | One-line/trivial bug fix, typo, copy change, single file | 1 |
| Small feature | New small endpoint, isolated utility, simple UI component | 2 |
| Medium feature | Multi-file change, touches a domain, new integration | 3 |
| Big feature | Cross-cutting, new subsystem, migrations, API changes, many files | 4 |
| Huge feature | Architecture-level, multiple domains, data model changes | 5 |
If the description is ambiguous, pick the HIGHER bucket - extra review cycles are cheaper than missed issues.
Record the choice as CYCLES=N and state the rationale in one sentence before proceeding.
Invoke the consolidation skill, which loads the full orchestration cycle (planner → verifier → parallel architects → consolidator → reviewer → verifier) into your context. You become the conductor and dispatch each stage:
Skill(skill="skills:consolidation", args="## Task\n$ARGUMENTS\n\n## Constraints\n- TDD where project has tests\n- Follow project conventions\n- Commit logically-grouped changes\n- No TODOs, no placeholders\n\n## Working directory\n[cwd]")
This replaces the old pattern of a single architect + separate improve cycles. The skill runs in your context because subagents cannot spawn further subagents — you do the dispatching.
After the cycle finishes, verify:
git status
git log "$BASE"..HEAD --oneline
If the working tree is dirty (uncommitted changes), commit them before moving on.
If the complexity assessment calls for additional review cycles beyond what the consolidation cycle performed, invoke improve:
Skill(skill="skills:improve", args="$REMAINING_CYCLES")
For most tasks the consolidation skill's built-in reviewer + verifier cycle is sufficient. Only run additional improve cycles for Big/Huge features.
Invoke the skills:pr command to commit anything still pending, push, and open the PR:
Skill(skill="skills:pr")
Capture the PR URL from the skill's output. Store it as PR_URL. If the skill output does not include a URL, run gh pr view --json url -q .url on the current branch to fetch it.
CI needs time to start and report results. Sleep for 5 minutes before running pr-fix:
sleep 300
Do NOT skip this wait - running pr-fix immediately races CI and sees no failures to fix.
While waiting, you may summarize progress to the user, but do not start new work that modifies the branch.
Invoke the skills:pr-fix command with the captured PR URL and both flags enabled:
Skill(skill="skills:pr-fix", args="$PR_URL checks=true comments=true")
This will iterate on failing checks and address any review comments already posted.
After pr-fix completes, report:
## Orchestrate Summary
- **Feature:** <description>
- **Base branch:** <BASE>
- **Feature branch:** <BRANCH>
- **Complexity:** <bucket> (<CYCLES> review cycles)
- **PR:** <PR_URL>
- **Review cycles run:** <CYCLES>
- **PR-fix iterations:** <count from pr-fix>
- **Final CI state:** <pass/fail>