disk-cleaner
БесплатноЗапускает вложенные скриптыНе проверенCross-platform disk space management toolkit with intelligent optimization. REQUIREMENTS: Python 3.7+. UNIVERSAL COMPATIBILITY: Works with ALL AI IDEs…
Об этом скилле
Disk Cleaner Skill - Complete Feature Guide for All Agents
🚨 IMPORTANT: Emoji Usage Policy
For Script Output (Cross-Platform Safety)
- NEVER use emoji in script output - All scripts use ASCII-safe characters
- Scripts use:
[OK],[X],[!],[*],[i],[DIR],[FILE],[PKG],[x] - This ensures compatibility with Windows GBK and other non-UTF-8 consoles
- DO NOT modify script output to add emoji - This will break cross-platform compatibility
For Agent-to-Human Communication (Recommended)
- SHOULD use emoji when reporting results to humans - Makes output more readable
- Use these emoji in your final reports to users:
✅(Success) - Completed operations, successful scans❌(Error) - Failed operations, critical errors⚠️(Warning) - Warnings, issues that need attention🔍(Scanning) - Search/scan operations📊(Statistics) - Analysis results, statistics📁(Directory) - Directory-related information📦(Package) - Package/module information🎉(Success) - Celebratory messages for successful completion🚨(Critical) - Critical warnings💡(Tip) - Suggestions, recommendations📋(List) - Checklists, summaries🔧(Tool) - Tools, utilities🌐(Global) - Cross-platform, universal features🛡️(Safety) - Safety-related information⚡(Performance) - Performance improvements📝(Document) - Documentation🎓(Learning) - Educational content📞(Support) - Help, support information📈(Growth) - Improvements, gains🎯(Target) - Goals, objectives🚀(Launch) - Quick start, fast operations🛠️(Tools) - Tool-related features
Example:
Script output (ASCII): [OK] Scan completed: 50,000 files in 30 seconds
Your report to human: ✅ Scan completed successfully! Found 50,000 files in 30 seconds
📦 COMPLETE FEATURE LIST (READ THIS FIRST!)
🚨 CRITICAL: Progressive Scanning (MANDATORY for Large Disks)
- ✅ Quick Sample Mode: 1-second estimation of disk size and scan time
- ✅ Progressive Scan Mode: Get partial results in 30 seconds for large disks
- ✅ Smart Time Limits: Prevent users from waiting hours
- ✅ Real-time Feedback: Progress updates every 2 seconds
- ✅ Interruptible: Ctrl+C to get partial results
🔧 Intelligent Bootstrap (Auto-Detection & Import)
- ✅ Auto Location Detection: Searches 20+ common skill package locations
- ✅ Environment Variable Support: DISK_CLEANER_SKILL_PATH override
- ✅ Auto Module Import: Automatically imports diskcleaner modules
- ✅ Fallback Mechanisms: Works even if some features unavailable
- ✅ Cross-Platform Python Detection: Tries both 'python' and 'python3'
🌐 Universal Compatibility
- ✅ All AI IDEs: Cursor, Windsurf, Continue, Aider, Claude Code, etc.
- ✅ All Platforms: Windows, macOS, Linux (including Windows GBK console)
- ✅ All Installation Levels: Global, project, user level
- ✅ No Configuration Needed: Works out of the box
- ✅ Cross-Platform Encoding: All scripts use ASCII-safe output (v2.0+)
🛡️ Safety & Reliability
- ✅ Diagnostic Tool: check_skill.py - verifies all functionality
- ✅ Safe Encoding: All scripts use ASCII characters (no emoji in output)
- ✅ Safe Defaults: --dry-run for cleaning, smart limits for scanning
- ✅ Protected Paths: Never deletes system directories or executables
- ✅ Error Handling: Graceful degradation on errors
- ✅ GBK/UTF-8 Compatible: Works on Windows GBK, UTF-8, and all other encodings
⚡ Performance Optimizations (ALL INCLUDED)
- ✅ QuickProfiler: Fast sampling to estimate scan characteristics
- ✅ ConcurrentScanner: Multi-threaded I/O for 3-5x speedup
- ✅ os.scandir() Optimization: 3-5x faster than Path.glob
- ✅ IncrementalCache: Cache scan results for faster repeat scans
- ✅ Memory Monitoring: Auto-adapts based to available memory
- ✅ Early Stopping: Configurable file/time limits
- ✅ Enhanced Cache Detection: 26+ cache paths (was 8) - 225% improvement
🆕 v2.2+ New Features
- ✅ Duplicate File Detection: Find and remove duplicate files with adaptive strategies
- ✅ Growth Trend Analysis: Track disk usage over time, predict when disk will be full
- ✅ Interactive Wizard: Step-by-step guided cleanup with safety confirmations
- ✅ File Organization: Intelligent file archival and organization (4 strategies)
- ✅ Enhanced Scan Limits: 500K files (was 50K), 120s timeout (was 30s)
- ✅ Deep Scan Mode:
--deep-scanfor unlimited scanning - ✅ Windows Directory Support:
--include-windowsfor system directory scanning
📊 Available Scripts (13+ Total)
Core Analysis:
- analyze_disk.py - Disk analysis with smart sampling (enhanced v2.2)
- analyze_progressive.py - Progressive scanning for large disks
- find_duplicates.py - Duplicate file detection (NEW v2.2)
- analyze_growth.py - Growth tr
Установить disk-cleaner в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл disk-cleaner?
Cross-platform disk space management toolkit with intelligent optimization. REQUIREMENTS: Python 3.7+. UNIVERSAL COMPATIBILITY: Works with ALL AI IDEs (Cursor, Windsurf, Continue, Aider, Claude Code, etc.). PLATFORM-INDEPENDENT: Works at any location - global, project, or user level. SELF-CONTAINED: No pip install needed, includes intelligent bootstrap. KEY FEATURES: (1) PROGRESSIVE SCANNING: Quick sample (1s) + Progressive mode for large disks, (2) INTELLIGENT BOOTSTRAP: Auto-detection of skill location and auto-import of modules, (3) CROSS-PLATFORM ENCODING: Safe emoji/Unicode handling on all platforms, (4) DIAGNOSTIC TOOLS: check_skill.py for quick verification, (5) OPTIMIZED SCANNING: 3-5x faster with os.scandir(), concurrent scanning, intelligent sampling. AGENT WORKFLOW: (1) Check Python, (2) Find skill package (20+ locations auto-detected), (3) Run diagnostics, (4) Use progressive scanning for large disks. The skill package includes all optimization modules - no features are lost!
Как установить скилл disk-cleaner?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл disk-cleaner запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic