modularize

modularize is a skill for Claude Code from fusengine/agents. It costs 44 tokens per session (689 once invoked), scanned A, original, MIT.

A code-restructuring skill for moving Laravel, Next.js, or React projects into a modular architecture. It routes shared logic through a central core instead of allowing modules to depend directly on one another.

In plain words
What is it for?
Use it to detect the framework, map files and dependencies, plan a migration, and move or create files after approval.
Why use it?
It provides a planned, reviewable path for reorganising an existing codebase. This reduces accidental dependencies between modules during the migration.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the fuse-ai-pilot plugin — 18 skills, 12 commands, 9 agents, 5 hooks shipped together

Good fit Use it to detect the framework, map files and dependencies, plan a migration, and move or create files after approval.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fusengine/agents/modularize
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fusengine/agents --skill modularize
Clone the repo
git clone --depth 1 https://github.com/fusengine/agents

Made for: Claude Code.

Or install fuse-ai-pilot, the plugin that ships this one along with the rest of its 18 skills, 12 commands, 9 agents, 5 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for modularize

README.md
[![agentmods](https://agentmods.dev/badge/skills/fusengine/agents/modularize/github.svg)](https://agentmods.dev/skills/fusengine/agents/modularize)
Your own site
<a href="https://agentmods.dev/skills/fusengine/agents/modularize"><img src="https://agentmods.dev/badge/skills/fusengine/agents/modularize/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for modularize

Your own site · 80×15
<a href="https://agentmods.dev/skills/fusengine/agents/modularize"><img src="https://agentmods.dev/badge/skills/fusengine/agents/modularize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 689 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 57
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.00689
Opus 5.5 $0.00018 $0.00276
Sonnet 5.5 $0.00009 $0.00138
Haiku 4.5 $0.00004 $0.00069

Measured 3mo ago against content hash 445147fb443f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

modularize scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ai-pilot/skills/modularize/SKILL.md · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

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 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

Read the full file on GitHub · 58 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 58 lines · 44 tokens per session scan A 445147fb443f

Subscribe to this mod's changes

modularize is a skill published in the GitHub repository fusengine/agents (34 stars, last pushed 1mo ago), licensed MIT. It adds 44 tokens to every session and 689 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

modularize compared with skills from other repositories

modularize next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
modularizefusengine/agentsSkill341mo agoMITA44Claude Code
incident-response-planbromso/metapowersSkill31mo agoMITA69Claude Code
ccpa-compliancebromso/metapowersSkill31mo agoMITA80Claude Code
data-processing-agreementbromso/metapowersSkill31mo agoMITA68Claude Code
compliance-monitorbromso/metapowersSkill31mo agoMITA73Claude Code
employment-agreementbromso/metapowersSkill31mo agoMITA57Claude Code
gdpr-compliancebromso/metapowersSkill31mo agoMITA86Claude Code