跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
浏览器与自动化

add-api

This skill should be used when the user asks to "add endpoint", "add route", "add API", or wants to add a new route to an existing domain.

Mr-DooSun · 已有静态检查记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add Mr-DooSun/fastapi-agent-blueprint --skill add-api

技能说明


name: add-api argument-hint: "Add METHOD /path to a domain" description: | This skill should be used when the user asks to "add endpoint", "add route", "add API", or wants to add a new route to an existing domain.

Add API Endpoint

Request: $ARGUMENTS

Default Flow Position

  • Step: implement (approach options upstream is conditional — required for non-trivial response shape, cross-domain access, or new validation patterns)
  • Routes after: /test-domain {name} run (verify) → /review-architecture {name} only if layer interactions changed
  • Recursion guard: do not invoke /plan-feature from inside this skill

Procedure Overview

  1. Analysis — identify domain, method, path; check existing code; determine needed changes
  2. Implementation (bottom-up) — Repository → Service → UseCase(conditional) → Schema → Router
  3. Post-completion verification — pre-commit, tests, Swagger check

Read docs/ai/shared/skills/add-api.md for detailed steps. Also refer to docs/ai/shared/project-dna.md §6 for conversion patterns and §9 for router pattern.