Organize project files with intelligent consolidation
Organize ALL project files with intelligent detection, consolidation, and pruning.
/mpm-organize [--dry-run] [--force] [options]
Delegates to Project Organizer agent for comprehensive file organization.
Default: Organizes ALL project files
Protected files (never moved): README.md, package.json, pyproject.toml, Makefile, .gitignore, etc.
Safety:
--dry-run: Preview without changes (recommended first run)--force: Proceed with uncommitted changes--no-backup: Skip backup (not recommended)Scope:
--docs-only: Only documentation (legacy behavior)--code-only / --tests-only / --scripts-only: Specific file typesOperations:
--consolidate-only: Merge duplicates only--prune-only: Remove stale files only--no-prune: Keep all files (no deletions)git mv to preserve historydocs/
āāā research/ # Spikes, analysis, notes
āāā user/ # Guides, tutorials, FAQs
āāā developer/ # API docs, architecture, contributing
src/<package>/ # Proper module structure
tests/ # Mirrored source structure
scripts/ # Automation tools
config/ # Configuration (if needed)
# Preview changes (recommended first)
/mpm-organize --dry-run
# Organize everything with backup
/mpm-organize
# Documentation only
/mpm-organize --docs-only --dry-run
# Consolidate without pruning
/mpm-organize --consolidate-only --no-prune
# Save report
/mpm-organize --report /tmp/organize-report.md
š Analyzing project structure...
ā Detected PROJECT_ORGANIZATION.md - using project standards
ā Found 23 documentation files, 15 test files, 8 scripts
š Proposed Changes:
Consolidate:
ā Merge README_OLD.md + README_BACKUP.md ā docs/user/README.md
Organize:
docs/research/ ā spike-oauth.md (from root)
tests/unit/ ā test_auth.py (from root)
scripts/ ā deploy.sh (from root)
Prune:
ā Remove TODO_2023.md (stale 18 months)
š Summary: 8 to move, 2 to merge, 3 to prune
See docs/commands/organize.md for full documentation.