organize-workspace

organize-workspace is a cursor rule for Cursor from danielvm-git/bigpowers. It costs 93 tokens per session (1,999 once invoked), scanned C, original, MIT.

A workspace cleanup guide that finds disposable files such as logs, caches, old build output, and draft notes, then proposes what to do with them.

In plain words
What is it for?
Use it to review clutter in a project, group stray files, and decide which items to delete, move, or ignore.
Why use it?
It helps make a project easier to navigate without accidentally deleting useful files. Changes require your explicit approval, and it can update .gitignore, the file that tells Git what to leave untracked.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to review clutter in a project, group stray files, and decide which items to delete, move, or ignore.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/danielvm-git/bigpowers/organize-workspace
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/danielvm-git/bigpowers

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for organize-workspace

README.md
[![agentmods](https://agentmods.dev/badge/rules/danielvm-git/bigpowers/organize-workspace/github.svg)](https://agentmods.dev/rules/danielvm-git/bigpowers/organize-workspace)
Your own site
<a href="https://agentmods.dev/rules/danielvm-git/bigpowers/organize-workspace"><img src="https://agentmods.dev/badge/rules/danielvm-git/bigpowers/organize-workspace/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for organize-workspace

Your own site · 80×15
<a href="https://agentmods.dev/rules/danielvm-git/bigpowers/organize-workspace"><img src="https://agentmods.dev/badge/rules/danielvm-git/bigpowers/organize-workspace.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,999 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00093 $0.01999
Opus 5.5 $0.00037 $0.00800
Sonnet 5.5 $0.00019 $0.00400
Haiku 4.5 $0.00009 $0.00200

Measured 1mo ago against content hash 1a1852cfde04, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

organize-workspace scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **Prefer `fd` / `ripgrep` / `find`** in that order; avoid blind `rm -rf` on vague globs.
.cursor/rules/organize-workspace.mdc · 164 lines

How it starts

The opening of the file, as written. The whole thing — 164 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Organize Workspace

HARD GATE — HARD GATE — Workspace structure must reflect domain structure. If the codebase feels disorganized, flag it. Disorganization != 'just a style thing;' it is a signal of domain misalignment.

Principles

  • Read-only first: inventory and size (du, ls -la) before any change.
  • Never delete or move without a numbered list and explicit user approval (item-level or "approve all").
  • Prefer fd / ripgrep / find in that order; avoid blind rm -rf on vague globs.
  • Do not touch .git/, node_modules/, venv/, .env*, or SSH keys; flag them only if the user asked about them.
  • Confirm prompts in the user's language if they are not writing in English.

1. Establish scope

  • Default: current project root (where the user is working) or the path they name.
  • Record OS (macOS vs Linux) for ignore patterns (e.g. .DS_Store).

2. Classify candidates (scan)

Group findings under these buckets:

Bucket Examples Typical action
Logs & temp *.log, logs/, tmp/, temp/, *.pid Delete after confirm
Build / cache dist/, build/, .next/, coverage/, .turbo/ Delete if rebuildable
Package caches root .cache/, __pycache__/ Offer delete
Stray drafts root-level *.md named draft, scratch, temp User picks: delete, move to specs/, or keep
Duplicate / dump dirs old/, backup/, copy/, *_backup List + ask

Use quick size hints: du -sh per top-level dir; sort large items first.

3. Assets & data (organize, not only delete)

If the user wants organization:

  1. Propose a single convention, e.g.:
    • assets/ — images, fonts, static media
    • data/ — JSON, CSV, fixtures, samples
    • specs/ — all planning and domain documents
  2. For each cluster of loose files, suggest one target path and a short rationale.
  3. Use git-aware moves when in a repo: git mv if tracked; otherwise mv and report.
  4. Never move secrets or production DB dumps into docs/ or public assets/.

Read the full file on GitHub · 164 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 164 lines · 93 tokens per session scan C 1a1852cfde04

Subscribe to this mod's changes

organize-workspace is a cursor rule published in the GitHub repository danielvm-git/bigpowers (267 stars, last pushed 27d ago), licensed MIT. It adds 93 tokens to every session and 1,999 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.