antongulin/mole-skills/mole-analyze

Claude Code and agent skill by antongulin/mole-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use Mole to explore macOS disk usage with an interactive TUI or JSON output. Run this skill whenever the user mentions analyzing disk space, finding large files, exploring disk usage, checking storage, or using `mo analyze`. Covers overview mode, directory scanning, file navigation, large file detection, deleting files, JSON output, and custom path analysis.

Install

npx vskill@latest install antongulin/mole-skills/mole-analyze

SKILL.md

Mole Analyze Skill

Author: Anton Gulin · Tool: opencode-skill-creator · GitHub: @antongulin · Registry: skills.sh

Use this skill when you need to help a user explore disk usage on macOS using Mole's analyze command.

Overview

mo analyze provides an interactive disk usage analyzer (built with Bubble Tea) that lets users navigate directories, find large files, and delete files directly. It also supports JSON output for scripting.

Command Reference

Basic Usage
bash
mo analyze # Overview mode: scan Home, Library, Applications, System
mo analyze /path/to/dir # Analyze a specific directory
mo analyze --json # Output analysis as JSON (no TUI)
mo analyze /Volumes/Backup # Analyze an external drive
mo analyze --json /path # JSON output for specific path
mo analyze --help # Show help
Flags
FlagDescription
--jsonOutput analysis as JSON instead of TUI
--helpShow help
Environment Variable
bash
MO_ANALYZE_PATH=/custom/path mo analyze # Set analysis path via env var

Interactive TUI Controls

When running mo analyze without --json, a full-screen TUI opens with these controls:

KeyAction
↑/↓ or j/kNavigate entries (skips zero-size entries)
Enter or → or l/LEnter selected directory
Esc or ← or h/HGo back to parent directory
q or Q or Ctrl+CQuit
r or RRefresh/rescan current directory
t or TToggle large files view
SpaceToggle multi-select for batch operations
Delete or BackspaceDelete selected file(s)/dir(s) (confirms first)
o or OOpen selected file in Finder/application
f or FReveal selected file in Finder
p or PQuick Look preview selected file
Multi-Select Workflow
  1. Navigate to items, press Space to select each
  2. Status bar shows item count and total size
  3. Press Delete to remove all selected items
  4. Confirm by pressing Enter

Overview Mode Entries

When run without a path argument, mo analyze enters overview mode showing:

  1. Home — User home directory
  2. User Library — ~/Library (renamed for clarity)
  3. Applications — /Applications
  4. System Library — /Library
  5. Hidden Insights — System locations that silently accumulate disk usage (e.g., ~/Library/Group Containers/, Time Machine snapshots, Mail downloads, etc.)

Each is scanned asynchronously with a progress indicator.

JSON Output

When --json is passed or stdout is piped, mo analyze --json /path outputs structured JSON:

json
{
"path": "/Users/username",
"total_size": 123456789,
"total_files": 54321,
"entries": [
{
"name": "Library",
"path": "/Users/username/Library",
"size": 50000000,
"is_dir": true,
"last_access": "2026-05-10T14:30:00Z"
}
],
"large_files": [
{
"name": "big-file.dmg",
"path": "/Users/username/Downloads/big-file.dmg",
"size": 4294967296
}
]
}

Workflow Patterns

Pattern 1: Interactive Disk Exploration (Recommended)
bash
mo analyze

Opens a full-screen TUI showing overview of key system directories. Navigate using keyboard controls to drill into folders, find large files, and optionally delete them.

Pattern 2: Analyze a Specific Directory
bash
mo analyze ~/Downloads

Scans the specified directory and opens the TUI with results.

Pattern 3: JSON Output for Scripting
bash
mo analyze --json /path/to/dir

Useful for programmatic analysis or piping to other tools.

Pattern 4: Check External Drive
bash
mo analyze /Volumes/ExternalDrive

Analyze space usage on an external volume.

Pattern 5: Find and Remove Large Files

In the TUI:

  1. Navigate to a directory
  2. Press t to toggle large files view
  3. Use Space to select multiple files
  4. Press Delete and confirm to move to Trash

Performance Notes

  • Scans are cached on disk for fast re-entry
  • Large directories use parallel scanning with controlled concurrency
  • Progress indicators show files scanned and bytes scanned
  • Overview mode scans paths asynchronously to stay responsive

Safety Guidance

  • Deleted files go to Trash (recoverable) — no --permanent flag exists here
  • The delete confirmation requires pressing Enter after the prompt
  • Multi-select allows batch deletion — warn about total size before confirming
  • The r key refreshes the current directory (useful after deletions)
  • Cache is invalidated after deletions to reflect accurate state

Exit Codes

  • 0: Normal exit (quit or finished)
  • 1: Path resolution error

Related Commands

  • mo status — Check overall system health and disk free space
  • mo clean — Clean up caches and temporary files (complementary)
  • mo uninstall — Remove unused applications

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/antongulin/mole-skills/mole-analyze/badge)](https://verified-skill.com/skills/antongulin/mole-skills/mole-analyze)

Something wrong with this skill or its page? Tell us.