Claude Code Headless
Run Claude Code programmatically without interactive UI. Triggers on: headless, CLI automation, --print, output-format, stream-json, CI/CD, scripting.
Install
npx skills add NeverSight/learn-skills.dev --skill claude-code-headlessgit clone --depth 1 https://github.com/NeverSight/learn-skills.dev.git /tmp/learn-skills.dev
mkdir -p ~/.claude/skills
cp -r /tmp/learn-skills.dev/data/skills-md/0xdarkmatter/claude-mods/claude-code-headless ~/.claude/skills/claude-code-headlessPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Claude Code Headless Mode Run Claude Code from scripts without interactive UI. ## Quick Start ```bash # Basic headless execution claude -p "Explain this code" --allowedTools "Read,Grep" # JSON output for parsing claude -p "List files" --output-format json # Continue conversation claude -p "Start analysis" --output-format json > result.json session=$(jq -r '.session_id' result.json) claude --resume "$session" "Now fix the issues" ``` ## Essential CLI Options | Flag | Description | |------|-------------| | `-p`, `--print` | Non-interactive (headless) mode | | `--output-format` | text, json, stream-json | | `-r`, `--resume` | Resume by session ID | | `-c`, `--continue` | Continue most recent session | | `--allowedTools` | Comma-separated allowed tools | | `--disallowedTools` | Comma-separated denied tools | | `--mcp-config` | Path to MCP server config JSON | | `--verbose` | Enable verbose logging | | `--append-system-prompt` | Add to system prompt | ## Permission Modes | Mode | Flag | Effect | |------|------|--------| | Default | (none) | Prompt for permissions | | Accept edits | `--permission-mode acceptEdits` | Auto-accept file changes | | Bypass | `--permission-mode bypassPermissions` | Skip all prompts | ## Output Formats ### Text (default) ```bash claude -p "Hello" # Outputs: Human-readable response ``` ### JSON ```bash claude -p "Hello" --output-format json ```
Details
- Skill name
claude-code-headless- Repository
- NeverSight/learn-skills.dev
- Path
data/skills-md/0xdarkmatter/claude-mods/claude-code-headless/SKILL.md- Repo updated
- 18 November 2026
FAQ
What does the Claude Code Headless skill do?
Run Claude Code programmatically without interactive UI. Triggers on: headless, CLI automation, --print, output-format, stream-json, CI/CD, scripting.
How do I install the Claude Code Headless skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add NeverSight/learn-skills.dev --skill claude-code-headless. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Claude Code Headless popular?
It lives in NeverSight/learn-skills.dev, which has 223 GitHub stars and 42 forks.
Related skills
Council
223NeverSight/learn-skills.dev
Convene the Council of High Intelligence — multi-persona deliberation with historical thinkers for deeper analysis of complex problems.
Megaeth Developer
223NeverSight/learn-skills.dev
End-to-end MegaETH development playbook (Feb 2026). Covers wallet operations, token swaps (Kyber Network), eth_sendRawTransactionSync (EIP-7966) for instant receipts, JSON-RPC batching, real-time mini-block subscriptions, storage-aware contract patterns (Solady RedBlackTreeLib), MegaEVM gas model, WebSocket keepalive, bridging from Ethereum, and debugging with mega-evme. Use when building on MegaETH, managing wallets, sending transactions, or deploying contracts.
Openclaw Stock Skill
223NeverSight/learn-skills.dev
使用 data.diemeng.chat 提供的接口查询股票日线、分钟线、财务指标等数据,支持 A 股等市场。
Claude Code Hooks
223NeverSight/learn-skills.dev
Claude Code hook system for pre/post tool execution. Triggers on: hooks, PreToolUse, PostToolUse, hook script, tool validation, audit logging.
Canton Network Repos
223NeverSight/learn-skills.dev
Canton Network, DAML, and Splice repository knowledge. Use when working with Canton participants, DAML smart contracts, Splice applications, LF version compatibility, or package ID mismatches. Triggers on Canton, DAML, Splice, decentralized-canton-sync, or LF version queries.
Claude Code Templates
223NeverSight/learn-skills.dev
Boilerplate templates for Claude Code extensions. Triggers on: create agent, new skill, command template, hook script, extension scaffold.
Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.