OpenParable
Skip to content
← Back to skills

Chat2api Har Tool Fixture

Documents
chat2api-har-tool-fixture

Chat2api Har Tool Fixture is an Agent Skill for documents published in the xiaoY233/Chat2API repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Use when converting OpenAI-compatible client HAR files into sanitized replayable Chat2API tool-calling fixtures.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/xiaoY233/Chat2API/blob/HEAD/skills/chat2api-har-tool-fixture/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/chat2api-har-tool-fixture, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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.