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 alivirgo/Major-AI-Skills --skill flaskgit clone --depth 1 https://github.com/alivirgo/Major-AI-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/alivirgo/major-ai-skills/flask)<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/flask"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-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/alivirgo/major-ai-skills/flask"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-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.00025 | $0.00778 |
| Opus 5 | $0.00013 | $0.00389 |
| Sonnet 5 | $0.00005 | $0.00156 |
| Haiku 4.5 | $0.00003 | $0.00078 |
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 today.
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 — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Flask Python Web AI Skill Guide
Overview & Engine Architecture
Flask is a WSGI microframework with explicit application factories, blueprints for modular routes, and a request/app context stack. Agents prefer factory + blueprint layout over a single global app, keep config in environment-backed objects, and run production traffic behind gunicorn/uwsgi - not the built-in server.
WSGI server (gunicorn)
|
create_app()
+----+----+----+
| blueprints |
| extensions |
| errorhandlers |
+---------------+
When to use this skill
- Building small-to-medium Python HTTP APIs or server-rendered apps
- Structuring multi-module Flask projects
- Adding auth, DB, or migrations via extensions
- Writing route tests with the Flask test client
Operational directives
- Use
create_app()so tests and CLI can construct fresh apps. - Register blueprints with URL prefixes; avoid circular imports via late imports or extension init.
- Load secrets from env (
SECRET_KEY, DB URLs) - never hardcode. - Prefer JSON error handlers with correct status codes for APIs.
- Use the production WSGI server in deploy;
app.run()is local-only.
App factory sketch
from flask import Flask, Blueprint, jsonify, request
api = Blueprint("api", __name__)
@api.get("/health")
def health():
return jsonify(ok=True)
@api.post("/items")
def create_item():
body = request.get_json(silent=True) or {}
sku = body.get("sku")
if not isinstance(sku, str) or not sku:
return jsonify(error="sku required"), 400
return jsonify(id=1, sku=sku), 201
def create_app() -> Flask:
app = Flask(__name__)
app.config.from_mapping(SECRET_KEY="dev-only-change-me")
app.register_blueprint(api, url_prefix="/api")
return app
Commands
flask --app "app:create_app" run --debug
gunicorn "app:create_app()"
pytest -q
Testing sketch
from app import create_app
def test_health():
app = create_app()
client = app.test_client()
r = client.get("/api/health")
assert r.status_code == 200
assert r.get_json()["ok"] is True
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.
- today Changed · -5 tokens per session 654f0f5cb8ad
- 6d ago First seen · 110 lines · 30 tokens per session scan A 08cc5abb0bbb
flask is a skill published in the GitHub repository alivirgo/Major-AI-Skills (1 stars, last pushed today), licensed MIT. It adds 25 tokens to every session and 778 once invoked, about $0.0001 per session on Opus 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-05.
Other skills, from other repositories
python-api
Professional Python API Expert skill. Build performant, secure, and scalable backend logic and RESTful or GraphQL APIs.
fastapi
Use when building, reviewing, testing, securing or shipping a FastAPI / async Python service — routers, Pydantic v2 schemas, dependency injection, async SQLAlchemy 2.0, OAuth2/JWT, ASGITransport tests, production wiring. NOT language-level Python or packaging (that is python), NOT engine-level SQL (that is…
api-endpoint-builder-v2
API Endpoint Builder workflow skill. Use this skill when the user needs Builds production-ready REST API endpoints with validation, error handling, authentication, and documentation. Follows best practices for security and scalability and the operator should preserve the upstream workflow, copied support files, and…
flask
Flask - Lightweight Python web framework for microservices, REST APIs, and flexible web applications with extensive extension ecosystem.
flask
Flask - Lightweight Python web framework for microservices, REST APIs, and flexible web applications with extensive extension ecosystem.
async-python-patterns
Master Python asyncio, concurrent programming, and async/await patterns for high-performance applications. Use when building async APIs, concurrent systems, or I/O-bound applications requiring non-...