How this skill is triggered — by the user, by Claude, or both
Slash command
/biz-requirements:gen-specificationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
当用户提到以下关键词时,自动进入本Skill流程:
当用户提到以下关键词时,自动进入本Skill流程:
news Collection为例:
find_news(query) → 查单条,返回 dict or Nonelist_news(query, page, page_size) → 查多条,返回 {"total": int, "items": list}add_news(doc) → 插入单条,返回插入后的文档(含 _id)add_news_batch(docs) → 批量插入update_news(query, update) → 更新,返回更新后文档delete_news(query) → 删除,返回删除条数用户描述需求后,Claude先输出一个简短的"理解摘要",格式如下:
【我的理解】
系统类型:(管理后台 / 数据采集 / AI Agent工具 / 内容展示 / 混合型)
核心实体:(初步识别到的主要数据对象,例如:用户、任务、新闻)
主要功能:(3-5条)
不确定的地方:(列出明显信息缺口)
确认理解无误后,进入第二步。
原则:每轮最多问3个问题,按优先级从高到低提问,不要一次性抛出所有问题。
提问分为以下模块,根据系统类型选取相关模块:
is_deleted 标记)?追问结束后,输出:
【需求完整度评估】
已明确:...
仍待确认:...(如有,标注影响范围)
→ 是否继续生成技术方案?
在生成正式文档前,先输出精简草案供确认:
【Collection草案】
- collection_name:说明用途
嵌入字段:...
引用字段:...(引用哪个Collection)
【前端页面草案】
- /route_path:页面名称
布局:顶部导航 + 侧边栏 + 内容区
核心组件:表格 + 搜索 + 新建按钮
响应式:移动端侧边栏隐藏,表格转为卡片
【API草案】
- GET /xxx 说明
- POST /xxx 说明
...
→ 以上方案是否调整?
用户确认后,按 templates/spec.md 模板生成完整文档,输出为 .md 文件。
created_at datetime 创建时间,默认 datetime.now()
updated_at datetime 更新时间,每次update自动刷新
is_deleted bool 软删除标记,默认 False(除非明确说不需要)
el-table + el-pagination + el-form(搜索)el-form + el-row/el-col 布局el-dialog + el-formel-drawer(适合详情页)npx claudepluginhub steven-zhl/steven-zhl-use-claude --plugin biz-requirementsGenerates technical design documents including API design, database schema, and implementation details from PRDs, user stories, or tech research reports. Activates when user requests architecture or design docs.
Generates technical design documents including architecture, API design, data models, and flow diagrams based on requirements. Applies project rules for URI, entity, and API naming conventions.
Helps product managers align technical solutions with engineering teams: evaluate feasibility, design architecture, plan APIs, and assess third-party services. Use when technical decisions are needed.