modularize

Solid

Use when converting existing code to modular architecture (Laravel, Next.js, React). Triggers: "modularize", "convert to modules", "migrate to modular", "restructure modules".

AI & Automation 25 stars 4 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
47
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

<objective> Modularize converts an existing, non-modular codebase to a modular architecture. It detects the framework (Laravel + FuseCore, standard Laravel, Next.js with modules/, or plain React) and delegates to the matching framework expert, but owns the process itself: explore the full structure, build and present a file-by-file migration map, wait for explicit user confirmation, execute the move step by step, and run `fuse-ai-pilot:sniper` after every file change. The core constraint it enforces is that shared logic always routes through a central core -- never module-to-module imports directly. </objective> ## Agent Workflow (MANDATORY) detect framework → explore structure → build migration plan → confirm with user → execute → sniper ## Framework Detection | Signal | Framework | Delegate To | |---|---|---| | `FuseCore/` dir + `artisan` file | Laravel + FuseCore | `fuse-laravel:laravel-expert` | | `composer.json` + `artisan` (no FuseCore/) | Laravel standard | `fuse-laravel:laravel-expert` | | `src/modules/` or `app/` + `next.config` | Next.js + modules/ | `fuse-nextjs:nextjs-expert` | | `src/` + `package.json` (React, no Next) | React | `fuse-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 impo...

Details

Author
fusengine
Repository
fusengine/agents
Created
8 months ago
Last Updated
6 days ago
Language
CSS
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category