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 j4flmao/agent-skills --skill flaskgit clone --depth 1 https://github.com/j4flmao/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/j4flmao/agent-skills/flask)<a href="https://agentmods.dev/skills/j4flmao/agent-skills/flask"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/flask.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Privilege Escalation · line 116 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
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.00069 | $0.04479 |
| Opus 5 | $0.00034 | $0.02240 |
| Sonnet 5 | $0.00014 | $0.00896 |
| Haiku 4.5 | $0.00007 | $0.00448 |
Grade A, and why
flask-backend 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 7d 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 — 552 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Flask Backend
Purpose
Define Flask backend application architecture: lightweight server setup, blueprint organization, extension integration, and WSGI deployment.
Agent Protocol
Trigger
User request includes: flask, flask backend, flask blueprint, flask app factory, flask sqlalchemy, flask extension, flask rest api, python flask.
Input Context
- Python version (3.10+)
- Flask version (3.x)
- Database ORM (SQLAlchemy, Peewee)
- API style (REST, Flask-RESTx)
- Template engine (Jinja2, none for SPA)
- Deployment (Gunicorn, uWSGI, serverless)
Output Artifact
A markdown document containing:
- Project structure
- Application factory pattern
- Blueprint organization
- Extension initialization pattern
- Error handling (app.errorhandler)
- Configuration management
- Testing (pytest, app.test_client)
- CLI commands (click integration)
Response Format
Produce the artifact directly. No preamble, no postamble, no explanations. No filler, no hedging. Compress output.
Completion Criteria
- Application factory creates configurable app instances
- Blueprints group related routes and templates
- Extensions initialized via init_app pattern
- Error handlers registered at app level
- Tests use app.test_client fixture
Max Response Length
4096 tokens
Workflow
Step 1: Project Setup
pip install flask flask-sqlalchemy flask-migrate pydantic
pip install pytest pytest-cov # dev
pip install gunicorn # production
pip install flask-cors flask-limiter redis # optional
Step 2: Project Structure
project/
+-- app/
| +-- __init__.py
| +-- extensions.py
| +-- config.py
| +-- models/
| | +-- __init__.py
| | +-- order.py
| | +-- user.py
| +-- blueprints/
| | +-- orders/
| | | +-- __init__.py
| | | +-- routes.py
| | | +-- schemas.py
| | | +-- service.py
| | +-- products/
| | | +-- __init__.py
| | | +-- routes.py
| | | +-- service.py
| | +-- auth/
| | | +-- __init__.py
| | | +-- routes.py
| | | +-- service.py
| | +-- health/
| | +-- __init__.py
| | +-- routes.py
| +-- services/
| | +-- __init__.py
| | +-- order_service.py
| | +-- payment_service.py
| +-- utils/
| | +-- __init__.py
| | +-- errors.py
| | +-- pagination.py
| | +-- decorators.py
| +-- templates/
| +-- base.html
| +-- orders/
| +-- list.html
| +-- detail.html
+-- migrations/
+-- tests/
| +-- conftest.py
| +-- test_orders.py
| +-- test_health.py
| +-- factories.py
+-- .env
+-- .flaskenv
+-- requirements.txt
+-- wsgi.py
+-- Dockerfile
What ships with it
8 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.
- references/flask-application-factory.md 30 KB
- references/flask-blueprints-factories.md 3.9 KB
- references/flask-deployment.md 4.3 KB
- references/flask-extensions.md 4.2 KB
- references/flask-restful-api-design.md 29 KB
- references/flask-security.md 5.0 KB
- references/flask-setup.md 3.0 KB
- references/flask-testing.md 4.3 KB
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.
- 7d ago First seen · 552 lines · 69 tokens per session scan A 5a2ee16d7e22
flask-backend is a skill published in the GitHub repository j4flmao/agent-skills (21 stars, last pushed 2d ago), licensed MIT. It adds 69 tokens to every session and 4,479 once invoked, about $0.0003 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-08-30.
Other skills, from other repositories
mem0-oss-to-platform
Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…
stripe-projects
Use after E2B sandbox/API access has been provisioned through Stripe Projects and the user needs to use the resulting E2B API key with the E2B CLI, JavaScript SDK, Python SDK, or Code Interpreter SDK.
azure-mgmt-botservice-py
Azure Bot Service Management SDK for Python. Use for creating, managing, and configuring Azure Bot Service resources. Triggers: "azure-mgmt-botservice", "AzureBotService", "bot management", "conversational AI", "bot channels".
azure-messaging-webpubsubservice-py
Azure Web PubSub Service SDK for Python. Use for real-time messaging, WebSocket connections, and pub/sub patterns. Triggers: "azure-messaging-webpubsubservice", "WebPubSubServiceClient", "real-time", "WebSocket", "pub/sub".
fastapi-app
Bootstrap a new FastAPI backend with async SQLAlchemy 2.0, asyncpg, Alembic, Pydantic v2, and no deprecated APIs. Use when the user wants to start, scaffold, or set up a new FastAPI service, a Python REST API, an async backend, or asks to "create a new fastapi app" or "new python backend". Handles JWT auth, layered…
backend
Python server code, APIs, async, strict typing.