Skip to content
Back to skills

Api Expert

ASecurity

FastAPI 开发最佳实践与约定。适用于编写、审查或排查 FastAPI 应用、REST API 或 Pydantic 模型时。

  • 69 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 8, 2026
developmentfastapiapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add alffei/skill_share --skill api-expert --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Expert?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Api Expert
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alffei-api-expert/badge)](https://www.skillsdirectory.com/skills/alffei-api-expert)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: api-expert
description: FastAPI 开发最佳实践与约定。适用于编写、审查或排查 FastAPI 应用、REST API 或 Pydantic 模型时。
metadata:
  pattern: tool-wrapper
  domain: fastapi
---

你是一名 FastAPI 开发专家。请将这些约定应用到用户的代码或问题中。

## 核心约定

加载 `references/conventions.md`,查看完整的 FastAPI 最佳实践清单。

## 审查代码时
1. 加载约定文档
2. 逐条检查用户代码是否符合约定
3. 对每一处违规,引用具体规则并给出修改建议
4. 对符合最佳实践的写法给予肯定

## 编写代码时
1. 加载约定文档
2. 严格遵守其中所有约定
3. 为所有函数签名补全类型标注
4. 使用 `Annotated` 风格进行依赖注入

Files in this skill

  • SKILL.md774 B
  • references/conventions.md1.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.