·claude-headless-mode
</>

claude-headless-mode

majesticlabs-dev/majestic-marketplace

在无头模式下使用 claude CLI 以及 --print、输出格式和 JSON 架构的指南

21安装·0热度·@majesticlabs-dev

安装

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

在无头模式下使用 claude CLI 以及 --print、输出格式和 JSON 架构的指南 来源:majesticlabs-dev/majestic-marketplace。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/majesticlabs-dev/majestic-marketplace --skill claude-headless-mode
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 claude-headless-mode?

在无头模式下使用 claude CLI 以及 --print、输出格式和 JSON 架构的指南 来源:majesticlabs-dev/majestic-marketplace。

如何安装 claude-headless-mode?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/majesticlabs-dev/majestic-marketplace --skill claude-headless-mode 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

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

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-02-01