Skip to content
Back to skills

2671 Cli Json V01x 0ecd8a70

ASecurity

This document freezes the machine-readable payload contract returned by: - `mco review --json` - `mco run --json`

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
tools

Works with

  • terminal
  • cli

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2671-cli-json-v01x_0ecd8a70 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2671 Cli Json V01x 0ecd8a70?

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

Security grade badge for 2671 Cli Json V01x 0ecd8a70
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2671-cli-json-v01x-0ecd8a70/badge)](https://www.skillsdirectory.com/skills/tools-only-2671-cli-json-v01x-0ecd8a70)

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

SKILL.md
# CLI JSON Contract (`v0.1.x`)

This document freezes the machine-readable payload contract returned by:

- `mco review --json`
- `mco run --json`

## Contract Version

- Scope: `v0.1.x`
- Compatibility rule: additive-only changes are allowed in `v0.1.x`; removal/rename/type change requires a new contract version.

## Payload Shape

Top-level JSON object with required fields:

```json
{
  "command": "review|run",
  "task_id": "string",
  "artifact_root": "string",
  "decision": "string",
  "terminal_state": "string",
  "provider_success_count": 0,
  "provider_failure_count": 0,
  "findings_count": 0,
  "parse_success_count": 0,
  "parse_failure_count": 0,
  "schema_valid_count": 0,
  "dropped_findings_count": 0,
  "created_new_task": true
}
```

## Semantics

- `command`:
  - `review` for review-specialized flow.
  - `run` for generalized execution flow.
- `findings_count` is retained canonical findings count.
- `parse_success_count` / `parse_failure_count` are review parsing health counters.
- `created_new_task` indicates idempotency hit/miss at submit time.

## Exit Code Notes

- `mco run`:
  - returns non-zero only when `decision == FAIL`.
- `mco review`:
  - returns non-zero for `FAIL`.
  - returns `3` for `INCONCLUSIVE`.

## Gate

Contract enforcement tests:

- `tests/test_cli_json_contract.py`

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.

Comments

Loading comments…