Install any skill in seconds. Free to start, no credit card required.
Get Started Free →majiayu000/claude-code-automation
Run Claude Code programmatically in headless mode or via bidirectional stream-json protocol.
Passed 20 of 22 test cases with the skill, and 10 of 22 without it.
and 10 more in the full report
10 fixed10 passed either way2 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 10 test cases the skill fixed. Same model, same prompt, with and without the skill.
Give a single jq command to pull raw user message text content from a large stream transcript JSONL file without loading the whole file into memory.
| Checked | Without skill | With skill |
|---|---|---|
| Uses jq -r with select(.type == "user") filter | Missed | Passed |
The instructions your model reads when the skill loads.
This skill covers running Claude Code programmatically - either one-shot with --print or multi-turn with the bidirectional stream-json protocol.
| Mode | Use Case | Key Flags |
|---|---|---|
Headless (--print) | One-shot tasks, background agents | --print --verbose --output-format stream-json |
| Bidirectional | Multi-turn conversations, persistent sessions | --input-format stream-json --output-format stream-json --verbose |
--print)For one-shot execution without interactive prompts.
claude --print \
--verbose \ # REQUIRED with stream-json
--output-format stream-json \
--model sonnet \
--permission-mode bypassPermissions \ # Enable file writes
--append-system-prompt "context here" # Inject dynamic context
--verbose is required with stream-json output - without it, Claude exits silently with status 1
File writes silently fail without --permission-mode bypassPermissions
Session hooks don't run in --print mode - no SessionStart/SessionEnd
--append-system-prompt is ephemeral - NOT re-applied on --resume
pub fn run_headless_claude(prompt: &str, working_dir: &Path, system_prompt: &str) -> Result<()> {
test cases passed, vs 10 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.