modularize

SkillFiles & storage

One focused, repeatable pass that retires the code-quality scorecard's `architecture` debt — the god-files (>1500 lines) and god-functions (>200 lines) that /quality-score flags as RISKY and explicitly defers to "a...

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the modularize skill

What this skill tells your AI

The instructions your AI receives, as published by anthony-chaudhary/fak in .agents/skills/modularize/SKILL.md and read by ahel’s review.

The core constraint it enforces is that shared logic always routes through a central core -- never module-to-module imports directly.

Agent Workflow (MANDATORY)

detect framework → explore structure → build migration plan → confirm with user → execute → sniper

Framework Detection

SignalFrameworkDelegate To
FuseCore/ dir + artisan fileLaravel + FuseCorefuse-laravel:laravel-expert
composer.json + artisan (no FuseCore/)Laravel standardfuse-laravel:laravel-expert
src/modules/ or app/ + next.configNext.js + modules/fuse-nextjs:nextjs-expert
src/ + package.json (React, no Next)Reactfuse-react:react-expert

Critical Rules

  1. Analyze first — always explore full structure before proposing anything
  2. Show migration map — present file-by-file plan before touching any code
  3. User confirms — never move or modify files without explicit approval
  4. Cores = central hub — no module-to-module imports; all shared logic goes through core
  5. Sniper after each file — run fuse-ai-pilot:sniper after every file moved or created

Workflow Steps

  1. Detect framework using signals from the table above
  2. Explore codebase: map all files, dependencies, imports, exports
  3. Build migration plan: list every file to create, move, or refactor
  4. Present plan to user — wait for explicit confirmation before proceeding
  5. Execute step by step; stop and report any conflict immediately
  6. Run sniper validation after each file change
  7. Final report: list all changes made and any remaining manual steps

Reference Guide

StackReference File
Laravel (FuseCore or standard)references/laravel-fusecore.md
Next.js / Reactreferences/nextjs-react-modules.md

DO / DON'T

DO: explore before planning — plan before executing — confirm before touching files — sniper every step

DON'T: assume structure — skip confirmation — import between modules directly — batch changes without validation

Signals

GitHub stars
38
Forks
15
Last commit
Sep 2026

Others that do the same job

Advanced
Catalog kind
skill
Gateway key
modularize
Source
github.com/anthony-chaudhary/fak