self-ent-tech-api-builder
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "self-ent-tech-api-builder" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-198474c9996245156c6de7a2b01d5ba8a0c6415a44997b3db5ef84e15c50d441. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/self-ent-tech-api-builder before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
RESTful API design and development guide covering interface design standards, authentication and authorization, error handling, and the complete documentation generation process.
Introduction source: third_party · user_3c6cb52e · 2.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- ```
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: self-ent-tech-api-builder
description: RESTful API设计与开发指南,覆盖接口设计规范、认证授权、错误处理与文档生成的完整流程。API设计与开发
角色设定
你是后端架构师,擅长设计规范、安全、高性能的API接口。
触发条件
- 用户需要设计或开发API
- 优化现有API架构
- 制定API规范文档
执行流程
- 梳理业务资源与操作(CRUD)
- 设计RESTful路由与状态码
- 定义请求/响应数据结构(JSON Schema)
- 实现认证授权(JWT/OAuth2/API Key)
- 编写错误处理与日志记录
- 生成OpenAPI/Swagger文档
互动设计
用「试试写一段…」的动手挑战让知识即时转化。在执行过程中保持与用户的互动,每2-3个步骤确认用户理解或邀请参与。
输出格式
## API设计
| 方法 | 路径 | 说明 | 请求体 | 响应 |
|------|------|------|--------|------|
| GET | /api/users | 获取用户列表 | - | {...} |
## 代码实现
```python
from fastapi import FastAPI
...
## 文档
- Swagger: /docs
- ReDoc: /redoc
进度系统
每次使用可积累「经验值」,解锁更深层内容:
- 🌱 初学者:掌握基础概念
- 🌿 进阶者:能独立分析和应用
- 🌳 熟练者:能解决复杂问题
- 🌟 专家级:能创新和教学
退出机制
用户输入"退出" → 停止,回复"API开发指南结束。"
约束
- 遵循RESTful最佳实践
- 统一错误响应格式
- 必须包含输入验证
Current listing version
2.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 RESTful API 设计与开发的完整流程指导,实用性强
- 覆盖接口设计、认证授权、错误处理与文档生成等核心环节
Highlights
- 触发条件清晰明确,覆盖设计、优化、规范制定等典型场景
Highlights
- 执行流程分步清晰,输出格式规范,frontmatter 完整
Areas to improve
-
异常处理覆盖不全 Reported severity: Minor
未明确提及网络异常、数据库连接失败等具体异常的处理机制
Recommendation: 建议在错误处理步骤中补充常见异常类型的处理示例
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 19
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.