From msw-api
Use when starting MSW or API mock work, or when using the msw-api skill pack—load this first, then the matching msw-* sub-skill
How this skill is triggered — by the user, by Claude, or both
Slash command
/msw-api:msw-apiThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**msw-api** 是 MSW / API 契约对齐技能包的总入口。在改 mock 或测试前,先读本技能,再按场景加载对应的 **msw-** 子技能。
msw-api 是 MSW / API 契约对齐技能包的总入口。在改 mock 或测试前,先读本技能,再按场景加载对应的 msw- 子技能。
| 技能名 | 何时加载 |
|---|---|
| msw-find-diff | 有 Swagger / OpenAPI / Postman,要生成 msw-plan.md |
| msw-update-code | 已有 msw-plan.md,要改代码与测试 |
| msw-verify-plan | 改完后验收计划、跑测试 |
| msw-writing-skills | 在本仓库新增或修改技能 |
推荐流程:msw-find-diff → 确认 plan → msw-update-code → 可选 msw-verify-plan。
在回复或改代码之前,若任务与 MSW、API mock、接口文档、msw-plan.md 相关,必须先加载 msw-api 或对应 msw- 子技能并遵循。
即使只有约 1% 的可能性适用,也应先读取技能内容再决定不用。
npx skills add eminoda/msw-api -g -y
npx skills add eminoda/msw-api -g -y --skill msw-api --skill msw-find-diff --skill msw-update-code
或链接本仓库:scripts/install-cursor-skills.sh / .ps1 → ~/.cursor/skills/msw-api/
「文档和 mock 不一致」→ msw-plan.config.json + msw-find-diff 的 project-layouts → 确认后 msw-update-code。
若任务已限定为单一操作(如「只跑测试」),可只加载 msw-verify-plan;否则建议先读 msw-api。
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub eminoda/msw-api --plugin msw-api