From droids
[DROIDS-INTERNAL] Code quality standards and review guidelines. Only activate when invoked by droids plugin agents (code-reviewer) or /droids:* commands. Do NOT auto-activate in regular conversations.
npx claudepluginhub cheluen/droids-workflow --plugin droidsThis skill uses the workspace's default tool permissions.
Use these guidelines when reviewing code quality.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Use these guidelines when reviewing code quality.
userEmail, isActive)getUserById, validateInput)UserService, PaymentProcessor)MAX_RETRY_COUNT, API_BASE_URL)// Good: Specific error handling
try {
await saveUser(user);
} catch (error) {
if (error instanceof ValidationError) {
return res.status(400).json({ error: error.message });
}
if (error instanceof DatabaseError) {
logger.error('Database error:', error);
return res.status(500).json({ error: 'Internal error' });
}
throw error; // Re-throw unknown errors
}
src/
├── components/ # UI components
├── services/ # Business logic
├── utils/ # Helper functions
├── types/ # Type definitions
├── constants/ # Constants and config
└── tests/ # Test files
| Principle | Description |
|---|---|
| Single Responsibility | One reason to change |
| Open/Closed | Open for extension, closed for modification |
| Liskov Substitution | Subtypes must be substitutable |
| Interface Segregation | Many specific interfaces |
| Dependency Inversion | Depend on abstractions |
| Level | Description | Action |
|---|---|---|
| BLOCKER | Prevents merge | Must fix |
| MAJOR | Significant issue | Should fix |
| MINOR | Improvement | Consider fixing |
| SUGGESTION | Nice to have | Optional |