Borrowing it
Nothing to install: this file belongs to bybren-llc/a-safe-pulse. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/bybren-llc/a-safe-pulse/dev/.gemini/commands/media/organize-files.tomlgit clone --depth 1 https://github.com/bybren-llc/a-safe-pulseWrote 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.
[](https://agentmods.dev/commands/bybren-llc/a-safe-pulse/organize-files)<a href="https://agentmods.dev/commands/bybren-llc/a-safe-pulse/organize-files"><img src="https://agentmods.dev/badge/commands/bybren-llc/a-safe-pulse/organize-files/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.
<a href="https://agentmods.dev/commands/bybren-llc/a-safe-pulse/organize-files"><img src="https://agentmods.dev/badge/commands/bybren-llc/a-safe-pulse/organize-files.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00890 |
| Opus 5 | $0.00000 | $0.00445 |
| Sonnet 5 | $0.00000 | $0.00178 |
| Haiku 4.5 | $0.00000 | $0.00089 |
Grade A, and why
organize-files scanned grade A with 0 findings 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 6d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
100% identical to organize-files — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.
description = "Organize and rename files based on content analysis"
prompt = """
Organize Files Command
Intelligently organize files using Gemini's multimodal analysis to understand content, not just extensions.
Target Directory: {{args}}
Capabilities
- Analyze file contents (images, PDFs, documents)
- Rename based on actual content
- Organize into semantic folders
- Add EXIF dates to image filenames
- Detect duplicates by content similarity
Workflow
1. Scan Directory
!{find {{args}} -type f -not -path "*/.*" 2>/dev/null | head -50}
Get file statistics:
!{find {{args}} -type f -not -path "*/.*" 2>/dev/null | wc -l}
2. Analyze File Types
Categorize files by type:
| Category | Extensions | Analysis Method |
|---|---|---|
| Images | png, jpg, gif, webp | Visual content analysis |
| Documents | pdf, doc, docx | Text extraction |
| Audio | mp3, wav, aac | Metadata/transcription |
| Code | js, ts, py, etc. | Purpose detection |
| Data | json, csv, xml | Schema analysis |
3. Content-Based Organization
For Images:
- Screenshots →
screenshots/ - Photos (with faces) →
photos/people/ - Product images →
photos/products/ - Diagrams →
diagrams/ - Icons →
icons/
For Documents:
- Invoices →
documents/invoices/ - Contracts →
documents/contracts/ - Reports →
documents/reports/ - Receipts →
documents/receipts/
For Code:
- Components → by framework/purpose
- Tests →
tests/ - Utilities →
utils/
4. Smart Renaming
Apply naming conventions:
Images with EXIF:
IMG_1234.jpg → 2025-01-14_vacation_beach_sunset.jpg
Documents:
Document1.pdf → 2025-01-14_invoice_acme_corp_1234.pdf
Screenshots:
Screenshot 2025-01-14.png → screenshot_vscode_debug_panel.png
5. Generate Organization Plan
Before making changes, show plan:
## File Organization Plan
### Will Create Folders:
- photos/
- documents/invoices/
- screenshots/
### Will Rename:
| Original | New Name | Reason |
|----------|----------|--------|
| IMG_1234.jpg | 2025-01-14_beach.jpg | EXIF date + content |
| doc.pdf | invoice_acme_123.pdf | Invoice detected |
### Will Move:
| File | From | To |
|------|------|-----|
| screenshot.png | ./ | screenshots/ |
Proceed? (y/n)
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.
- 6d ago First seen · 147 lines · 0 tokens per session scan A b40167ec2963
organize-files is a command published in the GitHub repository bybren-llc/a-safe-pulse (9 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 890 tokens. A static security scan graded it A with 0 findings. It is 100% identical to organize-files, differing in 0 lines, and is treated as a copy.
Other commands, from other repositories
cancel-ralph
Cancel active Ralph Loop.
obsidian-recap
Summarize a time period from the vault - today, week, or month.
setup-pm-skills
Onboard a new user — find out what they do, recommend the right bundles & top skills, and set up a project CONTEXT.md so every skill is tailored to them.
statusbar-style
Switch the status-bar style (classic / capsule / hairline).
engage.actions
Execute Phase 7 - Actions on Objectives and Goal Achievement.
superpowers-execute
Execute the current GSD phase plan with Superpowers instead of gsd-execute-phase.