Coordinate research proposal, experiment design, reproducible experiment implementation, and open-source contribution workflows with a role-neutral coordinator and CLI-based coding agents as workers. Use when an agent needs to turn research or experiment goals into requirements, design decisions, task packets, worker dispatch, evidence-based review, and iterative implementation, or resume this workflow from existing materials at any stage, using repo-local filesystem protocols and Git worktree isolation.
Ships in research-dev-orchestrator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill to coordinate research and experiment-driven development with a coordinator backend such as Codex or Claude Code and CLI coding agents as execution workers.
Do not treat this as a server, RPC, queue, or daemon architecture. Use repo-local files as the protocol and Git branches/worktrees as execution isolation.
rdo finalize. RDO derives evidence and handoff artifacts atomically; workers must not edit STATUS.json terminal state.TASK.md, CONTEXT.md, ACCEPTANCE.md, and
EXECUTION_POLICY.json before any attempt, lock, worktree, or running-state
mutation. Recognized v1 runs use only the explicit legacy decoder.rdo check.rdo check; each v2 record binds
the exact clean candidate commit/tree. Legacy rdo exec --acceptance,
free-text command claims, and task-root handoff/evidence files cannot satisfy
a v2 gate..agent-collab/runs/<run-id>/.....agent-collab/ and .agent-worktrees/ are local runtime state, not project
source. init_run.py records both in the target repository's
.git/info/exclude, verifies that Git ignores them, and refuses to initialize
while either path is already tracked.references/state-machine.json before any state mutation.SUMMARY.md, dashboard.html, and diagnostics/ are derived monitor artifacts, not sources of truth.EVENTS.ndjson and JOURNAL.md are required long-term memory artifacts. Use them to preserve cross-session history without adding a heavier decision database.ATTEMPT.json owns worker execution lifecycle. collect_status.py validates invariants across status, attempt, lock, events, evidence, and handoff files.scripts/protocol.py is the script-internal source for protocol constants and low-level helpers. scripts/validation.py owns shared protocol validation rules used by online dispatch gates and offline status audit. Neither file is a user interface or public SDK..agent-collab/rdo.toml and scripts/config.py own operational defaults only. They must not configure protocol states, schema fields, events, blocker types, or protocol version.plain; use tmux only when the user wants attachable long-running worker observation. Backend choice must not change protocol truth sources.resume declarations. Dispatch validates the referenced terminal attempt, completed source workflow, and exact worktree digest before carrying a checkpoint forward.Before routing, split work that contains independently acceptable outcomes or
multiple primary trust boundaries. Then choose the lightest profile whose
verification boundary matches the resulting task: Direct for local low-risk
changes with worker-owned implementation review, Delegated for bounded work
needing independent coordinator judgment, and Full for high-risk, materially
cross-module, experimental, multi-workflow, permission-model, hard-budget, or
otherwise strategy-gated work. Full always adds explicit pre-implementation
strategy approval and must be selected literally; never infer it from vague
complexity, file count, or estimated duration. Read
references/execution-profiles.md before routing or changing task execution
semantics.
On every activation or resumption, perform a read-only phase audit before substantive work or protocol state mutation:
satisfied, satisfied_by_existing_material, needs_normalization, missing, or blocked.When the user does not specify an entry stage, continue from the earliest unmet required gate. Preserve completed work; do not restart requirements or design merely because the material uses non-RDO filenames.
When the user explicitly requests entry at a later stage, treat that request as an entrypoint, not as permission to bypass prerequisites:
Profile selection may remove planning or independent coordinator review by design. It never waives Git isolation, FSM validity, attempt supervision, profile-appropriate handoff validation, or merge gates.
Synchronize approved decisions to canonical artifacts before continuing:
REQUIREMENTS.md;DESIGN_METHOD_SELECTION.md, DESIGN_BRIEF.md, or relevant ADR/*;EXPERIMENT_PLAN.md;REPRODUCIBILITY.md;ACCEPTANCE.md;RESULT_LEDGER.md.If no Git repository exists, remain in pre-run planning: canonical planning artifacts may be created or normalized, but do not initialize RDO runs, create worktrees, dispatch workers, or claim execution readiness.
This is the canonical end-to-end progression across profiles. A stage-aware entry may begin later only after the phase audit above confirms or normalizes its prerequisites.
REQUIREMENTS.md.DESIGN_METHOD_SELECTION.md.DESIGN_BRIEF.md, relevant ADR/*, EXPERIMENT_PLAN.md, and REPRODUCIBILITY.md.references/task-packet-template.md.scripts/init_run.py if no run exists.scripts/create_task.py.scripts/collect_status.py; use --json for machine consumers and --write-summary for SUMMARY.md. Use scripts/render_dashboard.py when the user wants a visual run monitor.references/review-rubric.md.approved after diff review, evidence review, mergeability verification, and required integration smoke tests pass.ACCEPTANCE.md.RESULT_LEDGER.md for experiment outcomes and claim support.scripts/close_session.py to update SUMMARY.md, append JOURNAL.md, and append a session_closed event.Read references only when they are needed:
references/requirements-template.md: use during user requirement and research goal clarification.references/design-method-selection.md: use before writing system or experiment design.references/adr-template.md: use when recording architecture decisions.references/experiment-plan-template.md: use for hypotheses, baselines, datasets, metrics, and ablations.references/reproducibility-template.md: use for environment, seed, data, command, and expected-output contracts.references/result-ledger-template.md: use to record experiment results and claim support.references/task-packet-template.md: use before creating or editing task packets.references/artifact-protocol-v2.md: use before dispatch, finalization,
attempt-artifact review, approval, merge, or legacy/v2 compatibility work.references/state-machine.md: use for human-readable FSM semantics.references/state-machine.json: use as the authoritative machine-readable FSM.references/status-schema.md: use before writing or reviewing STATUS.json.references/execution-profiles.md: use before routing Direct, Delegated, or Full tasks and before replacing a worker.references/attempt-lifecycle.md: use before dispatching workers or auditing running/review/verified/blocked invariants.references/configuration.md: use when changing .agent-collab/rdo.toml, config defaults, env overrides, stale thresholds, or task branch/worktree defaults.references/runtime-backends.md: use before enabling RDO_RUNTIME_BACKEND=tmux or auditing backend-specific attempt metadata.references/execution-strategy.md: use before planning, approving, revising, or running a multi-workflow strategy.references/attempt-supervision.md: use before changing process deadlines, bounded execution, or cleanup behavior.references/tmux-control.md: use before messaging, interrupting, or terminating a tmux worker.references/agent-backends.md: use before changing worker backend registry definitions or backend-specific command contracts.references/backend-governance.md: use before changing durable backend policy, strategy/backend binding, attempt profile compilation, backend settings, native-agent hooks, or stream monitors.references/protocol-constants.md: use when changing script constants, exit codes, blocker types, or event types.references/command-surface.md: use when the user invokes coordinator intent phrases such as $research-dev-orchestrator dispatch ....references/lock-recovery.md: use when .dispatch-lock is stale, mismatched, or present outside active planning|running.references/review-rubric.md: use before Codex review and merge decisions.references/summary-template.md: use when updating or auditing SUMMARY.md.references/events-schema.md: use when appending or auditing EVENTS.ndjson.references/journal-template.md: use when closing a session or auditing JOURNAL.md.Run scripts from the target repository root, but call the scripts by absolute path from this skill directory. If needed, set RESEARCH_DEV_ORCHESTRATOR_HOME to the directory containing this SKILL.md.
export RESEARCH_DEV_ORCHESTRATOR_HOME=/absolute/path/to/research-dev-orchestrator
python "$RESEARCH_DEV_ORCHESTRATOR_HOME/scripts/init_run.py" --project-slug <slug> --objective "<objective>" --target-branch <branch>
python "$RESEARCH_DEV_ORCHESTRATOR_HOME/scripts/create_task.py" --run-id <run-id> --task-id T001-name --goal "<goal>" --profile delegated --allowed-paths path1 path2
"$RESEARCH_DEV_ORCHESTRATOR_HOME/scripts/dispatch_agent.sh" <run-id> <task-id>
RDO_WORKER_BACKEND=opencode RDO_RUNTIME_BACKEND=tmux "$RESEARCH_DEV_ORCHESTRATOR_HOME/scripts/dispatch_agent.sh" <run-id> <task-id>
python "$RESEARCH_DEV_ORCHESTRATOR_HOME/scripts/collect_status.py" --run-id <run-id>
python "$RESEARCH_DEV_ORCHESTRATOR_HOME/scripts/collect_status.py" --run-id <run-id> --json
python "$RESEARCH_DEV_ORCHESTRATOR_HOME/scripts/collect_status.py" --run-id <run-id> --write-summary
python "$RESEARCH_DEV_ORCHESTRATOR_HOME/scripts/collect_status.py" --run-id <run-id> --write-diagnostics
python "$RESEARCH_DEV_ORCHESTRATOR_HOME/scripts/render_dashboard.py" --run-id <run-id>
python "$RESEARCH_DEV_ORCHESTRATOR_HOME/scripts/config_cli.py" validate
python "$RESEARCH_DEV_ORCHESTRATOR_HOME/scripts/remove_dispatch_lock.py" --run-id <run-id> --task-id <task-id> --reason "<approved reason>" --confirmed
python "$RESEARCH_DEV_ORCHESTRATOR_HOME/scripts/close_session.py" --run-id <run-id> --summary "<session summary>" --changed "<change>" --next-action "<next>"
"$RESEARCH_DEV_ORCHESTRATOR_HOME/scripts/run_unit_tests.sh" [--pattern 'test_*.py']
"$RESEARCH_DEV_ORCHESTRATOR_HOME/scripts/run_smoke_tests.sh" [--match 'test_*.sh']
"$RESEARCH_DEV_ORCHESTRATOR_HOME/scripts/run_all_tests.sh"
The unit and smoke commands run independently and capture verbose output in
temporary logs. Failure diagnostics default to the last 80 lines and at most
16 KiB; override those caps with RDO_TEST_TAIL_LINES and
RDO_TEST_TAIL_BYTES. Use run_all_tests.sh only when both suites are required.
Ordinary unit discovery is hermetic in restricted agent sandboxes: tests that
require the host process table and real signal cleanup are explicitly skipped
there and run by the smoke test_process_integration.sh boundary instead.
Users may invoke the skill explicitly with $research-dev-orchestrator or select it through /skills, then provide structured intent text. Treat these as natural-language intents for Codex, not shell commands or registered slash commands:
$research-dev-orchestrator init project=<slug> objective="<text>" [target=<branch>]
$research-dev-orchestrator plan run=<run-id> [scope=requirements|design|experiment|all]
$research-dev-orchestrator create-task run=<run-id> task=<task-id> goal="<text>" allowed=<path,path> profile=direct|delegated|full [forbidden=<path,path>]
$research-dev-orchestrator dispatch run=<run-id> task=<task-id> [backend=plain|tmux] [timeout=<seconds>]
$research-dev-orchestrator status run=<run-id> [json] [summary] [dashboard] [diagnostics]
$research-dev-orchestrator review run=<run-id> task=<task-id>
$research-dev-orchestrator revise run=<run-id> task=<task-id> findings=<task-local-file>
$research-dev-orchestrator resume run=<run-id> task=<task-id>
$research-dev-orchestrator tmux-list [run=<run-id>] [active]
$research-dev-orchestrator tmux-prune [run=<run-id>] terminal
$research-dev-orchestrator merge run=<run-id> task=<task-id> target-worktree=<path> [commit=<sha>]
$research-dev-orchestrator recover-lock run=<run-id> task=<task-id>
$research-dev-orchestrator close run=<run-id> summary="<text>" [changed="<text>"] [next="<text>"]
Read references/command-surface.md before acting on these intents. review does not automatically approve; it produces findings and recommendations, and mutates state only with explicit user instruction and valid review gates.
init_run.py scaffolds only. It must not make substantive research, design, or architecture decisions.
create_task.py creates pending v2 task scaffolds only and requires an
explicit profile. It must not infer Full, overwrite existing tasks, dispatch,
create locks, or merge. The coordinator must first split the work to one
primary trust boundary, then complete the required task/context/acceptance
contract before readiness permits dispatch.
protocol.py is used by scripts for constants, template rendering, JSON helpers, and event append. Users should not call it directly.
validation.py contains shared protocol validation rules, starting with worker handoff validation. protocol_cli.py validate-handoff and collect_status.py must reuse it so online gate checks and offline audit do not drift.
config.py loads operational defaults from .agent-collab/rdo.toml and environment variables. It must not define or mutate protocol truth. CLI flags, explicit coordinator intent arguments, and explicit env vars still override config.
agent_backends/ defines supported worker backend adapters: claude-code, codex, opencode, and kimi-code. scripts/agent_backend_cli.py validates adapters and renders backend command lines.
protocol_cli.py is a narrow internal bridge for dispatch scripts. It performs mechanical protocol operations such as attempt creation, transition to running, event append, handoff validation, and diagnostics writing. It must not implement coordinator-only decisions such as approve, merge, auto-review, or auto-recover.
rdo.py task review is the narrow coordinator-owned task review mutation. It
requires an explicit user-authorized decision and a non-empty task-local
findings file, records an immutable digest-bound decision, performs only the
legal review -> approved|changes_requested|failed transition, and makes
changes_requested feedback available to later worker prompts.
rdo.py task revise reuses that review primitive with
decision=changes_requested. rdo.py task resume validates revision-cycle
eligibility and then invokes dispatch_agent.sh; dispatch remains the sole
owner of backend preflight, session selection, compact resume, fallback, and
attempt creation. Use task preview-prompt when desired, then call task resume without separately messaging the worker. Treat the new
ATTEMPT.json, not the preview candidate, as the source of truth for the
actual execution mode and fallback.
rdo.py task merge is the coordinator-owned merge mutation. It derives the
approved source and run target from protocol state, permits only a clean
fast-forward merge, verifies the exact source commit and v2 artifact binding,
records task_merge_applied before fallible post-merge verification, and
reconciles Git ancestry with STATUS.json plus the final task_merged event.
V2 pre/post-merge commands come only from frozen ACCEPTANCE.md; an ad
hoc verification command is a legacy-v0.5/v1 compatibility option. The command does
not create a separate merge transaction artifact or call an internal FSM helper
from ad hoc agent code.
dispatch_assets.py renders attempt-local worker assets such as prompt.md and tmux run-worker.sh. It must not mutate protocol state; dispatch remains responsible for locks, worktrees, process supervision, and handoff validation.
rdo.py tmux list is a read-only live-session inventory. The
rdo.py tmux prune --terminal command closes only artifact-bound, successfully
completed sessions with a
preserved transcript, verified process cleanup, and an exact dispatch-time tmux
identity receipt. It never prunes active, blocked, invalid, ambiguous,
legacy-unbound, or untracked sessions and never changes task protocol state.
dispatch_agent.sh is the generic worker dispatch entrypoint. Direct and Delegated tasks map pending|blocked|changes_requested -> running. Full tasks map pending -> planning, strategy_review -> running after exact-digest approval, and ordinary blocked|changes_requested -> running while the strategy remains valid. Each dispatch creates a new bounded attempt but normally resumes the same logical worker and native backend session. Valid Direct execution produces verified; Delegated execution produces review; Full planning/execution produces strategy_review, review, or blocked. Invalid handoff becomes blocked with blocker_type = needs_coordinator.
For Full execution, dispatch materializes runtime/RESUME_CONTEXT.json. A reuse checkpoint becomes workflow_carried_forward and satisfies dependencies without another model workflow; a revalidate checkpoint remains in remaining_workflows. Acceptance command records are attempt-local and are never carried forward.
Worker backend configuration:
RDO_WORKER_BACKEND=claude-code|codex|opencode|kimi-code
RDO_RUNTIME_BACKEND=plain|tmux
RDO_IO_MODE=machine|human
RDO_PERMISSION_MODE=default|auto|yolo
RDO_STARTUP_TIMEOUT_SECONDS=45
RDO_TMUX_KEEP_SESSION=0|1
RDO_TMUX_WAIT_TIMEOUT_SECONDS=0
Only plain + machine and tmux + human are valid. Machine dispatch performs
backend executable/version/auth preflight before protocol mutation and requires
a valid first machine event before the startup deadline. Human tmux dispatch is
attachable and best effort; prompt submission is recorded but not treated as a
machine acknowledgement.
tmux backend is attachable execution, not detached orchestration. Dispatch still waits for the attempt-local exit_code file and validates handoff. If tmux wait times out before exit_code appears, dispatch exits 5, keeps .dispatch-lock, leaves ATTEMPT.state=running, writes diagnostics, and requires Lock Recovery Review.
Every tmux dispatch records an exact session identity receipt and a terminal
ATTEMPT.runtime.tmux_cleanup policy/status. Default cleanup must verify the
receipt-bound session is absent; explicit retention records
retained_by_policy. Identity mismatch or unverifiable cleanup blocks
publication and retains the dispatch lock.
collect_status.py is read-only by default. It must not modify STATUS.json, delete locks, change FSM state, or repair violations. --write-summary may update only SUMMARY.md; --write-diagnostics may write only diagnostics files.
For Artifact Protocol v2, consume status_projection (or projection from
rdo status) for attempt outcome, publication, summary, and evidence display.
Do not treat compatibility STATUS.summary or STATUS.evidence as current
worker results. Earlier valid publications are usable context only when marked
previous with their original attempt ID.
render_dashboard.py writes only derived dashboard.html by reading the same status report as collect_status.py. It must not mutate protocol truth.
remove_dispatch_lock.py is a user-approved mechanical recovery tool. Use it only after a Lock Recovery Review and explicit user confirmation. It snapshots .dispatch-lock, removes only .dispatch-lock, and appends dispatch_lock_removed; it must not modify STATUS.json, ATTEMPT.json, LOCK, the attempt-local handoff/evidence bundle, or FSM state.
close_session.py is the standard session closeout command. It updates derived SUMMARY.md, appends a human-readable JOURNAL.md entry, and appends a session_closed event to EVENTS.ndjson.
templates/ is the scaffold content source for init_run.py and create_task.py. references/ remains the protocol, schema, rubric, and workflow explanation layer.
Use these files to recover context after days or weeks:
SUMMARY.md: current dashboard; derived and regenerable.dashboard.html: visual run monitor; derived and regenerable.EVENTS.ndjson: append-only machine-readable timeline; required.JOURNAL.md: append-only human-readable session memory; required.RESULT_LEDGER.md: experiment results and claim support.ADR/*: durable architecture/design decisions only.reviews/*: Codex review records.tasks/*/attempts/*: worker execution records.For v2, the current attempt's HANDOFF.json is the canonical minimal worker
request and EVIDENCE.json is its frozen structured review index. Worker-side
rdo strategy scaffold|preflight|draft provides a deterministic Full-planning
authoring path without arbitrary temporary files; the mutable attempt-local
draft is not evidence or approval. Worker-side
rdo strategy submit|revise and rdo finalize publish
runtime/HANDOFF_READY.json last, binding the exact attempt inputs, source
commit, handoff, and evidence. The supervisor may use that marker to quiesce an
otherwise idle TUI, but it cannot approve the strategy/task or skip dispatch's
final validation. Task-root Markdown handoff/evidence and COMPLETION.json
exist only on recognized legacy-v0.5/v1 paths.
Do not force a separate DECISIONS.md. Put non-architecture session decisions
and tradeoffs in JOURNAL.md; add ADRs only when a decision should be a durable
architecture/design record.
Before changing review -> approved, verify all of the following:
allowed_paths and avoids forbidden_paths.TASK_INPUTS.json/EVIDENCE.json/HANDOFF.json/HANDOFF_READY.json bundle.rdo check record from this
attempt, and every selected log/artifact digest still matches.ACCEPTANCE.md lists review gate recipes: required commands, smoke tests, expected outputs, metrics or thresholds, merge preconditions, and failure handoff conditions.If any review gate fails, use review -> changes_requested or review -> failed as defined by the FSM.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/research-dev-orchestrator:research-dev-orchestratorfrom research-dev-orchestrator
research-dev-orchestrator@claudespace is listed by lkcy23/claudespace — review the source before installing
npx claudepluginhub lkcy23/claudespace --plugin research-dev-orchestrator