orchestune-provision
Skill1 starsChanged 3 months agoMITView on GitHub
Internal follow-up skill invoked by orchestune once a decomposition plan is approved: creates GitHub Issues for each subtask using the orchestune provision CLI (or manual fallback).
In this repository11 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- local-ci-developerSkill
- orchestune-dispatchSkill
- orchestune-provisionSkill
- orchestuneSkill
- local-ci-developerSkill
- orchestune-dispatchSkill
- orchestuneSkill
- workflow-templateSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
Run orchestune bootstrap before provisioning starts to confirm gh authentication and the required labels exist (see step 1).
- Very specific: line 43
Pre-flight: Run orchestune bootstrap to confirm gh authentication and the presence of the required labels (status:*, priority:*, …
- Distinctive: line 44
Preview: Check the content before writing anything.
- Distinctive: line 49
Provision: If it looks right, apply it for real.
- Very specific: line 57
Attaching to a pre-existing EPIC Issue: if the EPIC Issue was already filed ahead of time (by hand, or via plain GitHub — not by …
- Very specific: line 63
Restoring a lost plan file from parent: if <plan-path> was lost (e.g.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Orchestune Provision Skill
This skill takes an approved collision-safe <plan-path> from the orchestune skill and files each subtask as a GitHub Issue via the orchestune provision CLI, wiring up the parent/child and dependency relationships.
This is the initial-generation workflow. It must not be used to replace an
already provisioned, unstarted decomposition generation or to synchronize
existing Issue text. For that distinct responsibility, use orchestune replan
with a read-only preview followed by its explicit --confirm-preview token;
the replan workflow retires only safe old Issues and preserves their history.
[!NOTE] User-Facing Response Language: While this skill instruction is written in English, all user-facing explanations, plans, questions, and responses must use the user's preferred language (e.g., Japanese if the user interacts in Japanese or matches the user's environment). The language of this instruction document must not determine the output language.
Trigger conditions
This is not normally a skill users invoke directly. The orchestune skill loads it internally as a handoff once a decomposition plan has been approved.
As an exception, a human may load this skill directly if they only want to manually run Issue provisioning against an unfiled <plan-path>. The path must follow the collision-safe .orchestune/tmp/decomposition-<issue-or-task>-<UTC timestamp>-<random>/decomposition-plan.md convention defined by the orchestune skill.
Prerequisites
- The
orchestuneCLI tool (orchestune provision,orchestune bootstrap) must be installed on the system. - Run
orchestune bootstrapbefore provisioning starts to confirmghauthentication and the required labels exist (see step 1).
Workflow: Issue provisioning
Filing Issues from <plan-path> is fully codified into the orchestune provision command (#306). Given an approved plan, provisioning is a deterministic transformation — no agent needs to interpret the procedure.
- Pre-flight: Run
orchestune bootstrapto confirmghauthentication and the presence of the required labels (status:*,priority:*,risk:flagged,progress:partial,not-needed-review:*), filing any that are missing. If it fails (exit 1), stop here and follow its guidance (e.g. set up authentication) before retrying. - Preview: Check the content before writing anything.
This prints each Issue's title, labels, and body that would be created, without writing to GitHub.orchestune provision --plan <plan-path> --no-apply Provision: If it looks right, apply it for real.
orchestune provision --plan <plan-path> # Or when running in an external project without repository templates: # orchestune provision --plan <plan-path> --template <path-to-skill>/resources/issue_template.mdThis files the parent Issue (
[EPIC] <title>) fromtitle, then files each subtask Issue in the topological order of<plan-path>'sdepends_on, setting the--parent/--blocked-by-equivalent relationships viagh issue edit --set-parent/--add-blocked-by. Each filed Issue number is written back into the plan's frontmatter (parent_issue_number, and each subtask'sissue_number) as it's created, and the entire updated plan is synchronized into the parent Issue's body under<!-- orchestune:decomposition-plan -->. Idempotent and resumable from a partial failure: a subtask whoseissue_numberis already set, or whosesubtask_idmatches a Footprint YAML block embedded in an existing child Issue under the parent, is not recreated — the existing Issue number is reused as-is. Each subtask Issue's Footprint YAML also always embeds the parent number (parent_issue_number), so even in a degraded environment whereadd_sub_issue/set_blocked_byfails (e.g. no native-relationship support), a--parent-issue-mode Dispatcher can still discover the target Issue via this body metadata, andorchestune provisionitself completes without aborting (degraded subtasks are reported viaProvisionResult.degraded_subtask_ids). See the docstrings inorchestune/provisioning.pyanddocs/ja/usage.mdfor the exact derivation rules (label rules, template placeholder substitution using.github/issue_template.mdor bundledresources/issue_template.md, etc.).Attaching to a pre-existing EPIC Issue: if the EPIC Issue was already filed ahead of time (by hand, or via plain GitHub — not by Orchestune), either specify
parent_issue_number: <N>andparent_issue_source: adoptedin the plan frontmatter, or pass--parent-issue <N>on the command line:orchestune provision --plan <plan-path> --parent-issue <N>The target Issue is normalized in place if it doesn't already look like an Orchestune EPIC (a
"[EPIC] "title prefix and parent marker are added as needed, preserving its existing content) — no title match against the plan'stitleis required. The command writesparent_issue_source: adoptedinto<plan-path>, so subsequent runs no longer require--parent-issueto be re-passed; they will automatically reuse the adopted parent and existing child issues. If an adopted parent issue does not exist, provisioning aborts with an error rather than silently creating a duplicate parent.Restoring a lost plan file from parent: if
<plan-path>was lost (e.g. after worktree cleanup), create a fresh unique session directory and restore it directly from the parent Issue:orchestune provision --restore-plan <parent_number> --plan <plan-path>- Return the list of filed Issues to the orchestune skill, for it to report to the user or hand off to the orchestune-dispatch skill.
Fallback for environments without gh (manual filing)
orchestune provision calls the gh CLI internally. In an environment where gh itself can't be installed or authenticated, use the GitHub MCP server, or guide the user through manual filing via the Web UI instead. In that case, replicate the following mapping by hand:
- Parent Issue: file it with the title
[EPIC] <title>from<plan-path>'stitle, then write the resulting number back intoparent_issue_number. - Each subtask Issue: fill
.github/issue_template.md's placeholders ({{subtask_id}},{{subtask_id_yaml}},{{description}},{{overview}},{{proposed_changes}},{{acceptance_criteria}},{{verification_plan}},{{footprint}},{{symbols}},{{depends_on}},{{parent_issue_number}}) from the subtask's fields, then write the resulting number back into that subtask'sissue_number.{{subtask_id}}is for display use (headings, etc. — the raw value), while{{subtask_id_yaml}}is for use inside the Footprint YAML block only (a YAML-scalar-quoted value that's safe even for IDs containing:or#) — always use the correct one for its context.{{parent_issue_number}}is the parent Issue's number (nullif not yet resolved); don't omit it, since it's the required fallback the Dispatcher uses to discover child Issues in environments where native relationships aren't available. - Always set labels:
dispatch_cycle._group_by_statusnever picks up an Issue that has no status label (status:queued/status:blocked/etc.), so forgetting to label a subtask means it's never dispatched, permanently. Setstatus:queuedifdepends_onis empty or every dependency is already done, otherwisestatus:blocked. Also always setpriority:{subtask.priority}(from<plan-path>'spriority;mediumif unset), andrisk:flaggedifriskis true (these derivation rules mirror_derive_labelsinorchestune/provisioning.py). - Filing Issues via the GitHub MCP may not be able to set native
blocked_by/parentrelationships. Even so, always preserve Footprint YAML'sdepends_on— the Dispatcher uses this value for dependency resolution and for restoring branch stacking during self-healing. If you want the GitHub-native relationships visible too, add them after filing via the Web UI orgh issue edit --set-parent/--add-blocked-by.
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.

