claude-print-automation

Solid

Claude Code print-mode runs are prepared or debugged with `claude --print`, text/JSON/stream-json I/O, JSON Schema, budgets, fallback models, no persistence, prompt suggestions, and trusted-directory CI.

AI & Automation 11 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 79/100

Stars 20%
36
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Claude Print Automation Bundled commands use `$PLUGIN_ROOT` (`$env:PLUGIN_ROOT` in PowerShell; same path suffix) for the plugin root. Set it once: use the host's plugin-root variable when defined (Claude Code: `PLUGIN_ROOT="$CLAUDE_PLUGIN_ROOT"`), otherwise the absolute path of this plugin's root directory. Use this skill for non-interactive Claude Code runs: `claude --print`, `-p`, JSON output, stream-json input/output, partial messages, hook event streams, JSON schema validation, budget caps, fallback model, prompt suggestions, no-persistence runs, and CI-style reports. ## Inspect First Verify the installed CLI: ```bash python3 "$PLUGIN_ROOT/scripts/claude_code_inspector.py" --commands "plugin validate" doctor auto-mode --json ``` If the user supplied a binary path, pass `--claude "$CLAUDE_CLI_PATH"`. ## Command Assembly Build commands from these decisions, in order: 1. Trust boundary: confirm the directory is trusted because print mode skips the workspace trust dialog. 2. Permission/tool surface: choose `--permission-mode`, `--tools`, `--allowedTools`, and `--disallowedTools`. 3. Context: add `--add-dir`, explicit files, `--mcp-config`, `--settings`, `--agents`, or `--plugin-dir` only when needed. 4. Prompt input: use an argument for short prompts or stdin for long structured prompts. 5. Output contract: choose `--output-format text|json|stream-json`, `--json-schema`, and partial-message/hook-event streaming. 6. Cost/session: choose `--max-budget-usd`, `--fallba...

Details

Author
Xopoko
Repository
Xopoko/plug-n-skills
Created
2 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category