Agent SkillsxiaoY233/Chat2API › chat2api-har-tool-fixture

chat2api-har-tool-fixture

GitHub

将OpenAI兼容客户端的HAR文件转换为可重放的Chat2API工具调用测试夹具,自动清理敏感信息。

skills/chat2api-har-tool-fixture/SKILL.md xiaoY233/Chat2API

触发场景

需要将HAR文件转换为测试输入 需要生成安全的可重放夹具

安装

npx skills add xiaoY233/Chat2API --skill chat2api-har-tool-fixture -g -y
更多选项

不安装直接使用

npx skills use xiaoY233/Chat2API@chat2api-har-tool-fixture

指定 Agent (Claude Code)

npx skills add xiaoY233/Chat2API --skill chat2api-har-tool-fixture -a claude-code -g -y

安装 repo 全部 skill

npx skills add xiaoY233/Chat2API --all -g -y

预览 repo 内 skill

npx skills add xiaoY233/Chat2API --list

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 Authorization values.

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.

版本历史

  • 59f03ab 当前 2026-07-05 20:17

同 Skill 集合

skills/chat2api-management-api/SKILL.md
skills/chat2api-provider-model-matrix/SKILL.md
skills/chat2api-proxy-testing/SKILL.md
skills/chat2api-tool-client-replay/SKILL.md

元信息

文件数
0
版本
59f03ab
Hash
d822ad76
收录时间
2026-07-05 20:17

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-07 19:19
浙ICP备14020137号-1 $访客地图$