cc-inspect
/cc-inspect
Claude Code runtime environment inspector. Comprehensive diagnostic tool that reports all Claude Code environment variables, session identity, config directory, plugin paths, system toolchain versions, Rune runtime state, and platform details. Use when debugging environment issues, verifying session isolation, checking config directory resolution, or diagnosing plugin loading. Trigger keywords: cc inspect, claude code inspect, env check, environment, session id, config dir, diagnostic, runtime info, plugin env, plugin root, system info, toolchain. Note: This skill uses disable-model-invocation
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 16.05.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Claude Code runtime environment inspector. Comprehensive diagnostic tool that reports all Claude Code environment variables, session identity, config directory, plugin paths, system toolchain versions, Rune runtime state, and platform details. Use when debugging environment issues, verifying session isolation, checking config directory resolution, or diagnosing plugin loading. Trigger keywords: cc inspect, claude code inspect, env check, environment, session id, config dir, diagnostic, runtime info, plugin env, plugin root, system info, toolchain. Note: This skill uses disable-model-invocation
Arguments
/cc-inspect [--json] [--section <name>]
Original author description
Claude Code runtime environment inspector. Comprehensive diagnostic tool that reports all Claude Code environment variables, session identity, config directory, plugin paths, system toolchain versions, Rune runtime state, and platform details. Use when debugging environment issues, verifying session isolation, checking config directory resolution, or diagnosing plugin loading. Trigger keywords: cc inspect, claude code inspect, env check, environment, session id, config dir, diagnostic, runtime info, plugin env, plugin root, system info, toolchain. Note: This skill uses disable-model-invocation
How it works
- Instructions
SKILL.md preview
---
name: cc-inspect
description: |
Claude Code runtime environment inspector. Comprehensive diagnostic tool
that reports all Claude Code environment variables, session identity,
config directory, plugin paths, system toolchain versions, Rune runtime
state, and platform details.
Use when debugging environment issues, verifying session isolation,
checking config directory resolution, or diagnosing plugin loading.
Trigger keywords: cc inspect, claude code inspect, env check,
environment, session id, config dir, diagnostic, runtime info,
plugin env, plugin root, system info, toolchain.
Note: This skill uses disable-model-invocation: true because it is
a diagnostic tool meant for explicit user invocation only.
It appears in the /rune:cc-inspect routing table entry.
user-invocable: true
disable-model-invocation: true
allowed-tools: Bash, Read, Glob
argument-hint: "[--json] [--section <name>]"
---
# Claude Code Runtime Inspector
Comprehensive diagnostic view of the Claude Code runtime environment,
session identity, plugin state, and system toolchain.
## Instructions
Run the diagnostic script:
```bash
bash "${RUNE_PLUGIN_ROOT}/scripts/cc-inspect.sh"
```
Fallback (outside plugin context):
```bash
bash plugins/rune/scripts/cc-inspect.sh
```
### Section Filter
If the user passes `--section <name>`, only show that section. Valid names:
`env`, `session`, `system`, `plugin`, `runtime`, `echoes`, `all` (default).
### JSON Output Mode
If the user passes `--json`, present findings as structured key-value data.
### Environment Variable Reference
#### Claude Code Core
| Variable | Description |
|----------|-------------|
| `CLAUDE_CONFIG_DIR` | Config directory override (default: `~/.claude`) |
| `CLAUDE_SESSION_ID` | Current session UUID — used for session isolation |
| `CLAUDE_PROJECT_DIR` | Project root directory |
| `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` | Agent Teams feature flag (`1` = enabled) |
#### Plugin System
| Variable | Description |
|----------|-------------|
| `CLAUDE_PLUGIN_ROOT` | Absolute path to the active plugin directory (hook context only) |
| `RUNE_PLUGIN_ROOT` | Bridged plugin root path (available in Bash() tool calls via CLAUDE_ENV_FILE) |
| `CLAUDE_PLUGIN_DATA` | Plugin-scoped persistent data directory |
#### Rune-Specific
| Variable | Description |
|----------|-------------|
| `RUNE_SESSION_ID` | Rune workflow session ID (injected by SessionStart hook) |
| `RUNE_TRACE` | Trace logging toggle (`1` = enabled) |
| `RUNE_TRACE_LOG` | Trace log file path |
| `RUNE_CLEANUP_DRY_RUN` | Dry-run mode for cleanup hooks (`1` = log only) |
#### Process & System
| Variable | Description |
|----------|-------------|
| `PPID` | Parent process ID (Claude Code PID — used for session isolation) |
| `HOME` | User home directory |
| `USER` | Current user name |
| `SHELL` | User's default shell |
| `TMPDIR` | Temporary directory (macOS sets this per-session) |
| `PATH` | Executable search path (truncated for readability) |
### What to Report
1. **Session Identity** — Session ID, PID, config dir, resolved CHOME
2. **Claude Code Env** — All `CLAUDE_*` variables with set/unset status
3. **Rune Env** — All `RUNE_*` variables
4. **Plugin System** — Plugin root, data dir, cache, component counts
5. **System Toolchain** — Shell, Node.js, Python, jq, git, gh versions
6. **Platform** — OS, architecture, kernel version
7. **Runtime State** — Active state files, talisman shards, signals
8. **Echoes** — Persistent memory entry counts per role
### Troubleshooting
- `CLAUDE_PLUGIN_ROOT` / `CLAUDE_PLUGIN_DATA` not set: running outside plugin context (hook context)
- `RUNE_PLUGIN_ROOT` not set: SessionStart hook failed to inject (check CLAUDE_ENV_FILE)
- `CLAUDE_CONFIG_DIR` not set: using default `~/.claude` (single-account setup)
- `CLAUDE_SESSION_ID` not set: older Claude Code version or non-interactive context
- `PPID` mismatch between skill and hook: expected — hooks run via hook runner subprocess
Versions
The database has no other skills named cc-inspect.
Database snapshot: 13.11.2026 · package version 775e91a0ce83 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 90sync-dev-env
Install or update claude-dev-env in a running session, link the skills of every enabled plugin so a running session loads them, and schedule a daily re-sync at 6:00 AM local by default. Use when the user asks to sync claude-dev-env into a session, to load the skills of a plugin… - 90claude-platform-reference
Use when you need details about SpawnForge's Claude Code platform setup — hooks, skills inventory, MCP servers, validation tools, or plugin config. Reference for the automation infrastructure. - 100flightdeck
Explains what the Flightdeck plugin records about this Claude Code session, where it shows up, which environment variables control capture and enforcement, and how MCP policy decisions reach the session. Use when the user asks what Flightdeck sees, why a tool call was refused by… - 100validating-plugins
Thoroughly validate a Claude Code plugin's manifest, directory structure, commands, agents, skills, hooks, and MCP config, then report issues by severity. Use when the user asks to validate, check, audit, or lint a plugin, verify a plugin.json or plugin structure, debug why a… - 100onboard
Auto-generate project context for AI sessions. Use when starting on a new repo for the first time, or when CLAUDE.md / .rune/ context is missing or stale. Scans codebase and creates the setup so every future session starts with full context. - 100env-setup
Claude Code 环境一键同步工具。从 GitHub 仓库同步所有配置到本地:output-styles 风格、CLAUDE.md 全局提示词、MCP 服务器配置、Agent 配置、Plugin 配置。适用于多设备统一环境、换电脑恢复、团队共享配置等场景。当用户需要从 GitHub 仓库同步 Claude Code/OpenClaw 环境配置时使用此 skill。