Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

declutter

БесплатноБез исполняемых скриптовНе проверен

Identify misplaced files and organize project structure following open-source best practices, while delegating refactoring to specialized skills

wildcardот 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 refactor skill
  • For documentation moves → delegate to technical-writer agent
  • For build pipeline changes → delegate to devops skill
  • If skill doesn't exist → recommend installation/configuration

4. Query Before Move

When placement is ambiguous:

  1. First, check for relevant specialized skills/agents
  2. Consult with appropriate skill for research
  3. Only ask user when no skill can help
  4. 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:

  1. Capture the current tree:

    tree -L 2 -a --dirsfirst -I '.git|node_modules|target|__pycache__|.venv'
    
  2. 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.)
  3. Count root-level items:

    ls -la | wc -l
    

    Healthy root: 10-20 items (dirs + essential files) Needs attention: 20-30 items Critical: 30+ items

  4. 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
Полный SKILL.md на GitHub

Установить declutter в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash
Read
Grep
Glob
Task
Skill

Вложенные файлы

README.mdexamples/cluttered-rust-project.mdexamples/monorepo-declutter.mdreferences/oss-conventions.mdreferences/skill-delegation.mdtemplates/proposal-template.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить declutter с