返回技能目录
静态审阅软件开发

技能研究档案

flask-expert

来源声明

Builds, modernizes and audits Flask 3.x applications: application factories and blueprints, Flask-SQLAlchemy 3.1 with SQLAlchemy 2.x typed models and Flask-Migrate, JSON APIs validated with Pydantic or marshmallow and JSON errors, Jinja templates with Flask-WTF CSRF, Flask-Login and Flask-JWT-Extended auth, pytest fixtures over the factory, and gunicorn or waitress deployment with Celery, RQ or APScheduler jobs. Use when code imports from flask or flask_* extensions (create_app, Blueprint, app.route, flask_sqlalchemy, flask_login, flask_wtf), when adding login, an API endpoint, forms, tests, background jobs or production deployment to a Flask app, when reviewing or upgrading an existing Flask project, or when diagnosing Flask errors such as 'Working outside of application context' or a 500 that only appears under gunicorn. Not for Django or FastAPI projects.

保留作者的英文原始描述。它表达设计意图,不代表已验证的实际效果。

Builds, modernizes and audits Flask 3.x applications: application factories and blueprints, Flask-SQLAlchemy 3.1 with SQLAlchemy 2.x typed models and Flask-Migrate, JSON APIs validated with Pydantic or marshmallow and JSON errors, Jinja templates with Flask-WTF CSRF, Flask-Login and Flask-JWT-Extended auth, pytest fixtures over the factory, and gunicorn or waitress deployment with Celery, RQ or APScheduler jobs. Use when code imports from flask or flask_* extensions (create_app, Blueprint, app.route, flask_sqlalchemy, flask_login, flask_wtf), when adding login, an API endpoint, forms, tests, background jobs or production deployment to a Flask app, when reviewing or upgrading an existing Flask project, or when diagnosing Flask errors such as 'Working outside of application context' or a 500 that only appears under gunicorn. Not for Django or FastAPI projects.

developmentreferences

研究摘要

静态分析

以下观察来自确定性源码解析,不代表受控任务评估。

来源描述:Builds, modernizes and audits Flask 3.x applications: application factories and blueprints, Flask-SQLAlchemy 3.1 with SQLAlchemy 2.x typed models and Flask-Migrate, JSON APIs validated with Pydantic or marshmallow and JSON errors, Jinja templates with Flask-WTF CSRF, Flask-Login and Flask-JWT-Extended auth, pytest fixtures over the factory, and gunicorn or waitress deployment with Celery, RQ or APScheduler jobs. Use when code imports from flask or flask_* extensions (create_app, Blueprint, app.route, flask_sqlalchemy, flask_login, flask_wtf), when adding login, an API endpoint, forms, tests, background jobs or production deployment to a Flask app, when reviewing or upgrading an existing Flask project, or when diagnosing Flask errors such as 'Working outside of application context' or a 500 that only appears under gunicorn. Not for Django or FastAPI projects. 此双语摘要由所收集的源文本和文件结构确定性地生成,由静态解析生成。

审阅范围

对所收集的 SKILL.md 及辅助文本/代码进行确定性静态分析。机器辅助候选和发现由静态解析生成;不评估动态行为或效果。

可观察能力

  • Core Workflow[来源陈述;暂定,未测试。证据:skills/flask-expert/SKILL.md:L28]

限制与范围

  • 静态分析无法评估运行时行为、命令是否成功、网络可达性或模型输出质量。
  • 未执行任何命令、脚本、网络请求、模型调用或受控技能测试。
  • 类别、标签、能力、工作流程和双语编辑摘要均为静态解析得到的确定性候选,并非已验证结果。
  • 在后续管线实际执行并记录官方模型专用计数之前,无法提供精确 token 数。

适用读者

  • 评估是否检查并安装该来源技能的实践者;此受众由产品语境推断,并非测量得到的使用情况。[证据:skills/flask-expert/SKILL.md:L1-L14]

技能包含哪些内容

文件清单来自记录提交中的采集源码。路径与大小属于结构观察,不代表质量评价。

个文件
8
Markdown 文件
8
个脚本
0
个引用
7
大小
126.8 KB
结构复杂度
中

文件清单

路径类型字节
skills/flask-expert/references/app-structure.md引用15.9 KB
skills/flask-expert/references/authentication.md引用17.3 KB
skills/flask-expert/references/database.md引用20.3 KB
skills/flask-expert/references/deployment.md引用19.5 KB
skills/flask-expert/references/rest-apis.md引用17.2 KB
skills/flask-expert/references/templates-forms.md引用11.9 KB
skills/flask-expert/references/testing.md引用13.1 KB
skills/flask-expert/SKILL.md指令11.5 KB

