·fastapi-patterns
</>

fastapi-patterns

hieutrtr/ai1-skills

FastAPI 框架机制和高级模式。在配置中间件、创建依赖项注入链、实现 WebSocket 端点、自定义 OpenAPI 文档、设置 CORS、构建身份验证依赖项(JWT 验证、基于角色的访问)、实现后台任务或管理应用程序生命周期(启动/关闭)时使用。不涵盖基本端点 CRUD 或存储库/服务模式(使用 python-backend-expert)或测试(使用 pytest-patterns)。

8安装·0热度·@hieutrtr

安装

$npx skills add https://github.com/hieutrtr/ai1-skills --skill fastapi-patterns

SKILL.md

Middleware executes in LIFO (Last In, First Out) order. The last middleware added is the outermost layer.

Use only for middleware that needs to read/modify the request body or response:

FastAPI caches dependency results within a single request. The same dependency called multiple times returns the same instance:

FastAPI 框架机制和高级模式。在配置中间件、创建依赖项注入链、实现 WebSocket 端点、自定义 OpenAPI 文档、设置 CORS、构建身份验证依赖项(JWT 验证、基于角色的访问)、实现后台任务或管理应用程序生命周期(启动/关闭)时使用。不涵盖基本端点 CRUD 或存储库/服务模式(使用 python-backend-expert)或测试(使用 pytest-patterns)。 来源:hieutrtr/ai1-skills。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/hieutrtr/ai1-skills --skill fastapi-patterns
分类
</>开发工具
认证
收录时间
2026-02-05
更新时间
2026-02-18

快速解答

什么是 fastapi-patterns?

FastAPI 框架机制和高级模式。在配置中间件、创建依赖项注入链、实现 WebSocket 端点、自定义 OpenAPI 文档、设置 CORS、构建身份验证依赖项(JWT 验证、基于角色的访问)、实现后台任务或管理应用程序生命周期(启动/关闭)时使用。不涵盖基本端点 CRUD 或存储库/服务模式(使用 python-backend-expert)或测试(使用 pytest-patterns)。 来源:hieutrtr/ai1-skills。

如何安装 fastapi-patterns?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/hieutrtr/ai1-skills --skill fastapi-patterns 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/hieutrtr/ai1-skills