Logo Pdd Code Reviewer

Pdd Code Reviewer

Cộng đồng
wonderslife
pdd-code-reviewer

Code review Skill under PDD framework, verifying whether feature implementation meets development specifications and acceptance criteria. Automatically triggered after feature implementation or manually invoked. 支持中文触发:代码审查、代码评审、审查代码、检查代码、PDD代码审查。

Tổng quan

Nhà phát hànhwonderslife
Kho mãpdd-skills
Tên kỹ năngpdd-code-reviewer
Sao
41
Bản fork
11
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được wonderslife công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Pdd Code Reviewer trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/wonderslife/pdd-skills/tree/main/pdd-code-reviewer
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wonderslife/pdd-skills.git /tmp/pdd-skills
mkdir -p .claude/skills
cp -r /tmp/pdd-skills/pdd-code-reviewer .claude/skills/pdd-code-reviewer
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Pdd Code Reviewer trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Pdd Code Reviewer ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Pdd Code Reviewer với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Code Review - Verify whether feature implementation meets development specifications

Input:

  • Code files
  • Development specifications (spec.md)
  • Acceptance criteria (checklist.md)

Output:

  • Review report (docs/reviews/review-{timestamp}.md)
  • Issue list (issues)

Version History

VersionDateChanges
2.12026-03-22Added collaboration with expert-code-quality: review first then analyze, quality issues do not block
2.02026-03-21Added architect review invocation, integrated software-architect / system-architect
1.0EarlyInitial version

1. Skill Integration

1.1 Architect Review

When architecture issues are discovered during code review, invoke architect skills as needed:

Architect SkillTrigger ConditionService Content
software-architectArchitecture deviation, interface design issues discoveredArchitecture recommendations, design patterns
system-architectSystem architecture issues discoveredSystem architecture review

1.2 Expert Consultation

When technical issues are discovered during code review, invoke expert-xxx as needed:

Expert SkillTrigger ConditionService Content
expert-code-qualityCode smells, refactoring needs discoveredRefactoring solutions, design patterns
expert-ruoyiRuoYi framework usage issues discoveredFramework best practices
expert-mysqlSQL issues discoveredOptimization recommendations

1.3 Invocation Conditions

Must perform basic review:

  • All code files must undergo basic review
  • Verify implementation completeness against specifications

Invoke architects as needed:

  • Module boundaries unclear discovered
  • Interface design deviation discovered
  • Architecture pattern issues discovered

Invoke experts as needed:

  • Code quality issues discovered
  • Framework usage issues discovered
  • Database design issues discovered

2. Review Dimensions

2.1 Design Consistency

  • Whether code implementation is consistent with specification description
  • Whether interface paths conform to specification definition
  • Whether request/response structures conform to specifications
  • Whether business logic follows specification definition

2.2 Code Quality

  • Code readability
  • Naming conventions
  • Error handling completeness
  • Comment quality

2.3 Security

  • Parameter validation
  • SQL injection protection
  • XSS protection
  • Permission validation

2.4 Performance

  • Database query efficiency
  • Loop processing optimization
  • Cache usage

2.5 Business Logic

  • State transition correctness
  • Business rule execution
  • Exception handling

3. Issue Classification

3.1 CRITICAL - Must Fix

  • Feature implementation severely deviates from specifications
  • Core business process has errors
  • Severe security vulnerabilities
  • Data consistency issues

3.2 WARNING - Recommended to Fix

  • Code readability issues
  • Incomplete error handling
  • Potential performance issues
  • Non-compliance with coding standards

3.3 SUGGESTION - Optional Optimization

  • Code optimization suggestions
  • Refactoring suggestions
  • Best practice recommendations

4. Process Steps

Step 1: Collect Code Files

Collect code files to be reviewed:

  • Backend code: Controller, Service, Mapper, Domain
  • Frontend code: Vue components, API interfaces
  • Database scripts: SQL files

Step 2: Read Development Specifications

Read specification definitions from dev-specs/FP-{number}/spec.md.

Step 3: Execute Basic Review

Review against specifications item by item:

a. Interface Review

  • Whether interface path is correct
  • Whether request method is correct
  • Whether parameter handling is complete
  • Whether response structure matches

b. Business Logic Review

  • Whether processing flow is correct
  • Whether state transitions are complete
  • Whether validation rules are executed

c. Data Model Review

  • Whether field mapping is correct
  • Whether type definitions are consistent
  • Whether audit fields are complete

Step 4: Execute Code Quality Review

Invoke expert-code-quality (if code quality issues discovered):

  • Code smell detection
  • Refactoring suggestions
  • Design pattern recommendations

Step 5: Architecture Deviation Check

Invoke software-architect (if architecture issues discovered):

  • Module boundary check
  • Interface design check
  • Architecture pattern check

Step 6: Generate Review Report

Output review report to docs/reviews/review-{timestamp}.md:

markdown
# Code Review Report

## Basic Information
| Item | Content |
|------|------|
| Feature Point | FP-XXX-NNN |
| Review Date | {date} |
| Reviewer | AI |
| Code Files | [...files...] |

## Review Results

### Passed Items
| Review Item | Status | Description |
|--------|------|------|
| Interface Design | ✓ | Conforms to specifications |
| ... | ... | ... |

### CRITICAL Issues
| No. | Issue Description | File | Recommendation |
|------|---------|------|------|
| 1 | ... | file.java | Fix solution |

