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…
от ananddtyagi★ 689 звёзд на GitHubОб этом скилле
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 want to standardize the project structure"
Safety Concerns:
- "I'm nervous about accidentally breaking something"
- "I need to see exactly what will change before making changes"
- "I want a safe way to reorganize without losing data"
Safe Usage Workflow
Step 1: Initial Scan (Read-Only)
Execute the project organizer script with --scan flag:
python3 scripts/project_organizer.py /path/to/project --scan
What it does:
- Scans entire project structure
- Identifies file types, counts, sizes
- Detects empty directories
- Lists protected files
- No modifications made
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
Step 2: Generate Suggestions (Still Read-Only)
Use --analyze flag to generate organizational suggestions:
python3 scripts/project_organizer.py /path/to/project --analyze
What it does:
- Performs full analysis
- Generates organizational suggestions
- Displays suggestion count
- Still no modifications
Step 3: Preview Changes (Detailed Review)
Use --preview flag to see exactly what will change:
python3 scripts/project_organizer.py /path/to/project --preview
What it does:
- Shows detailed preview of ALL suggestions
- Groups by action type (move, delete, create)
- Displays risk levels (🟢 low, 🟡 medium, 🔴 high)
- Shows safety checks for each operation
- Lists exact file paths affected
- Zero modifications
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
Step 4: Dry Run (Simulation Only)
Use --execute flag for dry-run simulation:
python3 scripts/project_organizer.py /path/to/project --execute
What it does:
- Simulates ALL operations
- Shows what WOULD happen
- Validates all safety checks
- Reports success/failure/skipped
- No actual changes made
Step 5: Real Execution (Requires Confirmation)
Use --execute-real flag only after thorough review:
python3 scripts/project_organizer.py /path/to/project --execute-real
What it does:
- Prompts for explicit confirmation
- Executes approved changes
- Creates audit l
Установить safe-project-organizer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл 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.
Как установить скилл safe-project-organizer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл safe-project-organizer запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic