Back to Skills

code-quality

verified

Code quality validation with linters, SOLID principles, error detection, and architecture compliance across all languages.

View on GitHub

Marketplace

fusengine-plugins

fusengine/agents

Plugin

fuse-ai-pilot

development

Repository

fusengine/agents

plugins/ai-pilot/skills/code-quality/SKILL.md

Last Verified

January 22, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/fusengine/agents/blob/main/plugins/ai-pilot/skills/code-quality/SKILL.md -a claude-code --skill code-quality

Installation paths:

Claude
.claude/skills/code-quality/
Powered by add-skill CLI

Instructions

# Code Quality Skill

## ๐Ÿšจ MANDATORY 6-PHASE WORKFLOW

```
PHASE 1: Exploration (explore-codebase) โ†’ BLOCKER
PHASE 2: Documentation (research-expert) โ†’ BLOCKER
PHASE 3: Impact Analysis (Grep usages) โ†’ BLOCKER
PHASE 4: Error Detection (linters)
PHASE 5: Precision Correction (with docs + impact)
PHASE 6: Verification (re-run linters, tests)
```

**CRITICAL**: Phases 1-3 are BLOCKERS. Never skip them.

---

## PHASE 1: Architecture Exploration

**Launch explore-codebase agent FIRST**:
```
> Use Task tool with subagent_type="explore-codebase"
```

**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**:
```
> Use Task tool with subagent_type="research-expert"
> Request: Verify [library/framework] documentation for [error type]
> Request: Find [language] best practices for [specific issue]
```

**Request for each error**:
- Official API documentation
- Current syntax and deprecations
- Best practices for error patterns
- Version-specific breaking changes
- Security advisories
- Language-specific SOLID patterns

---

## PHASE 3: Impact Analysis

**For EACH element to modify**:

### Step 1: Search Usages
```bash
# TypeScript/JavaScript
grep -r "functionName" --include="*.{ts,tsx,js,jsx}"

# Python
grep -r "function_name" --include="*.py"

# Go
grep -r "FunctionName" --include="*.go"
```

### Step 2: Risk Assessment
| Risk | Criteria | Action |
|------|----------|--------|
| ๐ŸŸข LOW | Internal, 0-1 usages | Proceed |
| ๐ŸŸก MEDIUM | 2-5 usages, compatible | Proceed with care |
| ๐Ÿ”ด HIGH | 5+ usages OR breaking | Flag to user FIRST |

### Step 3: Document Impact
```markdown
| El

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
14990 chars