Multica Platform Apifox logo

Multica Platform Apifox

Community
it235
multica-platform-apifox

Apifox 读写:OpenAPI 导入同步、接口打标、场景用例补充、T3 自动化跑批。平台 skill,测试/前端/后端共用;由产物编排 skill 按名调用。

Overview

Publisherit235
Repositorymultica-best-practices
Skill namemultica-platform-apifox
Stars
199
Forks
29
Bundled files
22
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 22 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by it235 on GitHub. Read the source before you install it.

Installation

Install the Multica Platform Apifox AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/it235/multica-best-practices/tree/main/templates/zh_CN/skills/platform/multica-platform-apifox
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/it235/multica-best-practices.git /tmp/multica-best-practices
mkdir -p .claude/skills
cp -r /tmp/multica-best-practices/templates/zh_CN/skills/platform/multica-platform-apifox .claude/skills/multica-platform-apifox
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Multica Platform Apifox in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Multica Platform Apifox on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Multica Platform Apifox is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Platform · Apifox

Platform 协作

本 skill 为 platform 层;供 multica-artifact-backend、multica-test-t1-design、multica-test-t3-api-automation 等按名调用。凭据:APIFOX_ACCESS_TOKEN。

Purpose

Apifox 读 + 写统一能力,供 @Tester / @BackendDev / @FrontendDev 按名挂载:

能力脚本典型调用方
OpenAPI 同步(增/改/删 + 打标)scripts/sync_openapi.js@BackendDev 契约发布后
接口场景补充(T1 并行)scripts/*.js(见 references/supplement-workflow.md)@Tester
T3 自动化跑批scripts/run_apifox.py@Tester(经 multica-test-t3-api-automation)

跨平台:Node 脚本 + Python runner;npm install -g apifox-cli。私有化基址见 config.yaml → api_base_url(默认 https://apifox.example.com)。

Files

text
multica-platform-apifox/
├── SKILL.md
├── config.yaml
├── .env.example
├── references/
│   ├── supplement-workflow.md
│   ├── reference.md
│   ├── agent-instructions.md
│   └── CHANGELOG.md
├── tests/                        # node --test tests/*.test.js
├── .apifox/
│   └── systems-registry.example.json
└── scripts/
    ├── sync_openapi.js           # OpenAPI 导入 + 打标 + 删 orphan
    ├── run_apifox.py             # T3 场景/套件跑批
    ├── lib/apifox.js             # CLI JSON 封装
    ├── systems-registry.js       # 系统名 ↔ projectId 登记
    ├── discover-auth.js
    ├── discover-scenario-target.js
    ├── generate-cases.js
    ├── append-to-scenario.js
    ├── safe-update-case.js
    └── validate-config.js

凭据

变量说明
APIFOX_ACCESS_TOKENApifox CLI token(禁止写入 SKILL / Git)
APIFOX_PROJECT_ID当前项目数字 ID
APIFOX_SOURCE_BRANCH创建 AI 分支时的 源分支(默认 main),不是 sync 目标
APIFOX_BRANCH本次写入的 目标 AI 分支(OpenAPI sync / 场景脚本必填)
APIFOX_API_BASE_URL私有化基址,覆盖 config
APIFOX_OPERATOR操作者简称(多人登记隔离)

Write · OpenAPI 同步(Backend / FE 契约)

Backend 发布 openapi.json(或从 api-contract.md 导出)后:

bash
npm install -g apifox-cli
set APIFOX_ACCESS_TOKEN=<token>
set APIFOX_PROJECT_ID=<projectId>

node scripts/sync_openapi.js \
  --file docs/backend/<ISSUE-KEY>/openapi.json \
  --issue <ISSUE-KEY> \
  --tag <ISSUE-KEY> \
  --branch ai/<ISSUE-KEY>-openapi-<YYYYMMDD> \
  --json

分支(强制):每次 OpenAPI 同步须 新建 AI 分支,禁止直写 main。完整步骤见 references/openapi-branch-workflow.md。

行为:

  1. 导入 — apifox import --format openapi(增/改)
  2. 打标 — 对 OpenAPI 内每条 path+method 匹配 endpoint,endpoint update --tags 追加 Issue tag
  3. 删除 — 导出带该 tag 的 endpoint,与本次 OpenAPI 对比,多余者 endpoint delete(仅删带该 tag 的 orphan)

回传 JSON:imported / tagged / deleted / errors。

Write · 接口场景补充(Tester T1 并行)

完整步骤见 references/supplement-workflow.md;断言/错误见 reference.md;Agent 指令见 references/agent-instructions.md。

回归测试:node --test tests/*.test.js(见 tests/README.md)。

要点:

  • 任务卡片对齐 projectId / 环境 / 接口 / 写入意图
  • systems-registry.js lookup 解析项目
  • 禁止 patch 修改 path/method/apiDetailId
  • 场景挂载:同一 endpoint 默认 append-existing,不重复建场景
  • T3 跑批走 run_apifox.py,不在本 skill 出 PASS/FAIL 验收结论

Run · T3 自动化

bash
pip install -r scripts/requirements.txt
python scripts/run_apifox.py \
  --issue AAI-2466 \
  --base-url "https://sit.example.com" \
  --json

multica-test-t3-api-automation 薄编排调用本脚本;配置见 config.yaml(scenario / environment 映射)。

Read

bash
apifox endpoint list --project <id> --access-token <token>
apifox test-scenario list --project <id>

为什么有效

Apifox 能力从角色提示词剥离,测试/后端/前端共用同一 platform skill;OpenAPI 同步与用例补充分轨,避免 supplement 流程误改接口定义。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Multica Platform Apifox AI skill do?

Apifox 读写:OpenAPI 导入同步、接口打标、场景用例补充、T3 自动化跑批。平台 skill,测试/前端/后端共用;由产物编排 skill 按名调用。

Why use Multica Platform Apifox on TypingMind?

Because you install it once and use it with any model. Multica Platform Apifox is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Multica Platform Apifox in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/it235/multica-best-practices/tree/main/templates/zh_CN/skills/platform/multica-platform-apifox. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Multica Platform Apifox?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Multica Platform Apifox?

As many as you like. As long as a model supports skills, you can use Multica Platform Apifox with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Multica Platform Apifox AI skill free?

Yes. It is published on GitHub by it235 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