orchestrate
Skill0 starsChanged 30 days agoMITView on GitHub
Use after breakdown to execute open issues automatically in parallel waves, each in its own worktree by the role in its label, with budget limits, stop rules, verification, and PRs. Owner stays in the loop only at the gates in docs/WORKFLOW.md.
- Commits and pushes
186 other projects use a version of this.
Adopted by
Most recently taken up by
- krzysztof-wojtowicz/coffer-demotheir own version, first seen Nov 29, 2026
- 0verhead/skillstheir own version, first seen Nov 29, 2026
- romerma/mstacktheir own version, first seen Nov 29, 2026
- swarm-routing/skillstheir own version, first seen Nov 29, 2026
- hams-ollo/zen-agent-skillstheir own version, first seen Nov 29, 2026
- zen-solutions-dev/zen-agent-skillstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use define-requirements, orchestrate-plan and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
sson0-erSkilldefine-requirements
Work with the user, one question at a time, to complete the requirements document (docs/claudex/<slug>/01-requirements.md). Run by the orchestrator (parent). Stays out of design and implementation.
Also in 3 projects that use this
EternallLightSkillorchestrate-plan
Use when executing a locked, reviewed PLAN.md by delegating the implementation to visible worker agents in Orca, herdr, or cmux ONE PHASE at a time — splitting the plan into context-window-sized phases, giving every phase a pristine worker context, and (when the plan touches INDEPENDENT repos) running one worker per repo IN PARALLEL. Triggers on "run the plan with a worker", "execute the plan in the other pane", "split the plan into phases and build it with workers", "build the backend and frontend in parallel panes". Not for edits you can finish inline; outside Orca, herdr, or cmux use tgc-skills:orchestrate.
Also in 3 projects that use this
sson0-erSkillrecord-evidence
How to record external facts (docs, command output, codebase findings) as evidence and design choices as decisions. Used by the researcher, designer and reviewer agents.
Also in 3 projects that use this
PinkneyJiangSkillimprove-architecture
扫描代码库中的架构摩擦点,识别浅模块并挖掘深模块演进机会。生成可视化交互式 HTML 诊断报告,并在用户确认后闭环实施深度重构。
Also in 6 projects that use this
koaeraserSkillhouse-style
Exemplar-based house voice for LaTeX manuscripts: a reader-first standard judged against an approved exemplar, a house-voice rewrite that never changes meaning, numbers, citations, or defined terms, and advisory style metrics (sentence length, paragraph length, first-person plural, semicolons, numbers in prose) printed beside the exemplar's values. The exemplar can be replaced with your own via --ref. Used by write-manuscript, paper-writer, paper-grader, paper-fixer, paper-critic, and research-pipeline; also runs standalone.
Also in 3 projects that use this
JaxsbrSkillspec-author
Defines product specifications and build phases — takes ideas through the pipeline to produce phase specs the build-loop can execute and verify
Also in 3 projects that use this
Other versions186 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 186
- Significant-Gravitas/AutoGPT★ 188ksame name
- expo/exact★ 5.3ksame name
- rohitg00/pro-workflow★ 2.9ksame name
- apmantza/pi-lens★ 545same name
- boshu2/agentops★ 464same name
- quantumaikr/quant.cpp★ 403same name
- Noizefield/audio-plugin-coder★ 378same name
- kagenti/kagenti★ 304same name
- varun29ankuS/shodh-memory★ 294same name
- provencher/codex-skills★ 271same name
176 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 3 are distinctive, and 11 are very specific to this project.
0
Common
Most of the 165 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
All values (limits, gates, backend commands, models) are read from docs/WORKFLOW.md.
- Very specific: line 43
Before concluding "no work left", re-run gh issue list for Ready issues: labels and owner decisions may change during a session.
- Very specific: line 64
Before creating a worktree: bash ${CLAUDE_PLUGIN_ROOT}/scripts/worktree-for-issue.sh <n> lists existing issue-<n> and issue-<n>-<sufiks> …
- Very specific: line 68
When the Worktree base: line holds an absolute path (e.g.
- Very specific: line 69
Always branch from origin/<basis>, never from a local branch: a local branch may be stale and missing freshly merged PRs.
- Very specific: line 74
When WORKFLOW.md has a Kanban board line, mirror to the board as well: bash ${CLAUDE_PLUGIN_ROOT}/scripts/board.sh <owner> <nomor> <issue> …
- Distinctive: line 86
Verify yourself, never trust an agent's report: read the diff, run the full test suite in the worktree (single command, condensed output).
- Very specific: line 96
ALWAYS merge with gh pr merge <n> --match-head-commit <sha-head> (SHA printed by pr-merge-check.sh), so a follow-up push after the check …
- Very specific: line 100
Never create labels yourself: take every label name from bash ${CLAUDE_PLUGIN_ROOT}/scripts/label.sh <name> (a self-made duplicate such as …
- Distinctive: line 107
Do not repeat the same conflict in the next round and do not re-post the same comment.
- Distinctive: line 125
When in doubt between the two → escalate.
- Very specific: line 141
Auto-merge (
agent-after-qa): only when WORKFLOW.md specifies it and only into the integration branch. - Very specific: line 157
After merging, re-run with --after.
- Very specific: line 161
Run bash ${CLAUDE_PLUGIN_ROOT}/scripts/release-report.sh --test-cmd "<perintah tes penuh>" --dry-run first.
“Common” is measured: kept by at least 6 in 10 of the 165 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Language: reply in the language the user writes in. Write issues, PRDs and comments in the language set by "Language:" in docs/WORKFLOW.md, or in the user's language when it is absent. "Artifact language:" (code, commits, labels) is separate and defaults to English. Phrases in any language are understood by reading intent; this skill lists no trigger words.
aicrew orchestrate
You are the orchestrator: you schedule, verify, and report. You do not write production code yourself.
All values (limits, gates, backend commands, models) are read from docs/WORKFLOW.md; never use other defaults.
Session context (save tokens)
Everything needed lives in files (WORKFLOW.md, PRD, issues), not in conversation history. Run
orchestrate in a new session (or after /clear) following breakdown; a session carrying the entire discussion
re-reads around 100k tokens of context on every call. If this session is already long
(brainstorming/PRD/breakdown inside it), suggest that the owner open a new session before starting, then proceed if the owner declines.
During the session, keep only a per-issue summary (number, status, PR), not raw agent output.
Prerequisites (stop on failure)
docs/WORKFLOW.mdexists andStatus PRD: disetujui(all machine tokens in backticks in this file must be written exactly as shown because scripts and the merge gate read them back).bash ${CLAUDE_PLUGIN_ROOT}/scripts/preflight.sh <backend>exits 0..aicrew/is in the project's.gitignore(add it if missing). Issues labeledepicare journey groupings, not work. Ignore them in all "open issue" counts in this skill (prerequisites, blockers, closing stage);autopilot.sh,resume.sh, andrelease-report.shalready ignore them.- Open issues exist (other than
epic) frombreakdown. None → point to/aicrew:breakdown.
Command style (required in unattended mode; also required by the jaga-codex hook)
One simple command per Bash call, literal paths: no shell variables (S=… && bash $S/…), no cd <dir> && … (use git -C <dir>),
no long chains. Permissions are matched per command; chains and variables cause denials.
Resume (every session starts with this; sessions may die from rate limits or be re-run by autopilot.sh)
Restore state from facts, not memory: bash ${CLAUDE_PLUGIN_ROOT}/scripts/resume.sh (GitHub). TSV output <issue> <aksi> <detail> <aksi-lama>: the action key is column 2 (English name); column 4 holds the old name as a deprecated alias throughout 1.x and may be ignored. Per output row:
finish-merge(deprecated alias:selesaikan-merge): PR is already MERGED →pr-merge-check.sh --after, thenbash ${CLAUDE_PLUGIN_ROOT}/scripts/integrated.sh <pr>: exit 0 → labelintegrated, mirror to the board (and Done whenDone card: agent-after-merge); exit 1 or 2 (e.g. a stacked PR merged into its parent branch) → DO NOT apply the label, close the issue, or move the card; report the reason. Whenbash ${CLAUDE_PLUGIN_ROOT}/scripts/scheduled-workflow.sh <pr>prints paths (scheduled workflows/dependabot.ymlonly activate from the default branch), runbash ${CLAUDE_PLUGIN_ROOT}/scripts/awaiting-release.sh --mark <issue> <pr>(labelawaiting-release; the issue stays open, card does not move to Done).check-release(deprecated alias:periksa-rilis): issue labeledawaiting-release→bash ${CLAUDE_PLUGIN_ROOT}/scripts/awaiting-release.sh --check <issue>: exit 0 (siap) → remove theawaiting-releaselabel and close the issue; exit 1 → keep waiting (report the paths not yet on the default branch); exit 2 → report, do not close.continue-pr(deprecated alias:lanjut-pr): open PR → continue from step 5 (verification, QA, merge per mode); do not open a second PR.check-branch(deprecated alias:periksa-cabang): branchissue-Nexists without a PR → read the diff and run the full suite. Passes → step 6. Broken/half-done → fix as one attempt (budget.sh fail).requeue(deprecated alias:antre-ulang): no branch/PR → remove thein-progresslabel, return to the queue. Anyin-progressissue not in the resume output belongs to a worktree that is still running; do not touch it. The iteration limit is counted per run;autopilot.shcallsbudget.sh newrunon each run and--max-totalcaps the project total.
Unattended mode (autopilot)
- Sessions are run by
autopilot.shone round at a time; its issue list is a snapshot at the start of the round. After reporting, end the turn when all that remains is waiting for the owner (L2 merges,needs-principaldecisions) or for an agent: do not wait inside the turn.autopilot.shpolls cheaply and starts a fresh round with an updated list. - Before concluding "no work left", re-run
gh issue listfor Ready issues: labels and owner decisions may change during a session. - A session idle past
AICREW_IDLE_LIMIT(default 30 minutes without transcript changes and without legitimate child processes) is interrupted byautopilot.sh(SIGINT, then SIGTERM if it persists). TheAICREW_CLAUDEwrapper mustexec claude ..., so signals reach the session.
Owner holds and approvals. Skip owner-hold issues during selection and resume, even when they have an open PR or unsatisfied blockers. Only the owner may remove owner-hold; general approval or bulk removal of needs-principal never releases it. Autopilot exits 3 when all remaining issues await the owner. owner-actions.md lists held issues separately with gh issue edit N --remove-label owner-hold. The automatic merge gate rejects holds on the PR, linked issues, or the issue named by an issue-N branch; manual owner merges remain available.
For changes to existing tests, request Owner approval (scope: test-change <path>[, <path>...]): <text> (Commit: <sha>). A test file that only gains lines (modified, additions above 0, deletions 0, no previous_filename) needs no approval; edits, deletions, renames, removals, binary and mode-only changes still do. Known limit: added lines can still weaken an old test (an early exit), so the QA verdict must read the test diff. Each changed test needs an exact current path or a directory prefix ending in /; an empty list approves nothing. The gate reads any line, case-insensitively, only in unedited comments on the PR itself from OWNER/MEMBER/COLLABORATOR, excluding machine-prefixed comments. The SHA is informational. Added test files need no approval. scope-extension and waiver approvals are read by the orchestrator only; they never bypass the test-change gate. Agents must never write owner approvals themselves or reuse approval for a different scope.
Agents open no notifications of their own: add the waiting label and one owner-action: <action> | <command> | <reason> comment only. Autopilot collects the questions in one owner-actions.md and posts one note per state, rather than one notification per issue.
Selecting ready issues
Ready = open, no assignee/in-progress, all blocked-by already merged into the integration branch (or main when there is no integration branch), not labeled
needs-principal, and not touching the same files as any currently running issue.
Take up to the max parallel limit in WORKFLOW.md, by wave. None ready while open issues
still remain → report the blockers and stop.
A resumed PR/issue must not block the queue (#108). When a resumed PR/issue cannot advance this round (permission denied, QA failed awaiting an owner question, stop rule), mark its issue (not the PR) ONCE with bash scripts/blocked-mark.sh <nomor-issue> "<sebab>" (adds the blocked label + a single blocked: <sebab> comment; a second call is a no-op), then move on to the next ready issue up to the parallel limit. blocked issues are skipped in subsequent rounds and are not retried without a change; bash scripts/blocked-list.sh lists blocked items (#<n><TAB><sebab>). The label is removed only after the cause is resolved. A round that only waits must name what it is waiting on (blocker list). When all remaining issues are blocked/needs-principal/PRs awaiting merge, end the turn: autopilot exits 3 (waiting for owner) with the blockers in .aicrew/owner-actions.md, rather than stalling.
Per issue (one worktree, one PR/MR)
bash scripts/budget.sh check <maxIter> <maxFail> <issue>; exit ≠ 0 → stop per its message, then notify. Thenbudget.sh iter.- Worktree: read the
Worktree:line inWORKFLOW.md. Before creating a worktree:bash ${CLAUDE_PLUGIN_ROOT}/scripts/worktree-for-issue.sh <n>lists existingissue-<n>andissue-<n>-<sufiks>worktrees/branches. Exit 1 = uncommitted or unpushed work exists: do not create a new worktree beside it, continue in the printed path and note it in the round report. The canonical branch for an issue isissue-<n>(no-r2suffix, etc.); retries reuse that branch/worktree instead of creating a new one. Code enforces this:worktree-for-issue.sh <n> --ensure <path> <basis>creates (create), reuses (reuse), continues from the first attempt's commit (continue), or resets a clean worktree left behind without commits of its own ontoorigin/<basis>(reset, without approval); exits 1 if a suffixed worktree has unsaved work. Use this instead of callinggit worktree adddirectly.dibuat orkestrator:git fetch origin <basis>thengit worktree add ../<repo>-wt-<n> -b issue-<n> origin/<basis>(base = integration branch if present, otherwisemain). When theWorktree base:line holds an absolute path (e.g. inside an Orca workspace), use<basis-worktree>/<repo>-wt-<n>instead of../<repo>-wt-<n>;install-permissions.shpopulates read permissions from that line. Always branch fromorigin/<basis>, never from a local branch: a local branch may be stale and missing freshly merged PRs.disiapkan manual / Orca, or a path under~/orca/workspaces/ingit worktree list: use the prepared worktree; do not create/move worktrees there. If none is prepared yet, ask the owner once (prepare it manually, or allow creating it beside the repo outside~/orca/workspaces/), then record the answer on theWorktree:line so it is not asked again.
- Move the label to In Progress (backend command from
WORKFLOW.md). WhenWORKFLOW.mdhas aKanban boardline, mirror to the board as well:bash ${CLAUDE_PLUGIN_ROOT}/scripts/board.sh <owner> <nomor> <issue> "In Progress"(and"In Review"when a PR is opened;board.sh <owner> <nomor> --syncmirrors issues closed without a PR to Done whenDone card: agent-after-merge, and always computes epic status from its children; run it after finishing each issue). Task card status (Ready/In progress/In review) is synced by code:board.sh <owner> <nomor> --sync-cards(mapping in README, Kanban section; autopilot runs it automatically). Fails → report and continue: labels remain the source of truth.Doneis set only by the owner, unlessWORKFLOW.mdsetsDone card: agent-after-merge: then after a verified merge (--afterexit 0) move it to"Done". - Invoke the agent matching the
role:*label, using the model fromWORKFLOW.md:aicrew-senior-coder(Codex when installed:codex exec -s workspace-write -C <worktree> -o <keluaran> -with the prompt from${CLAUDE_PLUGIN_ROOT}/templates/codex-prompt.md, filled in and passed via an inline heredoc or literal path, not a variable, so thejaga-codexhook can read it),aicrew-ui-ux,aicrew-devops, etc. Pass only: issue body, relevant PRD section, related files list. Never pass conversation history. Codex delegation: runbash ${CLAUDE_PLUGIN_ROOT}/scripts/codex-probe.shfirst (notcodex-ready→ fall back straight to the Claude subagent); embed the issue into the prompt withbash ${CLAUDE_PLUGIN_ROOT}/scripts/codex-prompt.sh <issue>(Codex does not call gh); after Codex finishes, runbash ${CLAUDE_PLUGIN_ROOT}/scripts/codex-result.sh <worktree>: exit 1 (empty diff) → fall back to the Claude subagent in the same round and logcodex unavailable: <alasan>in the round log. Tests requiring Docker/ports are run by the controller; the round report states which targets could not run inside the sandbox. - Verify yourself, never trust an agent's report: read the diff, run the full test suite in the worktree
(single command, condensed output). Context-heavy work is delegated to
aicrew-qa(haiku): checking each acceptance criterion one by one, reading long logs, and screenshotting/reading the UI; request a max 12-line report. A QA report is a claim; the full test suite is still run by the orchestrator once per PR. UI changes require a screenshot that is actually read. QA passes → post a PR commentLaporan qa: luluswithCommit: <sha head>(two lines, or one lineLaporan qa: lulus Commit: <sha>; case-insensitive, last verdict for the head wins; write these exact tokens because the merge gate scripts read them back).pr-merge-check.sh --autorefuses to merge any non-docs-only PR without that verdict, so post it AFTER QA finishes and BEFORE calling the gate. Sensitive changes (auth, input, secrets, dependencies) →aicrew-security. Issues labeledneeds-securitymust go through this; if a change turns out to be sensitive but is not yet labeled, apply the label first. Passes → post a PR commentLaporan security: luluswithCommit: <sha head>(pr-merge-check.shrefuses to merge without that comment).needs-perfissues →aicrew-perfafteraicrew-qa. Paste its full verdict in ONE comment (Laporan perf: lulus|gagal,Angka sebelum/sesudah:,Tuning:,Commit: <sha head>). A waiverPengecualian disetujui owner (perf|rahasia): <alasan> (Commit: <sha>)may only be written by the owner and applies only to its scope; agents are forbidden from writing it. ALWAYS merge withgh pr merge <n> --match-head-commit <sha-head>(SHA printed bypr-merge-check.sh), so a follow-up push after the check cannot get merged without a report. Prefer the single entry pointbash ${CLAUDE_PLUGIN_ROOT}/scripts/merge-pr.sh <n> <cabang-tujuan> --branch issue-<n>: it runs the gate and the samegh pr merge --match-head-commit; only when a live probe proves both GitHub API limits (GraphQL and REST) are exhausted does it use the local path (local-merge.sh: L0/L1 only, runsTest command:itself on the merge result, waits for anything that needs GitHub proof). Exit ≠ 0 = do not merge; report it as-is. - Passes →
budget.sh reset <n>, open PR/MR, post the evidence comment (format inWORKFLOW.md), label In Review. PR body: one keyword per issue, one per line (Closes #4⏎Closes #5).Closes #4, #5only closes #4. Never create labels yourself: take every label name frombash ${CLAUDE_PLUGIN_ROOT}/scripts/label.sh <name>(a self-made duplicate such asintegratednext to a configured label breaks the label queries;preflight.shwarns about it). If an issue has acceptance criteria markedowner only, writeRefs #Ninstead ofCloses #Nin the PR body, so merging does not close an issue whose owner-only criteria are still open. The merge gate now enforces it: --auto refuses a PR that closes an issue with an unchecked owner only criterion, manual mode warns. Known limits: only unchecked checklist lines in the issue body are read (not headings, continuation lines or comments), and when GraphQL is exhausted every#Nin the PR body counts as closed, so useRefsfor mentions. If a command is denied by permissions on a PR, say so once:bash ${CLAUDE_PLUGIN_ROOT}/scripts/blocked-note.sh <pr> "<command>"posts a singleblocked-by-permission: <command>comment (not repeated for the same command) and prints theBash(<command>:*)rule for the owner to add; then stop working that PR only and continue with the other ready issues (#108); a permission block never ends the whole round. Fails →budget.sh fail <n>, fix once with specific findings; fails again → stop rules. Conflict with the target branch (PRCONFLICTING/DIRTY): handle once per round, do not guess. First read the latest owner comment (rules in the Stop rules section); if the owner has already decided, follow it. Prerequisite:git status --porcelainin the PR worktree is empty, thengit fetch origin <target>. Rungit merge origin/<target>(requiresBash(git merge:*)permission, installed byinstall-permissions.sh). If permission is denied, post ONE commentowner-action: merge origin/<target> ke worktree PR | cd <worktree> && git merge origin/<target> | agen tidak punya izin git merge, stop ONLY this PR (not the whole round): mark its issueblocked(rule #108 above) and continue with the next ready issue; do not try alternative command forms.- Clean merge: run the full test suite, then push the PR branch and continue verification as usual (test failures follow the failure rules).
- Merge stops on conflict: record the files with
git diff --name-only --diff-filter=U, thengit merge --abort(only whengit rev-parse -q --verify MERGE_HEADsucceeds) and confirmgit status --porcelainis empty. Classify on one line:mechanical(adjacent lines only, generated files, or import/list ordering) ordesign decision(both sides differ in meaning, or their behavior conflicts). When in doubt =design decision. Comment:terblokir: konflik merge dengan <target>: <berkas>; klasifikasi: mechanical|design decision.design decisionfollows the Stop rules (needs-principal);mechanicalgets no label, but add oneowner-action:comment containing the merge command so it appears inowner-actions.md. - Do not repeat the same conflict in the next round and do not re-post the same comment; continue only after the owner or principal decides.
- Single-lane build/test: never run the full test suite from multiple agents concurrently.
- After a verified merge (
--afterexit 0) and updated card/labels, clean up:bash ${CLAUDE_PLUGIN_ROOT}/scripts/cleanup.sh --after-merge --issue <n>. The script readsClean up after merge:inWORKFLOW.md:ya(default, also when the line is missing) removes the<repo>-wt-<n>worktree andissue-<n>branch (local and remote) that are proven merged, without--forceand without touching uncommitted work;laporkanonly prints;tidakskips. Output includes the tip SHA of each deleted branch. A non-zero exit code orlewati:...line is only reported in the summary: cleanup never stops the flow.
Stop rules (mark the issue, apply needs-principal, move on to another issue, notify the owner)
The contents of the "Stop rules" section in WORKFLOW.md apply. In short: needs-principal (two levels below),
two consecutive failures, ambiguous requirements, need to modify existing tests or add a dependency, limit reached.
needs-principal has two levels; who decides is set by the needs-principal: line in WORKFLOW.md (default owner):
- Design decisions within PRD bounds (data format, thresholds, internal APIs).
owner(default): mark the issue, write the concrete question, skip it, move on to another issue, notify the owner.principal-auto: (a) invokeaicrew-principal(opus) with the issue body, PRD section, and specific design question; request decision + rationale + risk + rejected alternatives, max 12 lines,file:barisevidence. (b) Verify yourself: the decision does not violate the PRD/non-goals and is not level 2; anESKALASI:reply from principal or any doubt → treat as level 2. (c) Post as an issue comment starting with**Keputusan otomatis (principal)**, replace the labelneeds-principal→auto-decision, return the issue to the queue and provide the coder agent with that decision. (d) One automatic decision per issue: if the issue is labeledneeds-principalagain afterward, escalate to the owner (prevent loops). The session report and release report listauto-decisionitems for owner review.
- Escalate to the owner (never decide yourself, even in
principal-auto): when an issue conflicts with the PRD or its non-goals, touches auth/money/personal data, or is hard to reverse (new server, accounts, migrations). Mark the issue, write concretely what conflicts with which PRD section, skip it, move on to another issue, and notify the owner. When in doubt between the two → escalate.
Temporary grants. Only a structured - Grant: line in the Temporary grants section of WORKFLOW.md (target branch) causes pr-merge-check.sh --auto to accept risk:L2; free-text "temporary permission" has no effect, and an L2 refusal from the gate is reported as-is. Grants have expires: re-run the gate right before gh pr merge, and record the grant used (the izin sementara: line from the gate) in the session report. Never add or edit Grant: lines yourself. scripts/autonomy.sh (on, off, status) enables and revokes a temporary set of merge permissions (Bash(gh pr merge:*), Bash(git merge:*), Bash(git rebase:*) plus rtk variants, without docker/gh api/push) and a Grant: ...; note=autonomy.sh line until an ISO8601 deadline (maximum 7 days, default branch rejected). autonomy.sh is run by the owner only (owner only); agents are blocked by the deny rules in templates/autopilot-permissions.json (including Edit/Write on .aicrew/autonomy.json) and are strictly forbidden from enabling it or editing .aicrew/autonomy.json. Limit: Bash permission entries are not branch-scoped and are not a sandbox (equivalent to agent-after-qa mode for a limited time; default-branch protection still relies on the pr-merge-check.sh --auto gate, the git push ... main deny rule, and GitHub branch protection).
Owner-only actions (e.g. chmod +x on a script in a worktree, merging origin/integration into a PR worktree when git merge permission is denied, secret-scanner exemptions): post ONE comment on that issue or PR in the format owner-action: <tindakan> | <perintah> | <alasan> (reason = why the agent is not allowed to do it). When autopilot starts waiting for the owner, scripts/owner-actions.sh collects those comments (along with needs-principal issues and PRs awaiting merge) into .aicrew/owner-actions.md, one line per item, and its path is logged and included in the notification.
Before applying needs-principal (or re-applying it), read the issue comments. "latest owner comment" = the latest comment not written by an agent: not starting with **Keputusan otomatis (principal)**, terblokir:, blocked:, or aicrew-progress, and when WORKFLOW.md names an owner, authored by that person (sharing a gh account with the agent does not make an agent comment an owner decision). If that comment already resolves the question about to be asked (e.g. a dependency approved with an exact pin), treat it as answered: do not apply the label and do not ask again. Exception: new level-2 concerns are still escalated (an older decision does not cover them), as is any case where the owner has revoked or changed the decision. Real obstacles that are not owner decisions (missing implementation, unmet acceptance criteria, dead environment such as the Docker daemon, two consecutive failures after an owner decision) are reported as-is as terblokir: <sebab> in the issue comment and session report, without needs-principal; the issue is skipped and retried in the next round. Do not repeat a terblokir: comment when its cause is identical to the previous agent comment (autopilot stops as stalled when state does not change).
Agents are forbidden from loosening the sandbox or modifying existing tests without permission. Hit a rate limit (Codex/another agent) →
take over with a Claude model matching the task weight and note it in the report.
Gates
- First PR/MR: stop and ask the owner to review before continuing to the next wave (unless
WORKFLOW.mdrelaxes this). - Integration branch: issue PRs use that branch as their base. Merging into the integration branch is done by the agent only when
WORKFLOW.mdexplicitly allows it in writing; if denied by Bash permissions, do not work around it: ask the owner to merge (provide the PR link) and continue with non-dependent issues. No integration branch exists yet but there is ablocked-bychain → propose one to the owner and record it inWORKFLOW.mdbefore creating it. - Auto-merge (
agent-after-qa): only whenWORKFLOW.mdspecifies it and only into the integration branch. All conditions must hold on that PR: full suite green,aicrew-qareport passes,aicrew-securitypasses when sensitive (needs-security),aicrew-perfpasses whenneeds-perf, noneeds-principal,pr-merge-check.sh <n> <cabang-tujuan> --autoexits 0 (rejectsrisk:L2: L2 is always owner). Then merge, re-run with--after, then runintegrated.sh <pr>(exit 0 required), and change the label tointegrated. Any single condition fails → do not merge, fall back to manual (ask the owner). QA must be invoked in this mode (never skipped). Merging tomainstays with the owner. - CI cannot start (infrastructure) and the owner wrote a
scope=ci-localgrant inWORKFLOW.md: run the FULL suite in the PR worktree on that head, then post a commentLaporan ci-lokal: lulus+Commit: <sha head>+Perintah: <perintah>+Hasil: <ringkasan keluaran>; the--autogate accepts it only when CI is classified asinfrastructure, the grant has not expired, and the target branch is not the default branch. Without an owner grant, never write that report. New head = new report. - CI fails: before re-running jobs or opening a fix attempt, classify first:
gh api repos/<owner>/<repo>/commits/<sha>/check-runs | bash ${CLAUDE_PLUGIN_ROOT}/scripts/ci-classify.sh. Resultinfrastructure(billing/account, job with no runner) = not a code fault: DO NOT re-run the job, DO NOT open a fix attempt; record the printedowner-action:line (post it as anowner-action: ...comment as usual), hold merges that require CI, and continue with items that do not require CI.code= fix as usual;pending= wait. Exit ≠ 0 = treat ascode. - Merging to
mainand moving to Done followWORKFLOW.md; default: owner only. Never move items to Done yourself. - Follow-up issues that you create (QA/security follow-ups, split issues) must inherit their source epic, never left orphaned:
bash ${CLAUDE_PLUGIN_ROOT}/scripts/epic-link.sh --inherit <issue-sumber> <issue-baru>(exit 3 = source genuinely has no epic; report it). Periodic orphan audit:bash ${CLAUDE_PLUGIN_ROOT}/scripts/epic-link.sh --check(exit 3 = open issues exist without a parent; report to the owner, never attach them yourself without a clear journey basis). - Shared stack (Docker/Keycloak, test DB shared across sessions or worktrees): run its tests through the lock,
bash ${CLAUDE_PLUGIN_ROOT}/scripts/lock.sh <nama-stack> -- <perintah tes>, or name the compose project per worktree (COMPOSE_PROJECT_NAME). Two sessions restarting the same stack cause random test failures. - The label names
integratedandauto-decisionin this skill are defaults; the effective names come frombash ${CLAUDE_PLUGIN_ROOT}/scripts/label.sh integrated|auto(configurable viaWORKFLOW.md). - Status labels:
in-progresswhen starting,in-reviewwhen a PR is opened,integratedafter the PR is merged into the integration branch (replacesin-review). Issues are only closed when merged intomain. Create the labels if they do not exist yet. - Stacked PRs (issue B branches from an unmerged issue A): before merging any PR, you MUST run
bash ${CLAUDE_PLUGIN_ROOT}/scripts/pr-merge-check.sh <n> <cabang-tujuan>(exit ≠ 0 = do not merge). Merge bottom-up; after the parent PR is merged, retarget the child PR base to the integration branch (gh pr edit <n> --base <integrasi>) BEFORE merging it. A PR whose base is not the integration branch/mainwhile its parent is already merged is a trap: its changes never reach integration. After merging, re-run with--after; a "Merged" status alone is not proof. - Commands that change servers/production or incur cost: always confirm with the owner.
Closing stage: release candidate (when no ready/running issues remain, only integrated is left; epic issues are not counted)
- Run
bash ${CLAUDE_PLUGIN_ROOT}/scripts/release-report.sh --test-cmd "<perintah tes penuh>" --dry-runfirst. The script verdicts FACTS (PRs missing aBukti selesaicompletion evidence comment, issues not yetintegrated,needs-principal, suite in a fresh clone).BELUM SIAP→ fix what is named (e.g. post a missing evidence comment from real facts, never fabricated), then re-run; anything requiring the owner is reported and stops. - Fill in the
## Daftar periksa rilis(release checklist) items one by one with the command and its output (delegate toaicrew-qa/aicrew-security); never check an item off without evidence. SIAPand the checklist is filled in → re-run without--dry-runand with--open-pr(opens anintegrasi → mainPR with the report as its body). Never merge tomainunlessWORKFLOW.mdallows it (auto mode tomain, if configured). Notify the owner with the PR link and anyKeputusan otomatis(automatic decision) items to review.
Notifications
For waiting items, agents create no notifications: use the label and owner-action: comment only. Autopilot sends one note per state through the configured notification hook; never store tokens in files.
Final session report (max 12 lines)
Done / In Review / marked needs-principal / skipped, iterations used, what was not verified,
and what was taken over if any agent hit a rate limit.
Quota mode: local (no GitHub)
When docs/WORKFLOW.md says Quota mode: local: read issues with bash ${CLAUDE_PLUGIN_ROOT}/scripts/issue.sh list [--label L] / view <n> (same JSON shape as gh issue list --json), claim with issue.sh label <n> --add in-progress, prepare the worktree with worktree-for-issue.sh --ensure. There is no PR: the role agent commits on branch issue-<n> in the worktree and the branch IS the PR (number = issue number); mark it ready with issue.sh label <n> --add in-review. The QA agent may post Laporan qa: lulus / Commit: <sha> with issue.sh comment (informational: the local merge runs Test command: itself on the merge result). Merge with bash ${CLAUDE_PLUGIN_ROOT}/scripts/merge-pr.sh <n> <default-branch> --branch issue-<n>; exit ≠ 0 is not a merge. When it says the issue needs the owner (risk:L2, needs-*, edited tests or config, dependency manifests, docs/WORKFLOW.md), do not retry: report it (owner-actions.sh lists it) and tell the owner to run ! bash ${CLAUDE_PLUGIN_ROOT}/scripts/owner-local.sh approve <n> in a terminal (the approval is bound to that commit and the issue's current labels and body); agents never approve. owner-hold and blocked are never approvable. After the merge run integrated.sh <n> <n>. Permission denials: blocked-note.sh <n> <cmd> comments on the local issue. The board, epic-link.sh, release reports, CVE audits and scheduled workflows are GitHub-only and exit 2 in this mode.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

