claude-code-headless

claude-code-headless is a skill for Claude Code from NeverSight/learn-skills.dev. It costs 39 tokens per session (894 once invoked), scanned A, original, no licence file.

A way to run Claude Code from scripts or automated jobs without its interactive screen. It can produce regular or streaming machine-readable output for command-line and CI/CD workflows.

In plain words
What is it for?
Running Claude Code from shell scripts, CI/CD pipelines, and other programs; selecting output formats such as printed text or streamed JSON.
Why use it?
It lets automation use Claude Code without needing someone to operate the interface. This is useful when code tasks must run from scripts, build pipelines, or other unattended processes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Running Claude Code from shell scripts, CI/CD pipelines, and other programs; selecting output formats such as printed text or streamed JSON.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/neversight/learn-skills.dev/claude-code-headless
Install

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.

Any agent
npx skills add NeverSight/learn-skills.dev --skill claude-code-headless
Clone the repo
git clone --depth 1 https://github.com/NeverSight/learn-skills.dev

Made for: Claude Code.

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

agentmods badge for claude-code-headless

README.md
[![agentmods](https://agentmods.dev/badge/skills/neversight/learn-skills.dev/claude-code-headless/github.svg)](https://agentmods.dev/skills/neversight/learn-skills.dev/claude-code-headless)
Your own site
<a href="https://agentmods.dev/skills/neversight/learn-skills.dev/claude-code-headless"><img src="https://agentmods.dev/badge/skills/neversight/learn-skills.dev/claude-code-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.

agentmods 80×15 button for claude-code-headless

Your own site · 80×15
<a href="https://agentmods.dev/skills/neversight/learn-skills.dev/claude-code-headless"><img src="https://agentmods.dev/badge/skills/neversight/learn-skills.dev/claude-code-headless.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 894 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.00894
Opus 5 $0.00019 $0.00447
Sonnet 5 $0.00008 $0.00179
Haiku 4.5 $0.00004 $0.00089

Measured 5d ago against content hash 39c6664ecaa9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

claude-code-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 5d 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.

data/skills-md/0xdarkmatter/claude-mods/claude-code-headless/SKILL.md · 129 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

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

Changes

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.

  1. 5d ago First seen · 129 lines · 39 tokens per session scan A 39c6664ecaa9

Subscribe to this mod's changes

claude-code-headless is a skill published in the GitHub repository NeverSight/learn-skills.dev (209 stars, last pushed today), with no licence file. It adds 39 tokens to every session and 894 once invoked, about $0.0002 per session on Opus 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-09-03.

Related

Other skills, from other repositories

ci-cd-and-automation

Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.

addyosmani/agent-skills · 45 tokens

google-cloud-slo-alert-configuration

Configures PromQL-based Service Level Objective (SLO) alerting policies for Google Cloud resources registered in App Hub or individually specified. Generates Terraform output. Use when the user asks to configure an SLO or Service Level Objective. Don't use for standard alerting policies.

google/skills · 62 tokens

chinese-git-workflow

A reference for configuring Git with Chinese code-hosting services such as Gitee, Coding.net, GitLab China, and CNB, including SSH, HTTPS, credentials, CI, and repository mirroring.

jnMetaCode/superpowers-zh · 69 tokens

comet-github-ci-triage

A workflow for diagnosing failed GitHub Actions checks on a Comet pull request. GitHub Actions runs automated builds and tests; a pull request is a proposed code change waiting to be reviewed and merged.

rpamis/comet · 72 tokens

review-tooling

Detect what dev tooling infrastructure a project has and flag gaps across linters, formatters, pre-commit hooks, test runners, and CI/CD pipelines. Returns structured findings without applying changes. Use when the user asks to "review tooling", "check project tooling", "what tooling is missing", "review dev…

tobihagemann/turbo · 74 tokens

ci-cd-pipeline

Design and implement production-grade CI/CD pipelines with GitHub Actions, layered testing strategies, secure deployment patterns, and environment management.

cosmicstack-labs/mercury-agent-skills · 31 tokens