agentleFS
AWSKnown publisherawslabs/do-agent-aws/Container-Root/agent/skills/repo-organizer/SKILL.md

repo-organizer

Skill3 starsChanged 3 days agoApache-2.0View on GitHub

Organize files into categorical folders with ISO 8601 chronological naming convention. Use when a directory has accumulated many files that need structured organization with consistent naming.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No spaces, no special characters

    line 28
  2. Distinctive:

    Read each file's first 10 lines to determine category:

    line 51
  3. Distinctive:

    Create descriptive name from content

    line 82
  4. Distinctive:

    If they fit a category, move them into the numbered folder

    line 95
  5. Distinctive:

    If they ARE a category, rename with the NN- prefix

    line 96
  6. Distinctive:

    Preserve git history: Use git mv if in a git repo.

    line 136
  7. Very specific:

    Log all moves: Create a _reorganization-log.txt with before/after paths.

    line 138
  8. Distinctive:

    Timestamp from content, not system: If file has a date in its name or content, use that over filesystem timestamps.

    line 139

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Repository Organizer Skill

Recursively organize files into categorical folders with ISO 8601 naming and create navigation documents.

Usage

/repo-organizer [target-directory]
  • $ARGUMENTS[0] = directory to organize (default: current directory)

Naming Convention

Files

YYYY-MM-DD_HHMM_descriptive-name.md
  • Date from file creation/modification time
  • Time in 24hr format (use stat to get actual times)
  • Lowercase, hyphens between words
  • No spaces, no special characters

Folders

NN-category-name/
  • Two-digit prefix for sort order (01, 02, ... 99)
  • Descriptive category name in lowercase with hyphens
  • 99-archive/ always last for duplicates/old versions

Workflow

Step 1: Inventory

# List all files with dates
find TARGET_DIR -maxdepth 1 -type f -printf '%T+ %p\n' | sort

# Count files by extension
find TARGET_DIR -maxdepth 1 -type f | sed 's/.*\.//' | sort | uniq -c | sort -rn

Step 2: Categorize

Read each file's first 10 lines to determine category:

for f in TARGET_DIR/*; do
  echo "=== $(basename "$f") ==="
  head -10 "$f"
  echo
done

Assign to categories. Common categories:

  • 01-primary-topic/ - Main subject matter
  • 02-analysis/ - Analysis and investigation
  • 03-evidence/ - Supporting evidence and data
  • 04-strategy/ - Strategy and planning
  • 05-communication/ - Templates and outreach
  • 06-summary/ - Executive summaries and briefs
  • 07-status/ - Progress reports and tracking
  • 08-technical/ - Technical deep dives
  • 09-scripts/ - Automation and tooling
  • 99-archive/ - Old versions, duplicates

Step 3: Create Folders

mkdir -p TARGET_DIR/{01-category,02-category,...,99-archive}

Step 4: Rename and Move

For each file:

  1. Get creation date: stat -c '%W' file (or %Y for modification)
  2. Convert to ISO 8601: date -d @TIMESTAMP '+%Y-%m-%d_%H%M'
  3. Create descriptive name from content
  4. Move: mv "old-name.md" "NN-category/YYYY-MM-DD_HHMM_descriptive-name.md"
# Example rename
TIMESTAMP=$(stat -c '%Y' "old-file.md")
DATE=$(date -d @$TIMESTAMP '+%Y-%m-%d_%H%M')
mv "old-file.md" "01-primary/${DATE}_descriptive-name.md"

Step 5: Handle Subdirectories

For existing subdirectories:

  • If they fit a category, move them into the numbered folder
  • If they ARE a category, rename with the NN- prefix
  • Preserve internal structure

Step 6: Create Navigation Documents

README.md (top-level):

# Project Name

## Directory Structure
- `01-category/` - Description
- `02-category/` - Description
...

## Quick Links
- [Most important doc](01-category/file.md)
- [Latest status](07-status/latest.md)

STRUCTURE.txt (tree view):

tree -I '__pycache__|node_modules|.git' TARGET_DIR > TARGET_DIR/STRUCTURE.txt

Step 7: Verify

# Confirm no files left in root (except navigation docs)
ls TARGET_DIR/*.md TARGET_DIR/*.txt 2>/dev/null

# Confirm all files accessible
find TARGET_DIR -name "*.md" | wc -l

# Confirm no broken references
grep -r "](.*\.md)" TARGET_DIR | grep -v "README\|INDEX\|STRUCTURE"

Rules

  1. Never delete files. Move to 99-archive/ if duplicate or outdated.
  2. Preserve git history. Use git mv if in a git repo.
  3. Keep navigation docs in root. README.md, INDEX.md, STRUCTURE.txt stay at top level.
  4. Log all moves. Create a _reorganization-log.txt with before/after paths.
  5. Timestamp from content, not system. If file has a date in its name or content, use that over filesystem timestamps.
<!-- imported on 2026-10-31 by tools/import-skills.py from a native Claude Code instance's skill library; the source site's names, ids, hosts and paths are scrubbed to <placeholders>; its other files were not copied -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.