一键导入
pdd-verify-feature
验证功能点实现是否符合开发规格和验收标准,采用三维验证模型(完整性、正确性、一致性)。当用户需要验证功能或检查实现时自动触发。支持中文触发:验证功能、功能验证、验收检查、PDD验证。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
验证功能点实现是否符合开发规格和验收标准,采用三维验证模型(完整性、正确性、一致性)。当用户需要验证功能或检查实现时自动触发。支持中文触发:验证功能、功能验证、验收检查、PDD验证。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
"PDD框架下的业务分析Skill,运用专业方法论进行需求分析和业务建模。当用户输入/analyze、/audit、/doc等命令,或需要对业务流程、管理制度、Excel表单进行专业分析时触发。支持中文触发:业务分析、需求分析、需求建模、5W1H分析、MECE、流程分析。"
"PDD熵减智能体,持续监控和偿还技术债务,防止系统腐化。当用户需要代码清理、文档更新、技术债务管理、架构对齐、熵减、垃圾回收、清理技术债务时自动触发。即使用户只说'熵减'、'清理技术债务'或'垃圾回收',也应触发此Skill。支持中文触发:熵减、技术债务、代码清理、文档更新、架构对齐、垃圾回收。"
根据开发规格实现功能点代码的核心Skill。当用户想要开始编码实现、根据规格文档生成代码、实现功能点时调用此Skill。此Skill会自动调用pdd-template-engine生成基础代码框架,然后由software-engineer补充业务逻辑。即使只有规格文档没有明确说'实现',只要涉及代码生成、功能开发,都应触发此Skill。支持中文触发:实现功能点、编码实现、开始编码、功能开发、代码实现、PDD实现。
PRD驱动开发的主入口Skill,协调整个开发流程。当用户想要基于PRD文档进行功能开发、从需求文档生成代码、执行PDD方法论流程、开发业务模块、实现完整功能、'搞个功能'、'资产转让'、'国有产权转让'、'帮我搞个资产转让的功能'时必须调用此Skill。即使用户没有明确说'使用PDD',只要涉及PRD文档、需求文档、功能点开发、规格文档、模块开发、根据文档开发、业务功能实现、'开发ZCCZ'、'我想开发'、'搞个功能'等场景,都应触发此Skill。此Skill会自动协调pdd-ba、pdd-extract-features、pdd-generate-spec、pdd-implement-feature等子Skill完成从需求分析到代码交付的完整流程。注意:单一接口设计、调试问题、文档查询等场景不应触发此Skill。支持中文触发:PRD驱动开发、PDD开发、功能开发、启动PDD。
"交通事故责任评估与判定专业技能。当用户需要交通事故责任分析、事故现场照片评估、交通法规咨询、事故责任划分、法律依据查询时触发此技能。适用于车辆碰撞事故、行人事故、非机动车事故等各类道路交通事故的责任认定场景。无论用户使用'交通事故'、'车祸'、'责任判定'、'交通法规'、'事故定责'等何种表述,只要涉及交通事故评估或责任认定,均应调用此技能。支持中文触发:交通事故、车祸、责任判定、交通法规、事故定责、责任划分、事故评估、追尾、碰撞、违章、赔偿。"
自动化重构专家技能,将收集到的质量改进任务转化为具体的代码操作。当用户需要代码重构、消除重复、简化复杂度时自动触发。即使用户只说'重构代码'、'消除重复'或'简化代码',也应触发此Skill。支持中文触发:重构代码、消除重复、简化复杂度、自动重构、代码重构、PDD重构。
| name | pdd-verify-feature |
| description | 验证功能点实现是否符合开发规格和验收标准,采用三维验证模型(完整性、正确性、一致性)。当用户需要验证功能或检查实现时自动触发。支持中文触发:验证功能、功能验证、验收检查、PDD验证。 |
验证功能点实现是否符合开发规格和验收标准,确保交付质量。采用三维验证模型:
| 维度 | 定义 | 验证要点 |
|---|---|---|
| Completeness (完整性) | 所有规格要求的功能是否都已实现 | 接口完整 |
| Correctness (正确性) | 实现是否符合规格定义 | 接口逻辑正确 |
| Coherence (一致性) | 前后端、文档与代码是否一致 | 前后端接口一致 |
| 级别 | 符号 | 说明 | 处理方式 |
|---|---|---|---|
| Critical | 🔴 | 必须修复,否则验收不通过 | 修复后重新验证 |
| Warning | 🟡 | 建议修复,不影响验收通过 | 记录,待后续处理 |
| Suggestion | 🔵 | 可选优化 | 记录,作为后续改进项 |
Verify that feature implementation conforms to development specifications and acceptance criteria, ensuring delivery quality. Adopts a Three-Dimensional Verification Model:
| Dimension | Definition | Verification Points |
|---|---|---|
| Completeness | Are all specified features implemented? | Interface complete |
| Correctness | Does implementation match specification? | Interface logic correct |
| Coherence | Are frontend/backend, docs, and code consistent? | Frontend-backend interfaces consistent |
| Level | Symbol | Description | Action |
|---|---|---|---|
| Critical | 🔴 | Must fix; otherwise acceptance fails | Re-verify after fix |
| Warning | 🟡 | Recommended fix; does not block acceptance | Log for follow-up |
| Suggestion | 🔵 | Optional optimization | Log as future improvement item |
代码文件: 后端(Controller/Service/Mapper) | 前端(Vue组件/API接口) | 数据库脚本(SQL)
规格文档: spec.md(开发规格) | checklist.md(验收标准)
其他: 业务分析报告 | PRD文档
接口完整性: 对照规格逐一检查每个API是否已实现(路径/方法/参数/响应/错误码)
字段完整性: 对照数据模型检查每个字段是否已实现(类型/长度/必填/格式)
业务规则覆盖: 检查所有业务规则是否都有对应的校验逻辑
接口逻辑正确性: 检查请求处理流程是否符合规格描述的业务流程
业务规则正确性: 逐条验证每个业务规则的实现是否准确(边界条件/异常情况)
数据处理正确性: 验证数据转换/计算/持久化是否准确
前后端一致性: 对比接口定义(路径/字段名/数据类型/校验规则)
文档代码一致性: 对比规格文档与实际代码实现(接口路径/响应结构/命名)
命名规范性: 检查代码命名是否符合项目约定
OpenAPI契约同步检查: 使用openapi-contract-sync.js工具验证前后端契约一致性
Bug模式库验证: 对照 config/bug-patterns.yaml 中的Bug模式库,验证代码是否触犯已知模式
| 模式 | 验证方法 | 失败级别 |
|---|---|---|
| PATTERN-001 datetime类型 | 检查datetime字段是否为str类型 | 🔴 Critical |
| PATTERN-002 路由顺序 | 检查/options是否在/{id}之前 | 🔴 Critical |
| PATTERN-003 枚举编码 | 检查枚举值是否遵循编码约定 | 🟡 Warning |
| PATTERN-004 safeAlert | 检查前端是否使用原生alert | 🟡 Warning |
| PATTERN-005 my-tasks查询 | 检查查询条件是否完整 | 🔴 Critical |
| PATTERN-007 编号生成 | 检查是否验证已存在记录 | 🔴 Critical |
| PATTERN-R001 若依权限 | 检查@PreAuthorize注解 | 🔴 Critical |
| PATTERN-R002 若依菜单 | 检查sys_menu配置 | 🔴 Critical |
| PATTERN-R003 若依数据权限 | 检查@DataScope注解 | 🔴 Critical |
Code Files: Backend (Controller/Service/Mapper) | Frontend (Vue components/API interfaces) | Database scripts (SQL)
Specification Documents: spec.md (development specification) | checklist.md (acceptance criteria)
Others: Business analysis report | PRD documents
Interface Completeness: Check each API against specification for implementation (path/method/params/response/error codes)
Field Completeness: Check each field against data model for implementation (type/length/required/format)
Business Rule Coverage: Verify all business rules have corresponding validation logic
Interface Logic Correctness: Verify request handling flow matches specification-described business process
Business Rule Correctness: Validate each business rule implementation for accuracy (edge cases/exceptions)
Data Processing Correctness: Verify data transformation/computation/persistence accuracy
Frontend-Backend Consistency: Compare interface definitions (path/field names/data types/validation rules)
Doc-Code Consistency: Compare specification documents with actual code implementation (interface path/response structure/naming)
Naming Convention Compliance: Check if code naming follows project conventions
OpenAPI Contract Sync Check: Use openapi-contract-sync.js tool to verify frontend-backend contract consistency
Bug Pattern Library Verification: Check code against bug pattern library in config/bug-patterns.yaml for known pattern violations
| Pattern | Verification Method | Failure Level |
|---|---|---|
| PATTERN-001 datetime type | Check if datetime fields are declared as str | 🔴 Critical |
| PATTERN-002 route order | Check if /options is registered before /{id} | 🔴 Critical |
| PATTERN-003 enum coding | Check if enum values follow coding convention | 🟡 Warning |
| PATTERN-004 safeAlert | Check if frontend uses native alert | 🟡 Warning |
| PATTERN-005 my-tasks query | Check if query conditions are complete | 🔴 Critical |
| PATTERN-007 ID generation | Check if existing records are verified | 🔴 Critical |
| PATTERN-R001 RuoYi permission | Check @PreAuthorize annotation | 🔴 Critical |
| PATTERN-R002 RuoYi menu | Check sys_menu configuration | 🔴 Critical |
| PATTERN-R003 RuoYi data scope | Check @DataScope annotation | 🔴 Critical |
config/bug-patterns.yaml)config/bug-patterns.yaml)# [功能点名称] 验收报告
## 基本信息
| 项目 | 内容 |
|------|------|
| 功能点ID | FP-xxx |
| 验收日期 | yyyy-MM-dd |
| 验收人 | AI/人工 |
| 验收结果 | 通过/不通过 |
## 三维度验证结果
### Completeness (完整性)
| 验证项 | 结果 | 问题数 |
|-------|------|-------|
| 接口完整性 | 🟢/🟡/🔴 | N |
### Correctness (正确性)
| 验证项 | 结果 | 问题数 |
|-------|------|-------|
| 接口逻辑 | 🟢/🟡/🔴 | N |
### Coherence (一致性)
| 验证项 | 结果 | 问题数 |
|-------|------|-------|
| 前后端一致 | 🟢/🟡/🔴 | N |
## 问题清单
### 🔴 Critical问题
| 序号 | 问题描述 | 位置 | 建议修复 |
|------|---------|------|---------|
### 🟡 Warning问题
| 序号 | 问题描述 | 位置 | 建议修复 |
|------|---------|------|---------|
## 验收结论
- [ ] **通过验收**: 所有Critical问题已修复
- [ ] **有条件通过**: Critical问题已记录,待修复
- [ ] **不通过验收**: 存在未修复的Critical问题
## 签名
| 角色 | 签名 | 日期 |
|------|------|------|
| AI验证 | | |
| 人工复核 | | |
# [Feature Name] Acceptance Report
## Basic Information
| Item | Content |
|------|---------|
| Feature ID | FP-xxx |
| Acceptance Date | yyyy-MM-dd |
| Verifier | AI/Human |
| Result | Pass/Fail |
## Three-Dimension Verification Results
### Completeness
| Verification Item | Result | Issue Count |
|-------------------|--------|-------------|
| Interface Completeness | 🟢/🟡/🔴 | N |
### Correctness
| Verification Item | Result | Issue Count |
|-------------------|--------|-------------|
| Interface Logic | 🟢/🟡/🔴 | N |
### Coherence
| Verification Item | Result | Issue Count |
|-------------------|--------|-------------|
| Frontend-Backend Consistency | 🟢/🟡/🔴 | N |
## Issue List
### 🔴 Critical Issues
| # | Description | Location | Suggested Fix |
|---|-------------|----------|---------------|
### 🟡 Warning Issues
| # | Description | Location | Suggested Fix |
|---|-------------|----------|---------------|
## Acceptance Conclusion
- [ ] **Pass**: All Critical issues fixed
- [ ] **Conditional Pass**: Critical issues logged, pending fix
- [ ] **Fail**: Unfixed Critical issues exist
## Signatures
| Role | Signature | Date |
|------|-----------|------|
| AI Verification | | |
| Human Review | | |
当无法完整验证时:
When full verification is not possible:
必须验证项:
避免事项:
Mandatory Verification Items:
Avoid:
| 协作技能 | 协作方式 | 传入数据 | 期望输出 |
|---|---|---|---|
| pdd-code-reviewer | Sequential | 审查报告 | 问题列表 |
| pdd-implement-feature | Loop | 验收不通过 | 修复代码 |
| pdd-main | Sequential | 验收报告 | 最终交付确认 |
| Collaborating Skill | Collaboration Mode | Input Data | Expected Output |
|---|---|---|---|
| pdd-code-reviewer | Sequential | Review report | Issue list |
| pdd-implement-feature | Loop | Acceptance failure | Fixed code |
| pdd-main | Sequential | Acceptance report | Final delivery confirmation |
本Skill遵循PDD框架实施规范,详见 pdd-framework-design.md 第9章。
断点续传:
.pdd-state.json错误处理:
dev-specs/FP-{模块}-{序号}/review-report.md质量改进任务:
dev-specs/FP-{模块}-{序号}/improvement-tasks.mdThis Skill follows PDD framework implementation standards. See pdd-framework-design.md Chapter 9.
Checkpoint Resume:
.pdd-state.jsonError Handling:
dev-specs/FP-{module}-{sequence}/review-report.mdQuality Improvement Tasks:
dev-specs/FP-{module}-{sequence}/improvement-tasks.md违规示例: ❌ 只检查接口完整性就标记通过(跳过Correctness和Coherence) | ❌ 存在Critical问题但认为"不影响主流程"而给予通过 | ❌ 写"业务逻辑基本正确"而不指出具体代码位置和规则 | ❌ 假设数据库连接配置好了而跳过数据访问层验证 | ❌ 问题清单只写"状态转换有问题"而不说明具体是哪个状态的哪个转换
合规示例: ✅ 输出三维验证矩阵,每个维度都有明确判定 | ✅ 发现Critical问题后直接判定为"不通过验收",并列出修复建议 | ✅ 每个问题都标注:TransferApplyServiceImpl.java:142 状态校验缺失,参考spec.md第4.3节 | ✅ 明确说明"数据访问层验证基于SQL语法分析,未执行实际数据库查询" | ✅ 问题描述精确:"申请提交接口缺少底价校验(TransferApplyController.java:68),违反规则BR-001"
Violation Examples: ❌ Mark as pass after only checking interface completeness (skipping Correctness and Coherence) | ❌ Grant pass despite Critical issues claiming "doesn't affect main flow" | ❌ Write "business logic basically correct" without specifying code location and rules | ❌ Skip data access layer verification assuming database connection is configured | ❌ Issue list only says "state transition has problems" without specifying which state's which transition
Compliance Examples: ✅ Output three-dimension verification matrix with clear judgment for each dimension | ✅ Immediately judge as "acceptance failed" upon discovering Critical issues, list fix suggestions | ✅ Each issue annotated: TransferApplyServiceImpl.java:142 missing status validation, refer to spec.md Section 4.3 | ✅ Clearly state "data access layer verification based on SQL syntax analysis, actual database queries not executed" | ✅ Issue description precise: "Submit application interface missing floor price validation (TransferApplyController.java:68), violates rule BR-001"
| # | Trap / 陷阱 | Question / 请问自己 | Action / 应该怎么做 |
|---|---|---|---|
| 1 | "这个Critical问题影响不大,算了吧" / "This Critical issue isn't that big a deal, let it go" | Critical的定义就是"必须修复",放宽标准会导致缺陷流入生产 / Critical means "must fix"; relaxing standards lets defects into production | 维持Critical的一票否决权,任何Critical问题都必须修复后重新验证 / Maintain Critical's veto power; any Critical issue must be fixed and re-verified |
| 2 | "代码看起来没问题,应该对的" / "Code looks fine, should be correct" | 视觉检查会遗漏大量细节问题,特别是逻辑错误 / Visual inspection misses many details, especially logic errors | 逐项对照checklist进行系统性验证,而非概览式检查 / Verify systematically against checklist item by item, not overview-style |
| 3 | "三维度太耗时,只验核心维度吧" / "Three dimensions take too long, just verify core ones" | 每个维度捕获不同类型的问题,跳过会导致特定类别缺陷漏检 / Each dimension catches different issues; skipping causes specific defect categories to be missed | 三维验证是最低要求,可以使用降级策略但不能完全跳过 / Three-dimension verification is minimum requirement; can use degradation but never skip entirely |
| 4 | "这个问题实现者肯定知道,不用写那么细" / "The implementer definitely knows this, no need to be so detailed" | 详细的问题是修复的直接依据,模糊描述会增加沟通成本 / Detailed issues are direct basis for fixes; vague descriptions increase communication cost | 每个问题都要包含:位置、现象、期望行为、实际行为、修复建议 / Every issue must include: location, phenomenon, expected behavior, actual behavior, fix suggestion |
| 5 | "差不多通过了,让code-reviewer再查一遍吧" / "It's mostly passing, let code-reviewer check again" | verify-feature是最终把关,不能寄希望于下游补救 / verify-feature is the final gate; cannot rely on downstream remediation | 坚守验收标准,不合格就是不合格 / Hold acceptance standards; unqualified means unqualified |
常见陷阱 / Common Traps:
🔴 CRITICAL → 立即停止,报告问题详情,等待指示 / Immediately stop, report problem details, await instructions | 🟡 WARN → 记录警告到验证日志,尝试自动修复,在最终报告中标注 / Log warning to verification log, attempt auto-fix, annotate in final report | 🔵 INFO → 记录信息,正常继续 / Log information, continue normally