From claude-code
Route Claude Code CLI work across local CLI inspection, interactive and print-mode automation, plugin and MCP lifecycle, diagnostics, hooks/settings, background agents, worktrees, sessions, remote control, and ultrareview.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-code:claude-codeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill when the user asks to operate, diagnose, automate, wrap, or
Use this skill when the user asks to operate, diagnose, automate, wrap, or
explain Claude Code CLI, including claude, claude --print, claude plugin,
claude mcp, claude agents, claude doctor, claude auto-mode, worktrees,
hooks, settings, permissions, custom agents, or ultrareview.
From this skill directory, the plugin root is ../...
For the full command/safety matrix, read
../../references/cli-operation-contracts.md.
Prefer live local facts over memory. Inspect the installed CLI before building commands or debugging version-sensitive behavior:
python3 ../../scripts/claude_code_inspector.py --json
If the user supplies a Claude executable path, use it for the current run:
python3 ../../scripts/claude_code_inspector.py --claude "$CLAUDE_CLI_PATH" --json
Do not commit personal absolute paths into source files, manifests, docs, or
examples. Use CLAUDE_CLI, PATH, ANTHROPIC_API_KEY, or user-provided runtime
arguments instead.
--print, JSON/stream-json, JSON schema, input streaming, prompt files/stdin, budget caps, fallback model, and no-persistence runs: use claude-print-automation.--plugin-dir or --plugin-url, and MCP server lifecycle: use claude-plugin-mcp-manager.claude-doctor-debugger.claude agents --json, worktrees, tmux, resume/continue/from-pr, fork-session, session names, remote control, and ultrareview: use claude-agent-worktrees.claude-hooks-settings.If several apply, inspect the CLI first, diagnose the safety/config surface second, then run or recommend the narrow workflow.
--dangerously-skip-permissions, --allow-dangerously-skip-permissions, and --permission-mode bypassPermissions as high-risk. Use them only with an explicit external sandbox boundary.--permission-mode plan for exploratory work.--safe-mode for broken customizations and --bare for minimal explicit-context troubleshooting.doctor, project purge, setup-token, auth, install/update, cloud ultrareview, plugin marketplace updates/removals, MCP removals/resets, or long-lived background sessions without clear user intent.A Claude Code CLI task is done when the answer includes the exact command or
source change, the permission/tool/settings mode chosen, the cwd assumptions,
and proof appropriate to the request: inspector output, subcommand help,
plugin validate, plugin/MCP list/details output, safe-mode/bare comparison,
settings JSON validation, or a clearly reported blocker.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub xopoko/plug-n-skills --plugin claude-code