diegosouzapw/awesome-omni-skill/headless-automation
Claude Code and agent skill by diegosouzapw/awesome-omni-skill
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Run Claude Code in CI/CD pipelines, pre-commit hooks, and batch processing. Covers -p flag, fan-out migrations, and pipeline patterns.
Install
npx vskill@latest install diegosouzapw/awesome-omni-skill/headless-automationSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as diegosouzapw/awesome-omni-skill/headless-automation.
Headless Automation Skill
Trigger
Use when you want Claude to work autonomously in CI/CD pipelines, pre-commit hooks, batch processing, or any automated workflow.
The Insight
From Anthropic's Claude Code best practices: "Use -p flag with prompts for CI/CD, pre-commit hooks, and infrastructure. Employ 'fanning out' for large migrations or 'pipelining' for data processing workflows."
Basic Headless Usage
The -p Flag
Run Claude with a prompt, get output, exit:
Print Mode (--print)
Get raw output without interactive formatting:
Automation Patterns
Pattern 1: CI/CD Integration
GitHub Actions Example:
Pre-commit Hook:
Pattern 2: Fan-Out for Large Migrations
Process many items in parallel:
Pattern 3: Pipeline Processing
Chain Claude operations:
Pattern 4: Batch Processing
Pattern 5: Scheduled Tasks
Cron job for daily reports:
Safe Automation Practices
Use Containers for Risky Operations
Limit Scope
Dry Run First
Capture Output for Review
Useful Flags for Automation
| Flag | Purpose | |
|---|---|---|
-p "prompt" | Run with prompt, non-interactive | |
--print | Raw output, no formatting | |
--files | Specify files to include | |
--dangerously-skip-permissions | Skip permission prompts (use in containers) | |
--output-format json | JSON output for parsing |
Template: Migration Script
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/devops/headless-automation/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/diegosouzapw/awesome-omni-skill/headless-automation)