ansonphong/meta-dev/headless-worker
Claude Code and agent skill by ansonphong/meta-dev
- community
Checking that the SKILL.md file is still in the repository.
Patterns for headless Claude execution via claude -p --output-format json. Tool allowlist tiers, env inheritance, model override for Sonnet routing.
Install
npx vskill@latest install ansonphong/meta-dev/headless-workerSKILL.md
The same SKILL.md was published earlier as ansonphong/meta-dev/headless-worker.
Headless Worker
The conceptual claude -p patterns documented here are the foundation. The concrete multi-backend implementation — DeepSeek / GLM / Codex routing tables, the distilled-result contract, --repo topology resolution — lives in ${CLAUDE_PLUGIN_ROOT}/scripts/claude-headless-exec (and codex-headless-exec), fronted by /deep-execute, /glm-execute, /codex-execute, and orchestrated by /auto-execute. This file covers the general headless-model principles only; do not duplicate the backend-specific tables.
Execute structured tasks via claude -p in headless mode. Useful for batch processing, CI/CD, and cron-driven automation.
Patterns
Prompt staging (avoid scratchpad collisions)
Stage prompts to UNIQUE per-run paths and pass them by file, not by reusing a bare scratchpad name. All three runners (codex/grok/claude-headless-exec) accept --prompt-file <path> (AUTHORITATIVE over any positional prompt) and now hard-fail on a missing/empty file rather than silently skipping the work. Full conductor-side rules — unique dir, atomic .tmp→mv, [ -s ] verify, absolute paths — are in agentic-exec-loop/references/loop-protocol.md → "Scratchpad staging".
Tool Allowlist Tiers
See references/tool-allowlists.md for tier definitions.
| Tier | Bash | Read, Write, Edit | Git | |
|---|---|---|---|---|
| 1 — read-only | yes (safe commands) | Read only | no | |
| 2 — read+write | yes | Read + Write + Edit | no | |
| 3 — full | yes | all | yes |
Default: Tier 1.
Environment
See references/backend-env.md for routing matrix.
- Child
claude -pinheritsANTHROPIC_BASE_URL+ANTHROPIC_AUTH_TOKENfrom parent - Do NOT use
env -i— it strips inherited vars - For systemd/CI: export both vars explicitly
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/meta-dev/workflow-skills/headless-worker/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
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/ansonphong/meta-dev/headless-worker)