Skip to main content
在 Manus 中运行任何 Skill
一键导入

api-contract-first

星标3
分支1
更新时间2026年4月20日 05:31

Enforce API Contract-First development workflow between backend and frontend. Generates and validates a shared OpenAPI spec, ensures frontend services/types match backend data models, catches parameter naming mismatches (case conventions, aliasing), missing endpoints, and type inconsistencies. USE THIS SKILL whenever: building new API endpoints, creating frontend service layers, adding new pages that call APIs, modifying data models/Request/Response classes, changing controller method signatures, or when the user mentions "API contract", "frontend-backend mismatch", "field mapping", "OpenAPI", "swagger", or "API consistency". Also trigger when creating or modifying files in API controller, service, or data transfer directories.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly