Agent SkillsxiaoY233/Chat2API › chat2api-tool-client-replay

chat2api-tool-client-replay

GitHub

用于重放经过清洗的客户端工具调用测试用例,支持Cherry Studio等特定客户端。通过配置文件和命令行参数验证流式/非流式行为及协议期望,提供干跑模式以检查配置而不发送实际请求。

skills/chat2api-tool-client-replay/SKILL.md xiaoY233/Chat2API

Trigger Scenarios

需要针对特定客户端(如Cherry Studio)重放工具调用测试场景 验证不同客户端在Chat2API上的工具调用兼容性与协议一致性

Install

npx skills add xiaoY233/Chat2API --skill chat2api-tool-client-replay -g -y
More Options

Use without installing

npx skills use xiaoY233/Chat2API@chat2api-tool-client-replay

指定 Agent (Claude Code)

npx skills add xiaoY233/Chat2API --skill chat2api-tool-client-replay -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-tool-client-replay",
    "description": "Use when replaying sanitized client tool-calling fixtures against Chat2API with client-specific pass\/fail rules."
}

Chat2API Tool Client Replay

Use this skill to replay fixture scenarios for clients such as Cherry Studio, generic OpenAI tools, or unknown HAR-derived clients.

Rules

  • Preserve exact tool names.
  • Validate stream and non-stream behavior separately.
  • Use profiles for client-specific prompt-protocol expectations.

Commands

CHAT2API_API_KEY=sk_xxx \
node skills/chat2api-tool-client-replay/scripts/replay-client-fixture.mjs \
  --fixture backup/har/cherry-studio-fixture.json \
  --profile cherry-studio \
  --model deepseek-v4-flash

Use --dry-run to check profile, model, and fixture selection without live requests. If the fixture file exists, dry-run parses the fixture schema and reports fixtureExists plus scenarioCount; if it is missing, dry-run still exits successfully with fixtureExists: false.

Profiles

  • cherry-studio: Cherry Studio headers and visible prompt-tool-use expectations.
  • openai-tools: generic OpenAI-compatible tool-calling expectations.
  • custom-har: empty client headers for replaying sanitized HAR-derived fixtures.

Version History

  • 59f03ab Current 2026-07-05 20:17

Same Skill Collection

skills/chat2api-har-tool-fixture/SKILL.md
skills/chat2api-management-api/SKILL.md
skills/chat2api-provider-model-matrix/SKILL.md
skills/chat2api-proxy-testing/SKILL.md

Metadata

Files
0
Version
59f03ab
Hash
6a82acbc
Indexed
2026-07-05 20:17

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-08 18:36
浙ICP备14020137号-1 $bản đồ khách truy cập$