declutter
БесплатноБез исполняемых скриптовНе проверенIdentify misplaced files and organize project structure following open-source best practices, while delegating refactoring to specialized skills
от wildcard★ 41 звезда на GitHubОб этом скилле
Declutter Skill
Purpose: Create a clean, welcoming project structure where every file has its proper place, following open-source conventions and the project's established patterns.
Philosophy: A well-organized project should produce a hand-sized, predictable tree that immediately communicates what the project does and how it's structured. The root should be clean and inviting, not overwhelming.
Core Principles
1. Clean Root, Clear Intent
The project root is the first impression. It should contain only:
- Essential entry files (README, LICENSE, main config)
- Standard directories that communicate purpose
- No orphaned files, experiments, or ambiguous content
2. Correlation Preservation
Files that belong together stay together:
- Module-related files remain in module context
- Development stage files stay with their stage
- App-specific files stay with their app
- Build artifacts stay with build configuration
3. Skill Delegation
Declutter identifies and recommends but does not refactor alone:
- For code restructuring → delegate to
refactorskill - For documentation moves → delegate to
technical-writeragent - For build pipeline changes → delegate to
devopsskill - If skill doesn't exist → recommend installation/configuration
4. Query Before Move
When placement is ambiguous:
- First, check for relevant specialized skills/agents
- Consult with appropriate skill for research
- Only ask user when no skill can help
- Always explain the reasoning
When to Use This Skill
Trigger Phrases:
- "Declutter this project"
- "Organize the file structure"
- "Clean up the root directory"
- "This project is messy, help me organize it"
- "Where should this file go?"
Automatic Contexts:
- After initial project setup
- Before open-sourcing a project
- When onboarding feels overwhelming
- After feature sprawl or rapid prototyping
The Declutter Workflow
Phase 1: Assessment (Survey)
↓
Phase 2: Classification (Categorize)
↓
Phase 3: Research (Consult Skills)
↓
Phase 4: Proposal (Plan Moves)
↓
Phase 5: Execution (Delegate Actions)
Phase 1: Assessment (Survey the Landscape)
Goal: Understand current state without judgment.
Actions:
Capture the current tree:
tree -L 2 -a --dirsfirst -I '.git|node_modules|target|__pycache__|.venv'Identify technology stack:
- Check for
package.json,Cargo.toml,pyproject.toml,go.mod, etc. - Note frameworks (React, Astro, Django, etc.)
- Identify build systems (webpack, vite, cargo, etc.)
- Check for
Count root-level items:
ls -la | wc -lHealthy root: 10-20 items (dirs + essential files) Needs attention: 20-30 items Critical: 30+ items
Identify outliers:
- Files that don't match project type
- Duplicate or similar-named files
- Dated/versioned files (backup.old, file_v2.txt)
- Orphaned configuration files
Output:
- Tree captured
- Tech stack identified
- Root item count logged
- Outliers list created
Phase 2: Classification (Categorize Everything)
Goal: Assign each item to a category for action.
File Categories:
| Category | Examples | Action |
|---|---|---|
| Essential Root | README, LICENSE, main config | Keep in root |
| Documentation | *.md guides, ADRs, specs | Move to /docs |
| Configuration | dotfiles, *.config.js | Consider /config or keep root |
| Scripts | Shell scripts, automation | Move to /scripts |
| DevOps | CI/CD, Docker, k8s | Move to .github/, /deploy |
| Source Code | Application code | Move to /src, /lib, /app |
| Tests | Test files | Move to /tests or colocate |
| Build Artifacts | Generated files | Add to .gitignore |
| Experiments | POCs, spikes | Move to /sandbox or delete |
| Orphaned | No clear purpose | Ask user or delete |
Classification Rules:
For Markdown Files:
README.md, CONTRIBUTING.md, CHANGELOG.md → Root (OSS standard)
CODE_OF_CONDUCT.md, SECURITY.md → Root (GitHub special files)
*.md (other) → /docs
For Configuration:
Single dotfile → Root acceptable
Multiple similar configs → /config directory
Build tool config → Usually root (webpack.config.js, etc.)
Editor config → Root (.editorconfig, .prettierrc)
For Scripts:
1-2 scripts → /scripts or root acceptable
3+ scripts → Must move to /scripts
Shell scripts → /scripts
Build scripts → /scripts/build or npm scripts
Output:
- Each file/directory categorized
- Action type assigned (keep/move/delete/ask)
- Ambiguous items flagged for consultation
Phase 3: Research (Consult Specialized Skills)
Goal: Get expert guidance before making moves.
Skill Consultation Matrix:
| Question Type | Consult |
|---|---|
| "Where should docs go?" | technical-writer agent |
| "How to structure R |
Установить declutter в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadGrepGlobTaskSkillВложенные файлы
FAQ
Что делает скилл declutter?
Identify misplaced files and organize project structure following open-source best practices, while delegating refactoring to specialized skills
Как установить скилл declutter?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл declutter запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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