pdd-skills 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1478 -0
- package/bin/pdd.js +354 -0
- package/config/bpmn-rules.yaml +166 -0
- package/config/checkstyle.xml +105 -0
- package/config/eslint.config.js +48 -0
- package/config/pmd.xml +91 -0
- package/config/prd-rules.yaml +113 -0
- package/config/ruff.toml +45 -0
- package/config/sqlfluff.cfg +82 -0
- package/hooks/hook-executor.js +332 -0
- package/index.js +43 -0
- package/lib/api-routes.js +750 -0
- package/lib/api-server.js +408 -0
- package/lib/cache/cache-config.js +209 -0
- package/lib/cache/system-cache.js +852 -0
- package/lib/config-manager.js +373 -0
- package/lib/generate.js +528 -0
- package/lib/grpc/grpc-routes.js +1134 -0
- package/lib/grpc/grpc-server.js +912 -0
- package/lib/grpc/proto-definitions.js +1033 -0
- package/lib/init.js +172 -0
- package/lib/iteration/auto-fixer.js +1025 -0
- package/lib/iteration/auto-reviewer.js +923 -0
- package/lib/iteration/controller.js +577 -0
- package/lib/list.js +130 -0
- package/lib/mcp-server.js +548 -0
- package/lib/openclaw/api-integration.js +535 -0
- package/lib/openclaw/cli-integration.js +567 -0
- package/lib/openclaw/data-sync.js +845 -0
- package/lib/openclaw/openclaw-adapter.js +783 -0
- package/lib/plugin/example-plugins/code-stats/index.js +332 -0
- package/lib/plugin/example-plugins/code-stats/plugin.json +1 -0
- package/lib/plugin/example-plugins/custom-linter/index.js +472 -0
- package/lib/plugin/example-plugins/custom-linter/plugin.json +1 -0
- package/lib/plugin/example-plugins/hello-world/index.js +86 -0
- package/lib/plugin/example-plugins/hello-world/plugin.json +1 -0
- package/lib/plugin/plugin-manager.js +655 -0
- package/lib/plugin/plugin-sdk.js +565 -0
- package/lib/plugin/sandbox.js +627 -0
- package/lib/quality/rules/maintainability.js +418 -0
- package/lib/quality/rules/performance.js +498 -0
- package/lib/quality/rules/readability.js +441 -0
- package/lib/quality/rules/robustness.js +504 -0
- package/lib/quality/rules/security.js +444 -0
- package/lib/quality/scorer.js +576 -0
- package/lib/report.js +669 -0
- package/lib/sdk-base.js +301 -0
- package/lib/sdk-js.js +446 -0
- package/lib/sdk-python/README.md +546 -0
- package/lib/sdk-python/examples/basic_usage.py +450 -0
- package/lib/sdk-python/pdd_sdk/__init__.py +180 -0
- package/lib/sdk-python/pdd_sdk/client.py +1170 -0
- package/lib/sdk-python/pdd_sdk/events.py +423 -0
- package/lib/sdk-python/pdd_sdk/exceptions.py +158 -0
- package/lib/sdk-python/pdd_sdk/models.py +518 -0
- package/lib/sdk-python/pdd_sdk/utils.py +759 -0
- package/lib/token/budget-alert.js +367 -0
- package/lib/token/budget-manager.js +485 -0
- package/lib/update.js +54 -0
- package/lib/utils/logger.js +88 -0
- package/lib/verify.js +741 -0
- package/lib/version.js +52 -0
- package/lib/vm/README.md +102 -0
- package/lib/vm/dashboard/api-routes.js +669 -0
- package/lib/vm/dashboard/server.js +391 -0
- package/lib/vm/dashboard/sse.js +358 -0
- package/lib/vm/dashboard/static/css/dashboard.css +1378 -0
- package/lib/vm/dashboard/static/index.html +118 -0
- package/lib/vm/dashboard/static/js/app.js +949 -0
- package/lib/vm/dashboard/static/js/charts.js +913 -0
- package/lib/vm/dashboard/static/js/kanban-view.js +1053 -0
- package/lib/vm/dashboard/static/js/pipeline-view.js +463 -0
- package/lib/vm/dashboard/static/js/quality-view.js +598 -0
- package/lib/vm/dashboard/static/js/system-view.js +1021 -0
- package/lib/vm/data-provider.js +1191 -0
- package/lib/vm/event-bus.js +402 -0
- package/lib/vm/hooks/extract-hook.js +307 -0
- package/lib/vm/hooks/generate-hook.js +374 -0
- package/lib/vm/hooks/hook-interface.js +458 -0
- package/lib/vm/hooks/report-hook.js +331 -0
- package/lib/vm/hooks/verify-hook.js +454 -0
- package/lib/vm/models.js +1003 -0
- package/lib/vm/reconciler.js +855 -0
- package/lib/vm/scanner.js +988 -0
- package/lib/vm/state-schema.js +955 -0
- package/lib/vm/state-store.js +733 -0
- package/lib/vm/tui/components/card.js +339 -0
- package/lib/vm/tui/components/progress-bar.js +368 -0
- package/lib/vm/tui/components/sparkline.js +327 -0
- package/lib/vm/tui/components/status-light.js +294 -0
- package/lib/vm/tui/components/table.js +370 -0
- package/lib/vm/tui/input.js +335 -0
- package/lib/vm/tui/renderer.js +548 -0
- package/lib/vm/tui/screens/kanban-screen.js +397 -0
- package/lib/vm/tui/screens/overview-screen.js +357 -0
- package/lib/vm/tui/screens/quality-screen.js +336 -0
- package/lib/vm/tui/screens/system-screen.js +379 -0
- package/lib/vm/tui/tui.js +805 -0
- package/package.json +1 -0
- package/scripts/cso-analyzer.js +198 -0
- package/scripts/eval-runner.js +359 -0
- package/scripts/i18n-checker.js +109 -0
- package/scripts/linter/activiti-linter.js +272 -0
- package/scripts/linter/prd-linter.js +162 -0
- package/scripts/linter/report-generator.js +207 -0
- package/scripts/linter/run-linters.js +285 -0
- package/scripts/linter/sql-linter.js +166 -0
- package/scripts/token-analyzer.js +162 -0
- package/scripts/vm-test.js +180 -0
- package/skills/core/official-doc-writer/LICENSE +21 -0
- package/skills/core/official-doc-writer/README.md +232 -0
- package/skills/core/official-doc-writer/SKILL.md +475 -0
- package/skills/core/official-doc-writer/_meta.json +1 -0
- package/skills/core/official-doc-writer/document_generator.py +580 -0
- package/skills/core/official-doc-writer/evals/default-evals.json +1 -0
- package/skills/core/official-doc-writer/examples.md +150 -0
- package/skills/core/official-doc-writer/fonts/FONTS_LIST.md +45 -0
- package/skills/core/official-doc-writer/fonts/README.md +141 -0
- package/skills/core/official-doc-writer/fonts/SIMFANG.TTF +0 -0
- package/skills/core/official-doc-writer/fonts/SIMHEI.TTF +0 -0
- package/skills/core/official-doc-writer/fonts/SIMKAI.TTF +0 -0
- package/skills/core/official-doc-writer/fonts/SIMSUN.TTC +0 -0
- package/skills/core/official-doc-writer/fonts//346/226/271/346/255/243/345/260/217/346/240/207/345/256/213GBK.TTF +0 -0
- package/skills/core/official-doc-writer/references/GBT_9704-2012_/345/205/232/346/224/277/346/234/272/345/205/263/345/205/254/346/226/207/346/240/274/345/274/217.md +422 -0
- package/skills/core/official-doc-writer/scripts/__pycache__/generate_official_doc.cpython-313.pyc +0 -0
- package/skills/core/official-doc-writer/scripts/dialog_manager.py +564 -0
- package/skills/core/official-doc-writer/scripts/generate_official_doc.py +252 -0
- package/skills/core/official-doc-writer/scripts/install_fonts.py +390 -0
- package/skills/core/official-doc-writer/scripts/smart_prompts.py +363 -0
- package/skills/core/pdd-ba/SKILL.md +305 -0
- package/skills/core/pdd-ba/_meta.json +1 -0
- package/skills/core/pdd-ba/evals/default-evals.json +1 -0
- package/skills/core/pdd-code-reviewer/SKILL.md +378 -0
- package/skills/core/pdd-code-reviewer/_meta.json +1 -0
- package/skills/core/pdd-code-reviewer/evals/default-evals.json +1 -0
- package/skills/core/pdd-doc-change/SKILL.md +350 -0
- package/skills/core/pdd-doc-change/_meta.json +1 -0
- package/skills/core/pdd-doc-change/evals/default-evals.json +1 -0
- package/skills/core/pdd-doc-gardener/SKILL.md +248 -0
- package/skills/core/pdd-doc-gardener/_meta.json +1 -0
- package/skills/core/pdd-doc-gardener/evals/default-evals.json +1 -0
- package/skills/core/pdd-entropy-reduction/SKILL.md +360 -0
- package/skills/core/pdd-entropy-reduction/_meta.json +1 -0
- package/skills/core/pdd-entropy-reduction/evals/default-evals.json +1 -0
- package/skills/core/pdd-entropy-reduction/references/entropy-report-template.md +287 -0
- package/skills/core/pdd-entropy-reduction/references/golden-principles.md +573 -0
- package/skills/core/pdd-entropy-reduction/scripts/entropy_scan.py +712 -0
- package/skills/core/pdd-extract-features/SKILL.md +320 -0
- package/skills/core/pdd-extract-features/_meta.json +1 -0
- package/skills/core/pdd-extract-features/evals/default-evals.json +1 -0
- package/skills/core/pdd-generate-spec/SKILL.md +418 -0
- package/skills/core/pdd-generate-spec/_meta.json +1 -0
- package/skills/core/pdd-generate-spec/evals/default-evals.json +1 -0
- package/skills/core/pdd-implement-feature/SKILL.md +332 -0
- package/skills/core/pdd-implement-feature/_meta.json +1 -0
- package/skills/core/pdd-implement-feature/evals/default-evals.json +1 -0
- package/skills/core/pdd-main/SKILL.md +540 -0
- package/skills/core/pdd-main/_meta.json +1 -0
- package/skills/core/pdd-main/evals/default-evals.json +1 -0
- package/skills/core/pdd-main/evals/evals.json +215 -0
- package/skills/core/pdd-verify-feature/SKILL.md +474 -0
- package/skills/core/pdd-verify-feature/_meta.json +1 -0
- package/skills/core/pdd-verify-feature/evals/default-evals.json +1 -0
- package/skills/core/pdd-vm/evals/default-evals.json +1 -0
- package/skills/core/traffic-accident-assessor/LICENSE +29 -0
- package/skills/core/traffic-accident-assessor/SKILL.md +439 -0
- package/skills/core/traffic-accident-assessor/evals/evals.json +1 -0
- package/skills/core/traffic-accident-assessor/references/accident-types.md +369 -0
- package/skills/core/traffic-accident-assessor/references/liability-rules.md +287 -0
- package/skills/core/traffic-accident-assessor/references/traffic-laws.md +226 -0
- package/skills/core/traffic-accident-assessor/references//351/253/230/345/260/224/345/244/253/350/257/264/346/230/216/344/271/246.pdf +32576 -106
- package/skills/core/traffic-accident-assessor/scripts/generate_official_statement.py +588 -0
- package/skills/core/traffic-accident-assessor/scripts/generate_report.py +495 -0
- package/skills/core/traffic-accident-assessor/scripts/generate_statement.py +528 -0
- package/skills/core/traffic-accident-assessor.zip +0 -0
- package/skills/entropy/expert-arch-enforcer/SKILL.md +292 -0
- package/skills/entropy/expert-arch-enforcer/_meta.json +1 -0
- package/skills/entropy/expert-arch-enforcer/evals/default-evals.json +1 -0
- package/skills/entropy/expert-auto-refactor/SKILL.md +327 -0
- package/skills/entropy/expert-auto-refactor/_meta.json +1 -0
- package/skills/entropy/expert-auto-refactor/evals/default-evals.json +1 -0
- package/skills/entropy/expert-code-quality/SKILL.md +468 -0
- package/skills/entropy/expert-code-quality/_meta.json +1 -0
- package/skills/entropy/expert-code-quality/evals/default-evals.json +1 -0
- package/skills/entropy/expert-code-quality/evals/evals.json +109 -0
- package/skills/entropy/expert-code-quality/references/code-smells.md +605 -0
- package/skills/entropy/expert-code-quality/references/design-patterns.md +1111 -0
- package/skills/entropy/expert-code-quality/references/refactoring-catalog.md +1281 -0
- package/skills/entropy/expert-code-quality/references/solid-principles.md +524 -0
- package/skills/entropy/expert-entropy-auditor/SKILL.md +276 -0
- package/skills/entropy/expert-entropy-auditor/_meta.json +1 -0
- package/skills/entropy/expert-entropy-auditor/evals/default-evals.json +1 -0
- package/skills/expert/expert-activiti/SKILL.md +497 -0
- package/skills/expert/expert-activiti/_meta.json +1 -0
- package/skills/expert/expert-mysql/SKILL.md +832 -0
- package/skills/expert/expert-mysql/_meta.json +1 -0
- package/skills/expert/expert-performance/SKILL.md +379 -0
- package/skills/expert/expert-performance/_meta.json +1 -0
- package/skills/expert/expert-performance/evals/default-evals.json +1 -0
- package/skills/expert/expert-ruoyi/SKILL.md +472 -0
- package/skills/expert/expert-ruoyi/_meta.json +1 -0
- package/skills/expert/expert-security/SKILL.md +1341 -0
- package/skills/expert/expert-security/_meta.json +1 -0
- package/skills/expert/expert-security/evals/default-evals.json +1 -0
- package/skills/expert/software-architect/SKILL.md +350 -0
- package/skills/expert/software-architect/_meta.json +1 -0
- package/skills/expert/software-engineer/SKILL.md +437 -0
- package/skills/expert/software-engineer/_meta.json +1 -0
- package/skills/expert/software-engineer/architecture.md +130 -0
- package/skills/expert/software-engineer/patterns.md +151 -0
- package/skills/expert/software-engineer/testing.md +135 -0
- package/skills/expert/system-architect/SKILL.md +628 -0
- package/skills/expert/system-architect/_meta.json +1 -0
- package/skills/expert/system-architect/assets/templates/ARCHITECTURE.md +25 -0
- package/skills/expert/system-architect/assets/templates/README.md +44 -0
- package/skills/expert/system-architect/references/js-ts-standards.md +18 -0
- package/skills/expert/system-architect/references/python-standards.md +19 -0
- package/skills/expert/system-architect/references/scaffolding.md +61 -0
- package/skills/expert/system-architect/references/security-checklist.md +21 -0
- package/skills/openspec/openspec-apply-change/SKILL.md +156 -0
- package/skills/openspec/openspec-apply-change/_meta.json +1 -0
- package/skills/openspec/openspec-archive-change/SKILL.md +114 -0
- package/skills/openspec/openspec-archive-change/_meta.json +1 -0
- package/skills/openspec/openspec-bulk-archive-change/SKILL.md +246 -0
- package/skills/openspec/openspec-bulk-archive-change/_meta.json +1 -0
- package/skills/openspec/openspec-continue-change/SKILL.md +118 -0
- package/skills/openspec/openspec-continue-change/_meta.json +1 -0
- package/skills/openspec/openspec-explore/SKILL.md +288 -0
- package/skills/openspec/openspec-explore/_meta.json +1 -0
- package/skills/openspec/openspec-ff-change/SKILL.md +101 -0
- package/skills/openspec/openspec-ff-change/_meta.json +1 -0
- package/skills/openspec/openspec-new-change/SKILL.md +74 -0
- package/skills/openspec/openspec-new-change/_meta.json +1 -0
- package/skills/openspec/openspec-onboard/SKILL.md +554 -0
- package/skills/openspec/openspec-onboard/_meta.json +1 -0
- package/skills/openspec/openspec-sync-specs/SKILL.md +138 -0
- package/skills/openspec/openspec-sync-specs/_meta.json +1 -0
- package/skills/openspec/openspec-verify-change/SKILL.md +168 -0
- package/skills/openspec/openspec-verify-change/_meta.json +1 -0
- package/skills/pr/pdd-multi-review/SKILL.md +534 -0
- package/skills/pr/pdd-multi-review/_meta.json +1 -0
- package/skills/pr/pdd-pr-batch/SKILL.md +303 -0
- package/skills/pr/pdd-pr-batch/_meta.json +1 -0
- package/skills/pr/pdd-pr-create/SKILL.md +344 -0
- package/skills/pr/pdd-pr-create/_meta.json +1 -0
- package/skills/pr/pdd-pr-merge/SKILL.md +286 -0
- package/skills/pr/pdd-pr-merge/_meta.json +1 -0
- package/skills/pr/pdd-pr-review/SKILL.md +217 -0
- package/skills/pr/pdd-pr-review/_meta.json +1 -0
- package/skills/pr/pdd-task-manager/SKILL.md +636 -0
- package/skills/pr/pdd-task-manager/_meta.json +1 -0
- package/skills/pr/pdd-template-engine/SKILL.md +306 -0
- package/skills/pr/pdd-template-engine/_meta.json +1 -0
- package/templates/behavior-shaping/iron-law-template.md +87 -0
- package/templates/behavior-shaping/rationalization-template.md +62 -0
- package/templates/behavior-shaping/red-flags-template.md +70 -0
- package/templates/bilingual-template.md +139 -0
- package/templates/config/default.yaml +47 -0
- package/templates/project/default/README.md +31 -0
- package/templates/project/frontend/README.md +46 -0
- package/templates/project/java/README.md +48 -0
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pdd-code-reviewer
|
|
3
|
+
description: PDD框架下的代码审查Skill,验证功能点实现是否符合开发规格和验收标准。当需要代码审查或验证代码质量时自动触发。支持中文触发:代码审查、代码review、PDD审查、质量检查。
|
|
4
|
+
license: MIT
|
|
5
|
+
compatibility: 需要先完成代码实现
|
|
6
|
+
metadata:
|
|
7
|
+
author: "neuqik@hotmail.com"
|
|
8
|
+
version: "2.1"
|
|
9
|
+
parent: pdd-main
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# 代码审查 - 验证功能点实现是否符合开发规格 / Code Review — Verify Feature Implementation Against Development Specs
|
|
13
|
+
|
|
14
|
+
**输入**: 代码文件 | 开发规格(spec.md) | 验收标准(checklist.md)
|
|
15
|
+
|
|
16
|
+
**输出**: 审查报告(`docs/reviews/review-{timestamp}.md`) | 问题列表(issues)
|
|
17
|
+
|
|
18
|
+
## 技能整合 / Skill Integration
|
|
19
|
+
|
|
20
|
+
### 🇨🇳 架构师评审(按需调用)
|
|
21
|
+
|
|
22
|
+
| 架构师技能 | 触发条件 | 服务内容 |
|
|
23
|
+
|-----------|---------|---------|
|
|
24
|
+
| **software-architect** | 发现架构偏离、接口设计问题 | 架构建议、设计模式 |
|
|
25
|
+
| **system-architect** | 发现系统架构问题 | 系统架构评审 |
|
|
26
|
+
|
|
27
|
+
### 🇺🇸 Architect Review (On-demand Invocation)
|
|
28
|
+
|
|
29
|
+
| Architect Skill | Trigger Condition | Service Content |
|
|
30
|
+
|----------------|-------------------|-----------------|
|
|
31
|
+
| **software-architect** | Architecture deviation, interface design issues detected | Architecture advice, design patterns |
|
|
32
|
+
| **system-architect** | System architecture issues detected | System architecture review |
|
|
33
|
+
|
|
34
|
+
### 🇨🇳 专家咨询(按需调用)
|
|
35
|
+
|
|
36
|
+
| 专家技能 | 触发条件 | 服务内容 |
|
|
37
|
+
|-----------|---------|---------|
|
|
38
|
+
| **expert-code-quality** | 发现代码异味、重构需求 | 重构方案、设计模式 |
|
|
39
|
+
| **expert-ruoyi** | 发现若依框架使用问题 | 框架最佳实践 |
|
|
40
|
+
| **expert-mysql** | 发现SQL问题 | 优化建议 |
|
|
41
|
+
|
|
42
|
+
### 🇺🇸 Expert Consultation (On-demand Invocation)
|
|
43
|
+
|
|
44
|
+
| Expert Skill | Trigger Condition | Service Content |
|
|
45
|
+
|--------------|-------------------|-----------------|
|
|
46
|
+
| **expert-code-quality** | Code smells, refactoring needs detected | Refactoring plans, design patterns |
|
|
47
|
+
| **expert-ruoyi** | RuoYi framework usage issues detected | Framework best practices |
|
|
48
|
+
| **expert-mysql** | SQL issues detected | Optimization suggestions |
|
|
49
|
+
|
|
50
|
+
### 🇨🇳 调用条件
|
|
51
|
+
|
|
52
|
+
**必须进行基础审查**: 所有代码文件必须经过基础审查 | 对照规格验证实现完整性
|
|
53
|
+
|
|
54
|
+
**按需调用架构师**: 发现模块边界不清 | 发现接口设计偏离 | 发现架构模式问题
|
|
55
|
+
|
|
56
|
+
**按需调用专家**: 发现代码质量问题 | 发现框架使用问题 | 发现数据库设计问题
|
|
57
|
+
|
|
58
|
+
### 🇺🇸 Invocation Conditions
|
|
59
|
+
|
|
60
|
+
**Mandatory Basic Review**: All code files must undergo basic review | Verify implementation completeness against specs
|
|
61
|
+
|
|
62
|
+
**On-demand Architect Invocation**: Unclear module boundaries detected | Interface design deviation detected | Architecture pattern issues detected
|
|
63
|
+
|
|
64
|
+
**On-demand Expert Invocation**: Code quality issues detected | Framework usage issues detected | Database design issues detected
|
|
65
|
+
|
|
66
|
+
## 审查维度 / Review Dimensions
|
|
67
|
+
|
|
68
|
+
### 🇨🇳 设计一致性
|
|
69
|
+
- [ ] 代码实现是否与规格描述一致
|
|
70
|
+
- [ ] 接口路径是否符合规格定义
|
|
71
|
+
- [ ] 请求/响应结构是否符合规格
|
|
72
|
+
- [ ] 业务逻辑是否遵循规格定义
|
|
73
|
+
|
|
74
|
+
### 🇺🇸 Design Consistency
|
|
75
|
+
- [ ] Does code implementation match spec description
|
|
76
|
+
- [ ] Do API paths conform to spec definitions
|
|
77
|
+
- [ ] Do request/response structures match specs
|
|
78
|
+
- [ ] Does business logic follow spec definitions
|
|
79
|
+
|
|
80
|
+
### 🇨🇳 代码质量
|
|
81
|
+
- [ ] 代码可读性 | [ ] 命名规范性 | [ ] 错误处理完整性 | [ ] 注释质量
|
|
82
|
+
|
|
83
|
+
### 🇺🇸 Code Quality
|
|
84
|
+
- [ ] Code readability | [ ] Naming conventions | [ ] Error handling completeness | [ ] Comment quality
|
|
85
|
+
|
|
86
|
+
### 🇨🇳 安全性
|
|
87
|
+
- [ ] 参数校验 | [ ] SQL注入防护 | [ ] XSS防护 | [ ] 权限校验
|
|
88
|
+
|
|
89
|
+
### 🇺🇸 Security
|
|
90
|
+
- [ ] Parameter validation | [ ] SQL injection protection | [ ] XSS protection | [ ] Authorization check
|
|
91
|
+
|
|
92
|
+
### 🇨🇳 性能
|
|
93
|
+
- [ ] 数据库查询效率 | [ ] 循环处理优化 | [ ] 缓存使用
|
|
94
|
+
|
|
95
|
+
### 🇺🇸 Performance
|
|
96
|
+
- [ ] Database query efficiency | [ ] Loop processing optimization | [ ] Caching usage
|
|
97
|
+
|
|
98
|
+
### 🇨🇳 业务逻辑
|
|
99
|
+
- [ ] 状态转换正确性 | [ ] 业务规则执行 | [ ] 异常处理
|
|
100
|
+
|
|
101
|
+
### 🇺🇸 Business Logic
|
|
102
|
+
- [ ] State transition correctness | [ ] Business rule execution | [ ] Exception handling
|
|
103
|
+
|
|
104
|
+
## 问题分级 / Issue Classification
|
|
105
|
+
|
|
106
|
+
### 🇨🇳 CRITICAL - 必须修复
|
|
107
|
+
功能实现与规格严重不符 | 核心业务流程有错误 | 严重的安全漏洞 | 数据一致性问题
|
|
108
|
+
|
|
109
|
+
### 🇺🇸 CRITICAL - Must Fix
|
|
110
|
+
Severe deviation from spec implementation | Core business flow errors | Critical security vulnerabilities | Data consistency issues
|
|
111
|
+
|
|
112
|
+
### 🇨🇳 WARNING - 建议修复
|
|
113
|
+
代码可读性问题 | 错误处理不完善 | 潜在性能问题 | 不符合编码规范
|
|
114
|
+
|
|
115
|
+
### 🇺🇸 WARNING - Recommended Fix
|
|
116
|
+
Code readability issues | Incomplete error handling | Potential performance issues | Coding standard violations
|
|
117
|
+
|
|
118
|
+
### 🇨🇳 SUGGESTION - 可选优化
|
|
119
|
+
代码优化建议 | 重构建议 | 最佳实践推荐
|
|
120
|
+
|
|
121
|
+
### 🇺🇸 SUGGESTION - Optional Optimization
|
|
122
|
+
Code optimization suggestions | Refactoring recommendations | Best practice recommendations
|
|
123
|
+
|
|
124
|
+
## 流程步骤 / Workflow Steps
|
|
125
|
+
|
|
126
|
+
### 🇨🇳 Step 1: 收集代码文件
|
|
127
|
+
后端(Controller/Service/Mapper/Domain) | 前端(Vue组件/API接口) | 数据库脚本(SQL)
|
|
128
|
+
|
|
129
|
+
### 🇺🇸 Step 1: Collect Code Files
|
|
130
|
+
Backend (Controller/Service/Mapper/Domain) | Frontend (Vue components/API interfaces) | Database scripts (SQL)
|
|
131
|
+
|
|
132
|
+
### 🇨🇳 Step 2: 读取开发规格
|
|
133
|
+
从 `dev-specs/FP-{序号}/spec.md` 读取规格定义
|
|
134
|
+
|
|
135
|
+
### 🇺🇸 Step 2: Read Development Specs
|
|
136
|
+
Read spec definitions from `dev-specs/FP-{sequence}/spec.md`
|
|
137
|
+
|
|
138
|
+
### 🇨🇳 Step 3: 执行基础审查
|
|
139
|
+
**a. 接口审查**: 接口路径/请求方法/参数处理/响应结构是否正确匹配规格
|
|
140
|
+
**b. 业务逻辑审查**: 处理流程/状态转换/校验规则是否正确
|
|
141
|
+
**c. 数据模型审查**: 字段映射/类型定义/审计字段是否完整
|
|
142
|
+
|
|
143
|
+
### 🇺🇸 Step 3: Execute Basic Review
|
|
144
|
+
**a. API Review**: Do API paths/request methods/parameter handling/response structures correctly match specs
|
|
145
|
+
**b. Business Logic Review**: Are processing flows/state transitions/validation rules correct
|
|
146
|
+
**c. Data Model Review**: Are field mappings/type definitions/audit fields complete
|
|
147
|
+
|
|
148
|
+
### 🇨🇳 Step 4: 执行代码质量审查(按需)
|
|
149
|
+
调用 **expert-code-quality**(如发现代码质量问题): 代码异味检测 | 重构建议 | 设计模式推荐
|
|
150
|
+
|
|
151
|
+
### 🇺🇸 Step 4: Execute Code Quality Review (On-demand)
|
|
152
|
+
Invoke **expert-code-quality** (if code quality issues detected): Code smell detection | Refactoring suggestions | Design pattern recommendations
|
|
153
|
+
|
|
154
|
+
### 🇨🇳 Step 5: 架构偏离检查(按需)
|
|
155
|
+
调用 **software-architect**(如发现架构问题): 模块边界检查 | 接口设计检查 | 架构模式检查
|
|
156
|
+
|
|
157
|
+
### 🇺🇸 Step 5: Architecture Deviation Check (On-demand)
|
|
158
|
+
Invoke **software-architect** (if architecture issues detected): Module boundary check | Interface design check | Architecture pattern check
|
|
159
|
+
|
|
160
|
+
### 🇨🇳 Step 6: 生成审查报告
|
|
161
|
+
输出到 `docs/reviews/review-{timestamp}.md`:
|
|
162
|
+
```markdown
|
|
163
|
+
# 代码审查报告
|
|
164
|
+
|
|
165
|
+
## 基本信息
|
|
166
|
+
| 项目 | 内容 |
|
|
167
|
+
|------|------|
|
|
168
|
+
| 功能点 | FP-XXX-NNN |
|
|
169
|
+
| 审查日期 | {日期} |
|
|
170
|
+
| 审查人 | AI |
|
|
171
|
+
|
|
172
|
+
## 审查结果
|
|
173
|
+
### 通过项 | CRITICAL问题 | WARNING问题 | SUGGESTION问题
|
|
174
|
+
(包含: 序号/问题描述/文件/建议)
|
|
175
|
+
|
|
176
|
+
## 结论
|
|
177
|
+
- [ ] 通过审查
|
|
178
|
+
- [ ] 需要修复后重新审查
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### 🇺🇸 Step 6: Generate Review Report
|
|
182
|
+
Output to `docs/reviews/review-{timestamp}.md`:
|
|
183
|
+
```markdown
|
|
184
|
+
# Code Review Report
|
|
185
|
+
|
|
186
|
+
## Basic Information
|
|
187
|
+
| Item | Content |
|
|
188
|
+
|------|---------|
|
|
189
|
+
| Feature Point | FP-XXX-NNN |
|
|
190
|
+
| Review Date | {date} |
|
|
191
|
+
| Reviewer | AI |
|
|
192
|
+
|
|
193
|
+
## Review Results
|
|
194
|
+
### Passed Items | CRITICAL Issues | WARNING Issues | SUGGESTION Issues
|
|
195
|
+
(Includes: sequence number/description/file/suggestion)
|
|
196
|
+
|
|
197
|
+
## Conclusion
|
|
198
|
+
- [ ] Passed review
|
|
199
|
+
- [ ] Requires fix and re-review
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### 🇨🇳 Step 7: 输出问题列表
|
|
203
|
+
```json
|
|
204
|
+
{"critical": [...], "warning": [...], "suggestion": [...]}
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### 🇺🇸 Step 7: Output Issue List
|
|
208
|
+
```json
|
|
209
|
+
{"critical": [...], "warning": [...], "suggestion": [...]}
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
## 与 expert-code-quality 协作规范 / Collaboration Rules with expert-code-quality
|
|
213
|
+
|
|
214
|
+
### 🇨🇳 职责边界
|
|
215
|
+
|
|
216
|
+
| 技能 | 定位 | 核心职责 | 阻塞性 |
|
|
217
|
+
|------|------|---------|--------|
|
|
218
|
+
| **pdd-code-reviewer** | 流程合规性审查 | 验证代码是否实现规格要求 | Critical问题阻塞 |
|
|
219
|
+
| **expert-code-quality** | 代码质量深度分析 | 识别代码异味、推荐设计模式、重构建议 | 不阻塞流程 |
|
|
220
|
+
|
|
221
|
+
### 🇺🇸 Responsibility Boundaries
|
|
222
|
+
|
|
223
|
+
| Skill | Position | Core Responsibility | Blocking |
|
|
224
|
+
|------|----------|---------------------|----------|
|
|
225
|
+
| **pdd-code-reviewer** | Process compliance review | Verify code implements spec requirements | Critical issues block |
|
|
226
|
+
| **expert-code-quality** | Code quality deep analysis | Identify code smells, recommend design patterns, refactoring suggestions | Non-blocking |
|
|
227
|
+
|
|
228
|
+
### 🇨🇳 协作流程
|
|
229
|
+
代码实现完成 → pdd-code-reviewer(合规性审查) → [有Critical]返回修复 | [无Critical] → expert-code-quality(质量深度分析) → 生成质量改进任务(improvement-tasks.md,不阻塞) → 进入pdd-verify-feature
|
|
230
|
+
|
|
231
|
+
### 🇺🇸 Collaboration Workflow
|
|
232
|
+
Code implementation complete → pdd-code-reviewer (compliance review) → [Has Critical] return for fix | [No Critical] → expert-code-quality (quality deep analysis) → Generate quality improvement tasks (improvement-tasks.md, non-blocking) → Enter pdd-verify-feature
|
|
233
|
+
|
|
234
|
+
### 🇨🇳 问题处理策略
|
|
235
|
+
|
|
236
|
+
| 问题来源 | 级别 | 是否阻塞 | 处理方式 |
|
|
237
|
+
|---------|------|---------|---------|
|
|
238
|
+
| pdd-code-reviewer | Critical | ✅ 阻塞 | 必须修复后才能继续 |
|
|
239
|
+
| pdd-code-reviewer | Warning/Suggestion | ❌ 不阻塞 | 记录,建议修复/可选优化 |
|
|
240
|
+
| expert-code-quality | 任何级别 | ❌ 不阻塞 | 记录到质量改进清单 |
|
|
241
|
+
|
|
242
|
+
**质量改进任务处理时机**: 模块所有功能点完成后统一处理 | 输出: `dev-specs/FP-{模块}-{序号}/improvement-tasks.md`
|
|
243
|
+
|
|
244
|
+
### 🇺🇸 Issue Handling Strategy
|
|
245
|
+
|
|
246
|
+
| Issue Source | Level | Blocking? | Handling Method |
|
|
247
|
+
|--------------|-------|-----------|-----------------|
|
|
248
|
+
| pdd-code-reviewer | Critical | ✅ Block | Must fix before proceeding |
|
|
249
|
+
| pdd-code-reviewer | Warning/Suggestion | ❌ Non-blocking | Record, suggest fix/optional optimization |
|
|
250
|
+
| expert-code-quality | Any level | ❌ Non-blocking | Record to quality improvement list |
|
|
251
|
+
|
|
252
|
+
**Quality Improvement Task Timing**: Process uniformly after all feature points in module are complete | Output: `dev-specs/FP-{module}-{sequence}/improvement-tasks.md`
|
|
253
|
+
|
|
254
|
+
## Guardrails / Guardrails
|
|
255
|
+
|
|
256
|
+
- 必须对照规格逐项审查 / Must review item-by-item against specs
|
|
257
|
+
- 问题必须准确引用相关代码 / Issues must accurately reference relevant code
|
|
258
|
+
- CRITICAL问题必须修复后才能通过 / CRITICAL issues must be fixed before passing
|
|
259
|
+
- 审查报告必须完整记录所有问题 / Review report must completely record all issues
|
|
260
|
+
- **架构问题必须咨询架构师技能** / **Architecture issues must consult architect skills**
|
|
261
|
+
- **代码质量问题必须咨询 expert-code-quality** / **Code quality issues must consult expert-code-quality**
|
|
262
|
+
|
|
263
|
+
## 与其他技能协作 / Collaboration with Other Skills
|
|
264
|
+
|
|
265
|
+
| 协作技能 | 协作方式 | 传入数据 | 期望输出 |
|
|
266
|
+
|---------|---------|---------|---------|
|
|
267
|
+
| **software-architect** | Consultation | 架构问题 | 架构建议 |
|
|
268
|
+
| **system-architect** | Consultation | 系统问题 | 系统建议 |
|
|
269
|
+
| **expert-code-quality** | Consultation | 代码问题 | 重构方案 |
|
|
270
|
+
| **pdd-implement-feature** | Loop | 问题列表 | 修复后的代码 |
|
|
271
|
+
| **pdd-verify-feature** | Sequential | 审查通过的代码 | 验收报告 |
|
|
272
|
+
|
|
273
|
+
| Collaborating Skill | Collaboration Mode | Input Data | Expected Output |
|
|
274
|
+
|---------------------|-------------------|------------|------------------|
|
|
275
|
+
| **software-architect** | Consultation | Architecture issues | Architecture advice |
|
|
276
|
+
| **system-architect** | Consultation | System issues | System advice |
|
|
277
|
+
| **expert-code-quality** | Consultation | Code issues | Refactoring plan |
|
|
278
|
+
| **pdd-implement-feature** | Loop | Issue list | Fixed code |
|
|
279
|
+
| **pdd-verify-feature** | Sequential | Code passed review | Acceptance report |
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
|
|
283
|
+
## Iron Law / Iron Laws (The Five Unbreakable Rules)
|
|
284
|
+
|
|
285
|
+
### 🇨🇳 铁律(中文)
|
|
286
|
+
|
|
287
|
+
1. **规格对照优先**: 代码审查的核心是验证实现是否符合规格,而非评判代码"好坏"。所有Critical问题必须基于规格的明确要求。
|
|
288
|
+
|
|
289
|
+
2. **职责边界清晰**: pdd-code-reviewer负责合规性审查(是否实现了规格要求),代码质量深度分析(设计模式、重构建议)委托给expert-code-quality,不得越界做深度质量分析。
|
|
290
|
+
|
|
291
|
+
3. **问题必须可操作**: 每个问题都必须包含具体的文件位置、问题描述和修复建议,不得给出模糊的"代码质量有待提高"式反馈。
|
|
292
|
+
|
|
293
|
+
4. **架构问题必升级**: 发现模块边界不清、接口设计偏离等架构问题时,必须调用software-architect或system-architect,不得自行做出架构判断。
|
|
294
|
+
|
|
295
|
+
5. **Critical阻塞原则**: Critical问题必须修复后才能通过审查,不得因"时间紧"而降级为Warning或忽略。
|
|
296
|
+
|
|
297
|
+
### 🇺🇸 Iron Laws (English)
|
|
298
|
+
|
|
299
|
+
1. **Spec-First Principle**: The core of code review is to verify whether implementation conforms to specs, not to judge whether code is "good" or "bad". All CRITICAL issues must be based on explicit spec requirements.
|
|
300
|
+
|
|
301
|
+
2. **Clear Responsibility Boundaries**: pdd-code-reviewer is responsible for compliance review (whether spec requirements are implemented). Deep code quality analysis (design patterns, refactoring suggestions) should be delegated to expert-code-quality. Do not overstep into deep quality analysis.
|
|
302
|
+
|
|
303
|
+
3. **Issues Must Be Actionable**: Every issue must include specific file location, issue description, and fix suggestion. Do not give vague feedback like "code quality needs improvement".
|
|
304
|
+
|
|
305
|
+
4. **Architecture Issues Must Escalate**: When architecture issues such as unclear module boundaries or interface design deviation are detected, must invoke software-architect or system-architect. Do not make architecture judgments independently.
|
|
306
|
+
|
|
307
|
+
5. **CRITICAL Blocking Principle**: CRITICAL issues must be fixed before passing review. Do not downgrade to Warning or ignore due to "tight schedule".
|
|
308
|
+
|
|
309
|
+
### 🇨🇳 违规示例
|
|
310
|
+
|
|
311
|
+
❌ 以个人编码偏好提出Critical问题 | ❌ 在code-reviewer中深入分析代码异味并提出重构方案 | ❌ 写"Service层实现有问题"而不指出具体方法 | ❌ 发现模块依赖方向错误但不调用software-architect | ❌ SQL注入风险标记为Suggestion级别
|
|
312
|
+
|
|
313
|
+
### 🇺🇸 Violation Examples
|
|
314
|
+
|
|
315
|
+
❌ Raising CRITICAL issues based on personal coding preferences | ❌ Deeply analyzing code smells and proposing refactoring plans in code-reviewer | ❌ Writing "Service layer implementation has problems" without specifying the exact method | ❌ Detecting module dependency direction errors but not invoking software-architect | ❌ Marking SQL injection risks as Suggestion level
|
|
316
|
+
|
|
317
|
+
### 🇨🇳 合规示例
|
|
318
|
+
|
|
319
|
+
✅ 每个Critical问题引用spec.md具体章节 | ✅ 发现代码异味时转交expert-code-quality深度分析 | ✅ 问题描述精确:"TransferApplyServiceImpl.java:142 缺少底价校验逻辑,规格要求参考BR-001" | ✅ 发现模块依赖错误时调用software-architect | ✅ SQL注入问题标记为Critical并阻止通过
|
|
320
|
+
|
|
321
|
+
### 🇺🇸 Compliance Examples
|
|
322
|
+
|
|
323
|
+
✅ Each CRITICAL issue references specific sections in spec.md | ✅ Delegate to expert-code-quality for deep analysis when code smells are detected | ✅ Precise issue description: "TransferApplyServiceImpl.java:142 Missing floor price validation logic, refer to BR-001 in specs" | ✅ Invoke software-architect when module dependency errors are detected | ✅ Mark SQL injection as CRITICAL and block passage
|
|
324
|
+
|
|
325
|
+
---
|
|
326
|
+
|
|
327
|
+
## Rationalization Table / Rationalization Table
|
|
328
|
+
|
|
329
|
+
| # | Trap / 陷阱 | Question / 请问自己 | Action / 应该怎么做 |
|
|
330
|
+
|---|-------------|---------------------|---------------------|
|
|
331
|
+
| 1 | "这段代码写法不好看" / "This code doesn't look good" | 代码风格偏好不是Critical问题的依据,除非违反项目规范 / Code style preference is not a basis for CRITICAL issues unless it violates project standards | 区分"风格偏好"和"规范违规",只有后者才能作为Critical问题 / Distinguish between "style preference" and "standard violation"; only the latter can be a CRITICAL issue |
|
|
332
|
+
| 2 | "这个重构很重要,我直接提吧" / "This refactoring is important, I'll just propose it" | 重构建议属于质量分析范畴,应在expert-code-quality阶段处理 / Refactoring suggestions belong to quality analysis and should be handled in expert-code-quality phase | 记录为Suggestion级别的改进建议,不阻塞当前流程 / Record as Suggestion-level improvement, do not block current workflow |
|
|
333
|
+
| 3 | "架构问题我大概知道怎么改,直接说吧" / "I roughly know how to fix this architecture issue, let me just say it" | 架构决策影响范围广,需要专业评估 / Architecture decisions have wide impact and require professional evaluation | 必须调用架构师技能获取正式建议后再整合到报告中 / Must invoke architect skills to get formal advice before integrating into report |
|
|
334
|
+
| 4 | "这个问题有点严重,但不想让实现者返工" / "This issue is somewhat serious, but I don't want the implementer to rework" | 放宽标准会导致缺陷流入生产环境,后续修复成本更高 / Relaxing standards will cause defects to enter production, with higher future fix costs | 坚持按标准分级,Critical就是Critical,不能因人情放宽 / Stick to standard classification; CRITICAL is CRITICAL, cannot relax due to personal relationships |
|
|
335
|
+
| 5 | "这个安全问题应该不会触发吧" / "This security issue probably won't be triggered" | 安全问题一旦被利用就是重大事故,不能抱侥幸心态 / Once exploited, security issues become major incidents; cannot rely on luck | 所有安全漏洞(SQL注入/XSS/权限绕过)一律定为Critical / All security vulnerabilities (SQL injection/XSS/authorization bypass) must be classified as CRITICAL |
|
|
336
|
+
|
|
337
|
+
### 🇨🇳 常见陷阱
|
|
338
|
+
|
|
339
|
+
1. **"主观审查"陷阱**: 以个人偏好代替客观标准 → 建立"问题分级依据表":每个问题必须引用规格、规范或安全标准
|
|
340
|
+
2. **"角色越位"陷阱**: 在合规审查中过度深入代码质量领域 → 明确职责边界:规格符合性=code-reviewer,代码质量=expert-code-quality
|
|
341
|
+
3. **"模糊反馈"陷阱**: 问题描述过于笼统无法指导修复 → 强制执行"问题描述五要素":位置、现象、预期、实际、建议
|
|
342
|
+
4. **"架构擅断"陷阱**: 自行判断架构问题而不咨询专家 → 设定"架构红线",触线即调用对应架构师技能
|
|
343
|
+
|
|
344
|
+
### 🇺🇸 Common Traps
|
|
345
|
+
|
|
346
|
+
1. **"Subjective Review" Trap**: Using personal preferences instead of objective standards → Establish "Issue Classification Basis Table": Every issue must reference specs, standards, or security standards
|
|
347
|
+
2. **"Role Overstepping" Trap**: Over-deepening into code quality domain during compliance review → Clarify responsibility boundaries: Spec compliance = code-reviewer, Code quality = expert-code-quality
|
|
348
|
+
3. **"Vague Feedback" Trap**: Issue descriptions too general to guide fixes → Enforce "Five Elements of Issue Description": Location, phenomenon, expected, actual, suggestion
|
|
349
|
+
4. **"Architecture Assumption" Trap**: Making independent architecture judgments without consulting experts → Set "Architecture Red Lines"; when crossed, immediately invoke corresponding architect skill
|
|
350
|
+
|
|
351
|
+
---
|
|
352
|
+
|
|
353
|
+
## Red Flags / Red Flags
|
|
354
|
+
|
|
355
|
+
### Layer 1: 输入检查 / Input Validation Guards - 3 guards
|
|
356
|
+
|
|
357
|
+
- **INPUT-CR-001**: 代码文件为空或不包含任何实现内容 → 🔴 CRITICAL → 终止并提示先完成代码实现 / Terminate and prompt to complete code implementation first
|
|
358
|
+
- **INPUT-CR-002**: spec.md缺失导致无法进行规格对照 → 🔴 CRITICAL → 终止并提示缺少规格文档 / Terminate and prompt for missing spec document
|
|
359
|
+
- **INPUT-CR-003**: 代码与规格的功能点ID不匹配 → 🟡 WARN → 提示用户确认审查对象是否正确 / Prompt user to confirm review target is correct
|
|
360
|
+
|
|
361
|
+
### Layer 2: 执行检查 / Execution Checks Guards - 4 guards
|
|
362
|
+
|
|
363
|
+
- **EXEC-CR-001**: 提出的Critical问题无法追溯到规格文档或编码规范 → 🔴 CRITICAL → 补充依据或调整问题级别 / Supplement evidence or adjust issue level
|
|
364
|
+
- **EXEC-CR-002**: 发现代码质量问题但未转交expert-code-quality而是自行深度分析 → 🟡 WARN → 记录质量问题并标注将在expert-code-quality阶段处理 / Record quality issues and mark for expert-code-quality phase
|
|
365
|
+
- **EXEC-CR-003**: 发现架构问题但未调用架构师技能 → 🔴 CRITICAL → 暂停审查,先完成架构咨询 / Pause review, complete architecture consultation first
|
|
366
|
+
- **EXEC-CR-004**: 安全漏洞(SQL注入/XSS/权限绕过)未标记为Critical → 🔴 CRITICAL → 修正问题级别为Critical / Correct issue level to CRITICAL
|
|
367
|
+
|
|
368
|
+
### Layer 3: 输出检查 / Output Validation Guards - 3 guards
|
|
369
|
+
|
|
370
|
+
- **OUTPUT-CR-001**: 审查报告缺少问题分级汇总(Critical/Warning/Suggestion数量) → 🔴 CRITICAL → 补充分级统计 / Supplement classification statistics
|
|
371
|
+
- **OUTPUT-CR-002**: 报告结论为"通过"但存在未解决的Critical问题 → 🔴 CRITICAL → 修正结论为"需要修复" / Correct conclusion to "Requires fix"
|
|
372
|
+
- **OUTPUT-CR-003**: 问题列表中存在无法定位到具体代码行的问题 → 🟡 WARN → 补充精确的代码位置引用 / Supplement precise code location references
|
|
373
|
+
|
|
374
|
+
### 🇨🇳 触发Red Flag时的处理流程
|
|
375
|
+
🔴 CRITICAL → 立即停止,报告问题详情,等待指示 | 🟡 WARN → 记录警告到审查日志,尝试自动修复,在最终报告中标注 | 🔵 INFO → 记录信息,正常继续
|
|
376
|
+
|
|
377
|
+
### 🇺🇸 Red Flag Trigger Handling Procedure
|
|
378
|
+
🔴 CRITICAL → Stop immediately, report issue details, await instructions | 🟡 WARN → Log warning to review log, attempt auto-fix, annotate in final report | 🔵 INFO → Record information, continue normally
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name": "pdd-code-reviewer", "version": "1.0.0", "category": "core", "description": "PDD framework code reviewer that validates feature implementation against development specs and acceptance criteria. Call this Skill when reviewing code changes, checking quality gates, validating PDD compliance, or detecting deviations from specs. 支持中文触发:代码审查、代码review、PDD审查、代码质量检查、实现审查。", "triggers": ["代码审查", "代码review", "PDD审查", "代码质量检查", "实现审查", "code review", "code inspection", "quality check", "PDD review", "review code"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"name": "SKILL.md-exists", "description": "技能文件存在且格式正确", "type": "structure", "expect": {"exists": true, "hasDescription": true}, "checks": {"file_exists": "SKILL.md"}}, {"name": "_meta.json-valid", "description": "元数据文件格式正确", "type": "structure", "expect": {"exists": true, "hasName": true, "hasVersion": true, "hasTriggers": true}, "checks": {"file_exists": "_meta.json"}}, {"name": "has-behavior-shaping", "description": "包含完整的行为塑造章节", "type": "quality", "expect": {"complete": true}, "contains": ["Iron Law", "Rationalization", "Red Flags"]}, {"name": "review-dimensions-defined", "description": "定义了代码审查维度(结构/逻辑/质量)", "type": "content", "contains": ["审查", "维度", "结构", "逻辑", "质量", "PDD合规"]}, {"name": "report-format-defined", "description": "明确了审查报告输出格式", "type": "content", "contains": ["报告", "输出", "问题", "建议", "format"]}]
|