python-flask-vue-creator: Building a Single-Port Flask + Vue Full-Stack Scaffold with Agent Skill

Introduction

The combination of Flask and Vue is common, but setting up directories, configuring dependencies, and defining frontend/backend boundaries from scratch often takes a lot of time. When developing on separate ports, you also have to handle CORS and static resource paths; if logs and project documentation lack unified conventions, it is easy for future maintenance by Coding Agents to become disjointed. The Skill introduced below turns “creating a project” into a reproducible workflow: a single port hosted by Flask, Python dependencies managed by uv, accompanied by structured logging and frontend design constraints.

What is This

python-flask-vue-creator is a SkillHub community Skill (Coordinate @user_246d1f61/python-flask-vue-creator, Version 1.0.1, Category dev-programming). Publisher user_246d1f61, Source community, Tags requires_api_key=false, indicating no additional API Key is required when enabled.

The Skill targets Coding Agents: when users mention creating/setting up projects, Flask projects, Vue projects, or request creating a Flask+Vue full-stack or single-port frontend/backend application, the Agent generates and validates the project structure according to the steps in SKILL.md.

Official page: SkillHub - python-flask-vue-creator
API metadata: https://api.skillhub.cn/user_246d1f61/python-flask-vue-creator

Core Features

The following content comes from the SKILL.md and initialization script descriptions within the Skill package, all of which are capabilities the Skill claims to guide the Agent to complete.

Tech Stack and Single-Port Architecture

Layer Selection
Web Framework Flask 3.1.0
Frontend Vue.js (CDN, same port as backend)
Dependency Management uv
Logging Python logging, TimedRotatingFileHandler
Port 80 (Unified entry)

“Single port” means that Flask handles requests on the same port; HTML/CSS/JS and other static resources are served via Flask routes from templates/, rather than starting a separate frontend dev server.

Agent Workflow (7 Steps)

  1. Collect project name, feature description, and design preferences
  2. Run scripts/init_project.py to generate the directory
  3. Configure pyproject.toml with uv (including Tsinghua PyPI mirror)
  4. Generate Flask main entry point with logging
  5. Design the frontend according to references/frontend-design.md and references/vue-guidelines.md
  6. Synchronize AGENTS.md after changes
  7. Start and verify after uv sync

Generated Project Layout (Key Points)

After initialization, a standard tree structure containing AGENTS.md, pyproject.toml, uv.lock, src/ (Flask entry, templates/, utils/logger.py, log/), etc., will be obtained; the main HTML uses Vue 3 CDN and Composition API.

Logging and Delivery Checks

The logging module is located at src/utils/logger.py, writing to files by module name, rotating daily, retaining for 30 days, and outputting to both console and file. The Skill also includes a delivery checklist before handover (structure, location of pyproject.toml, static routes, Vue CDN, no emoji icons, responsive breakpoints, etc.).

Installation and Activation

Search for python-flask-vue-creator or coordinate @user_246d1f61/python-flask-vue-creator in SkillHub and install the Skill into an editing environment that supports SkillHub/Agent Skills. This Skill requires_api_key=false, so no key needs to be configured for the Skill itself.

For specific installation menus or CLI of each client, please refer to the current documentation of SkillHub and the product; this article does not list commands not verified in the official metadata.

Typical Usage

After enabling the Skill, you can trigger it by describing your intent in natural language, for example: “Create a new Flask + Vue single-port web project.” The Agent should first ask for the project name and description, then execute the initialization.

Humans or Agents can also directly call the initialization script inside the Skill package (path relative to the Skill root directory):

python scripts/init_project.py <project-name> --path <target-directory>

After generating the code, sync dependencies and start in the project root directory (consistent with SKILL.md example):

cd <project-path>
uv sync
uv run python src/<project-name>.py

pyproject.toml will include uv mirror and Flask dependencies, for example:

[tool.uv]
index-url = "https://pypi.tuna.tsinghua.edu.cn/simple"

dependencies = [
    "flask>=3.1.0",
]

The frontend mounts Vue 3 via CDN in the HTML and is returned by Flask on the root route; specific routes and static directory mappings are completed by the generated main entry file.

Use Cases and Notes

Who is it for: Python developers who need a maintainable full-stack skeleton quickly; teams that want to share the same set of structural descriptions in subsequent Agent sessions through AGENTS.md; scenarios that prefer uv over pip/poetry for managing Flask dependencies.

Limitations and Notes:

  • It listens on port 80 by default; binding to a port below 1024 on Linux usually requires corresponding permissions. You can change the port for local development, but it must be consistent with the Skill template agreement and the documentation needs to be updated.
  • The frontend uses CDN and does not include built-in Vite/webpack engineering chains; complex SPA build requirements may need to be extended after generation.
  • The design guidelines emphasize avoiding generic “AI style” fonts and purple gradients, etc. The delivery checklist is quite detailed, suitable for product prototypes with clear UI requirements, rather than one-off backend scripts.
  • SkillHub statistics (subject to scraped data): Rating 100000, Downloads 764, Installations 0; the rating is a platform field and does not represent third-party evaluations.

Conclusion

python-flask-vue-creator embeds Flask 3.1, Vue CDN, uv, structured logging, and the AGENTS.md maintenance workflow into a set of Agent-executable workflows. The core value is to reduce repetitive decision-making during “scaffolding.” If you want to initialize a single-port Flask + Vue project via conversation, you can install this Skill in SkillHub and directly use the trigger words mentioned above.

Official address: https://www.skillhub.cn/skills/user_246d1f61/python-flask-vue-creator

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye