CTS Adoption Guide
Use CTS for tools that are launched from a shell, called by scripts, or used in automation pipelines.
Steps
- Create a command contract for every public command.
- Define exit codes.
- Separate human output from machine-readable output.
- Add examples for common automation workflows.
- Add a release checklist before distributing the tool.
- Assign command stability levels before scripts depend on command names, flags, fields, or exit codes.
- Document preview, confirmation, and recovery behavior for destructive commands.
SFDS Relationship
Use SFDS to maintain CTS as a standard suite. Use CTS to govern command behavior, contracts, exit codes, output stability, and automation compatibility.