Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add ralfstrobel/agentic-brownfield-coding --skill headlessgit clone --depth 1 https://github.com/ralfstrobel/agentic-brownfield-codingWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/ralfstrobel/agentic-brownfield-coding/headless)<a href="https://agentmods.dev/skills/ralfstrobel/agentic-brownfield-coding/headless"><img src="https://agentmods.dev/badge/skills/ralfstrobel/agentic-brownfield-coding/headless/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/ralfstrobel/agentic-brownfield-coding/headless"><img src="https://agentmods.dev/badge/skills/ralfstrobel/agentic-brownfield-coding/headless.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00047 | $0.02540 |
| Opus 5.5 | $0.00019 | $0.01016 |
| Sonnet 5.5 | $0.00009 | $0.00508 |
| Haiku 4.5 | $0.00005 | $0.00254 |
Grade A, and why
headless scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 29d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 160 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Claude Code Headless Batch Setup
Your goal is to help the user assemble a small shell script that drives claude -p over many inputs,
running one ephemeral micro-session per item. The result usually lives under .claude/headless/ and pairs
a driver script (*.sh) with a system prompt file (*.md) and potentially an input list file.
Additional user arguments: $ARGUMENTS
Language hint: Always create all generated script content and comments in English for consistency across the codebase, while continuing to speak to the user in the language of their choice.
Platform hint: Instructions and templates assume a Linux host with GNU coreutils. Adapt to the detected user OS.
- macOS — Substitute BSD equivalents for GNU-only utilities.
- Windows — Still use
.shfiles (skip irrelevantchmod +x), assuming Git Bash is available at runtime.
Workflow
- Ensure the user intent is clear. If user arguments are absent or ambiguous, especially regarding the upcoming decisions, elicit the necessary information via informal conversation with the user.
- Advise the user on a sensible strategy using the given background as reference. Push back on choices that are likely to cause token usage escalation, contention, or silent failures.
- Pick the best suited template and copy it to
.claude/headless/<descriptive-name>.shandchmod +xit.- foreach-file.sh — one invocation per file matching a glob argument.
- foreach-line.sh — one invocation per line of stdin (PR numbers, IDs, URLs).
- foreach-task.sh — one invocation per unchecked item in a sibling checklist file. This is the most powerful driver script, capable of ingesting, tracking and resuming progress on arbitrary items. Use when the user wants to prepare and iterate on hand-curated task list (in this or a separate session).
- foreach-task-parallel.sh — same as
foreach-task.shbut runsBATCH_SIZEtasks concurrently per batch. However, tasks with overlapping access scope will race. Check the assumptions block at the top of the script for compatibility before suggesting this option.
- Copy the matching prompt template to
.claude/headless/<descriptive-name>.md.- foreach-file.md
- foreach-line.md
- foreach-task.md (also used for the parallel variant) For task-based scripts, also create a task file based on foreach-task.tasks.md. Tailor all of these files to the user's needs, falling back to interactive feedback as required.
- Tune the parameters in the script such as
CLAUDE_ARGSandBATCH_SIZEper the decisions below. - Review the generated content and flag relevant pitfalls that apply to this setup.
- Remind the user how to run the script from the current working directory,
suggesting a test run on the first items (script can be aborted at any time using
Ctrl+C).
What ships with it
8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- templates/foreach-file.md 790 B
- templates/foreach-file.sh 2.5 KB runs code
- templates/foreach-line.md 799 B
- templates/foreach-line.sh 2.6 KB runs code
- templates/foreach-task-parallel.sh 5.8 KB runs code
- templates/foreach-task.md 798 B
- templates/foreach-task.sh 4.3 KB runs code
- templates/foreach-task.tasks.md 312 B
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 29d ago Changed e1a5cc7ec6c0
- 2mo ago Changed 4c2b77c2d686
- 3mo ago First seen · 160 lines · 47 tokens per session scan A 416264b90d72
headless is a skill published in the GitHub repository ralfstrobel/agentic-brownfield-coding (32 stars, last pushed 3d ago), licensed Apache-2.0. It adds 47 tokens to every session and 2,540 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
headless compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| headlessralfstrobel/agentic-brownfield-coding | Skill | 32 | 3d ago | Apache-2.0 | A | 47 | Claude Code |
| add-cloud-flowmicrosoft/power-platform-skills | Skill | 1.2k | today | MIT | A | 91 | Claude Code |
| configure-env-variablesmicrosoft/power-platform-skills | Skill | 1.2k | today | MIT | A | 119 | Claude Code |
| deploy-sitemicrosoft/power-platform-skills | Skill | 1.2k | today | MIT | A | 91 | Claude Code |
| create-businesswondelai/skills | Skill | 2.8k | 8d ago | MIT | A | 211 | Claude Code |
| influence-psychologywondelai/skills | Skill | 2.8k | 8d ago | MIT | A | 156 | Claude Code |
| jobs-to-be-donewondelai/skills | Skill | 2.8k | 8d ago | MIT | A | 137 | Claude Code |