flask

flask is a skill for Claude Code from michalstrnadel/source-to-skill. It costs 167 tokens per session (2,337 once invoked), scanned A, original, MIT.

A reference for Flask, a Python framework for building web applications and web APIs. It explains routes, requests, templates, configuration, application setup, and extensions.

In plain words
What is it for?
Use it when creating Flask routes and views, organizing larger applications, configuring an app, or connecting Flask to web servers and extensions.
Why use it?
It clarifies how Flask's small core fits together and prevents common mistakes around application setup and request handling.

Skill for Claude Code

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

Part of the source-to-skill plugin — 13 skills shipped together

Good fit Use it when creating Flask routes and views, organizing larger applications, configuring an app, or connecting Flask to web servers and extensions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/michalstrnadel/source-to-skill/flask
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 michalstrnadel/source-to-skill --skill flask
Clone the repo
git clone --depth 1 https://github.com/michalstrnadel/source-to-skill

Made for: Claude Code.

Or install source-to-skill, the plugin that ships this one along with the rest of its 13 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/michalstrnadel/source-to-skill/flask/github.svg)](https://agentmods.dev/skills/michalstrnadel/source-to-skill/flask)
Your own site
<a href="https://agentmods.dev/skills/michalstrnadel/source-to-skill/flask"><img src="https://agentmods.dev/badge/skills/michalstrnadel/source-to-skill/flask/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/michalstrnadel/source-to-skill/flask"><img src="https://agentmods.dev/badge/skills/michalstrnadel/source-to-skill/flask.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 167 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,337 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.00167 $0.02337
Opus 5.5 $0.00067 $0.00935
Sonnet 5.5 $0.00033 $0.00467
Haiku 4.5 $0.00017 $0.00234

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

Security

Grade A, and why

flask 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 1mo 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.

examples/flask/SKILL.md · 149 lines

How it starts

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

Flask

Source: https://github.com/pallets/flask - README plus the docs/ tree (77 pages). Flask is a lightweight WSGI web application framework: quick to start, able to scale to complex apps. It depends on Werkzeug (WSGI), Jinja (templates), MarkupSafe (escaping), ItsDangerous (signing the session cookie), Click (the flask command) and Blinker (signals). Supports Python 3.10 and newer.

Core mental model

  • "Micro" means a small, extensible core, not a toy. Flask picks the template engine (Jinja) and the WSGI layer (Werkzeug) and nothing else. It will never ship a database layer or a form library. Extensions cover those.
  • One explicit application object. app = Flask(__name__). Flask uses __name__ to find templates, static files and resources relative to your package. An explicit object means you can run several apps at once (useful for tests), subclass Flask, and wrap the WSGI app in middleware.
  • Setup phase vs. serving phase. Register routes, blueprints, config, Jinja settings and extensions before the first request. WSGI servers run many workers, so changes made later never reach all of them. Flask raises an error if you call a setup method such as route after the app has handled a request.
  • Context-local proxies. current_app, g, request and session point at the active context of the current worker (thread, greenlet, coroutine). An app context (CLI, with app.app_context()) gives current_app and g. A request adds request and session. Accessing them outside a context raises RuntimeError: Working outside of application/request context.
  • Return values become responses: str, bytes or iterator → body. dict or list → JSON. (body, status), (body, headers) or (body, status, headers) → body plus overrides. A Response passes through unchanged. Anything else is treated as a WSGI app.
  • Production is never flask run. The development server and its debugger allow arbitrary code execution. Use a WSGI server, usually behind a reverse proxy.

Read the full file on GitHub · 149 lines

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. 1mo ago First seen · 149 lines · 167 tokens per session scan A fa6c820a7f5b

Subscribe to this mod's changes

flask is a skill published in the GitHub repository michalstrnadel/source-to-skill (10 stars, last pushed 1mo ago), licensed MIT. It adds 167 tokens to every session and 2,337 once invoked, about $0.0007 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-10-05.

Related

flask compared with skills from other repositories

flask next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
flaskmichalstrnadel/source-to-skillSkill101mo agoMITA167Claude Code
clean-architecture-pythonSebastienDegodez/skraft-pluginSkill17todayGPL-3.0A73Claude Code
async-python-patternsrootcastleco/rei-skillsSkill117d agononeA40Claude Code, Codex
fastapi-patternsaffaan-m/ECCSkill313k7d agoMITA35Claude Code, Kiro
stripe-projectse2b-dev/E2BSkill15kyesterdayApache-2.0A51Claude Code, Codex
azure-messaging-webpubsubservice-pymicrosoft/skillsSkill3.3k3d agoMITA64Claude Code
azure-appconfiguration-pybenjaminasterA/antigravity-awesome-skillsSkill523todayMITA0Claude Code, Codex