# 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.

- Skill name: `chat2api-har-tool-fixture`
- Category: [Documents](https://www.openparable.com/skill/documents/1)
- Source: https://github.com/xiaoY233/Chat2API/blob/HEAD/skills/chat2api-har-tool-fixture/SKILL.md
- Repository: xiaoY233/Chat2API (1,294 GitHub stars when collected)

## SKILL.md

# 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

```bash
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`.

---

Source: https://www.openparable.com/skill/documents/chat2api-har-tool-fixture (OpenParable). Cite the canonical URL above.
