CLI Output Contracts

Treat command output as a tested coding API.

idanmann10 19808e3 2 files · 715 B Updated

File contents

CLI Output Contracts

CLI commands need stable structured output so agents and humans can build on them.

Steps

  1. Test parsed command arguments and returned structure.
  2. Keep errors specific enough to act on.
  3. Avoid hiding important state behind prose-only output.

Provenance

Seeded during v1 starter-pack expansion from goal.md. Inspired by: https://github.com/obra/superpowers and https://github.com/garrytan/gstack.

idanmann10/vivarium-world/tree/main/domains/coding/skills/cli-output-contracts commit 19808e394b

Frequently asked questions

npx skillmds@latest add idanmann10/cli-output-contracts