claude-skill
Installation
SKILL.md
Claude Code Headless Mode
Use this skill when the job should be executed through Claude Code itself, not solved inline. Focus on commands and workflows that match current stable Claude Code behavior.
Core Rules
- Treat
claude --helpon the target machine as the compatibility floor. CLI flags move faster than blog posts and copied examples. - Permission rule syntax varies by build. Anthropic docs often show forms like
Bash(git diff *), while the installedclaude 2.1.71help on this machine still showsBash(git:*). Mirror the syntax shown by the target machine'sclaude --help. - Default to the model the user already configured through
/model, settings, orANTHROPIC_MODEL. - Do not add
--modelunless the user explicitly asked for a model override or the workflow must pin a model for reproducibility. - Prefer
--append-system-promptover--system-promptunless replacing the default Claude Code behavior is intentional. - Default to safe automation. If the user wants a truly unattended run, use explicit permission rules or
dontAsk; reservebypassPermissionsfor isolated environments.
Quick Verification
Run these checks before giving advanced advice: