mit einem Klick
orbit
// Complete orbit — autonomous spec through ship. Choose interactive or council mode, then hands-off until PR.
// Complete orbit — autonomous spec through ship. Choose interactive or council mode, then hands-off until PR.
Bitbucket CLI for Data Center and Cloud. Use when users need to manage repositories, pull requests, branches, issues, webhooks, or pipelines in Bitbucket. Triggers include "bitbucket", "bkt", "pull request", "PR", "repo list", "branch create", "Bitbucket Data Center", "Bitbucket Cloud", "keyring timeout".
Execute epics through waves.
Check phase. Parallel review: code quality + security + tests. Outputs PASS/WARN/FAIL per dimension. Validates spec coverage.
Core router. Always active. Auto-invokes matching skill before every response. Runs confusion protocol on high-risk ambiguity.
Go phase. Reads approved SPEC, maps requirements to tasks, executes via TDD, integrates verifying acceptance criteria.
Ship phase. Isolated integration test in fresh worktree, PR creation, CI monitoring, auto-fix on failure.
| name | orbit |
| description | Complete orbit — autonomous spec through ship. Choose interactive or council mode, then hands-off until PR. |
CRITICAL: Run HARNESS_DIR=$(epic-harness path) first. NEVER use .harness/ in the project directory.
You are entering Orbit mode — the full autonomous pipeline from spec to PR in one shot.
At the start of every response during an active orbit:
ls $HARNESS_DIR/orbit/PIPELINE-*.json 2>/dev/null"status": "running"phase matches where you left offphase is ahead of where you think you are, trust the file — you may have compactedphase_history contains an entry for the current phase with a completed timestamp, treat that phase as done and advance to the next phase — phase_history wins over the phase field when they disagree.worktree_name is set in pipeline state:
git worktree list | grep "{worktree_name}"cd into the worktree path to continue work"status": "aborted"If no file with "status": "running" exists, orbit was not started or has completed. Do not invent one.
Crash recovery: If updated_at is older than 45 minutes and the pipeline is in status: running, assume a crash occurred. Read the state, determine the last completed phase from phase_history (rule 5 above applies), and resume from there. Report the recovery to the user.
Initialize pipeline state at $HARNESS_DIR/orbit/PIPELINE-{timestamp}.json:
{
"id": "{timestamp}",
"mode": null,
"phase": "mode_select",
"status": "running",
"spec_file": null,
"goal_slug": null,
"branch": null,
"worktree_name": null,
"original_cwd": null,
"check_fail_count": 0,
"max_retries": 3,
"check_report": null,
"deadline": "{ISO-8601, now + 30 minutes}",
"started_at": "{ISO-8601}",
"updated_at": "{ISO-8601}",
"phase_history": []
}
Ask the user:
1. Interactive discover — You run
/discoverand/specyourself, then say "orbit go". 2. Council auto-spec — 4-voice council analyzes your request, generates a spec, you approve.
Wait for choice. Record in pipeline state.
Tell user to run /discover → /spec, then say "orbit go". STOP and wait.
On resume: load latest SPEC-*.md with status: approved. Proceed to Step 3.
$HARNESS_DIR/specs/SPEC-{timestamp}.md with status: pendingstatus: approved, record via mem_add (type=decision, importance=0.9). Proceed.goal_slug[ -z "$(git status --porcelain)" ] || (echo "ERROR: Dirty working tree or untracked files. Commit or stash first." && exit 1)
git symbolic-ref -q HEAD || (echo "ERROR: Detached HEAD. Checkout a branch first." && exit 1)
git worktree add .claude/worktrees/orbit-{goal_slug} -b orbit-{goal_slug} origin/{default-branch}
cd .claude/worktrees/orbit-{goal_slug}
worktree_name and original_cwd in pipeline stategit diff --statcheck_report fieldcheck_fail_count:
< 3: plan fixes from action items, execute, return to Step 4≥ 3: PAUSE — ask user "continue or abort?"cargo clean / npm run clean / equivalentgh pr create with spec + check report in bodygh pr checks --watch, auto-fix failures## Orbit Complete
- Pipeline: PIPELINE-{id}
- Mode: {interactive|council}
- Spec: SPEC-{timestamp} ({goal_slug})
- Branch: orbit-{goal_slug}
- Worktree: orbit-{goal_slug} (preserved for PR)
- PR: {URL}
- Check retries: {count}
### Phase Summary
| Phase | Status | Retries |
|-------|--------|---------|
| Spec | approved | 0 |
| Go | complete | 0 |
| Check | PASS | {count} |
| Ship | complete | 0 |