claude-code

Operates the Claude Code CLI for installation, headless execution, and APX runtime dispatch.

6|1|Updated May 8, 2026
One-click install
npx skills add https://github.com/agentprojectcontext/apx --skill claude-code-agentprojectcontext
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: claude-code
Source: https://github.com/agentprojectcontext/apx/tree/main/src/core/runtime-skills/claude-code
Command: npx skills add https://github.com/agentprojectcontext/apx --skill claude-code-agentprojectcontext

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? It provides verified, non-invented commands for installing, authenticating, and running the Claude Code CLI, including headless automation and session management through APX. ## Core Features & Use Cases - CLI Verification and Install: Check the local Claude Code version and help output before running install, update, or auth commands. - Headless Automation: Run tasks non-interactively with print mode, JSON output, appended system prompts, and permission modes for sandboxed environments. - Session Management via APX: List Claude sessions with apx sessions list and resume specific sessions by ID, since Claude Code has no non-interactive list command. - Use Case: You want to run a project agent through Claude Code inside APX. Use apx run <agent> --runtime claude-code "task" and, if Telegram delivery is needed, instruct Claude Code to call apx telegram send. ## Quick Start Ask the assistant to verify the Claude Code installation with claude --version and then run a task headlessly using print mode with JSON output.

Frequently Asked Questions about claude-code

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

FAQPage Schema
How do I install Claude Code CLI?▼

Install Claude Code globally with npm install -g @anthropic-ai/claude-code, then verify with claude --version. The CLI also exposes claude install, claude update, and claude auth commands; confirm current syntax with claude --help.

How to run Claude Code non-interactively in headless mode?▼

Use print mode with claude -p "task" --output-format json for headless execution. You can append system prompts with --append-system-prompt, and in sandboxed environments use --permission-mode bypassPermissions for high-trust automation.

How do I list Claude Code sessions from the command line?▼

Claude Code has no --list flag and --resume is always an interactive picker. Use apx sessions list --engine claude --project <name> or --dir <path> to print session IDs and titles non-interactively.

Can I resume a specific Claude Code session by ID?▼

Yes, run claude -p --resume <session-id> "..." from the project directory, always with -p print mode. Use claude --continue to resume the most recent session instead.

Does this skill handle agent-to-agent messaging in APX?▼

No, agent-to-agent relay such as apx send --deliver and session identity is a harness-side concern handled by the apx skill and apx-runtime. This skill covers only how APX operates the Claude engine.