skills/vela-project-init/SKILL.md
天帆 (Vela) AI 原生产研平台 - 项目初始化。当用户想要初始化新项目、创建项目目录结构、搭建 AI-Native SDLC 项目骨架时使用。 关键词触发:初始化项目、新建项目、vela init、项目骨架、创建项目结构、project init、scaffold project、AI 原生项目。 即使用户只说"帮我建个新项目"或"按 vela 结构初始化"也应触发此 Skill。
npx skillsauth add airclear/skills vela-project-initInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
本 Skill 帮助在任意目录中快速搭建符合 Vela AI-Native SDLC 规范的完整项目骨架。
关键原则:骨架 ≠ 实现。 本 Skill 只创建目录结构和模板文档(README、AGENTS、PRD 模板等),绝不生成业务代码、应用框架代码(如 Spring Boot / React 脚手架)、CI/CD 配置、Dockerfile、Terraform、K8s 清单等。这些属于后续研发阶段的工作,不在项目初始化的职责范围内。
{project-root}/
├── .vela/ # Vela 平台配置(AI 协作上下文、规范文档)
│ ├── AGENTS.md # AI Agent 入口(含完整项目上下文)
│ ├── PROJECT_GUIDE.md # 项目指引
│ ├── tech-stack.md # 技术栈决策记录
│ ├── code-styleguides/ # 代码规范
│ └── specs/ # SDD 技术规格(Spec-Driven Development)
├── prd/ # 需求大脑
│ ├── 00_vision/ # 产品愿景与路线图
│ ├── 01_inbox/ # 原始需求池(唯一入口,含状态看板)
│ ├── 02_prd/ # 正式 PRD 文档
│ ├── archive/ # 已完结归档
│ │ ├── inbox/ # 归档的原始需求
│ │ └── prd/ # 归档的 PRD
│ └── prototype/ # UI 原型(按前端分组)
├── src/ # 源码实现层
│ ├── frontend-{name}/ # 前端应用(按角色,可多个)
│ └── backend/ # 后端服务
├── tests/ # 质量保障层
│ ├── e2e/
│ └── reports/
├── sre/ # 运维部署层
├── changelog/ # 变更记录
└── docs/ # 项目文档
├── architecture/
├── api/
└── release-artifacts/
设计要点:
.vela/ 收纳所有 AI 协作配置,与业务代码分离src/ 统一承载前后端代码,结构清晰conductor/ 目录(Conductor 任务管理已移除,由 .vela/specs/ + plan.md 替代)src/ 下仅创建空目录,不生成任何业务代码或框架脚手架核心工作流:
01_inbox → 02_prd → .vela/specs/ → plan.md → src/
(需求录入) (需求精炼) (SDD技术规格) (实施计划) (研发实现)
向用户询问以下信息(已在对话中提供则跳过):
frontend-desktop,frontend-web,没有则跳过)Java/Spring Boot,未定则填"待定")整理成确认列表给用户确认,不要反复追问,确认后立刻执行。
直接调用 scripts/init_project.py,路径为本 Skill 目录下的 scripts/init_project.py:
python3 {SKILL_DIR}/scripts/init_project.py \
--name-cn "{PROJECT_NAME_CN}" \
--name-en "{PROJECT_NAME_EN}" \
--desc "{PROJECT_DESCRIPTION}" \
--dir "{TARGET_DIR}" \
--frontends "{FRONTEND_LIST}" \
--backend "{BACKEND_TECH}"
{SKILL_DIR} 是本 Skill 的安装路径(通常为 ~/.claude/skills/vela-project-init)。
脚本会自动完成:目录创建 → 模板文件写入 → git init & initial commit。
幂等性:已存在的文件会跳过,不覆盖。
脚本执行完毕后,告知用户:
prd/00_vision/vision.md 产品愿景prd/01_inbox/,参考 _example/ 示例格式prd/02_prd/,SDD 技术规格写入 .vela/specs/mkdir -p + Write 工具逐个创建README.md 如已存在则不覆盖,保留用户原有内容tools
天帆 (Vela) 需求入库 - 将需求录入 product/01_inbox/,自动分配编号、创建目录结构、更新索引。 触发场景:用户说"入库"、"新增需求"、"记录需求"、"需求入库"、"把这个需求录进去"、"登记需求"、"需求登记", 或者用户附带了一个需求文件并说"入库"/"录入"/"记录"。 即使用户只说"入库"或"把刚才说的需求录进去"也应触发此 Skill。 注意:用户可能在多轮对话中先描述需求,最后才说"入库",需要回溯对话提取需求内容。
tools
Use when user requests diagrams, flowcharts, architecture charts, or visualizations. Also use proactively when explaining systems with 3+ components, complex data flows, or relationships that benefit from visual representation. Generates .drawio XML files and exports to PNG/SVG/PDF locally using the native draw.io desktop CLI. Supports modern "Premium Architecture" styles with card-based designs and layered layouts.
testing
This skill should be used when the user explicitly says "Nothing style", "Nothing design", "/nothing-design", or directly asks to use/apply the Nothing design system. NEVER trigger automatically for generic UI or design tasks. It provides guidance and templates for generating diagrams using the minimalist, industrial aesthetic of the Nothing design language.
testing
Generate editorial-style diagrams in the Anthropic blog visual style as .drawio files. Use this skill whenever the user wants to create a diagram, flowchart, architecture diagram, comparison chart, swimlane, or any visual that should look like Anthropic's blog article illustrations. Trigger on prompts like "draw a diagram", "create a flowchart", "visualize this process", "make an architecture diagram", "画流程图", "画架构图", "帮我画", or any request to turn text/process descriptions into a visual — even if the user doesn't say "Anthropic style" explicitly. This skill produces the calm, editorial, publication-quality look characteristic of Anthropic's technical blog.