← ClaudeAtlas

flask-spiderlisted

Builds and maintains Flask REST APIs. Covers the create_app factory, extensions.py, blueprints, thin routes calling class-based helpers, Pydantic request and query validation (RequestUtils), Flask-SQLAlchemy with the short-session DBService, Flask-Migrate, Flask-JWT-Extended auth with shared error responses, central error handlers, logging, and pytest with the Flask test client, with a tested starter project (auth plus an example CRUD feature). Use this whenever the user creates a Flask app, adds or changes a blueprint, route, schema or model, sets up JWT or migrations in Flask, or debugs Flask errors (circular imports, 308 redirects, migration drift, AmbiguousForeignKeysError), even if they only paste a Flask traceback. Apply together with backend-silk and sql-silk.
VivekShevale/eight-eye · ★ 3 · API & Backend · score 76
Install: claude install-skill VivekShevale/eight-eye
# Flask Spider Builds Flask projects on top of the shared standards. Load these too: - `backend-silk`: layers, code rules, errors, logging, config, security, workflow. **Always.** - `sql-silk`: models, DBService rules, migrations, queries (Flask projects here use PostgreSQL via SQLAlchemy). `mongodb-silk` if a Flask app uses MongoDB. ## Structure ```text project/ ├── run.py # app = create_app(); `flask --app run.py run` ├── app/ │ ├── __init__.py # create_app(): config, logging, extensions, handlers, blueprints │ ├── config.py # frozen dataclass settings from .env │ ├── extensions.py # db, migrate, jwt created without an app │ ├── routes/ # <domain>_routes.py -> <domain>_bp blueprints │ ├── helpers/ # <domain>_helper.py -> XHelper (business logic) │ ├── services/ # db_service.py (+ llm/other integrations) │ ├── schemas/ # Pydantic: <domain>_schema.py, common_schema.py │ ├── models/ # base.py + one file per table; __init__.py stays empty │ └── utils/ # log_utils, error_handlers, auth_utils, request_utils ├── migrations/ # Flask-Migrate, committed ├── tests/ ├── .env .env.example .gitignore requirements.txt README.md ``` ## Starting a new project Starter project, tested end to end (35 checks on auth, CRUD, filters, ownership, validation and failure paths, plus a real Flask-Migrate migration): `assets/project/`. Copy map and build order: `ref