ansonphong/meta-dev/headless-worker

Claude Code and agent skill by ansonphong/meta-dev

Trust tier 2
  • community
LLM review pending
Source check pending

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-worker

SKILL.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

bash
# Single prompt, JSON output
claude -p "analyze this diff: $(git diff)" --output-format json
# With tool access (read-only by default)
claude -p "check test results in /tmp/test-output.log" \
--allowedTools Bash --output-format json
# Model override for Sonnet
claude -p "complex architectural review" --model claude-sonnet-5

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.

TierBashRead, Write, EditGit
1 — read-onlyyes (safe commands)Read onlyno
2 — read+writeyesRead + Write + Editno
3 — fullyesallyes

Default: Tier 1.

Environment

See references/backend-env.md for routing matrix.

  • Child claude -p inherits ANTHROPIC_BASE_URL + ANTHROPIC_AUTH_TOKEN from 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ansonphong/meta-dev/headless-worker/badge)](https://verified-skill.com/skills/ansonphong/meta-dev/headless-worker)

Something wrong with this skill or its page? Tell us.