Agent Skills
› xiaoY233/Chat2API
› chat2api-har-tool-fixture
chat2api-har-tool-fixture
GitHub将OpenAI兼容客户端的HAR文件转换为可重放的Chat2API工具调用测试夹具。自动移除敏感信息和易变头部,确保生成的Fixture安全且不含Authorization值,支持命令行参数或环境变量配置输入输出路径。
Trigger Scenarios
需要将HAR录制文件转换为可复用测试数据
需要清理HAR中的敏感信息以生成安全的回放夹具
Install
npx skills add xiaoY233/Chat2API --skill chat2api-har-tool-fixture -g -y
SKILL.md
Frontmatter
{
"name": "chat2api-har-tool-fixture",
"description": "Use when converting OpenAI-compatible client HAR files into sanitized replayable Chat2API tool-calling fixtures."
}
Chat2API HAR Tool Fixture
Use this skill when a recorded client HAR should become reusable test input.
Rules
- Treat HAR parsing as generic.
- Put client-specific expectations in replay profiles, not in HAR extraction.
- Remove secrets and volatile headers from generated fixtures.
- Output fixtures are safe to replay and must not contain
Authorizationvalues.
Commands
node skills/chat2api-har-tool-fixture/scripts/extract-har-fixtures.mjs \
--har backup/har/Cherry-Studio.har \
--client cherry-studio \
--out backup/har/cherry-studio-fixture.json
Use --har for the source HAR, --client for the fixture client profile, and --out for the output fixture path. If omitted, --har can come from CHAT2API_HAR, --client can come from CHAT2API_CLIENT_PROFILE, and output defaults to backup/har/<client>-tool-fixtures-<timestamp>.json.
Version History
- 59f03ab Current 2026-07-05 20:17


