flask
✓使用应用程序工厂模式、蓝图和 Flask-SQLAlchemy 通过 Flask 构建 Python Web 应用程序。防止 9 个已记录的错误,包括stream_with_context 拆卸问题、async/gevent 冲突和 CSRF 缓存问题。 使用场合:创建 Flask 项目、组织蓝图或解决循环导入、上下文错误、注册、流式传输或身份验证问题。
SKILL.md
Production-tested patterns for Flask with the application factory pattern, Blueprints, and Flask-SQLAlchemy.
Issue #1: streamwithcontext Teardown Regression (Flask 3.1.2) Error: KeyError in teardown functions when using streamwithcontext Source: GitHub Issue #5804
Why It Happens: Flask 3.1.2 introduced a regression where streamwithcontext triggers teardownrequest() calls multiple times before response generation completes. If teardown callbacks use g.pop(key) without a default, they fail on the second call.
使用应用程序工厂模式、蓝图和 Flask-SQLAlchemy 通过 Flask 构建 Python Web 应用程序。防止 9 个已记录的错误,包括stream_with_context 拆卸问题、async/gevent 冲突和 CSRF 缓存问题。 使用场合:创建 Flask 项目、组织蓝图或解决循环导入、上下文错误、注册、流式传输或身份验证问题。 来源:jezweb/claude-skills。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/jezweb/claude-skills --skill flask- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 flask?
使用应用程序工厂模式、蓝图和 Flask-SQLAlchemy 通过 Flask 构建 Python Web 应用程序。防止 9 个已记录的错误,包括stream_with_context 拆卸问题、async/gevent 冲突和 CSRF 缓存问题。 使用场合:创建 Flask 项目、组织蓝图或解决循环导入、上下文错误、注册、流式传输或身份验证问题。 来源:jezweb/claude-skills。
如何安装 flask?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/jezweb/claude-skills --skill flask 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/jezweb/claude-skills
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01