Safely analyze and reorganize project structure with multi-stage validation, dry-run previews, and explicit user confirmation. Use when projects need cleanup, standardization, or better organization.
View on GitHubananddtyagi/cc-marketplace
claude-dev-infrastructure
plugins/claude-dev-infrastructure/skills/safe-project-organizer/SKILL.md
January 18, 2026
Select agents to install to:
npx add-skill https://github.com/ananddtyagi/cc-marketplace/blob/main/plugins/claude-dev-infrastructure/skills/safe-project-organizer/SKILL.md -a claude-code --skill safe-project-organizerInstallation paths:
.claude/skills/safe-project-organizer/# Safe Project Organizer ## Overview This skill enables Claude Code to analyze project structure and suggest safe organizational improvements like moving files, removing unused directories, and restructuring folders. It prioritizes safety through multi-stage validation, dry-run previews, and explicit user confirmation. ## Core Safety Principles ### 1. Read-Only Analysis Phase - All analysis operations are read-only - No modifications occur during scanning - Complete project snapshot before any changes ### 2. Dry-Run Validation - All operations preview changes before execution - Show exact file paths being affected - Calculate impact metrics (files moved, deleted, created) ### 3. Explicit User Confirmation - Require confirmation for each operation category - Display detailed change summary - Allow selective approval of suggestions ### 4. Atomic Operations with Rollback - Each operation is reversible - Create backup references before modifications - Maintain operation log for audit trail ### 5. Protected File Patterns Never modify files matching these patterns: - `.git/`, `.svn/`, `.hg/` (version control) - `node_modules/`, `vendor/`, `venv/`, `.venv/` (dependencies) - `.env*`, `secrets.*`, `credentials.*` (sensitive data) - `package-lock.json`, `yarn.lock`, `pnpm-lock.yaml` (lock files) - `dist/`, `build/`, `.next/`, `.nuxt/` (build artifacts) ## When to Use This Skill Use this skill when you encounter any of these scenarios: **Project Cleanup:** - "My project root is messy with too many files" - "I have empty directories that should be cleaned up" - "Documentation files are scattered everywhere" **Standardization:** - "This project doesn't follow standard directory structure" - "Source files are mixed with config files in root" - "I need to organize files by type for better maintainability" **Migration Preparation:** - "I'm about to hand off this project and need to clean it up" - "This codebase needs better organization before adding new features" - "I