skills/vela-inbox/SKILL.md
天帆 (Vela) 需求入库 - 将需求录入 product/01_inbox/,自动分配编号、创建目录结构、更新索引。 触发场景:用户说"入库"、"新增需求"、"记录需求"、"需求入库"、"把这个需求录进去"、"登记需求"、"需求登记", 或者用户附带了一个需求文件并说"入库"/"录入"/"记录"。 即使用户只说"入库"或"把刚才说的需求录进去"也应触发此 Skill。 注意:用户可能在多轮对话中先描述需求,最后才说"入库",需要回溯对话提取需求内容。
npx skillsauth add airclear/skills vela-inboxInstall 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.
将需求快速录入 prd/01_inbox/,自动分配编号、创建目录、生成 requirement.md、更新索引。
在当前工作目录中找 prd/01_inbox/。如果找不到,询问用户路径。
python3 {SKILL_DIR}/scripts/inbox_state.py {PRD_DIR}
输出 JSON,包含 next_id_str(下一个编号)和 entries(现有条目列表)。
{SKILL_DIR} 是本 Skill 的安装路径(通常为 ~/.claude/skills/vela-inbox)。
需求来源有两种,按优先级处理:
附带文件时的特殊判断:读取文件后,对照
inbox_state.py返回的entries列表,检查是否有目录名与文件内容高度相关(如已有008_customer_pudao_email_integration,而文件是该客户的接口文档)。若匹配,询问用户:
- 选项 1:补充到已有条目(复制文件到
_resources/,更新requirement.md引用)- 选项 2:作为新需求独立入库
确认后再继续执行,不要默认创建新编号。
A. 附带文件:用户在消息中提供了文件路径或附件,直接读取文件内容作为需求原文。
B. 对话描述:回溯当前对话历史,提取用户描述的需求内容。找到最近一段连续的需求描述(通常在"入库"指令之前)。
根据需求内容自动推断,不要询问用户(除非完全无法判断):
| 字段 | 推断方式 |
|------|----------|
| title | 一句话概括需求,中文,10字以内 |
| source_type | 根据内容判断:market(营销/业务)/ tech(技术/工程)/ ops(运维/部署)/ customer(客户/用户反馈)/ security(安全)/ product(产品规划) |
| short_desc | 英文,2-4个单词,横线连接,如 wechat-notification |
| source_team | 根据来源推断,如"营销团队"、"技术团队"、"客户需求",不确定则填"待确认" |
python3 {SKILL_DIR}/scripts/create_entry.py \
"{PRD_DIR}" \
"{ID_STR}" \
"{SOURCE_TYPE}" \
"{SHORT_DESC}" \
"{TITLE}" \
"{SOURCE_TEAM}" \
["{ORIGINAL_FILE}"]
ORIGINAL_FILE 仅在用户提供了原始文件时传入。
脚本创建的 requirement.md 包含基本信息表格,还需要你填写需求描述部分:
打开生成的 requirement.md,在 ## 需求描述 下写入:
_resources/ 中,注明路径格式示例:
## 需求描述
### 摘要
用户希望通过企业微信 Webhook 接收告警通知,减少对邮件的依赖。
### 背景
当前告警只支持邮件,部分团队不常看邮件,导致告警响应慢。
### 核心功能点
- 配置企业微信 Webhook URL
- 告警触发时推送消息到企业微信群
- 支持消息模板自定义
### 原始描述
> 用户原文引用...
告知用户:
010_tech_wechat-notification)/prd-development)mv prd/01_inbox/010_xxx/ prd/archive/inbox/
mv prd/02_prd/P010_xxx/ prd/archive/prd/ # 如已有对应 PRD
# 并在 prd/01_inbox/index.md 中将状态改为"已归档"
next_id_str 使用,不要自己猜data-ai
天帆 (Vela) AI 原生产研平台 - 项目初始化。当用户想要初始化新项目、创建项目目录结构、搭建 AI-Native SDLC 项目骨架时使用。 关键词触发:初始化项目、新建项目、vela init、项目骨架、创建项目结构、project init、scaffold project、AI 原生项目。 即使用户只说"帮我建个新项目"或"按 vela 结构初始化"也应触发此 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.