file-organization

Move files to predefined locations during create and move operations.

32|5|Updated Oct 19, 2025
One-click install
npx skills add https://github.com/akaszubski/autonomous-dev --skill file-organization
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file-organization
Source: https://github.com/akaszubski/autonomous-dev/tree/main/plugins/autonomous-dev/skills/file-organization
Command: npx skills add https://github.com/akaszubski/autonomous-dev --skill file-organization

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Disorganized project files lead to confusion, wasted time searching, and "file organization debt," hindering productivity. This skill automatically enforces project-specific file organization standards, ensuring a clean, consistent, and easy-to-navigate codebase without manual effort.

Core Features & Use Cases

  • Automated Reorganization: Automatically moves files to their correct locations based on predefined rules (e.g., shell scripts to scripts/, documentation to docs/).
  • Root Directory Policy: Enforces a clean root directory with a limited number of essential files, preventing clutter.
  • Categorized Structure: Guides shell scripts, documentation, and source code into logical subdirectories (e.g., scripts/test/, docs/guides/, src/).
  • Use Case: If you accidentally create a test-script.sh in the root directory, this skill will automatically move it to scripts/test/test-script.sh and notify you, keeping your project organized without manual intervention.
  • Use Case: Ensure all new documentation files are placed in the correct docs/ subdirectory based on their content (e.g., docs/architecture/ for ADRs).

Quick Start

This skill is auto-invoked before file/directory creation or moves.

To see it in action, try creating a shell script in the root:

(Claude will auto-correct its location based on project rules)

Write: test-script.sh

Content: echo "Hello from a test script!"

Frequently Asked Questions about file-organization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically enforce file organization standards in my project?

File organization enforcement automatically moves files to correct locations based on predefined rules during file creation or moves. This skill applies rules to shell scripts, documentation, and root markdown files, redirecting them to appropriate subdirectories like scripts/, docs/, or category-specific folders, eliminating manual reorganization.

Can I keep my project root directory clean while organizing scripts and documentation?

Yes. This skill enforces a clean root directory policy by automatically redirecting shell scripts to scripts/, documentation to docs/, and related files to category-specific subdirectories before they're created, preventing root clutter without manual intervention.

What happens when I create a file in the wrong location?

The skill intercepts file creation and moves before they're written to disk. If you create a shell script in the root, it auto-moves to scripts/test/ or the appropriate subdirectory and notifies you, maintaining organization without disrupting your workflow.

How does this skill validate file organization during pre-commit?

Pre-commit validation checks that all files conform to project organization standards before committing. The skill catches misplaced files, documentation, and scripts, catching organization debt early and preventing disorganized structures from entering version control.

Does this work with CLAUDE.md and PROJECT.md references?

Yes. The skill enforces organization standards for root markdown files including CLAUDE.md and PROJECT.md references, ensuring these key project files follow the defined structure and remain discoverable.

What file types does this skill organize?

This skill organizes shell scripts, documentation files, root markdown files, and applies rules during file creation, moves, and directory creation. It categorizes content into logical subdirectories based on file type and project-defined organization rules.