pdd-code-reviewer
Skill41 starsChanged 8 months agoMITView on GitHub
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代码审查。
1 other project uses a version of this.
Adopted by
Most recently taken up by
- wonderslife/pdd-skills-v3their own version, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- wonderslife/pdd-skills-v3★ 15same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- expert-activitiSkill
- expert-arch-enforcerSkill
- expert-auto-refactorSkill
- expert-code-qualitySkill
- expert-entropy-auditorSkill
- expert-mysqlSkill
- expert-ruoyiSkill
- official-doc-writerSkill
- pdd-baSkill
- pdd-doc-changeSkill
- pdd-doc-gardenerSkill
- pdd-entropy-reductionSkill
- pdd-extract-featuresSkill
- pdd-generate-specSkill
- pdd-implement-featureSkill
- pdd-mainSkill
- pdd-pr-batchSkill
- pdd-pr-createSkill
- pdd-pr-mergeSkill
- pdd-pr-reviewSkill
- pdd-verify-featureSkill
- software-architectSkill
- software-engineerSkill
- system-architectSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
When architecture issues are discovered during code review, invoke architect skills as needed:
- Distinctive: line 48
When technical issues are discovered during code review, invoke expert-xxx as needed:
- Distinctive: line 59
All code files must undergo basic review
- Distinctive: line 60
Verify implementation completeness against specifications
- Very specific: line 146
Read specification definitions from dev-specs/FP-{number}/spec.md.
- Distinctive: line 304
Must review against specifications item by item
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
| Version | Date | Changes |
| 2.1 | 2026-03-22 | Added collaboration with expert-code-quality: review first then analyze, quality issues do not block |
| 2.0 | 2026-03-21 | Added architect review invocation, integrated software-architect / system-architect |
| 1.0 | Early | Initial version |
1. Skill Integration
1.1 Architect Review
When architecture issues are discovered during code review, invoke architect skills as needed:
| Architect Skill | Trigger Condition | Service Content |
| software-architect | Architecture deviation, interface design issues discovered | Architecture recommendations, design patterns |
| system-architect | System architecture issues discovered | System architecture review |
1.2 Expert Consultation
When technical issues are discovered during code review, invoke expert-xxx as needed:
| Expert Skill | Trigger Condition | Service Content |
| expert-code-quality | Code smells, refactoring needs discovered | Refactoring solutions, design patterns |
| expert-ruoyi | RuoYi framework usage issues discovered | Framework best practices |
| expert-mysql | SQL issues discovered | Optimization 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:
# 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-reviewStep 7: Output Issue List
Return issue list for fixing:
{
"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 report5.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 recommendations5.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 recommendations6. 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
| Skill | Positioning | Core Responsibility | Blocking |
| pdd-code-reviewer | Process compliance review | Verify whether code implements specification requirements | Critical issues block |
| expert-code-quality | Code quality deep analysis | Identify code smells, recommend design patterns, refactoring suggestions | Does 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-feature7.3 Issue Handling Strategy
| Issue Source | Level | Blocking | Handling Method |
| pdd-code-reviewer | Critical | ✅ Blocks | Must fix before continuing |
| pdd-code-reviewer | Warning | ❌ Does not block | Record, recommend fixing |
| pdd-code-reviewer | Suggestion | ❌ Does not block | Record, optional optimization |
| expert-code-quality | Any level | ❌ Does not block | Record 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 Skill | Collaboration Method | Input Data | Expected Output |
| software-architect | Consultation | Architecture issues | Architecture recommendations |
| system-architect | Consultation | System issues | System recommendations |
| expert-code-quality | Consultation | Code issues | Refactoring solutions |
| expert-ruoyi | Consultation | Framework issues | Best practices |
| pdd-implement-feature | Loop | Issue list | Fixed code |
| pdd-verify-feature | Sequential | Code passed review | Acceptance report |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

