Agent SkillsxiaoY233/Chat2API › chat2api-management-api

chat2api-management-api

GitHub

提供Chat2API管理API的测试支持,包括健康检查、配置快照、临时密钥管理及清理验证。通过脚本实现可重复的操作流程,确保测试过程中的数据安全与状态一致性。

skills/chat2api-management-api/SKILL.md xiaoY233/Chat2API

触发场景

需要进行Chat2API代理测试 需要创建或管理临时API密钥 需要备份或恢复系统配置 需要执行会话或日志清理

安装

npx skills add xiaoY233/Chat2API --skill chat2api-management-api -g -y
更多选项

不安装直接使用

npx skills use xiaoY233/Chat2API@chat2api-management-api

指定 Agent (Claude Code)

npx skills add xiaoY233/Chat2API --skill chat2api-management-api -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-management-api",
    "description": "Use when operating Chat2API Manager's management API for testing, including health checks, config snapshots, temporary API keys, model mappings, sessions, logs, and cleanup verification."
}

Chat2API Management API

Use this skill before live proxy testing that needs /v0/management/*.

Rules

  • Never print full management secrets, API keys, or account credentials.
  • Create disposable API keys for tests and delete only keys created by the current run.
  • Snapshot config before mutation and restore it in cleanup.
  • Do not clear sessions unless the user explicitly asks for cleanup.

Script

Use scripts/management-api.mjs for repeatable management API setup, observation, and cleanup commands.

Commands

CHAT2API_MGMT_SECRET=mgmt_xxx node skills/chat2api-management-api/scripts/management-api.mjs snapshot
CHAT2API_MGMT_SECRET=mgmt_xxx node skills/chat2api-management-api/scripts/management-api.mjs create-api-key --name codex-live-test
CHAT2API_MGMT_SECRET=mgmt_xxx node skills/chat2api-management-api/scripts/management-api.mjs delete-api-key --id key-id
CHAT2API_MGMT_SECRET=mgmt_xxx node skills/chat2api-management-api/scripts/management-api.mjs restore-tool-config --file /private/tmp/toolCallingConfig.json

Use --dry-run to verify command shape without network calls.

create-api-key prints a one-time API key to stdout. Do not write this output to durable logs, transcripts, or shared artifacts.

snapshot omits request logs by default. Use snapshot --include-logs only when logs are intentionally needed; included snapshot data is locally redacted before printing.

版本历史

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

同 Skill 集合

skills/chat2api-har-tool-fixture/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
9ffd3e33
收录时间
2026-07-05 20:17

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