feat: P1-8 客户场景章节 + P1-9 pm-ask skill (REQ-20260416-0017) #2

Open
qiudl wants to merge 9 commits from feat/devflow-integration-p1-part1 into feat/devflow-integration-p0
Owner

摘要

P1 批第一部分:客户原话保留 + 基于真实数据问答 skill。

基于 P0 分支 feat/devflow-integration-p0,P0 PR 合并后本 PR 会 rebase 到 main。

P1-8: 客户原始诉求章节

req-prd SKILL.md 的 PRD 模板增加 1.4 客户原始诉求 章节:

  • 强制保留客户原话,禁止 AI 转述加工
  • 标注提出人 / 时间 / 出处(会议/邮件/聊天链接)
  • 用 Markdown 引用块 > 包裹原话,区分 AI 内容
  • 文档追加"客户原话原则"说明

借鉴:devflow-claude requirement-template.md 的"1.3 客户场景"。

P1-9: pm-ask skill(基于真实数据的问答)

新 plugin skills-core/pm-ask-plugin/

铁律:必须基于 MCP / git log 真实数据,禁止编造。

功能

  • 自动意图分析 → 数据源选择(MCP / git log)
  • 查询前声明数据源(透明化)
  • 回答必含 REQ-XXX / commit-sha / 文件路径引用
  • 数据不足时明确说明缺失
  • ⚠️ 推测: 前缀区分事实和推测
  • 受众适配(高层/客户/内部/新人)

借鉴:devflow-claude /pm:ask 命令。

marketplace

47 → 48 plugins(新增 pm-ask-plugin)

REQ-20260416-0017

## 摘要 P1 批第一部分:客户原话保留 + 基于真实数据问答 skill。 基于 P0 分支 `feat/devflow-integration-p0`,P0 PR 合并后本 PR 会 rebase 到 main。 ## P1-8: 客户原始诉求章节 req-prd SKILL.md 的 PRD 模板增加 `1.4 客户原始诉求` 章节: - **强制保留客户原话**,禁止 AI 转述加工 - 标注提出人 / 时间 / 出处(会议/邮件/聊天链接) - 用 Markdown 引用块 `>` 包裹原话,区分 AI 内容 - 文档追加"客户原话原则"说明 **借鉴**:devflow-claude requirement-template.md 的"1.3 客户场景"。 ## P1-9: pm-ask skill(基于真实数据的问答) 新 plugin `skills-core/pm-ask-plugin/`。 **铁律**:必须基于 MCP / git log 真实数据,禁止编造。 **功能**: - 自动意图分析 → 数据源选择(MCP / git log) - 查询前声明数据源(透明化) - 回答必含 REQ-XXX / commit-sha / 文件路径引用 - 数据不足时明确说明缺失 - `⚠️ 推测:` 前缀区分事实和推测 - 受众适配(高层/客户/内部/新人) **借鉴**:devflow-claude `/pm:ask` 命令。 ## marketplace 47 → 48 plugins(新增 pm-ask-plugin) REQ-20260416-0017
qiudl added 1 commit 2026-04-16 13:35:16 +00:00
P1-8: req-prd 模板增加 "1.4 客户原始诉求" 章节
  - 强制保留客户原话,不做 AI 加工转述
  - 标注提出人/时间/出处
  - 补充"客户原话原则"说明
  借鉴 devflow-claude requirement-template.md 的"1.3 客户场景"

P1-9: 新 skill pm-ask-plugin
  - 基于 ai-proj MCP + git log 真实数据的项目问答
  - 铁律:禁止编造,必须引用 REQ-XXX/commit-sha/文件路径
  - 数据不足时明确说明缺失
  - 区分事实和推测(⚠️ 推测:前缀)
  - 受众适配(高层/客户/内部/新人)
  借鉴 devflow-claude /pm:ask 命令

marketplace: 47 → 48 plugins
admin added 1 commit 2026-04-19 04:03:36 +00:00
P1-10: pm-risk skill — 三维度风险扫描
  需求层: 停滞/草稿滞留/开发无提交/测试超期/批准未开发
  代码层: 未合并分支/频繁修复文件/提交频率下降
  流程层: 跳过评审/PR 无 review/测试门禁跳过/直接推 main
  三级风险: 🔴 严重 / 🟡 警告 / 🔵 提示

P1-12: req-prd 需求粒度 AI 判断
  创建前启发式检查:标题过宽建议拆分、过窄建议合并或改 task
  粒度参考表 + 已有需求扩展决策表 + 前后端拆分规则

P1-13: dev-commit issue 集成规范
  分支名 -iN 后缀传递 issue 编号
  commit message 自动追加 closes #N

P1-14: hooks/validate-prd.sh — PRD 章节校验
  PostToolUse hook 自动检查 10 个必需章节
  缺失时给出明确提示

marketplace: 48 → 49 plugins (新增 pm-risk-plugin)
qiudl added 1 commit 2026-04-20 08:36:37 +00:00
- 添加 /req prototype upload 子命令(推荐模式)
- 含完整 curl 上传流程、HTML 设计规范及模板
- 更新错误处理与版本管理说明
- marketplace 更新(49 个插件)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
qiudl added 1 commit 2026-04-20 14:25:34 +00:00
- Add install_name, install_type, dir_category fields to all 62 plugin.json files
  to resolve name-mapping and skill-vs-command routing issues
- Add install-skills.sh: idempotent cross-machine skill sync script
  - Routes skill→~/.claude/skills/<name>/, command→~/.claude/commands/<name>.md
  - rsync full skills/ directory (preserves multi-file skills like dev-test, req-deploy)
  - State file ~/.claude/.installed-skills.json tracks installed versions
  - Conflict detection: warns before overwriting locally modified files
  - --dry-run, --category, --force, --cleanup, --list flags
- Add 9 new plugins migrated from local ~/.claude (agent-swarm, ai-chat,
  defect-analysis, executing-plans, finishing-branch, frontend-design,
  req-audit, req-lookback, req-retro)
- Add update-plugin-meta.py helper used to bulk-update plugin.json
- Fix siyuan SKILL.md: remove hardcoded server credentials, use env vars

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
qiudl added 1 commit 2026-04-20 14:30:04 +00:00
resolve_skills_src() detects when SKILL.md is one level deeper than skills/
and uses that subdirectory as rsync source instead.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
qiudl added 1 commit 2026-04-20 23:47:23 +00:00
- 结构检查表新增「VP 三件套」必须项
- 新增「VP 三件套强制检查」章节,含四项检查指标和驳回条件
- 常见驳回原因更新:验收不明包含 VP 缺失场景

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
qiudl added 1 commit 2026-04-20 23:49:12 +00:00
- 模板第7节新增「验收标准」章节,含 VP-Data/VP-Steps/VP-Pass 完整示例
- 检查清单「验收标准可测试」更新说明要求 VP 三件套
- 原第7节「风险评估」顺移为第8节

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
qiudl added 2 commits 2026-04-20 23:50:58 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/devflow-integration-p1-part1:feat/devflow-integration-p1-part1
git checkout feat/devflow-integration-p1-part1
Sign in to join this conversation.