All skills
cat-xierluo avatar

/multi-agent-orchestration

@41268aa

编排两个以上边界独立的本地 worker,使用 Orca Run/Task/Dispatch、独立 worktree/session 或 tmux 回退,由 PM 负责拆解、派发、巡检、429 停滞恢复、独立验收、PR 收口与临时资源清理;也用于用户明确要求“并行推进”“多个 worker”“PM 总控”“Wave Autopilot”或防止 PM 直接实现逃逸。不要用于单个短任务、纯状态同步,或仅需 Git 分支、提交、PR、merge 规则的工作。

Use this Skill: https://skilld.dev/gh/cat-xierluo/legal-skills/multi-agent-orchestration

This session only. Nothing lands on disk.

templatesorchestration-goal.md

≈995 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Orchestration Goal Contract

Goal

  • Goal ID: {{goal_id}}
  • Objective: {{objective}}
  • Project config: {{project_config_path_or_none}}
  • Task source: {{task_source}}
  • Scope includes: {{included_task_types_or_sections}}
  • Scope excludes: {{excluded_task_types_or_files}}
  • Base ref: {{base_ref}}
  • Started at: {{started_at}}

Project config usage:

  • Adopted fields: {{adopted_project_config_fields}}
  • Ignored fields and reason: {{ignored_project_config_fields}}
  • Config safety check: {{config_safety_check_result}}

Autonomy

  • Mode: {{plan_only_auto_launch_auto_review_auto_merge}}
  • Max waves: {{max_waves}}
  • Max workers per wave: {{max_workers_per_wave}}
  • Max total workers: {{max_total_workers}}
  • Max runtime / budget: {{time_or_budget_limit}}
  • Merge policy: {{merge_policy_summary}}

Provider slot plan:

Slot Backend Settings/Profile Provider Model Max concurrency Best for Notes
{{slot_id}} {{backend}} {{settings_or_profile_path}} {{api_provider}} {{model_name}} {{max_concurrency}} {{task_risk_or_type}} {{notes}}

Autonomy modes:

  • plan-only: PM may propose the next Wave but must ask before launch.
  • auto-launch: PM may launch the next Wave after continue conditions pass.
  • auto-review: PM may review worker results and send corrections without asking.
  • auto-merge: PM may merge only when project git-workflow rules, CI/verification, PR review, and permissions all pass.

Success Conditions

  • {{success_condition_1}}
  • {{success_condition_2}}
  • {{success_condition_3}}

Default success condition:

  • No executable pending task remains within scope, all launched workers are merged / done-unmerged / blocked / deferred, required trunk verification passes, and project docs/task source are updated.

Continue Conditions

  • Previous Wave has no unresolved failed worker, blocking PR conflict, base drift, trunk verification failure, or unclear task dependency.
  • Completed tasks are marked in the task source before selecting the next Wave.
  • Next tasks have clear allowed/forbidden files and independent verification.
  • Provider/model performance is acceptable, or routing has been adjusted.
  • The Goal limits above have not been reached.

Stop Conditions

  • Worker failed, blocked in a way that affects future work, or ignored PM correction twice.
  • PR mergeability, CI, test result, base state, permission, or task source is unclear.
  • Next work needs user product judgment, destructive operation, sensitive data handling, or unapproved dependency/runtime changes.
  • Remaining tasks are too coupled for safe parallel execution.
  • Any Goal limit is reached.

Wave Loop State

Wave Started Closed Workers Exit states Continue decision Notes
{{wave_id}} {{started_at}} {{closed_at}} {{worker_count}} {{exit_states}} {{continue_stop}} {{notes}}

Host Goal Prompt

Use this only in a host that supports slash goals. It wraps the PM loop; it does not replace worktree/session/checkpoint gates.

/goal Continue this multi-agent orchestration goal until the success conditions or stop conditions in {{goal_contract_path}} are met.

Rules:
- Act as PM only. Do not implement business code in the main workspace.
- For each Wave, read the task source, choose only safe parallel tasks, start isolated workers, verify checkpoint files, review results, and merge only if the merge policy allows.
- After each Wave, write/update the Wave summary and decide continue vs stop from the Goal Contract.
- Stop immediately and report if any stop condition is hit.

Final Summary

  • Completed tasks: {{completed_tasks}}
  • Deferred tasks: {{deferred_tasks}}
  • Blocked tasks: {{blocked_tasks}}
  • Waves run: {{waves_run}}
  • Workers run: {{workers_run}}
  • Provider/model findings: {{provider_model_findings}}
  • Remaining user decisions: {{remaining_user_decisions}}

Source: SKILL.md on GitHub

1 alert10d3 checks · Risk HIGH
  • Gen Agent Trust Hub10d

    The skill is a comprehensive multi-agent orchestration framework designed to manage multiple AI agents across isolated git worktrees and terminal sessions. It incorporates robust internal security controls such as an installation guard and a scope guard to limit the actions of sub-agents. It uses pinned executables and cryptographic hashes to verify script integrity. A potential risk of indirect prompt injection exists because the manager agent processes output from worker agents, but this is inherent to its function and mitigated by instructional boundaries and secret redaction.

  • Socket10d

    2 alerts: gptSecurity, gptAnomaly

  • Snyk10d

    Risk: LOW · No issues

Signed by skilld at 41268aa. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated yesterday
Other metadata
metadata
{
  "version": "2.31.1",
  "homepage": "https://github.com/cat-xierluo/legal-skills",
  "author": "杨卫薪律师(微信ywxlaw)"
}

README badge

README badge for cat-xierluo/legal-skills/multi-agent-orchestration