---
name: organize-workspace-directories-and-generate-file-indexes
description: "Scans a local workspace folder, proposes a structured directory layout, and after approval reorganizes files and writes a markdown inventory. Use when a person asks to clean up, organize, or catalog a project workspace."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, Docs."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/organize-workspace-directories-and-generate-file-indexes/"
  kind: skill
  hermes:
    tags: ["file-management", "workspace", "automation", "terminal", "documentation"]
    category: ops
    requires_toolsets: ["terminal", "file"]
---
# Organize workspace directories and generate file indexes

Scan project folders, organize assets into structured directories, and generate a markdown inventory

## When to use

Keep local development workspaces clean by scanning unorganized project folders, categorizing assets and code files into tidy subdirectories, and generating a comprehensive directory map and documentation summary.

## Inputs

- `workspace_path`: Local path of the workspace folder to scan and organize.
- `organization_preferences` (optional): Optional preferred folder naming or grouping conventions for the proposed layout.

## Steps

1. When you ask: Receive workspace cleanup request (A person asks the agent to clean up or organize a local workspace folder.)
2. Analyze files and request move approval
3. Organized folders and inventory report

## Instructions

Scan the specified local workspace folder to catalog all files, scripts, and media. Propose a structured folder layout based on file types and project conventions. Always request user approval before moving, modifying, or deleting any existing files or directories. Once approved, perform the reorganization via the terminal and write a markdown summary documenting the new project structure and cataloging all indexed assets.

## Approvals

- Moving existing files or directories into the proposed layout must wait for user approval.
- Modifying existing files must wait for user approval.
- Deleting any existing files or directories must wait for user approval.

## Output

Markdown summary of the new directory structure with an inventory of indexed assets, alongside the reorganized folders. (format: markdown)

## Source

Summarized in our own words from [workany: Desktop Agent for Any Task](https://github.com/workany-ai/workany) (GitHub, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/organize-workspace-directories-and-generate-file-indexes/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
