Command Development (Codex)
Design Rules
- Commands must be deterministic and idempotent when possible.
- Prefer explicit arguments over hidden behavior.
- Fail fast with actionable error messages.
- Keep commands composable and CI-friendly.
Workflow
- Define input/output contract.
- Implement smallest useful command.
- Add dry-run mode for destructive flows.
- Add docs and examples in README.
- Validate on clean workspace and typical dev state.