code-style-reviewer
Code style principle-based review - checks SRP (Single Responsibility Principle), DRY (Don't Repeat Yourself), Simplicity First, YAGNI (You Aren't Gonna Need It), and Type Safety. Also evaluates code structure and naming conventions. Automatically used when code review is needed.
What this skill does
# Code Style Reviewer
A skill that provides professional code review based on code style principles. Claude directly analyzes code and generates detailed reports focusing on 5 core principles.
## Review Principles
### 1. Single Responsibility Principle (SRP)
Classes, functions, and modules should have only one responsibility. Complex functions should be split into smaller functions.
### 2. DRY (Don't Repeat Yourself)
The same logic should not be repeated. Common logic should be extracted into separate functions or utilities.
### 3. Simplicity First
Prefer simple, easy-to-understand code over complex abstractions. Avoid over-engineering.
### 4. YAGNI (You Aren't Gonna Need It)
Do not add features that are not currently needed. Remove unnecessary code written for future use.
### 5. Type Safety
Minimize the use of `any` type. When using TypeScript, define clear types.
## Instructions
### Review Process
1. **Identify Target Files**
- Read code files to review using the Read tool
- Understand file structure and scope
2. **Principle-by-Principle Analysis**
- Systematically review each file against the 5 principles
- Use Grep to find repeating patterns
- Check naming convention consistency
3. **Generate Detailed Report**
- Write reports organized by file
- Provide specific improvement suggestions for each issue
- Mark priorities:
- **Critical**: Must be fixed
- **Warning**: Needs improvement
- **Suggestion**: Worth considering
4. **Provide Code Examples**
- Present "Problem Code" vs "Improved Code" examples for each issue
- Clearly explain the reason for the change
## Review Checklist
### Single Responsibility Principle Check
- [ ] Does the function perform only one task?
- [ ] Does the class have only one responsibility?
- [ ] Is complex logic split into smaller functions?
- [ ] Is the function length appropriate? (Recommended: under 20 lines)
### DRY Check
- [ ] Is there repeated code?
- [ ] Has common logic been extracted?
- [ ] Are config values not hardcoded?
- [ ] Can similar code structures be consolidated?
### Simplicity First Check
- [ ] Are there unnecessary abstractions?
- [ ] Are simple expressions used instead of complex syntax?
- [ ] Is there deep nesting? (Recommended: within 3 levels)
- [ ] Is there overly clever code?
### YAGNI Check
- [ ] Is there unused code?
- [ ] Are there unnecessary features added "just in case"?
- [ ] Are there removable parameters?
- [ ] Is there dead code or commented-out code?
### Type Safety Check (TypeScript)
- [ ] Is `any` type used?
- [ ] Do all function parameters have types defined?
- [ ] Are return types explicit?
- [ ] Are `interface` and `type` used appropriately?
### Naming Convention Check
- [ ] Are variable names meaningful and clear?
- [ ] Do function names start with verbs?
- [ ] Are class names nouns in PascalCase?
- [ ] Are constants in UPPER_SNAKE_CASE?
- [ ] Are naming conventions consistent?
## Examples
See [EXAMPLES.md](EXAMPLES.md) for detailed examples and patterns
See [PRINCIPLES.md](PRINCIPLES.md) for detailed principle explanations
## Review Output Format
```
# Code Style Review Report
## ๐ File: [filename]
### โ
Good Points
- [Good practices]
### โ ๏ธ Critical Issues
**Issue 1: [Title]**
- Location: [Line or function name]
- Principle: [Applicable principle]
- Description: [Detailed explanation]
- How to improve:
```
// Before
[Current code]
// After
[Improved code]
```
### ๐ข Warnings
[Warning-level issues]
### ๐ก Suggestions
[Suggestion-level improvements]
## ๐ Overall Assessment
- Overall code quality score: [X/10]
- Most important improvements: [Top 3]
```
## Usage Scenarios
This skill is automatically used in the following situations:
- When code review is requested
- When code quality analysis is requested
- When code structure improvement advice is needed
- When checking style of new files
- When suggesting refactoring for existing code
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.