agent-creator
Use when creating expert agents. Generates agent.md with frontmatter, hooks, required sections, and skill references.
Use when validating code quality after modifications -- SOLID compliance, DRY duplication, linter errors, architecture violations. Do NOT use for functional verification (run verification FIRST, then code-quality).
$ npx -y skills add fusengine/agents --skill code-quality --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/code-qualityContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when validating code quality after modifications -- SOLID compliance, DRY duplication, linter errors, architecture violations. Do NOT use for functional verification (run verification FIRST, then code-quality).
name: code-quality description: "Use when validating code quality after modifications -- SOLID compliance, DRY duplication, linter errors, architecture violations. Do NOT use for functional verification (run verification FIRST, then code-quality)." argument-hint: "[file-or-directory]" user-invocable: true
<objective> Code Quality is the canonical 7-phase validation workflow shared with the `sniper` agent (this skill and `agents/sniper.md` must stay in sync): explore architecture, research documentation, analyze impact via Grep usages, detect duplication with jscpd (DRY), detect errors via linters, apply precision corrections informed by docs/impact/DRY findings, then re-verify until linters, tests, and duplication are all clean. It covers SOLID compliance, DRY thresholds, error priority (security/logic/performance/style), file-size limits, and architecture-pattern violations across all languages.
It validates quality AFTER the fact -- it does not confirm the original problem was actually solved. Run the `verification` skill first to confirm functional resolution, then code-quality to confirm the fix is clean. </objective>
Canonical workflow definition: `agents/sniper.md` (this skill and the sniper agent share the same 7-phase workflow — update both together).
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.
---
**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
---
**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**:
---
**For EACH element to modify**: Grep usages → assess risk → document impact.
| 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 |
---
**Tool**: `jscpd` — 150+ languages — `npx jscpd ./src --threshold 5 --reporters console,json`
| Level | Threshold | Action | |-------|-----------|--------| | 🟢 Excellent | < 3% | No action needed | | 🟡 Good | 3-5% | Document, fix if time | | 🟠 Acceptable | 5-10% | Extract shared logic | | 🔴 Critical | > 10% | Mandatory refactoring |
See [references/duplication-thresholds.md](references/duplication-thresholds.md) for per-language thresholds, config, and extraction patterns. See [references/linter-commands.md](references/linter-commands.md) for language-specific jscpd commands.
---
See [references/linter-commands.md](references/linter-commands.md) for language-specific commands.
---
| Priority | Type | Examples | Action | |----------|------|----------|--------| | **Critical** | Security | SQL injection, XSS, CSRF, auth bypass | Fix IMMEDIATELY | | **High** | Logic | SOLID violations, memory leaks, race conditions | Fix same session | | **High** | DRY | Code duplication > 10%, copy-paste logic blocks | Mandatory refactoring | | **Medium** | DRY | Code duplication 5-10%, repeated patterns | Extract shared logic | | **Medium** | Performance | N+1 queries, deprecated APIs, inefficient algorithms | Fix if time | | **Low** | Style | Formatting, naming, missing docs | Fix if time |
---
See [references/solid-validation.md](references/solid-validation.md) for S-O-L-I-D detection patterns and fix examples.
---
See [references/file-size-rules.md](references/file-size-rules.md) for LoC limits, calculation, and split strategies.
---
See [references/architecture-patterns.md](references/architecture-patterns.md) for project structures and patterns.
---
See [references/validation-report.md](references/validation-report.md) for the complete sniper report template.
---
See [references/examples.md](references/examples.md) for detailed walkthrough.
---
A plugin ecosystem that turns Claude Code into a supervised, multi-agent development environment.
Repo: fusengine/agents
Use when creating expert agents. Generates agent.md with frontmatter, hooks, required sections, and skill references.
Use when starting ANY development task -- feature, bug fix, refactor, hotfix (triggers: implement, create, build, fix, add feature, refactor, develop).
Use when creating a feature/component or adding functionality. Fires BEFORE APEX Analyze to refine requirements via structured questioning.
Use before a root-cause, done/verified claim, irreversible action, or 2nd-time fix reaches the owner (APEX or plain conversation); also fires at every…
Use when an expert agent self-reviews and self-corrects code after the Execute phase, before sniper validation (BMAD-METHOD elicitation techniques).
Use when exploring an unfamiliar codebase -- architecture analysis, pattern detection, dependency mapping, rapid discovery.