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.
npx skills add G1Joshi/Agent-Skills --skill flaskgit clone --depth 1 https://github.com/G1Joshi/Agent-SkillsWrote 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.
[](https://agentmods.dev/skills/g1joshi/agent-skills/flask)<a href="https://agentmods.dev/skills/g1joshi/agent-skills/flask"><img src="https://agentmods.dev/badge/skills/g1joshi/agent-skills/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.
<a href="https://agentmods.dev/skills/g1joshi/agent-skills/flask"><img src="https://agentmods.dev/badge/skills/g1joshi/agent-skills/flask.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.01095 |
| Opus 5.5 | $0.00014 | $0.00438 |
| Sonnet 5.5 | $0.00007 | $0.00219 |
| Haiku 4.5 | $0.00003 | $0.00110 |
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 23d 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.
How it starts
The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Flask
Flask is a lightweight WSGI web framework for Python, offering modular blueprints, extensible request handling, and flexible integration with database ORMs and async handlers.
When to Use
- Lightweight Python Microservices: Rapidly prototyping APIs and small-to-medium web services without boilerplate.
- Machine Learning Inference Wrappers: Wrapping data science pipelines and Scikit-learn/XGBoost models with minimal overhead.
- Custom Architectures: Projects requiring complete freedom to select ORMs, auth libraries, and database drivers.
- Internal Scripting & Admin Utilities: Embedding web dashboards inside automated Python operations tooling.
Quick Start
from flask import Flask
import asyncio
app = Flask(__name__)
@app.route("/")
async def hello():
await asyncio.sleep(1)
return "Hello form Async Flask!"
Core Concepts
Application Factory & Blueprint Pattern
Structuring scalable Flask applications:
# app/__init__.py
from flask import Flask
from .routes.users import user_bp
from .routes.orders import order_bp
def create_app(config_object="app.config.ProductionConfig"):
app = Flask(__name__)
app.config.from_object(config_object)
# Register modular blueprints
app.register_blueprint(user_bp, url_prefix="/api/v1/users")
app.register_blueprint(order_bp, url_prefix="/api/v1/orders")
return app
Type-Safe Request Handling & JSON Responses
Parsing payloads and handling route parameters:
# app/routes/users.py
from flask import Blueprint, request, jsonify, abort
user_bp = Blueprint("users", __name__)
@user_bp.route("/<int:user_id>", methods=["GET"])
def get_user(user_id):
if user_id <= 0:
abort(404, description="User not found")
return jsonify({
"id": user_id,
"name": f"User_{user_id}",
"status": "active"
}), 200
@user_bp.route("/", methods=["POST"])
def create_user():
data = request.get_json()
if not data or "email" not in data:
return jsonify({"error": "Email is required"}), 400
return jsonify({"id": 42, "email": data["email"]}), 201
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.
- 23d ago Changed · +5 lines df52e3d80096
- 27d ago Changed · +99 lines · +15 tokens per session 480613116b0d
- 1mo ago First seen · 55 lines · 19 tokens per session scan A 88eb5248f822
flask is a skill published in the GitHub repository G1Joshi/Agent-Skills (15 stars, last pushed 23d ago), licensed MIT. It adds 34 tokens to every session and 1,095 once invoked, about $0.0001 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-09-03.
Other skills, from other repositories
python-programming-expert
Expert-level skill for Python programming (Python 3.13/3.14+). Covers type safety, generic syntax (PEP 695), async/await TaskGroups, FastAPI 0.115+, Pydantic v2, uv package manager, Ruff, and pytest in English and Indonesian.
fastapi-async-microservices
Design and develop production-grade asynchronous microservices using FastAPI, Python 3.12+, Pydantic v2 Settings and Schemas, SQLAlchemy 2.0 async sessions, dependency injection, lifespan state management, structured JSON logging, and connection pooling. Trigger when building async Python APIs, microservices, or…
azure-mgmt-apicenter-py
Azure API Center Management SDK for Python. Use for managing API inventory, metadata, and governance across your organization.
python-fastapi-development
Python FastAPI backend development with async patterns, SQLAlchemy, Pydantic, authentication, and production API patterns.
dbos-python
Guide for building reliable, fault-tolerant Python applications with DBOS durable workflows. Use when adding DBOS to existing Python code, creating workflows and steps, or using queues for concurrency control.
fastapi-router-py
Create FastAPI routers following established patterns with proper authentication, response models, and HTTP status codes.