flask-architect

flask-architect is an agent for Claude Code from AratKruglik/claude-sdlc. It costs 111 tokens per session (1,715 once invoked), scanned A, original, MIT.

A coding agent for building the server side of Flask applications, a lightweight Python web framework. It covers application setup, feature-specific route groups, HTML templates, JSON APIs, validation, authentication, errors, and extensions.

In plain words
What is it for?
Use it to implement Flask application factories, route groups, views, forms and request validation, login or token authentication, Jinja templates, JSON responses, error handlers, and extension setup.
Why use it?
It removes repetitive decisions about organizing Flask applications and connecting their common pieces. It can support either server-rendered pages or an API used by a separate frontend.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the flask-plugin plugin — 1 skill, 2 agents shipped together

Good fit Use it to implement Flask application factories, route groups, views, forms and request validation, login or token authentication, Jinja templates, JSON responses, error handlers, and extension setup.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/aratkruglik/claude-sdlc/flask-architect
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.

Clone the repo
git clone --depth 1 https://github.com/AratKruglik/claude-sdlc

Made for: Claude Code.

Or install flask-plugin, the plugin that ships this one along with the rest of its 1 skill, 2 agents.

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-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/aratkruglik/claude-sdlc/flask-architect/github.svg)](https://agentmods.dev/agents/aratkruglik/claude-sdlc/flask-architect)
Your own site
<a href="https://agentmods.dev/agents/aratkruglik/claude-sdlc/flask-architect"><img src="https://agentmods.dev/badge/agents/aratkruglik/claude-sdlc/flask-architect/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-architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/aratkruglik/claude-sdlc/flask-architect"><img src="https://agentmods.dev/badge/agents/aratkruglik/claude-sdlc/flask-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,715 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.00111 $0.01715
Opus 5 $0.00056 $0.00857
Sonnet 5 $0.00022 $0.00343
Haiku 4.5 $0.00011 $0.00171

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

Security

Grade A, and why

flask-architect 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 11d 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.

plugins/flask-plugin/agents/flask-architect.md · 101 lines

How it starts

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

Flask Architect

Flask backend implementer. You build the server side of features: the application factory, Blueprint-organized view functions, Marshmallow/WTForms validation, Flask-Login or flask-jwt-extended authentication, Jinja2 templates (server-rendered mode) or JSON responses (API mode), error handlers, and extension initialization. For SPA projects you design and document the JSON API contract — the endpoint shapes and Marshmallow schema your views expose — so the frontend architect (vue-architect / react-architect) can implement the UI.

First: load sdlc:architect-conventions via the Skill tool — it defines the shared hard rules, code quality bar, workflow steps, and the report/compact-summary contract. Everything below is Flask-specific and applies on top.

Project context

The orchestrator's injection prompt (from flask-plugin/stack.md) supplies stack-specific guidance. Read and follow it. The summary:

Layer Convention
App factory create_app(config_name) in app/__init__.py returning Flask instance; register extensions, Blueprints, error handlers
Blueprints One Blueprint per feature: auth_bp = Blueprint('auth', __name__, url_prefix='/auth')
Views @blueprint.route() on functions; MethodView for class-based API views
Validation Marshmallow Schema.load() for request data; WTForms for HTML forms; never validate inline
Auth Flask-Login for session-based (browser) auth; flask-jwt-extended for stateless API auth
Config class Config(BaseConfig) split per environment. Secrets from os.environ or python-decouple. Never hardcode SECRET_KEY
Templates Jinja2 {{ var }} (auto-escaped), {% block %}, {% extends %}, {{ url_for() }}. |safe only for pre-sanitized HTML
Error handlers @app.errorhandler(404) returning JSON or HTML depending on project mode
SQLAlchemy models Model definitions only — column types, relationships, __repr__. Leave migration finalization to flask-migrate-specialist

Read the full file on GitHub · 101 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. 11d ago First seen · 101 lines · 111 tokens per session scan A edd2ddbd53cf

Subscribe to this mod's changes

flask-architect is an agent published in the GitHub repository AratKruglik/claude-sdlc (33 stars, last pushed 6d ago), licensed MIT. It adds 111 tokens to every session and 1,715 once invoked, about $0.0006 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.

Related

Other agents, from other repositories

drf-api

Django REST Framework specialist. Use PROACTIVELY to build and shape JSON APIs in Django projects — serializers, viewsets, routers, permissions, authentication, pagination, throttling, and filtering. Serializers own field validation; views own permissions.

toffyui/ccteams · 54 tokens

hermes

Backend specialist — FastAPI, Python, async, TDD (RED→GREEN→REFACTOR), modern Python stdlib, obsolete lib detection. Calls apollo for discovery, sends to themis.

ils15/pantheon-legacy · 44 tokens

python-fastapi-guidelines

A reference guide for developing backends with FastAPI, a Python framework for building web APIs. It is intended to be used only when the user explicitly requests this agent.

Dannykkh/skill-olympus · 32 tokens

python-engineer

Hands-on Python 3.12+ engineer. Ships async-first, type-safe, tested code with uv, ruff, FastAPI and Pydantic. TRIGGER WHEN: planning a new Python project, designing architecture, making tech-stack decisions, or implementing features. DO NOT TRIGGER WHEN: the task is writing tests (use python-test-engineer) or…

acaprino/daodan · 87 tokens

fastapi-pro

Build high-performance async APIs with FastAPI, SQLAlchemy 2.0, and Pydantic V2. Master microservices, WebSockets, and modern Python async patterns. Use PROACTIVELY for FastAPI development, async optimization, or API architecture.

NOMARJ/sigil · 57 tokens

django-expert

Write expert Django code with optimized models, views, and templates. Handles complex queries, middleware, and RESTful APIs. Use proactively for Django optimizations, custom middleware, or REST API development.

0xfurai/claude-code-subagents · 43 tokens