claude-code

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

Updated Jul 7, 2026
One-click install
npx skills add https://github.com/jamsdoescode/Erik-s-Portfolio --skill claude-code-jamsdoescode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-code
Source: https://github.com/jamsdoescode/Erik-s-Portfolio/tree/main/openclicky/AppResources/OpenClicky/OpenClickyBundledSkills/claude-code
Command: npx skills add https://github.com/jamsdoescode/Erik-s-Portfolio --skill claude-code-jamsdoescode

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. This Skill provides the operational knowledge to drive the Claude Code CLI reliably for features, refactors, code reviews, and PR workflows without manual babysitting. ## Core Features & Use Cases - Print Mode Automation: Run one-shot non-interactive tasks with claude -p, structured JSON output, JSON-schema extraction, piped input, and session resumption for CI/CD pipelines. - Interactive PTY Orchestration: Drive multi-turn Claude Code sessions through tmux, including handling workspace trust and permissions dialogs, monitoring progress via pane capture, and sending follow-up prompts. - Parallel & PR Workflows: Launch multiple independent Claude instances in parallel tmux sessions, review PRs via --from-pr or piped diffs, and isolate work in git worktrees. - Use Case: Pipe git diff main...feature-branch into claude -p to get an automated code review, or spawn three 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 in a script?

Use print mode with claude -p followed by your task prompt. It runs one-shot, 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 containing the response text, session_id, num_turns, total_cost_usd, and token usage. For validated structured data, pass --json-schema with a JSON schema and parse the structured_output field.

How do I handle the Claude Code trust and permissions dialogs in tmux?

Send Enter via tmux send-keys to accept the default workspace trust option. For the --dangerously-skip-permissions warning, send Down then Enter to select 'Yes, I accept', since the default is 'No, exit'.

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 non-interactively and exits, ideal for automation and CI. Interactive mode provides a multi-turn REPL with slash commands and follow-up prompts, requiring tmux orchestration for programmatic control.

Why does Claude Code print mode stop before finishing my task?

The default agentic loop limit may be reached. Increase --max-turns to allow more iterations, and check the subtype field in JSON output for error_max_turns or error_budget to diagnose the stop reason.