Charles proxy extract

From eric861129/SKILLS_All-in-one · View interactive version

Charles proxy extract is an AI agent skill from the GitHub repository eric861129/SKILLS_All-in-one. Extracts HTTP/HTTPS request and response data from Charles Proxy session files (.chlsj format), including URLs, methods, status codes, headers, request bodies, and response bodies. Use when analyzing captured network traffic from Charles Proxy debug sessions, inspecting API calls, debugging HTTP req

How to use this skill

Skill file

Charles Proxy Session Extractor

Parses and extracts structured data from Charles Proxy session files (.chlsj format).

Prerequisites

When to Use This Skill

Use this skill when the user:

How to Execute This Skill

When the user asks to extract, analyze, or inspect Charles Proxy session files, run the Python script using the Bash tool:

python3 ./extract_responses.py <file.chlsj> <pattern> [options]

Required Parameters

  1. <file.chlsj> - Path to the Charles Proxy session file (use exact path provided by user)
  2. <pattern> - URL path pattern to match (e.g., "/today", "/logs", "/" for all)

Optional Flags

Execution Examples

Extract all /today responses:

python3 ./extract_responses.py session.chlsj "/today"

Filter by POST method (automatically shows request bodies):

python3 ./extract_responses.py session.chlsj "/logs" --method POST

Quick peek (first result only):

python3 ./extract_responses.py session.chlsj "/users" --first-only

Summary without bodies:

python3 ./extract_responses.py session.chlsj "/" --summary-only

Export to file:

python3 ./extract_responses.py session.chlsj "/items" --output items_data.json

User Request Patterns

When users say things like:

Important Notes

What This Skill Does

Extracts HTTP/HTTPS request and response data from Charles Proxy session files, allowing you to:

Input Requirements

Required:

Optional:

Output Format

Summary mode:

Full mode:

Export mode:

```json

{

"pattern": "/api/endpoint",

"total_requests": 10,

"extracted_at": "ISO8601 timestamp",

"requests": [...]

}

```

Common Usage Scenarios

"Extract all /today responses from session.chlsj"

→ Shows all requests matching /today pattern

"Show POST requests to /logs with request bodies"

→ Filters by POST method and displays request bodies

"Export all /items responses to items.json"

→ Saves filtered responses to JSON file

"Summarize requests in the Charles session"

→ Shows statistics without response bodies

Limitations

Error Handling

The skill handles:

Troubleshooting

"File not found" error:

"Invalid JSON" error:

No results found:

Python not found:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.