Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计异常

charles-proxy-extract查尔斯 Agent 人摘录

Agent Skill

charles-proxy-extract 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

449

周安装

18

GitHub Stars

7

下载量

145
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:charles-proxy-extract(查尔斯 Agent 人摘录)
来源仓库:https://github.com/wannabehero/charles-proxy-extract-skill
仓库路径:skills/charles-proxy-extract
安装命令:
npx skills add https://github.com/wannabehero/charles-proxy-extract-skill --skill charles-proxy-extract
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/wannabehero/charles-proxy-extract-skill --skill charles-proxy-extract

简介

charles-proxy-extract 用于解析 Charles Proxy 会话文件并提取结构化网络请求数据,适用于 API 调试与流量分析场景。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中分析 HTTP/HTTPS 请求细节,过滤特定端点或方法的数据。
  • 支持将代理日志导出为 JSON,便于后续处理或审查响应内容,无需额外依赖 Python 外部库。
  • 使用前需提供 .chlsj 格式的会话文件,注意该技能可能涉及本地文件读取操作。
  • 建议在受控环境中运行,避免自动执行敏感网络操作,并参考原始文档确认输出格式与字段含义。

SKILL.md

Charles Proxy Session Extractor

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

Prerequisites

  • Python 3.x (no external dependencies required)
  • Charles Proxy session file in.chlsj format

When to Use This Skill

Use this skill when the user:

  • Mentions "Charles Proxy" or "Charles session"
  • Asks to "extract", "analyze", or "inspect".chlsj files
  • Wants to filter HTTP/HTTPS requests by endpoint or method
  • Needs to examine API request/response data from proxy logs
  • Wants to export network traffic data to JSON

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

  • -m, --method METHOD - Filter by HTTP method (GET, POST, PUT, PATCH, DELETE)
  • -f, --first-only - Show only first matching request (for quick inspection)
  • -s, --summary-only - Show statistics without response bodies
  • -o, --output FILE - Save responses to JSON file
  • --no-pretty - Disable JSON pretty-printing

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:

  • "Extract [endpoint] from [file]" → Use basic extraction with pattern matching
  • "Show POST/PUT/PATCH to [endpoint]" → Add --method flag (request bodies auto-shown)
  • "First [endpoint] response" → Add --first-only flag
  • "Summarize [file]" or "What's in [file]" → Add --summary-only flag
  • "Save [endpoint] to [output]" → Add --output flag
  • "Compare [endpoint] with model" → Extract first response, then analyze structure

Important Notes

  • Pattern matching is case-sensitive substring matching
  • Method filtering is case-insensitive
  • POST/PUT/PATCH methods automatically display request bodies when method filter is applied
  • Use "/" as pattern to match all requests

What This Skill Does

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

  • Filter requests by URL pattern (substring matching)
  • Filter requests by HTTP method (GET, POST, PUT, PATCH, DELETE)
  • View request bodies for mutation operations (POST/PUT/PATCH)
  • Export extracted data to JSON files
  • Generate traffic summaries with statistics
  • Pretty-print JSON response bodies

Input Requirements

Required:

  • Path to Charles Proxy session file (.chlsj format)
  • URL pattern to match (use "/" to match all requests)

Optional:

  • HTTP method filter (GET, POST, PUT, PATCH, DELETE)
  • Output mode (full, first-only, summary-only)
  • Output file path for JSON export
  • Pretty-print toggle for JSON formatting

Output Format

Summary mode:

  • Pattern match statistics
  • Grouped paths with request counts
  • Method and status code distribution

Full mode:

  • Request details (method, path, status, timestamp)
  • Request body (for POST/PUT/PATCH when method filter applied)
  • Response body (JSON parsed or raw text)
  • Pretty-printed JSON by default

Export mode:

  • JSON file with structure: {"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

  • Only supports Charles Proxy JSON session format (.chlsj)
  • Pattern matching is case-sensitive substring matching
  • Method filtering is case-insensitive
  • Large response bodies may be truncated in display (not in exports)
  • Requires Python 3.x with standard library only (no external dependencies)

Error Handling

The skill handles:

  • Missing or inaccessible files (clear error message)
  • Invalid JSON in session files (decoding error details)
  • Empty result sets (informative message)
  • Malformed request/response structures (graceful degradation)

Troubleshooting

"File not found" error:

  • Verify the.chlsj file path is correct
  • Use absolute paths or ensure the file is in the current directory

"Invalid JSON" error:

  • Ensure the file is a valid Charles Proxy session export
  • Re-export the session from Charles Proxy

No results found:

  • Pattern matching is case-sensitive - check capitalization
  • Try using "/" to match all requests first
  • Verify the endpoint exists in the session file using --summary-only

Python not found:

  • Ensure Python 3.x is installed and available in PATH
  • Try using python instead of python3 or vice versa

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.32%
按下载量换算54

Claude

27.54%
按下载量换算40

Cursor

16.83%
按下载量换算24

Gemini CLI

8.74%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills