指导在前端项目中按团队规范创建和维护 HTTP 接口,包括类型定义、请求封装、命名约定与错误处理。当前端需要新增或调整 API 时使用本技能。
$npx -y skills add antonhu/ai-coding-project --skill create-apiInstalls into the current project.
Run `npx skills use "https://github.com/antonhu/ai-coding-project" --skill "antonhu/ai-coding-project/create-api"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/antonhu/ai-coding-project" that are relevant to the current task. Run `npx skills add "https://github.com/antonhu/ai-coding-project"` and select the relevant skills, then follow their instructions.