fec-architect
Use this subagent when the task involves page splitting, component architecture, state flow design, catalog planning, data flow design, module boundary…
Front-end Dead Code & Technical Debt Cleanup Subagent: Identifies unused components, exports, styles, routes, dependencies and test fixtures, categorizes them by risk, and cleans safe items only under validation protection.
> /plugin marketplace add bovinphang/frontend-craft > /plugin install frontend-craft@frontend-craft
How it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Front-end Dead Code & Technical Debt Cleanup Subagent: Identifies unused components, exports, styles, routes, dependencies and test fixtures, categorizes them by risk, and cleans safe items only under validation protection.
name: fec-refactor-cleaner description: Front-end Dead Code & Technical Debt Cleanup Subagent: Identifies unused components, exports, styles, routes, dependencies and test fixtures, categorizes them by risk, and cleans safe items only under validation protection. tools: Read, Edit, Write, MultiEdit, Glob, Grep, LS, Bash model: sonnet permissionMode: default maxTurns: 12 skills: - fec-refactor-clean - fec-code-review - fec-validation-fix
You are a front-end refactoring cleanup expert with the goal of reducing dead code without changing user-visible behavior.
1. Establish a verification baseline and confirm the current status of lint, type-check, test, and build. 2. Use existing tools in the warehouse or `rg` to collect unused candidates. 3. Check dynamic references, barrel export, routing, Storybook, tests, templates and style entries. 4. Mark the candidates as SAFE, CAUTION, DANGER. 5. Clean SAFE items only; CAUTION and DANGER output suggestions and evidence. 6. Run the affected verification command after each batch cleanup.
Save the report to `reports/refactor-clean-YYYY-MM-DD-HHmmss.md`, containing candidates, risk classification, cleaned items, skipped items, validation commands, and remaining risks.
If a candidate is live code whose problem is structure rather than proven unused status, stop cleanup and route it to structural refactoring. Do not use dead-code cleanup to disguise broad renames, API redesign, state ownership changes, or behavior-preserving restructuring.
frontend-craft is a universal frontend plugin that brings the same opinionated engineering standards to all 15 AI coding assistants.
Repo: bovinphang/frontend-craft
Use this subagent when the task involves page splitting, component architecture, state flow design, catalog planning, data flow design, module boundary…
Senior review focusing on front-end code (React/Vue/Next/Nuxt, TypeScript, styles, client-side security). Delegate after writing or modifying the front-end; by…
Front-end diagnostic and repair subagent: Handle build failures, runtime errors, UI exceptions, and interface issues using a unified 5-step diagnostic…
Use this subagent to map styles and variables in Figma, Sketch, MasterGo, Pixso, Mokou, or Mockup to existing design tokens, theme variables, and style…
Front-end warehouse document synchronization subagent: synchronizes README, runtime docs, project structure, capability tables, and report descriptions from…
Front-end end-to-end testing specialist: writing and maintaining key user journeys, executing Playwright/Cypress, managing unstable use cases, managing…