SKILL.md 前置元数据

{
  "name": "flask-expert",
  "description": "Builds, modernizes and audits Flask 3.x applications: application factories and blueprints, Flask-SQLAlchemy 3.1 with SQLAlchemy 2.x typed models and Flask-Migrate, JSON APIs validated with Pydantic or marshmallow and JSON errors, Jinja templates with Flask-WTF CSRF, Flask-Login and Flask-JWT-Extended auth, pytest fixtures over the factory, and gunicorn or waitress deployment with Celery, RQ or APScheduler jobs. Use when code imports from flask or flask_* extensions (create_app, Blueprint, app.route, flask_sqlalchemy, flask_login, flask_wtf), when adding login, an API endpoint, forms, tests, background jobs or production deployment to a Flask app, when reviewing or upgrading an existing Flask project, or when diagnosing Flask errors such as 'Working outside of application context' or a 500 that only appears under gunicorn. Not for Django or FastAPI projects.",
  "license": "MIT",
  "metadata": {
    "author": "https://github.com/Saifullah1999Pk",
    "version": "1.0.0",
    "domain": "backend",
    "triggers": "Flask, Flask app, Flask API, create_app, Blueprint, Flask-SQLAlchemy, Flask-Migrate, Flask-Login, Flask-WTF, Flask-JWT-Extended, Jinja2, Werkzeug, gunicorn, application context",
    "role": "expert",
    "scope": "implementation",
    "output-format": "code",
    "related-skills": "django-expert, fastapi-expert"
  }
}

对运行顺序的一种解读

