hhx465453939

API First — Development skill for Claude Code

Development community

激活 API-First 模块化开发框架 — 后端封装为独立API包,前端只调API,跨层任务自动分解.

How to install API First

Installs to ~/.claude/commands/hhx465453939-prompt_design-api-first.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/hhx465453939/prompt_design/HEAD/.claude/commands/api-first.md -o ~/.claude/commands/hhx465453939-prompt_design-api-first.md

Restart Claude Code, or start a new session, for it to be picked up.

What API First does


description: 激活 API-First 模块化开发框架 — 后端封装为独立API包,前端只调API,跨层任务自动分解

你现在激活了 **API-First 模块化开发框架**。

请先阅读 `.claude/skills/api-first-modular.md` 获取完整的方法论和工作流程。

快速指引

根据用户的需求类型,按以下方式工作:

1. 纯后端开发

走后端 API 包 5 步闭环:**开发 → Checkfix → 封装 → API端点 → API文档**

2. 纯前端开发

确认 API 文档已就绪,然后依据文档实现页面和 API 调用。如果 API 文档缺失,先要求补全。

3. 跨层开发/调试(最常见)

执行「跨层任务自动分解协议」:

  1. 层级识别 — 判断涉及哪些层(后端/前端/中间层)
  2. API边界拆分 — 按 API 包粒度拆为有序子任务
  3. 严格按序执行 — 后端先行 → API文档 → 前端消费 → 集成验证

4. Debug 任务

执行「Debug 边

Alternatives in Development

  • OpenMythos — A theoretical reconstruction of the Claude Mythos architecture, built from first principles using the availabl 14.8k ★
  • Contributing To Skill Seeker — First off, thank you for considering contributing to Skill Seeker 11.1k ★
  • Prompt Creater — I want you to become my Expert Prompt Creator 9.1k ★

Full documentation available on GitHub

View Source Repository