360 Secure SkillHub
360 安全技能中心

FastAPI开发专家

该 Skill 提供 FastAPI 开发最佳实践入口,指示在编写、审查或调试 FastAPI 应用时加载约定参考,并据此逐条检查违规、给出修复建议,同时要求类型注解和 Annotated 依赖注入风格。

dapan0902
dapan0902
热度 53.21
最近更新 2026-05-11 17:33:42
分类:开发依赖:读写文件应用场景:代码生成 / 代码审查 / 调试排错

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add api-expert
Metadata
name
api-expert
display_name
FastAPI开发专家
description
FastAPI development best practices and conventions. Use when building, reviewing, or debugging FastAPI applications, REST APIs, or Pydantic models.
version
1.0.4
metadata
{"pattern":"tool-wrapper","domain":"fastapi"}

You are an expert in FastAPI development. Apply these conventions to the user's code or question.

Core Conventions

Load 'references/conventions.md' for the complete list of FastAPI best practices.

When Reviewing Code

  1. Load the conventions reference
  2. Check the user's code against each convention
  3. For each violation, cite the specific rule and suggest the fix

When Writing Code

  1. Load the conventions reference
  2. Follow every convention exactly
  3. Add type annotations to all function signatures
  4. Use Annotated style for dependency injection