Use when reviewing code or before commits - runs 25-point quality checklist (structure, errors, security, performance, testing), identifies code smells, suggests refactorings with examples. Activates when user says "review this", "check my code", mentions "refactor", "optimize", "code quality", or before git commits.
Runs a 25-point code quality checklist covering structure, errors, security, performance, and testing. Activates when you request a review, mention refactoring/optimization, or before git commits.
/plugin marketplace add xbklairith/kisune/plugin install dev-workflow@kisuneThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Perform systematic code reviews, identify issues, suggest refactorings, and enforce best practices. Acts as an automated code reviewer catching problems before they reach production.
Activate this skill when:
/dev-workflow:review commandSingle Responsibility Principle (SRP)
DRY (Don't Repeat Yourself)
Function Length
Naming Clarity
Magic Numbers
All Errors Caught
No Silent Failures
User-Friendly Error Messages
Logging for Debugging
Edge Cases Covered
Input Validation
SQL Injection Prevention
XSS Prevention
Sensitive Data Handling
Environment Variables for Secrets
No N+1 Queries
Appropriate Caching
Database Indexes
Unnecessary Computations
Memory Leak Prevention
Tests Exist
Edge Cases Tested
Happy Path Tested
Error Conditions Tested
Tests Are Maintainable
Ask user what to review:
git diff --cached)git diff)Run appropriate git diff or read files:
# For staged changes
git diff --cached
# For unstaged changes
git diff
# For specific file
Read file_path
# For feature
git diff main...HEAD
Systematically go through:
UltraThink Architectural Issues: If review reveals fundamental architectural problems, activate deep thinking:
🗣 Say: "This code has architectural issues. Let me ultrathink whether refactoring or redesign is needed."
When to UltraThink:
Question deeply:
After UltraThink: Recommend tactical fixes (refactor) vs. strategic redesign with clear reasoning.
## Code Review: [File/Feature Name]
### ✅ Strengths
[List what's done well - be specific and encouraging]
- Clear function naming in authentication module
- Comprehensive error handling for API calls
- Good test coverage (87%)
### ⚠️ Issues Found
#### Priority: High - Must Fix Before Merge
1. **[Issue Title]**
- **Location:** `file.js:42`
- **Problem:** [Specific description]
- **Risk:** [What could go wrong]
- **Fix:** [How to resolve]
#### Priority: Medium - Should Address
1. **[Issue Title]**
- **Location:** `file.js:78`
- **Problem:** [Description]
- **Impact:** [Effect on code quality]
- **Suggestion:** [Improvement approach]
#### Priority: Low - Consider Improving
1. **[Issue Title]**
- **Location:** `file.js:120`
- **Note:** [Observation]
- **Enhancement:** [Optional improvement]
### 💡 Refactoring Suggestions
#### Suggestion 1: [Title]
**Current Code:**
```javascript
// Show problematic code
Refactored Code:
// Show improved version
Benefits:
[Similar format]
Overall Assessment: [Summary statement] Recommendation: [Approve/Request Changes/Reject]
[Confidence: X.X]
## Examples
### Example 1: Pre-Commit Review
**User:** "I'm about to commit, can you review my changes?"
**Assistant:**
Activating code-quality skill for pre-commit review.
Running: git diff --cached
Found changes in:
Performing comprehensive review...
src/auth/login.js:23Current Code:
const login = async (email, password) => {
const response = await api.post('/auth/login', { email, password });
return response.data;
};
Suggested Fix:
import { z } from 'zod';
const loginSchema = z.object({
email: z.string().email('Invalid email format'),
password: z.string().min(8, 'Password must be at least 8 characters')
});
const login = async (email, password) => {
// Validate inputs
const validated = loginSchema.parse({ email, password });
const response = await api.post('/auth/login', validated);
return response.data;
};
src/auth/login.js:23[...continues with full review...]
Overall Assessment: Good implementation with solid test coverage, but needs input validation and error handling before commit.
Recommendation: Request Changes - Fix high-priority issues before committing.
[Confidence: 0.9]
### Example 2: Refactoring Request
**User:** "Can you suggest improvements for src/utils/calculator.js?"
**Assistant:**
Activating code-quality skill for refactoring analysis.
Reading: src/utils/calculator.js
Analyzing code structure and quality...
Current Code:
function calculateFee(amount) {
return amount * 0.029 + 0.30;
}
Refactored Code:
const STRIPE_PERCENTAGE_FEE = 0.029;
const STRIPE_FIXED_FEE = 0.30;
function calculateFee(amount) {
return amount * STRIPE_PERCENTAGE_FEE + STRIPE_FIXED_FEE;
}
Benefits:
Current Code:
function calculateFee(amount) {
return amount * 0.029 + 0.30;
}
Refactored Code:
function calculateFee(amount) {
if (typeof amount !== 'number' || amount < 0) {
throw new Error('Amount must be a non-negative number');
}
return amount * STRIPE_PERCENTAGE_FEE + STRIPE_FIXED_FEE;
}
Benefits:
[...continues with more suggestions...]
Would you like me to apply these refactorings?
[Confidence: 0.9]
## Integration Points
- Works with `spec-driven` skill during execution phase
- Works with `git-workflow` skill for pre-commit reviews
- Works with `systematic-testing` skill to verify test quality
- Triggered automatically before commits if integrated
## Notes
- Be thorough but constructive
- Prioritize issues appropriately
- Always provide specific code examples
- Explain WHY something is an issue, not just WHAT
- Offer concrete solutions, not just criticism
- Balance between perfectionism and pragmatism
- Focus on high-impact improvements
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.