·claude-headless-mode
</>

claude-headless-mode

majesticlabs-dev/majestic-marketplace

Guide for using claude CLI in headless mode with --print, output formats, and JSON schema

21Installs·0Trend·@majesticlabs-dev

Installation

$npx skills add https://github.com/majesticlabs-dev/majestic-marketplace --skill claude-headless-mode

SKILL.md

Use claude -p (or --print) for non-interactive execution in scripts, CI, and automation.

| Text | --output-format text | Human-readable (default) | | JSON | --output-format json | Single JSON result | | Stream JSON | --output-format stream-json --verbose | Real-time streaming |

| -p, --print | Headless mode (required) | | --output-format | text, json, stream-json | | --json-schema | Enforce output schema | | --verbose | Required for stream-json | | --model | Select model (sonnet, opus, haiku) | | --max-turns | Limit agentic turns | | --permission-mode | bypassPermissions, plan, etc. | | --allowedTools | Restrict available tools |

Guide for using claude CLI in headless mode with --print, output formats, and JSON schema Source: majesticlabs-dev/majestic-marketplace.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/majesticlabs-dev/majestic-marketplace --skill claude-headless-mode
Category
</>Dev Tools
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is claude-headless-mode?

Guide for using claude CLI in headless mode with --print, output formats, and JSON schema Source: majesticlabs-dev/majestic-marketplace.

How do I install claude-headless-mode?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/majesticlabs-dev/majestic-marketplace --skill claude-headless-mode Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/majesticlabs-dev/majestic-marketplace

Details

Category
</>Dev Tools
Source
skills.sh
First Seen
2026-02-01