What problem does it solve?
This Skill simplifies the invocation of Claude Code CLI subprocesses, ensuring that long-running tasks are observable and manageable, with features like timeouts, budget guards, and artifact-based failure handling.
Core Features & Use Cases
- Observable Execution: Offers detailed stream-json logs for every subprocess, making long-running tasks transparent.
- Timeouts and Budgets: Ensures subprocesses do not run indefinitely, with configurable timeout limits and optional budget guards.
- Artifact-based Failure Handling: Automatically manages failure scenarios by creating artifacts that provide insights into the task's outcome.
- Use Case: When Codex needs to invoke a
claude -p command for research, review, generation, or other CLI work, this Skill ensures that the process is not only executed but also observable and accountable.
Quick Start
To run a Claude Code CLI subprocess with stream-json logging and failure handling, use the following command:
run_claude_cli.py --prompt-file .context/<task>/prompt.md --output-dir .context/<task> --expected-artifact result.md