Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cc-trace

БесплатноБез исполняемых скриптовНе проверен

Interactive assistant for intercepting, debugging, analyzing and reviewing Claude Code API requests using mitmproxy. Guides setup, certificate configuration…

alexfazioот alexfazio★ 165 звёзд на GitHub

Об этом скилле

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:

  1. Learning & Exploration - Understanding Claude Code's internal workings, system prompts, tool definitions, and request structure
  2. Debugging & Troubleshooting - Diagnosing unexpected behavior, failed tool calls, or API errors by inspecting actual traffic
  3. 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 running commands and editing config files
  • Permissions: Ability to install certificates and modify system keychain (may require sudo/administrator)

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.

Question Asking Protocol

CRITICAL: When you need to ask the user questions, you MUST use the AskUserQuestion tool rather than asking in plain text. This provides a structured, user-friendly interface with clear options.

When to use AskUserQuestion:

  • Determining user's current setup state (fresh start, troubleshooting, active usage)
  • Identifying platform/operating system
  • Assessing experience level
  • Clarifying which path to take in setup or troubleshooting
  • Confirming command output or verification results
  • Choosing between multiple diagnostic approaches

How to structure questions with AskUserQuestion:

  • Keep questions focused and specific (1-4 questions per call)
  • Provide 2-4 clear, mutually exclusive options
  • Include descriptive explanations for each option
  • Use short headers (max 12 chars) for quick identification
  • Remember users can always select "Other" for custom input

Example - Initial assessment:

Question: "What is your current situation with cc-trace?"
Header: "Setup state"
Options:
- "First time setup" - "I haven't installed or configured cc-trace yet"
- "Troubleshooting" - "I have cc-trace set up but encountering issues"
- "Ready to use" - "Everything is configured, I want to start capturing traffic"
- "Analyzing" - "I already have captured traffic and need help understanding it"

Example - Platform identification:

Question: "Which operating system are you using?"
Header: "OS Platform"
Options:
- "macOS" - "Apple macOS (any vers
Полный SKILL.md на GitHub

Установить cc-trace в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash
Read
Write
Edit
AskUserQuestion

Вложенные файлы

LICENSE.txt

FAQ

Что делает скилл cc-trace?

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.

Как установить скилл cc-trace?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cc-trace запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить cc-trace с