此工作流根据源码材料重建表面顺序。除非明确记录受控评估,否则它属于暂定解读,而非真实运行轨迹。

  1. 01
    判断

    When to Use This Skill

    来源描述的决策候选,位于“When to Use This Skill”;未经执行验证。

  2. 02
    操作

    Core Workflow

    来源描述的步骤候选,位于“Core Workflow”;未经执行验证。

  3. 03
    操作

    Structure — Check the pinned Flask and Flask-SQLAlchemy versions and the existing layout; build new apps with `createapp(testconfig=None)`, unbound extensions and blueprints, settings from `FLASK` environment variables

    来源描述的步骤候选,位于“Core Workflow”;未经执行验证。

  4. 04
    操作

    Data — `Mapped`/`mappedcolumn` models and `select()` queries with eager loading; schema changes go through Flask-Migrate

    来源描述的步骤候选,位于“Core Workflow”;未经执行验证。

  5. 05
    操作

    Interface — JSON blueprints with schema validation (Pydantic, or the project's marshmallow) and an app-level JSON error handler, or Jinja templates with Flask-WTF forms and Post/Redirect/Get

    来源描述的步骤候选,位于“Core Workflow”;未经执行验证。

  6. 06
    操作

    Secure — `CSRFProtect` for browser forms, Flask-Login sessions or Flask-JWT-Extended tokens, ownership checks on every row, production cookie flags

    来源描述的步骤候选,位于“Core Workflow”;未经执行验证。

查看全部工作流候选节点 (30 个候选步骤)
  1. 07
    操作

    Test & deploy — pytest fixtures that call the factory with a fresh database per test, or the project's existing fixtures (run them before calling the work done), then gunicorn behind `ProxyFix` (waitress on Windows) and jobs that run in an app context

    来源描述的步骤候选,位于“Core Workflow”;未经执行验证。

  2. 08
    操作

    Reference Guide

    来源描述的步骤候选,位于“Reference Guide”;未经执行验证。

  3. 09
    操作

    Auditing an Existing Flask Project

    来源描述的步骤候选,位于“Auditing an Existing Flask Project”;未经执行验证。

  4. 10
    操作

    Models — `grep -rnE 'db\.Column\(' --include='.py' .` → no hits; columns are `Mapped[...] = mappedcolumn(...)` (`database.md`).

    来源描述的步骤候选,位于“Auditing an Existing Flask Project”;未经执行验证。

  5. 11
    操作

    Factory — `grep -rnE '^[a-z]app = (Flask|createapp)\(' --include='.py' .` → only entry points nothing imports (`wsgi.py`, Celery/RQ worker modules) (`app-structure.md`).

    来源描述的步骤候选,位于“Auditing an Existing Flask Project”;未经执行验证。

  6. 12
    操作

    Queries — `grep -rnE '\b[A-Z]\w\.query\b' --include='.py' .` → no hits; `db.session.get`, `select()`, `db.getor404`, `db.paginate(maxperpage=...)` (`database.md`).

    来源描述的步骤候选,位于“Auditing an Existing Flask Project”;未经执行验证。

  7. 13
    输出

    Secrets — `grep -rnE 'SECRETKEY["'\'']\]? = ["'\'']|SECRETKEY.(get(env)?\([^)],|\) or |token(hex|urlsafe|bytes))' --include='.py' .` → no hits: no literal, default or per-process random key; the factory raises when it is missing; and `git ls-files | grep -E '(^|/)\.env$'` → no output and `git check-ignore -q .env` succeeds (exit 0): `.env` is git-ignored, only `.env.example` is committed (`app-structure.md`).

    来源描述的步骤候选,位于“Auditing an Existing Flask Project”;未经执行验证。

  8. 14
    输出

    API errors — `grep -rnE '(errorhandler|registererrorhandler)\(HTTPException' --include='.py' .` → one app-level handler that answers JSON under `/api/` (no output = HTML error pages) (`rest-apis.md`).

    来源描述的步骤候选,位于“Auditing an Existing Flask Project”;未经执行验证。

  9. 15
    输入

    Removed APIs — `grep -rnE 'FLASKENV|\bapp\.env\b|before(app)?firstrequest|flask\.version|from flask import .\b(Markup|escape)\b' --include='.py' --include='.env' --include='.flaskenv' .` → no hits (`app-structure.md`).

    来源描述的步骤候选,位于“Auditing an Existing Flask Project”;未经执行验证。

  10. 16
    输入

    Input — `grep -rn 'request.getjson(' --include='.py' .` → each body goes through one schema (Pydantic `modelvalidate`/`TypeAdapter` with `extra="forbid"`, or the project's existing marshmallow schema): no truthiness checks, `Model(data)`, `silent=` or `force=` (`rest-apis.md`).

    来源描述的步骤候选,位于“Auditing an Existing Flask Project”;未经执行验证。

  11. 17
    操作

    Schema — `grep -rnE 'createall\(|text\(["'\'']ALTER' --include='.py' .` → only in tests; a `migrations/` folder exists and deploys run `flask db upgrade` (`database.md`).

    来源描述的步骤候选,位于“Auditing an Existing Flask Project”;未经执行验证。

  12. 18
    操作

    CSRF — `grep -rn 'CSRFProtect(' --include='.py' .` → initialized in the factory, `{{ csrftoken() }}` in every POST form, no hand-rolled token check (`templates-forms.md`).

    来源描述的步骤候选,位于“Auditing an Existing Flask Project”;未经执行验证。

  13. 19
    操作

    N+1 — `grep -rn 'relationship(' --include='.py' .` → `lazy="raiseonsql"` (or per-query `raiseload("", sqlonly=True)`), and list queries that serialize a relationship use `selectinload`/`joinedload` (`database.md`).

    来源描述的步骤候选,位于“Auditing an Existing Flask Project”;未经执行验证。

  14. 20
    操作

    SQL — `grep -rniE '(select|insert|update|delete) .(" \+|\+ "|%s|\.format\()|f"'\'' ' --include='.py' .` → no hits; `text()` takes values as `:name` parameters (`database.md`).

    来源描述的步骤候选,位于“Auditing an Existing Flask Project”;未经执行验证。

  15. 21
    操作

    Dev server — `grep -rnE 'debug=True|app\.run\(' --include='.py' .` → no `debug=True`; production starts gunicorn or waitress, never `app.run` (`deployment.md`).

    来源描述的步骤候选,位于“Auditing an Existing Flask Project”;未经执行验证。

  16. 22
    输入

    Scheduler — `grep -rnE 'BackgroundScheduler\(|scheduler\.start\(' --include='.py' .` → never in `createapp()` or at import: cron plus a `flask` command, or the Redis lease started from `wsgi.py` (`deployment.md`).

    来源描述的步骤候选,位于“Auditing an Existing Flask Project”;未经执行验证。

  17. 23
    操作

    Async views — `grep -rn 'async def' --include='.py' .` → `flask[async]` installed, and nobody expects more throughput: each request still holds a worker (`rest-apis.md`).

    来源描述的步骤候选,位于“Auditing an Existing Flask Project”;未经执行验证。

  18. 24
    操作

    Constraints

    来源描述的步骤候选,位于“Constraints”;未经执行验证。

  19. 25
    输出

    Output Templates

    来源描述的步骤候选,位于“Output Templates”;未经执行验证。

  20. 26
    操作

    Factory (or existing app setup), extension and config changes, with the environment variables to set

    来源描述的步骤候选,位于“Output Templates”;未经执行验证。

  21. 27
    操作

    Models plus the `flask db migrate`/`upgrade` commands, and the blueprint views

    来源描述的步骤候选,位于“Output Templates”;未经执行验证。

  22. 28
    操作

    pytest tests using the factory fixture (or the project's existing fixtures), and a short note on decisions, version assumptions and caveats (an `async def` view still holds one worker per request), written into the README or a comment by the code, not only the chat

    来源描述的步骤候选,位于“Output Templates”;未经执行验证。

  23. 29
    操作

    Knowledge Reference

    来源描述的步骤候选,位于“Knowledge Reference”;未经执行验证。

  24. 30
    操作

    Related Skills

    来源描述的步骤候选,位于“Related Skills”;未经执行验证。

潜在风险面

静态发现用于提示安装前需要检查的位置,不能证明一项技能安全、恶意或有效。

建议重点关注

收集的文本中有 87 项确定性词法发现需要复核。发现可能仅位于文档中,不证明已执行或可被利用;仅含二进制的文件未扫描。

网络访问已观察到
文件写入已观察到
凭据使用已观察到
高

文本引用凭据或密钥材料

12 次命中

此行疑似凭据字面值,或读取敏感环境变量。请勿暴露其内容;应核实它是占位符、所需密钥,还是误提交的敏感材料。 该规则在收集文本中命中 12 处;此处列出 3 个代表位置。命中文本可能只是文档,分析器没有执行它。

提示

文本描述或实现了文件修改

62 次命中

此行包含可能的文件写入或重定向操作。应检查目标路径和覆盖行为;静态审查没有写入任何文件。 该规则在收集文本中命中 62 处;此处列出 3 个代表位置。命中文本可能只是文档,分析器没有执行它。

中

文本提及网络访问

13 次命中

此源文件行包含 URL 或网络客户端。应检查目标地址、发送的数据和信任边界;静态文本无法证明实际发生了网络活动。 该规则在收集文本中命中 13 处;此处列出 3 个代表位置。命中文本可能只是文档,分析器没有执行它。

上下文可能消耗在哪里

发现、激活与资源层具有不同含义。只有使用指定官方方法并记录模型的运行时,才显示精确数值。

精确 token 计数不可用

在管线使用明确模型执行官方精确计数之前,包括文件清单在内的所有 token 值均为 null。

未使用要求的官方方法记录 token 测量。本档案不会用字符数、文件大小或估计值替代。

受控评估

没有受控评估

该技能仅具备以上标明的证据。不声称任何任务成功率、token 效率、延迟或质量优势。

尚未测试

在源码可见的情况下使用

安装命令
Inspect the pinned source at https://github.com/Jeffallan/claude-skills/blob/4b94d98605baf742b751bb82832ace5caf942271/skills/flask-expert/SKILL.md and follow the source repository's installation instructions. No installation was performed or verified by this static analyzer. Source license: MIT.

前置条件

  • 静态分析无法评估运行时行为、命令是否成功、网络可达性或模型输出质量。
  • 未执行任何命令、脚本、网络请求、模型调用或受控技能测试。
  • 类别、标签、能力、工作流程和双语编辑摘要均为静态解析得到的确定性候选,并非已验证结果。
  • 在后续管线实际执行并记录官方模型专用计数之前,无法提供精确 token 数。

示例提示词

未提供

附上限制条件的判断

优势

  • 快照包含 8 个收集文件、8 个 Markdown 文件和 0 个脚本文件,可进行源代码级检查。[证据:skills/flask-expert/SKILL.md:L1]

注意事项

  • 尚未确立功能、安全或模型质量结果。安装或发布前,应检查源代码上下文和所有引用发现。
研究结论

仅为暂定的确定性静态清单;由静态解析生成以及独立的受控评估。不构成安装建议、安全保证或有效性声明。

从结构上保持可追溯

档案是对公开工件的限时阅读,而非背书。请通过来源链接检查确切的上游材料。

Jeffallanclaude-skillsskills/flask-expert
来源类型
社区
提交
4b94d98605baf742b751bb82832ace5caf942271
采集时间
2026年11月23日
最近核查
2026年11月23日
上游许可证
MIT
仓库星标
12,495
内容依据

仅对提供的文件进行确定性词法解析、YAML frontmatter 校验、文件清单、来源描述的工作流程提取和启发式暂定分类。由机器生成;无 LLM、执行或动态测试。