flask

Installation
Summary

Production-tested Flask patterns with application factory, Blueprints, and SQLAlchemy, preventing 9 documented errors.

  • Covers application factory pattern, extension initialization, blueprint organization, and database models to avoid circular imports and context errors
  • Prevents known issues including stream_with_context teardown regressions, async/gevent conflicts, CSRF cache interference, and Flask-Login session protection edge cases
  • Includes authentication patterns with Flask-Login and Flask-WTF, API route examples, and testing setup with pytest fixtures
  • Requires Python 3.9+; verified against Flask 3.1.2, Flask-SQLAlchemy 3.1.1, Werkzeug 3.1.5, and related extensions as of January 2026
SKILL.md

Flask Skill

Production-tested patterns for Flask with the application factory pattern, Blueprints, and Flask-SQLAlchemy.

Latest Versions (verified January 2026):

  • Flask: 3.1.2
  • Flask-SQLAlchemy: 3.1.1
  • Flask-Login: 0.6.3
  • Flask-WTF: 1.2.2
  • Werkzeug: 3.1.5
  • Python: 3.9+ required (3.8 dropped in Flask 3.1.0)

Quick Start

Project Setup with uv

Related skills
Installs
430
GitHub Stars
776
First Seen
Jan 20, 2026