agentsclimarketplace

Code quality

Skill fusengine/agents/plugins/ai-pilot/skills/code-quality

Redefining development through cognitive automation and collaborative agent systems.

Install
npx -y skills add fusengine/agents --skill code-quality

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 22 stars22 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Code quality validation with linters, SOLID principles, DRY detection, error detection, and architecture compliance across all languages. Use when: validating code quality after modifications β€” SOLID compliance, DRY duplication, linter errors, or architecture violations. Do NOT use for: verifying the original problem is functionally resolved (run verification FIRST β€” code-quality validates quality AFTER functional verification passes).

SKILL.md

5.6 KB, as published. Nobody here has run it

Code Quality Skill

Canonical workflow definition: agents/sniper.md (this skill and the sniper agent share the same 7-phase workflow β€” update both together).

🚨 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
  • Version-specific breaking changes
  • Security advisories
  • Language-specific SOLID patterns

PHASE 3: Impact Analysis

For EACH element to modify: Grep usages β†’ assess risk β†’ document impact.

RiskCriteriaAction
🟒 LOWInternal, 0-1 usagesProceed
🟑 MEDIUM2-5 usages, compatibleProceed with care
πŸ”΄ HIGH5+ usages OR breakingFlag to user FIRST

PHASE 3.5: Code Duplication Detection (DRY)

Tool: jscpd β€” 150+ languages β€” npx jscpd ./src --threshold 5 --reporters console,json

LevelThresholdAction
🟒 Excellent< 3%No action needed
🟑 Good3-5%Document, fix if time
🟠 Acceptable5-10%Extract shared logic
πŸ”΄ Critical> 10%Mandatory refactoring

See references/duplication-thresholds.md for per-language thresholds, config, and extraction patterns. See references/linter-commands.md for language-specific jscpd commands.


Linter Commands

See references/linter-commands.md for language-specific commands.


Error Priority Matrix

PriorityTypeExamplesAction
CriticalSecuritySQL injection, XSS, CSRF, auth bypassFix IMMEDIATELY
HighLogicSOLID violations, memory leaks, race conditionsFix same session
HighDRYCode duplication > 10%, copy-paste logic blocksMandatory refactoring
MediumDRYCode duplication 5-10%, repeated patternsExtract shared logic
MediumPerformanceN+1 queries, deprecated APIs, inefficient algorithmsFix if time
LowStyleFormatting, naming, missing docsFix if time

SOLID Validation

See references/solid-validation.md for S-O-L-I-D detection patterns and fix examples.


File Size Rules

See references/file-size-rules.md for LoC limits, calculation, and split strategies.


Architecture Rules

See references/architecture-patterns.md for project structures and patterns.


Validation Report Format

See references/validation-report.md for the complete sniper report template.


Complete Workflow Example

See references/examples.md for detailed walkthrough.


Forbidden Behaviors

Workflow Violations

  • ❌ Skip PHASE 1 (explore-codebase)
  • ❌ Skip PHASE 2 (research-expert)
  • ❌ Skip PHASE 3 (impact analysis)
  • ❌ Skip PHASE 3.5 (DRY detection)
  • ❌ Jump to corrections without completing Phases 1-3
  • ❌ Proceed when BLOCKER is active

Code Quality Violations

  • ❌ Leave ANY linter errors unfixed
  • ❌ Apply fixes that introduce new errors
  • ❌ Ignore SOLID violations
  • ❌ Ignore DRY violations > 5% duplication
  • ❌ Copy-paste code instead of extracting shared logic
  • ❌ Create tests if project has none

Architecture Violations

  • ❌ Interfaces in component files (ZERO TOLERANCE)
  • ❌ Business logic in components (must be in hooks)
  • ❌ Monolithic components (must section)
  • ❌ Files >100 LoC without split
  • ❌ Local state for global data (use stores)

Safety Violations

  • ❌ High-risk changes without user approval
  • ❌ Breaking backwards compatibility silently
  • ❌ Modifying public APIs without deprecation

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.