When you need to hand work off to the Claude Code CLI rather than solve it inline, this skill writes the right headless commands. It defaults to safe automation with `acceptEdits` mode, skips model flags unless you explicitly want an override, and knows the difference between tool availability and permission approval. The templates cover read-only analysis, edit runs, JSON output, session resumption, and MCP integration. One honest take: the real value is in the permission mode guidance, because `bypassPermissions` sounds tempting but the skill correctly steers you toward explicit allow rules or `dontAsk` unless you're already in a sandbox. It also checks your local `claude --help` output before assuming flag syntax, which matters when the CLI moves faster than blog posts.

skills.sh installs
140
GitHub stars
249
last updated
Mar 9, 2026

Install

$ npx -y skills add feiskyer/codex-settings --skill claude-skill --agent claude-code

Installs into .claude/skills of the current project.

Files

Claude Code Headless Mode

Build and run claude commands for work that should be executed through Claude Code itself.

ReferenceRead it when
references/flags-and-permissions.mdThe command needs more than -p — permission modes, tool scoping, output formats, flag inventory, installation
references/examples.mdYou want a worked command for a specific shape of task (read-only analysis, safe edit run, JSON report, resume, MCP, sandboxed unattended run)

Requires the claude CLI installed and authenticated on the target machine.

Core rules

Sponsors

Details

Repository
github.com/feiskyer/codex-settings
Category
CLI & Terminal
License
MIT
First seen
Jun 11, 2026

More from feiskyer/codex-settings

All 7
1senpi-ai avatarwolf-howlsenpi-ai/senpi-skillsHOWL v2 — Hunt, Optimize, Win, Learn. Nightly self-improvement loop for the WOLF autonomous trading strategy. Runs once per day (via cron) to review all trades 140skills.sh installs
2microsoft avatarwinui-session-reportmicrosoft/win-dev-skillsAnalyze the current or a recent agent session (GitHub Copilot CLI or Claude Code) and generate a diagnostic report. Use when asking for session feedback, debugg139skills.sh installs
3jchaselubitz avatarexpo-routerjchaselubitz/drill-appPatterns for Expo Router including Stack configuration, native tabs, and file-based routing best practices. Apply when working with navigation, routing, or scre134skills.sh installs
4ahmadawais avatarchartliahmadawais/chartliInstall and use chartli to render terminal charts from numeric text files or stdin.133skills.sh installs
5sundial-org avataragent-browsersundial-org/awesome-openclaw-skillsA fast Rust-based headless browser automation CLI with Node.js fallback that enables AI agents to navigate, click, type, and snapshot pages via structured comma129skills.sh installs
6feiskyer avatardeep-researchfeiskyer/codex-settings深度调研的多实例(多 Agent)编排工作流:把一个调研目标拆成可并行子目标,用 Codex CLI(`codex exec`)在默认 `workspace-write` 沙箱内运行子进程;联网与采集优先使用已安装的 skills,其次使用 MCP 工具;用脚本聚合子结果并分章精修,最终交付“成品报告文件路径 + 关键128skills.sh installs