·flask
</>

flask

jezweb/claude-skills

Build Python web apps with Flask using application factory pattern, Blueprints, and Flask-SQLAlchemy. Prevents 9 documented errors including stream_with_context teardown issues, async/gevent conflicts, and CSRF cache problems. Use when: creating Flask projects, organizing blueprints, or troubleshooting circular imports, context errors, registration, streaming, or authentication.

431Installs·7Trend·@jezweb

Installation

$npx skills add https://github.com/jezweb/claude-skills --skill 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.

Build Python web apps with Flask using application factory pattern, Blueprints, and Flask-SQLAlchemy. Prevents 9 documented errors including stream_with_context teardown issues, async/gevent conflicts, and CSRF cache problems. Use when: creating Flask projects, organizing blueprints, or troubleshooting circular imports, context errors, registration, streaming, or authentication. Source: jezweb/claude-skills.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/jezweb/claude-skills --skill flask
Category
</>Dev Tools
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is flask?

Build Python web apps with Flask using application factory pattern, Blueprints, and Flask-SQLAlchemy. Prevents 9 documented errors including stream_with_context teardown issues, async/gevent conflicts, and CSRF cache problems. Use when: creating Flask projects, organizing blueprints, or troubleshooting circular imports, context errors, registration, streaming, or authentication. Source: jezweb/claude-skills.

How do I install flask?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/jezweb/claude-skills --skill flask Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/jezweb/claude-skills