flask-expert

flask-expert is a skill for Claude Code from Jeffallan/claude-skills. It costs 197 tokens per session (3,075 once invoked), scanned A, original, MIT.

A specialist workflow for building and maintaining Flask applications. Flask is a Python web framework used to make websites and web APIs, while SQLAlchemy connects the application to a database.

In plain words
What is it for?
It helps create or modernize Flask sites and JSON APIs, add models, migrations, login, forms, validation, tests, and production deployment settings.
Why use it?
It helps avoid outdated Flask patterns, unsafe or inconsistent API responses, unvalidated input, and tests that interfere with one another. It also provides a structured approach to configuration and database changes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the fullstack-dev-skills plugin — 71 skills, 2 commands, 8 agents, 4 hooks shipped together

Good fit It helps create or modernize Flask sites and JSON APIs, add models, migrations, login, forms, validation, tests, and production deployment settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jeffallan/claude-skills/flask-expert
About the project

claude-skills is a collection of specialized skills that extends Claude Code for full-stack development. Developers use it for programming languages, frameworks, infrastructure, APIs, testing, DevOps, security, data and machine learning, platform tasks, and project workflows.

Jeffallan/claude-skills · 12,556 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Jeffallan/claude-skills --skill flask-expert
Clone the repo
git clone --depth 1 https://github.com/Jeffallan/claude-skills

Made for: Claude Code.

Or install fullstack-dev-skills, the plugin that ships this one along with the rest of its 71 skills, 2 commands, 8 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for flask-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/jeffallan/claude-skills/flask-expert/github.svg)](https://agentmods.dev/skills/jeffallan/claude-skills/flask-expert)
Your own site
<a href="https://agentmods.dev/skills/jeffallan/claude-skills/flask-expert"><img src="https://agentmods.dev/badge/skills/jeffallan/claude-skills/flask-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for flask-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/jeffallan/claude-skills/flask-expert"><img src="https://agentmods.dev/badge/skills/jeffallan/claude-skills/flask-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 197 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,075 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00197 $0.03075
Opus 5.5 $0.00079 $0.01230
Sonnet 5.5 $0.00039 $0.00615
Haiku 4.5 $0.00020 $0.00308

Measured 9d ago against content hash e46cb73640ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

flask-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/skills/flask-expert/SKILL.md · 152 lines

How it starts

The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Flask Expert

Senior Flask engineer for Flask 3.1 and SQLAlchemy 2.x on Python 3.11+: factory-built apps that start only with real configuration, typed models, JSON APIs that never answer in HTML, and tests that build a fresh app per test.

When to Use This Skill

  • Building a new Flask JSON API or server-rendered Flask app
  • Adding models, migrations, login, JWT auth, forms or validation to an existing Flask app
  • Writing pytest tests for a Flask app, or making an existing suite isolate its tests
  • Preparing a Flask app for production: gunicorn or waitress, reverse proxy, secure cookies, background jobs
  • Reviewing or modernizing legacy Flask code (module-level app, db.Column, Model.query, removed 2.x APIs)

Core Workflow

  1. Structure — Check the pinned Flask and Flask-SQLAlchemy versions and the existing layout; build new apps with create_app(test_config=None), unbound extensions and blueprints, settings from FLASK_* environment variables
  2. Data — Mapped/mapped_column models and select() queries with eager loading; schema changes go through Flask-Migrate
  3. Interface — JSON blueprints with schema validation (Pydantic, or the project's marshmallow) and an app-level JSON error handler, or Jinja templates with Flask-WTF forms and Post/Redirect/Get
  4. Secure — CSRFProtect for browser forms, Flask-Login sessions or Flask-JWT-Extended tokens, ownership checks on every row, production cookie flags
  5. Test & deploy — pytest fixtures that call the factory with a fresh database per test, or the project's existing fixtures (run them before calling the work done), then gunicorn behind ProxyFix (waitress on Windows) and jobs that run in an app context

Reference Guide

Topic Reference Load When
App structure references/app-structure.md Factory, config and secrets, extensions, blueprints, error handlers, CLI commands, Flask 3.x removals
Database references/database.md Models, queries, pagination, N+1, transactions, Flask-Migrate, projects pinned to Flask-SQLAlchemy 2.x
REST APIs references/rest-apis.md JSON responses, Pydantic validation, JSON errors, pagination envelope, CORS, async def views
Templates & forms references/templates-forms.md Jinja autoescaping, Flask-WTF forms, CSRF, flash messages, session cookie
Authentication references/authentication.md Password hashing, Flask-Login, Flask-JWT-Extended, cookie flags, ownership and roles
Testing references/testing.md pytest fixtures over the factory, per-test database, logged-in clients, CSRF-on tests, SQLite vs PostgreSQL
Deployment & jobs references/deployment.md gunicorn, waitress on Windows, ProxyFix, production config, Celery, RQ, scheduled jobs

Read the full file on GitHub · 152 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 152 lines · 197 tokens per session scan A e46cb73640ff

Subscribe to this mod's changes

flask-expert is a skill published in the GitHub repository Jeffallan/claude-skills (12,556 stars, last pushed today), licensed MIT. It adds 197 tokens to every session and 3,075 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-21.

Related

flask-expert compared with skills from other repositories

flask-expert next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
flask-expertJeffallan/claude-skillsSkill13ktodayMITA197Claude Code
beautifulsoup-parsingMindrally/skillsSkill3221mo agoApache-2.0A32Claude Code
odoo-developmentMindrally/skillsSkill3221mo agoApache-2.0A21Claude Code
djangonimadorostkar/Claude-Skills-collectionSkill41todayMITA75Claude Code
fastapinimadorostkar/Claude-Skills-collectionSkill41todayMITA89Claude Code
rest-api-djangoMindrally/skillsSkill3221mo agoApache-2.0A31Claude Code
fastapi-senior-devgeorgekhananaev/claude-skills-vaultSkill328d agoMITA39Claude Code