### WARNING Issues
| No. | Issue Description | File | Recommendation |
|------|---------|------|------|
| 1 | ... | file.java | Optimization suggestion |

### SUGGESTION Issues
| No. | Issue Description | File | Recommendation |
|------|---------|------|------|
| 1 | ... | file.java | Refactoring suggestion |

## Architecture Review (if any)
### software-architect Review Comments
### system-architect Review Comments

## Conclusion
- [ ] Passed review
- [ ] Requires fix and re-review

Step 7: Output Issue List

Return issue list for fixing:

json
{
  "critical": [...],
  "warning": [...],
  "suggestion": [...]
}

5. Architecture Review Process

pdd-code-reviewer discovers architecture issues
    │
    ├─► Determine architecture issue type
    │       │
    │       ├── Software architecture issues
    │       │       │
    │       │       ▼
    │       │   software-architect consultation
    │       │       │
    │       │       ▼
    │       │   Return architecture recommendations
    │       │
    │       └── System architecture issues
    │               │
    │               ▼
    │           system-architect consultation
    │               │
    │               ▼
    │           Return system recommendations
    │
    └─► Integrate into review report

5.1 software-architect Invocation Example

Trigger condition: Module boundaries unclear discovered
Invoke: software-architect
Input:
  - Problem description: Module A depends on Module C, violating layering principles
  - Related code: [code snippet]
  - Existing architecture: [module relationship diagram]

Return:
  - Architecture issue analysis
  - Refactoring recommendations
  - Design pattern recommendations

5.2 system-architect Invocation Example

Trigger condition: System scalability issues discovered
Invoke: system-architect
Input:
  - Problem description: Current architecture cannot support future multi-tenant expansion
  - Existing architecture: [architecture diagram]
  - Expansion requirements: Support 100+ tenants

Return:
  - Architecture evaluation
  - Evolution roadmap
  - Technical decision recommendations

6. Guardrails

  • Must review against specifications item by item
  • Issues must accurately reference related code
  • CRITICAL issues must be fixed before passing
  • Review reports must completely record all issues
  • Architecture issues must consult architect skills
  • Code quality issues must consult expert-code-quality

7. Collaboration with expert-code-quality

7.1 Responsibility Boundaries

SkillPositioningCore ResponsibilityBlocking
pdd-code-reviewerProcess compliance reviewVerify whether code implements specification requirementsCritical issues block
expert-code-qualityCode quality deep analysisIdentify code smells, recommend design patterns, refactoring suggestionsDoes not block process

7.2 Collaboration Process

Code implementation completed
    │
    ▼
┌─────────────────────────────────┐
│   pdd-code-reviewer             │
│   (Compliance review)           │
│                                 │
│   - Verify specification implementation │
│   - Check interface consistency  │
│   - Verify business rules        │
└─────────────────────────────────┘
    │
    ├── Has Critical issues → Return to pdd-implement-feature for fixing
    │
    └── No Critical issues
            │
            ▼
    ┌─────────────────────────────────┐
    │   expert-code-quality           │
    │   (Quality deep analysis)       │
    │                                 │
    │   - Code smell detection        │
    │   - Design pattern recommendations │
    │   - Refactoring suggestions     │
    └─────────────────────────────────┘
            │
            ▼
    ┌─────────────────────────────────┐
    │   Generate quality improvement tasks │
    │   (improvement-tasks.md)        │
    │                                 │
    │   - Does not block current process │
    │   - Record to future optimization list │
    └─────────────────────────────────┘
            │
            ▼
        Enter pdd-verify-feature

7.3 Issue Handling Strategy

Issue SourceLevelBlockingHandling Method
pdd-code-reviewerCritical✅ BlocksMust fix before continuing
pdd-code-reviewerWarning❌ Does not blockRecord, recommend fixing
pdd-code-reviewerSuggestion❌ Does not blockRecord, optional optimization
expert-code-qualityAny level❌ Does not blockRecord to quality improvement list

7.4 Quality Improvement Task Handling

  • Timing: Process uniformly after all feature points in module are completed
  • Output file: dev-specs/FP-{module}-{number}/improvement-tasks.md
  • Process: Batch refactoring → Design pattern application → Code optimization → Re-verification

8. Collaboration with Other Skills

Collaborative SkillCollaboration MethodInput DataExpected Output
software-architectConsultationArchitecture issuesArchitecture recommendations
system-architectConsultationSystem issuesSystem recommendations
expert-code-qualityConsultationCode issuesRefactoring solutions
expert-ruoyiConsultationFramework issuesBest practices
pdd-implement-featureLoopIssue listFixed code
pdd-verify-featureSequentialCode passed reviewAcceptance report

Câu hỏi thường gặp

Kỹ năng AI Pdd Code Reviewer làm được gì?

Code review Skill under PDD framework, verifying whether feature implementation meets development specifications and acceptance criteria. Automatically triggered after feature implementation or manually invoked. 支持中文触发:代码审查、代码评审、审查代码、检查代码、PDD代码审查。

Vì sao nên dùng Pdd Code Reviewer trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Pdd Code Reviewer là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Pdd Code Reviewer trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/wonderslife/pdd-skills/tree/main/pdd-code-reviewer. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Pdd Code Reviewer?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Pdd Code Reviewer với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Pdd Code Reviewer với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Pdd Code Reviewer có miễn phí không?

Có. Kỹ năng này được wonderslife phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