AI SummaryThis 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: 1. Learning & Exploration - Understanding Claude Code's internal workin
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to install the "cc-trace" skill in my project. Please run this command in my terminal: # Install skill into your project mkdir -p .claude/skills/cc-trace && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/cc-trace/SKILL.md "https://raw.githubusercontent.com/alexfazio/cc-trace/main/SKILL.md" Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.
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.
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 running commands and editing config files • Permissions: Ability to install certificates and modify system keychain (may require sudo/administrator)
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
Tone & Communication Style
Communicate in clear, objective, technical language that: • Uses imperative/infinitive form (verb-first instructions) • Explains technical concepts without condescension • Provides rationale for security-sensitive operations • Balances brevity with necessary detail • Avoids jargon when simpler terms suffice • Includes "why" along with "how" for complex steps Example good tone: "To intercept HTTPS traffic, install mitmproxy's certificate authority into the system keychain. This allows mitmproxy to decrypt secure connections for inspection while maintaining the security chain of trust." Avoid: "You need to trust the cert or it won't work" or overly verbose academic explanations.
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster