CC-Trace: Claude Code API Request Interception Assistant — Development skill for Claude Code
CC-Trace: Claude Code API Request Interception Assistant skill.
How to install CC-Trace: Claude Code API Request Interception Assistant
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open alexfazio/cc-trace and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What CC-Trace: Claude Code API Request Interception Assistant does
CC-Trace: Claude Code API Request Interception Assistant skill.
Alternatives in Development
- Root Cause Tracing — Use when errors occur deep in execution and you need to trace back to find the original trigger 102.5k ★
- Not Claude Code Emulator — ULTRA DANGEROUS CLAUDE CODE EMULATOR; MAKING THE API REQUEST IDENTICAL TO CLAUDE CODE 398 ★
- Engage.Pickup — Resume an engagement from the engine trace — skip completed steps, continue where you left off 348 ★
README
name: cc-trace description: Interactive assistant for intercepting, debugging, analyzing and reviewing Claude Code API requests using mitmproxy. Guides setup, certificate configuration, and active traffic inspection via web or CLI interface. Supports learning Claude Code internals, debugging issues, and optimizing API usage. allowed-tools: Bash, Read, Write, Edit, AskUserQuestion
CC-Trace: Claude Code API Request Interception Assistant
Task Context
This skill transforms Claude into an interactive assistant for capturing and analyzing Claude Code's API communications using mitmproxy, a free, open-source HTTPS proxy tool. The skill supports three equally important use cases:
- Learning & Exploration - Understanding Claude Code's internal workings, system prompts, tool definitions, and request structure
- Debugging & Troubleshooting - Diagnosing unexpected behavior, failed tool calls, or API errors by inspecting actual traffic
- Optimization & Analysis - Analyzing token consumption patterns, identifying inefficiencies, and optimizing API usage
**Target users**: Technical professionals who understand software development and command-line interfaces but may be unfamiliar with HTTPS interception, certificate authorities, or proxy configuration.
**Operating mode**: Interactive assistant that:
- Assesses user's current setup state (fresh start, partial configuration, or fully operational)
- Guides through each step of setup with verification
- Helps troubleshoot errors with diagnostic commands
- Teaches traffic inspection and analysis techniques
- Adapts assistance level based on user's experience
Skill Capabilities
This skill provides assistance across three domains:
**For setup:**
- Guide through installation step-by-step (mitmproxy, certificate, shell configuration)
- Troubleshoot certificate or proxy configuration issues
- Verify setup is correct with diagnostic commands
- Explain errors encountered during setup
- Support macOS, Linux, and Windows platforms
**For usage:**
- Start and configure mitmproxy/mitmweb with appropriate flags
- Filter and find specific requests in captured traffic
- Explain captured traffic structure and content
- Export flows for later analysis or replay
- Write custom Python scripts for traffic logging and modification
**For analysis:**
- Interpret system prompts and tool definitions in requests
- Explain token usage patterns and optimization opportunities
- Analyze tool call sequences (parallel vs sequential, dependencies)
- Parse and understand Server-Sent Events streaming responses
- Compare different API interactions to identify patterns
Prerequisites
Before using this skill, verify:
- Operating system: macOS, Linux, or Windows (mitmproxy is cross-platform)
- Claude Code CLI: Already installed and functional
- Package manager: Homebrew (macOS), apt/pip (Linux), or ability to download installers (Windows)
- Terminal access: Basic command-line knowledge for ru
Related Skills
0x002132 Skills Bugbounty Hunt Aspnet
Hunt ASP.NET-specific surface — ViewState deserialization (signed-only vs encrypted), machineKey recovery, dua
Vulyk Plan
Queen planning mode - brief, recon, decompose into stories, trace, request approval
Flow Trace Skill
A Claude Code skill that turns "how does this request work?" into an interactive, animated, step-through page:
Debug Assistant
Pinpoints the root cause of an error from a stack trace and surrounding code, then proposes a fix.
Soc2 Evidence Plan
You are a SOC 2 Type II evidence collection planning assistant. Your job is to take an auditor's information r
Create Dto
Generates DTOs with Freezed for API request/response serialization
Related Agents
Surgical Diff Reviewer
Reviews a diff for scope creep — every changed line must trace directly to the user's stated request. Operatio
QA Incident Investigator
Correlates prepared logs, traces, batch results, API observations, and restricted data evidence without mutati
Agentapp Runtime
Agent 应用运行时工程师(Runtime + 可观测性 + API)。当需要实现 agent 编排循环、会话状态管理、流式输出、tool 执行调度、记忆存储,以及最关键的——tracing 可观测性(每一步可回放)与