Skip to content
Back to skills

Orchestune Worker

ASecurity

Pull-side worker skill for participating machines/clones to claim eligible tasks via `orchestune agent claim --next`, delegate implementation to repo skills, and report completion.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgobashrailsgit

Works with

  • cli

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add Saltmu/orchestune --skill orchestune-worker --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Orchestune Worker?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Orchestune Worker
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/saltmu-orchestune-worker-orchestune/badge)](https://www.skillsdirectory.com/skills/saltmu-orchestune-worker-orchestune)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "orchestune-worker"
description: "Pull-side worker skill for participating machines/clones to claim eligible tasks via `orchestune agent claim --next`, delegate implementation to repo skills, and report completion."
version: "1.0.0"
category: "Development"
input_schema:
  type: "object"
  properties:
    parent_issue_number:
      type: "integer"
      description: "Parent EPIC issue number to pull eligible child tasks from."
    max_tasks:
      type: "integer"
      description: "Optional maximum number of tasks to execute sequentially (default: 1)."
output_schema:
  type: "object"
  properties:
    status:
      type: "string"
      description: "Final worker status (completed, no_eligible_task, conflict, or error)."
    issue_number:
      type: "integer"
      description: "Claimed child issue number, if any."
---

# Orchestune Worker Skill (Pull Mode)

This skill is the **Pull-side execution counterpart** to `orchestune-dispatch` (the Push-side control plane).
Use it from any participating machine, separate clone, or interactive coding session (IDE, Antigravity, cloud chat, or local CLI) to safely pull eligible tasks via `orchestune agent claim --next`, implement them in an isolated worktree, and hand them back to the Integrator.

> [!NOTE]
> **User-Facing Response Language**:
> While this skill instruction is written in English, all user-facing explanations, status summaries, questions, and responses must use the user's preferred language (e.g., Japanese if the user interacts in Japanese).

## Scope & Delegation

This skill is a **thin Pull wrapper**. It does **not** redefine coding, TDD, CI, PR, or review rules.
It also serves as the entry point when a direct implementation request (such as `impl #<parent>`) targets a parent EPIC issue and automatically falls back to Pull mode.
Once a task worktree is claimed, delegate all development steps to the target repository's `AGENTS.md` and development workflow skill (such as `local-ci-developer` or `workflow-template`).

## Guardrails

- **Never mutate GitHub labels directly** (never run `gh issue edit --add-label` or `--remove-label`).
- **Never force-delete or overwrite remote leases** (`refs/orchestune/leases/*`).
- **Never run `orchestune-dispatch` concurrently from a Pull worker**; a single control/integration owner manages `dispatch`, `gc`, and `integrator`.
- **Keep all implementation, CI, PR, and `complete` commands inside the claimed `worktree_path`.**

## Workflow

### Step 1: Verify Prerequisites

Before claiming any task, verify from the repository root:

1. `git status --short` (stop if the primary checkout has uncommitted changes that would interfere with worktree setup).
2. `gh auth status` (ensure GitHub CLI is authenticated).
3. `orchestune --version` (ensure the `orchestune` CLI is installed and available).
4. Confirm the target `parent_issue_number` (either provided by the user or inferred from a `parent/issue-<N>` branch).

### Step 2: Claim the Next Eligible Task

Preview first if you want to inspect candidates without mutating state:

```bash
orchestune agent claim --next -p <parent_issue_number> --json
```

To acquire the next eligible task and its remote CAS lease:

```bash
orchestune agent claim --next -p <parent_issue_number> --apply --json
```

Branch strictly on the exit code and JSON payload:

- **Exit `0` (Claimed)**:
  - Parse `issue_number`, `claim_id`, `branch`, `worktree_path`, and `base_ref` from the JSON output.
  - Change working directory into `worktree_path` (`cd <worktree_path>`).
- **Exit `23` (`NO_ELIGIBLE_TASK`)**:
  - Read `skips` from the JSON output, summarize why no task is currently eligible (e.g., dependencies, distributed footprint conflicts, active remote leases), and exit normally. Do not treat Exit `23` as an error.
- **Exit `24` (`REMOTE_LEASE_CONFLICT`) or any other non-zero exit**:
  - Report the conflict or diagnostic error clearly to the user and stop safely without retrying destructively or modifying labels manually.

### Step 3: Implement, Verify, PR, and Review

Inside `worktree_path`:

1. Read and follow the target repository's `AGENTS.md` and development workflow skill (`local-ci-developer`, `workflow-template`, etc.).
   Because `claim --next` has already secured the issue, `worktree_path`, and remote lease, when delegating to `local-ci-developer`,
   skip **Step 2** (issue creation) and **Step 2.5** (re-running `orchestune agent claim <N>`), and execute **Step 1** (plan creation and reviewer resolution)
   and **Step 2.6** (impact scope determination) onward.
2. Complete TDD/implementation, local or remote CI verification, PR creation targeting `base_ref` (`parent/issue-<N>`), and the required PR review loop.
3. If you need to touch files outside the declared Footprint during implementation, expand the held reservation and remote lease safely before committing:

```bash
orchestune agent claim <issue_number> --apply --amend-footprint --add-path <path>
```

### Step 4: Report Completion and Release Lease

From inside `worktree_path`, finalize the task via `orchestune agent complete --apply` (see `local-ci-developer` [Completion commands](../local-ci-developer/SKILL.md#completion-commands) for the canonical option contract such as `--pr`, `--reviewer`, `--review-reply`, and `--read-evidence`):

```bash
orchestune agent complete --apply --issue <issue_number> --pr <pr_number> --result done --reviewer <bot> --review-reply <session-dir>/review-reply.md
```

This posts the canonical Outcome Record to the Issue, updates labels through Orchestune's state machine, and releases the remote lease (`refs/orchestune/leases/issue-<N>`) so the control plane (`orchestune-dispatch --integrate-only`) can integrate the PR.

### Step 5: Optional Continuous Loop

- By default, stop after completing **one** task (or hitting Exit `23`).
- Only if the user explicitly asks to process multiple tasks or run "until empty", return to Step 2 from the primary checkout until either the requested task count is reached or `orchestune agent claim --next` returns Exit `23`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.