name: mco-cli
description: Use mco to orchestrate multi-provider agent execution (run/review), choose result mode (artifact/stdout/both), and return user-readable output by default.
MCO CLI Skill
When to use
Use this skill when you need to:
- Run one or more coding agents in parallel from a single CLI entrypoint.
- Execute repository review tasks with severity-based decisions.
- Return user-readable result summaries (default non-JSON output).
- Produce machine-readable JSON for upstream automation.
Core commands
1) General execution
./mco run \
--repo . \
--prompt "<task>" \
--providers claude,codex,qwen \
--result-mode stdout
Use for generic agent tasks. This mode does not require findings schema.
2) Review execution
./mco review \
--repo . \
--prompt "<review task>" \
--providers claude,qwen \
--result-mode stdout
Use for bug/security/test-gap style review scenarios.
3) Strict gate review (CI style)
./mco review \
--repo . \
--prompt "<review task>" \
--providers claude,codex \
--strict-contract \
--result-mode artifact \
--json
Use when machine-enforced findings contract is required.
Result mode policy
artifact:- Writes user-facing artifact files (
summary.md,decision.md,findings.json,run.json). - Best for CI/audit.
- Writes user-facing artifact files (
stdout:- Returns results directly to caller output.
- Best for chat/agent UX rendering.
both:- Writes artifacts and returns detailed stdout payload.
Output policy for user-facing responses
When returning to end users:
- Prefer non-JSON
stdoutoutput frommcofor readability. - If JSON is required by caller, parse and reformat into:
- Execution Summary
- Provider Details
- Risk/Findings Summary
- Next Actions
- Never dump raw event streams unless user explicitly asks for raw logs.
Recommended defaults
--result-mode stdoutfor interactive agents.--result-mode artifact --jsonfor CI pipelines.--strict-contractonly for gate workflows.- Narrow scope with
--target-pathsfor faster review.
Timeout and stability tips
- Use provider-specific stall timeout when one provider is slow:
--provider-timeouts qwen=900,codex=300
- Set review hard deadline for CI predictability:
--review-hard-timeout 1800
- Use unique
--idempotency-keyfor each new execution intent.
Failure handling
If a provider fails:
- Report per-provider
success/final_error/parse_reason. - Distinguish transport/auth errors from parse/contract issues.
- Continue with successful providers (wait-all behavior).
Minimal response template (to user)
Use this structure in final answers:
- Execution overview (decision, terminal_state, success/failure count)
- Provider-by-provider status
- Key findings grouped by severity
- Actionable next steps