claude-code

Delegate coding tasks to the Claude Code CLI via print mode or tmux sessions.

5|2|Updated May 26, 2026
One-click install
npx skills add https://github.com/perasyudha/Nyxora --skill claude-code-perasyudha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-code
Source: https://github.com/perasyudha/Nyxora/tree/main/packages/core/playbooks/autonomous-ai-agents/claude-code
Command: npx skills add https://github.com/perasyudha/Nyxora --skill claude-code-perasyudha

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @anthropic-ai/claude-code, tmux.

What problem does it solve? Orchestrating an autonomous coding agent from a terminal requires handling interactive prompts, permission dialogs, session state, and output formats, which is error-prone when done manually. ## Core Features & Use Cases - Print Mode Automation: Run one-shot coding tasks with claude -p, structured JSON output, JSON schema extraction, piped input, and session resumption. - Interactive PTY Orchestration: Drive multi-turn Claude Code sessions through tmux, including workspace trust and permissions dialog handling. - Configuration & Extensibility: Covers CLI flags, settings hierarchy, CLAUDE.md memory files, custom subagents, hooks, MCP server integration, and parallel instances. - Use Case: Pipe a git diff into claude -p to get an automated PR review, or spawn parallel tmux sessions to fix a bug, write tests, and update docs simultaneously. ## Quick Start Ask the agent to run claude -p with your coding task, an allowedTools list, and a max-turns limit in your project directory.

Frequently Asked Questions about claude-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Claude Code non-interactively for automation?

Use print mode with claude -p followed by your task prompt. It runs a one-shot task, skips all interactive dialogs, and exits when done. Add --max-turns to cap agentic loops and --allowedTools to restrict tool access.

How do I get structured JSON output from Claude Code?

Add --output-format json to a print mode command to receive a result object with session_id, num_turns, total_cost_usd, and the result text. For validated structured data, pass --json-schema with a JSON schema and parse the structured_output field.

How do I handle Claude Code permission dialogs in tmux?

The workspace trust dialog defaults to Yes, so send Enter via tmux send-keys. The bypass-permissions warning defaults to No, so send Down then Enter to select Yes, I accept. Trust dialogs only appear once per directory.

Can Claude Code resume a previous session?

Yes. Use claude -c to continue the most recent conversation in the current directory, or claude -r with a session ID to resume a specific session. In print mode, capture session_id from JSON output and pass it with --resume.

What is the difference between print mode and interactive mode in Claude Code?

Print mode (-p) runs a single task and exits, ideal for scripting and CI. Interactive mode provides a conversational REPL with slash commands and multi-turn iteration, requiring tmux orchestration when driven programmatically.

Why does Claude Code stop early in print mode?

The most common cause is hitting the --max-turns limit, which caps agentic loops to prevent runaway execution. Check the subtype field in JSON output: error_max_turns indicates the limit was reached, so raise it for larger tasks.