code-qualitylisted
Install: claude install-skill fusengine/agents
# Code Quality Skill
## 🚨 MANDATORY 7-PHASE WORKFLOW
```
PHASE 1: Exploration (explore-codebase) → BLOCKER
PHASE 2: Documentation (research-expert) → BLOCKER
PHASE 3: Impact Analysis (Grep usages) → BLOCKER
PHASE 3.5: DRY Detection (jscpd duplication) → NON-BLOCKING
PHASE 4: Error Detection (linters)
PHASE 5: Precision Correction (with docs + impact + DRY)
PHASE 6: Verification (re-run linters, tests, duplication)
```
**CRITICAL**: Phases 1-3 are BLOCKERS. Never skip them.
**DRY**: Phase 3.5 is non-blocking but findings inform Phase 5 corrections.
---
## PHASE 1: Architecture Exploration
**Launch explore-codebase agent FIRST**:
```
> Agent(subagent_type="fuse-ai-pilot:explore-codebase", prompt="...")
```
**Gather**:
1. Programming language(s) detected
2. Existing linter configs (.eslintrc, .prettierrc, pyproject.toml)
3. Package managers and installed linters
4. Project structure and conventions
5. Framework versions (package.json, go.mod, Cargo.toml)
6. Architecture patterns (Clean, Hexagonal, MVC)
7. State management (Zustand, Redux, Context)
8. Interface/types directories location
---
## PHASE 2: Documentation Research
**Launch research-expert agent**:
```
> Agent(subagent_type="fuse-ai-pilot:research-expert", prompt="Verify [library/framework] documentation for [error type]. Find [language] best practices for [specific issue].")
```
**Request for each error**:
- Official API documentation
- Current syntax and deprecations
- Best practices for error patterns
-