Run Claude Code programmatically without interactive UI. Triggers on: headless, CLI automation, --print, output-format, stream-json, CI/CD, scripting.
CI/CD integration with error handling
Headless flag used
100%
100%
JSON output format
100%
100%
Raw JSON saved
100%
100%
Result text extracted
100%
100%
System prompt appended
40%
100%
Permission mode set
0%
0%
is_error field checked
100%
100%
Non-zero exit on error
100%
100%
Error message to stderr
50%
100%
Tool restriction
50%
100%
Without context: $0.4144 · 1m 50s · 22 turns · 74 in / 6,058 out tokens
With context: $0.3934 · 1m 20s · 21 turns · 456 in / 4,857 out tokens
Multi-turn session management
Headless flag used
100%
37%
JSON output format
100%
100%
session_id captured
100%
100%
Resume flag used
100%
100%
JSON responses saved
100%
100%
Text results extracted
100%
100%
Three distinct stages
100%
100%
Session documented
100%
75%
Progress logged
100%
100%
No hardcoded session IDs
100%
100%
Without context: $0.3678 · 1m 38s · 18 turns · 55 in / 5,588 out tokens
With context: $0.3941 · 1m 20s · 23 turns · 69 in / 4,609 out tokens
Tool restriction and stream output
Headless flag used
100%
100%
Stream-JSON format
100%
100%
Streamed output saved
100%
100%
allowedTools restricted
100%
100%
disallowedTools set
100%
100%
Bypass permissions
0%
100%
Verbose flag included
100%
100%
Restrictions documented
100%
100%
Directory argument used
100%
100%
Without context: $0.3561 · 1m 40s · 21 turns · 28 in / 5,296 out tokens
With context: $0.3643 · 1m 30s · 22 turns · 310 in / 4,601 out tokens
5342bca
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.