com um clique
safe-project-organizer
// 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.
// 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.
PERSONAL APP ARCHITECT - Strategic development orchestrator for personal productivity applications. Analyzes project context, makes architectural decisions for single-developer projects, delegates to specialized skills, and ensures alignment between user experience goals and technical implementation. Optimized for personal apps targeting 10-100 users.
Comprehensive data safety auditor for Vue 3 + Pinia + IndexedDB + PouchDB applications. Detects data loss risks, sync issues, race conditions, and browser-specific vulnerabilities with actionable remediation guidance.
A robust skill that analyzes your app's actual codebase, tech stack, configuration, and architecture to ensure ALL documentation is current and accurate. It never assumes—always verifies and compares the live system with every documentation file to detect code-doc drift and generate actionable updates.
Safe MASTER_PLAN.md management with backup, validation, and intelligent updates. Use when updating task tracking, adding features to roadmap, or modifying project documentation.
Create, validate, and publish Claude Code plugins and marketplaces. Use this skill when building plugins with commands, agents, hooks, MCP servers, or skills.
MASTER Vue.js application testing with strict enforcement of verification protocols. Systematically test functionality with Playwright, validate bug fixes, verify features work, and enforce zero-tolerance policies for false success claims. MANDATORY testing with visual evidence before any deployment or functionality claims.
| name | safe-project-organizer |
| description | 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. |
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.
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)Use this skill when you encounter any of these scenarios:
Project Cleanup:
Standardization:
Migration Preparation:
Safety Concerns:
Execute the project organizer script with --scan flag:
python3 scripts/project_organizer.py /path/to/project --scan
What it does:
Example Output:
🔍 Scanning project: /path/to/project
📋 This is a READ-ONLY scan. No changes will be made.
✅ Scan complete!
📁 Directories: 24
📄 Files: 156
🔒 Protected items: 42
📂 Empty directories: 3
Use --analyze flag to generate organizational suggestions:
python3 scripts/project_organizer.py /path/to/project --analyze
What it does:
Use --preview flag to see exactly what will change:
python3 scripts/project_organizer.py /path/to/project --preview
What it does:
Example Preview Output:
📋 PREVIEW MODE - No changes will be made
============================================================
📊 Total Suggestions: 8
🎯 By Action:
MOVE: 5
DELETE: 2
CREATE_DIR: 1
⚠️ By Risk Level:
🟢 LOW: 6
🟡 MEDIUM: 2
📝 Detailed Suggestions:
MOVE Operations (5):
1. 🟢 Documentation/config files organized in docs/ directory
FROM: CONTRIBUTING.md
TO: docs/CONTRIBUTING.md
Safety Checks:
✓ File is not a primary config
✓ No imports reference this file path
✓ Not in protected patterns
DELETE Operations (2):
1. 🟢 Empty directory with no files or subdirectories
PATH: old_backup/temp
Safety Checks:
✓ Directory is empty
✓ Not a protected path
✓ No version control markers
Use --execute flag for dry-run simulation:
python3 scripts/project_organizer.py /path/to/project --execute
What it does:
Use --execute-real flag only after thorough review:
python3 scripts/project_organizer.py /path/to/project --execute-real
What it does:
.project_organizer.log)Confirmation Prompt:
⚠️ WARNING: This will make REAL changes. Type 'yes' to confirm: yes
Low Risk (🟢):
docs/config/scripts/Medium Risk (🟡):
Safety Checks Performed:
Low Risk (🟢):
Safety Checks Performed:
Low Risk (🟢):
src/, docs/, tests/)Safety Checks Performed:
The skill automatically protects these paths from modification:
.git/, .git/**.svn/, .svn/**.hg/, .hg/**node_modules/, node_modules/**vendor/, vendor/**venv/, venv/**.venv/, .venv/**dist/, dist/**build/, build/**.next/, .next/**.nuxt/, .nuxt/**out/, out/**.env*secrets.*credentials.*package-lock.jsonyarn.lockpnpm-lock.yamlGemfile.lockPipfile.lockpoetry.lock__pycache__/, __pycache__/**--scan to understand the project--preview before any execution--execute to simulate changes safely.project_organizer.log for what was changedBefore using --execute-real, verify:
Permission Denied:
Path Protected:
Changes Not Appearing:
--execute-real (not just --execute)Git Recovery:
git status # See what changed
git checkout -- . # Restore all changes
git reset --hard HEAD # Full reset to last commit
Operation Log Review:
cat .project_organizer.log # Review detailed operation log
Edit the PROTECTED_PATTERNS list in the script:
PROTECTED_PATTERNS = [
# Existing patterns...
'my_important_dir/**', # Custom protection
'*.critical', # Protect critical files
]
Edit MOVABLE_ROOT_FILES dictionary:
MOVABLE_ROOT_FILES = {
'assets': ['*.png', '*.jpg', '*.svg'], # Move images to assets/
'data': ['*.csv', '*.json', '*.xml'], # Move data files
}
Extend the SafeProjectOrganizer class:
def _custom_safety_check(self, path: Path) -> bool:
"""Your custom safety logic"""
# Return True if safe, False if should be protected
return True
This skill integrates naturally with Claude Code's workflow:
Simple Cleanup:
User: "My project root is messy, can you help organize it?"
Claude: [Uses skill to scan and suggest safe improvements]
Targeted Organization:
User: "I have too many documentation files scattered around"
Claude: [Uses skill to identify and suggest grouping docs/ folder]
Pre-Migration Cleanup:
User: "I need to clean up before handing this project to another team"
Claude: [Uses skill for comprehensive safe reorganization]
project_organizer.py - The main safe project organizer script with comprehensive safety featuresThe script includes:
This script can be executed independently of Claude Code for manual project organization tasks.
Safety Guarantee: This skill never modifies files without explicit confirmation, always previews changes, and includes comprehensive safety checks to protect important project data.
CRITICAL: Before claiming ANY issue, bug, or problem is "fixed", "resolved", "working", or "complete", the following verification protocol is MANDATORY:
REQUIRED: Use the AskUserQuestion tool to explicitly ask the user to verify the fix:
"I've implemented [description of fix]. Before I mark this as complete, please verify:
1. [Specific thing to check #1]
2. [Specific thing to check #2]
3. Does this fix the issue you were experiencing?
Please confirm the fix works as expected, or let me know what's still not working."
Remember: The user is the final authority on whether something is fixed. No exceptions.