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.

Scans the active workspace for disposable artifacts—logs, caches, stale build output, and stray draft markdown—and proposes consolidation of scattered assets. Produces a reviewable list, asks for explicit confirmation before any delete or move, and optionally revises .gitignore. Use when the user says "clean my room"…

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/danielvm-git/bigpowers/organize-workspace
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
Origin unknown 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 $0.00093 $0.01999
Opus 5 $0.00046 $0.01000
Sonnet 5 $0.00019 $0.00400
Haiku 4.5 $0.00009 $0.00200

Measured today against content hash 1a1852cfde04, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 today.

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 GATEHARD 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. today 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 (163 stars, last pushed 2d ago), licensed MIT. It adds 93 tokens to every session and 1,999 once invoked, about $0.0005 per session on Opus 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.