Best Practices
One-Line Positioning
Best Practices ensure efficient team collaboration — Practical experience summary on standard formulation, code review, documentation maintenance, and team collaboration.
6.1 Team Collaboration Standards
6.1.1 Role Responsibility Definitions
| Role |
Responsibility |
Skill Requirements |
| Planner |
Requirement analysis, task breakdown |
Architectural thinking, communication skills |
| Developer |
Code implementation, unit testing |
Coding ability, testing awareness |
| Reviewer |
Code review, quality gatekeeping |
Code sensitivity, standard understanding |
| QA |
Quality assurance, test verification |
Test design, risk identification |
| Facilitator |
Coordination, progress tracking |
Project management, conflict resolution |
6.1.2 Workflow Selection
| Scenario |
Recommended Workflow |
Rationale |
| New Feature Development |
PlanEx |
Planning-execution separation, reduces risk |
| Bug Fix |
Lifecycle |
Complete closed loop, ensures fix quality |
| Code Refactoring |
IterDev |
Iterative improvement, continuous optimization |
| Technical Decision |
Brainstorm |
Multi-perspective analysis, comprehensive consideration |
| Issue Management |
Issue |
Traceable, manageable |
| UI Development |
UIDesign |
Seamless design-to-code transition |
6.1.3 Communication Protocols
Message Format
Status Reporting
| Status |
Meaning |
Next Action |
| pending |
Pending |
Wait for dependencies to complete |
| in_progress |
In progress |
Continue execution |
| completed |
Completed |
Can be depended upon |
| blocked |
Blocked |
Manual intervention required |
6.2 Code Review Process
6.2.1 Review Dimensions
| Dimension |
Check Items |
Severity |
| Correctness |
Logic correct, boundary handling |
HIGH |
| Performance |
Algorithm efficiency, resource usage |
MEDIUM |
| Security |
Injection vulnerabilities, permission checks |
HIGH |
| Maintainability |
Code clarity, modularity |
MEDIUM |
| Test Coverage |
Unit tests, boundary tests |
MEDIUM |
| Standard Compliance |
Coding standards, project conventions |
LOW |
6.2.2 Review Process
6.2.3 Review Checklist
Code Correctness
Performance
Security
Maintainability
Test Coverage
Standard Compliance
6.2.4 Feedback Format
6.3 Documentation Maintenance Strategy
6.3.1 Documentation Classification
| Type |
Location |
Update Frequency |
Owner |
| Spec Documents |
.workflow/specs/ |
As needed |
Architect |
| Reference Docs |
docs/ref/ |
Every change |
Developer |
| Guide Docs |
docs/guide/ |
Monthly |
Technical Writer |
| API Docs |
docs/api/ |
Auto-generated |
Tools |
| FAQ |
docs/faq.md |
Weekly |
Support Team |
6.3.2 Documentation Update Triggers
| Event |
Update Content |
| New Feature |
Add feature documentation and API reference |
| Spec Change |
Update spec documents and migration guide |
| Bug Fix |
Update FAQ and known issues |
| Architecture Change |
Update architecture docs and decision records |
| Code Review |
Supplement missing comments and docs |
6.3.3 Documentation Quality Standards
| Standard |
Requirement |
| Accuracy |
Consistent with actual code |
| Completeness |
Cover all public APIs |
| Clarity |
Easy to understand, sufficient examples |
| Timeliness |
Updated promptly, not lagging |
| Navigability |
Clear structure, easy to find |
6.4 Memory Management Best Practices
6.4.1 Memory Recording Triggers
| Trigger |
Record Content |
| Architecture Decisions |
Technology selection, design decisions |
| Problem Resolution |
Bug root cause, solutions |
| Experience Summary |
Best practices, gotchas |
| Standard Conventions |
Coding standards, naming conventions |
| Known Issues |
Bugs, limitations, TODOs |
6.4.2 Memory Format Standards
6.4.3 Memory Maintenance
| Maintenance Item |
Frequency |
Content |
| Deduplication |
Weekly |
Merge duplicate memories |
| Update |
As needed |
Update outdated content |
| Archive |
Monthly |
Archive historical memories |
| Cleanup |
Quarterly |
Delete useless memories |
6.5 Hook Usage Standards
6.5.1 Hook Types
| Hook Type |
Purpose |
Example |
| pre-command |
Inject specifications, load context |
Auto-load CLAUDE.md |
| post-command |
Save Memory, update index |
Auto-save decisions |
| pre-commit |
Code review, standard checks |
Auto-run Lint |
| file-change |
Auto-format, update index |
Auto-format code |
6.5.2 Hook Configuration Principles
| Principle |
Description |
| Minimize |
Only configure necessary Hooks |
| Idempotent |
Hook execution results are repeatable |
| Recoverable |
Hook failure doesn't affect main flow |
| Observable |
Hook execution has logging |
6.6 Team Collaboration Techniques
6.6.1 Conflict Resolution
| Conflict Type |
Resolution Strategy |
| Standard Conflict |
Team discussion, unify standards |
| Technical Disagreement |
Brainstorm, data-driven |
| Schedule Conflict |
Priority sorting, resource adjustment |
| Quality Conflict |
Set standards, automated checks |
6.6.2 Knowledge Sharing
| Method |
Frequency |
Content |
| Tech Sharing |
Weekly |
New technologies, best practices |
| Code Walkthrough |
Every PR |
Code logic, design approach |
| Documentation Sync |
Monthly |
Documentation updates, standard changes |
| Incident Retrospective |
Every incident |
Root cause analysis, improvements |
6.6.3 Efficiency Improvement
| Technique |
Effect |
| Templating |
Reuse successful patterns |
| Automation |
Reduce repetitive work |
| Tooling |
Improve development efficiency |
| Standardization |
Lower communication cost |
6.7 Quick Reference
Workflow Selection Guide
| Scenario |
Workflow |
Command |
| New Feature |
PlanEx |
/workflow-plan |
| Bug Fix |
Lifecycle |
/unified-execute-with-file |
| Refactoring |
IterDev |
/refactor-cycle |
| Decision |
Brainstorm |
/brainstorm-with-file |
| UI Development |
UIDesign |
/workflow:ui-design |
Code Review Checklist
Memory Maintenance
| Operation |
Command |
| List memories |
ccw memory list |
| Search memories |
ccw memory search "..." |
| Import memory |
ccw memory import "..." |
| Export memory |
ccw memory export <id> |
Summary
Claude_dms3 best practices can be summarized as:
- Standards First - Establish clear team standards
- Process Assurance - Use appropriate workflows
- Quality Gatekeeping - Strict code review
- Knowledge Accumulation - Continuously maintain Memory and documentation
- Continuous Improvement - Regular retrospectives and optimization
Related Links