code-organizer

$npx mdskill add hrconsultnj/claude-plugins/code-organizer

Restructures messy projects into conventional layouts by detecting frameworks, analyzing files, and updating imports.

  • Helps developers organize disorganized codebases into clean, framework-specific directory structures.
  • Depends on a fetch command for loading encrypted step files with caching and authentication.
  • Decides actions by analyzing file types and mapping them to appropriate directories based on detected conventions.
  • Presents results through a multi-step process including planning, execution, and verification phases.
SKILL.md
.github/skills/code-organizerView on GitHub ↗
---
name: code-organizer
description: Restructure a messy project into conventional file layout based on detected framework. Analyzes, plans, executes with import updates, and verifies.
argument-hint: "[--dry-run] [--aggressive] [--naming kebab|camel|pascal] [--preserve path,path] [--no-graph]"
---

Restructure a disorganized project into a clean, conventional file layout. Detects what each file is (component, hook, type, service, utility), maps it to the right directory for the detected framework, and executes the moves with import path updates.

## Content Loading

Load each step through the fetch command (handles caching, decryption, and auth):

```bash
"~/.composure/bin/composure-fetch.mjs" skill composure code-organizer {step-filename}
```

**Do NOT read cache files directly** — they are encrypted at rest. Always use the fetch command above.

## Steps

| # | File | 
|---|------|
| 1 | `00-gate.md` |
| 2 | `01-load-conventions.md` |
| 3 | `02-analyze.md` |
| 4 | `03-plan.md` |
| 5 | `04-execute.md` |
| 6 | `05-verify.md` |
More from hrconsultnj/claude-plugins