# Analyze And Reorganize

> Use when reorganizing a disk. First a very simple plan, then wait for “yes”. Look inside folders before grouping. Logs in LOG/. Never delete.

- Skill: `chakhdz/analyze-and-reorganize` (Agent Skill)
- Install (CLI): `npx skillmds@latest add chakhdz/analyze-and-reorganize`
- Raw SKILL.md: https://api.skillmd.com/api/skills/chakhdz/analyze-and-reorganize/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Chakhdz (https://skillmd.com/u/chakhdz)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/chakhdz/analyze-and-reorganize

---

# Analyze and reorganize

One flow: **simple plan → wait for explicit yes → execute → undo from the log.**

## 0. Plan first (required)

Carlos’s rule: **“dime tu plan y luego te confirmo.”**

Before any `mv`, `mkdir` that changes the tree, rename, or copy:

1. Write a **very simple** plan: what moves, from where, to where, what stays, how to undo.
2. Stop. Do not run.
3. Only after an explicit yes execute with `mv -n`.
4. If they change the plan, rewrite the short plan and wait again.

**NEVER DELETE ANYTHING.** Do not overwrite an existing destination.

Logs in `LOG/` at the disk root (`BOTSI-undo-log.jsonl`). Never move LOG to para borrar.

Look inside folders before grouping by name. First level first. `mv -n` one at a time. If destination exists, stop.

