chaff

    1

    Find and safely reclaim disk space and memory wasted by stale build artifacts, caches, and orphaned processes.

    Free

    1 installSecurity scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more

    chaff

    Example session with this skill installed

    My disk is almost full and the machine is lagging. Check what's taking up space and give me a plan to clean up safely.

    • Read your context and instructions
    • Compiled the chaff

    I have analyzed your system's resource usage. You currently have significant disk pressure from stale build caches and orphaned git worktrees. I have generated a reclamation plan categorized by risk level.

    System Cleanup Plan (chaff_plan_8f2d)

    TargetTypeSizeTierStatus
    ~/code/old-project/node_modulesStale Cache1.2 GBTier 1 (Dead)Orphaned
    ~/code/api/.git/worktrees/feature-xGit Worktree850 MBTier 1 (Dead)Merged
    ~/.gradle/cachesBuild Cache4.5 GBTier 2 (Idle)Not used > 14 days
    NX Daemon (PID 49202)Build Process400 MBTier 2 (Idle)Inactive
    ~/code/current-app/targetBuild Output2.1 GBTier 3 (Live)[Building]

    Summary:

    • Tier 1 (Safe to reap): 2.05 GB can be reclaimed immediately.
    • Tier 2 (Requires approval): 4.9 GB of caches/daemons can be cleared.
    • Tier 3 (Skipped): 2.1 GB is currently locked by active processes.

    Next steps

    1. Run chaff_reap to clear the 2.05 GB of dead Tier 1 assets.
    2. Review the idle Gradle caches; if you don't need them, I can run chaff_clean --tier=2.
    3. Use chaff_worktrees --dirty to verify no uncommitted code exists in the feature-x worktree.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Developer machines accumulate gigabytes of dead weight that slow down builds and trigger disk space errors. This skill identifies and safely reclaims memory and disk space by targeting stray build daemons, stale caches, and abandoned worktrees without risking active work.

    What it does

    • Resource auditing identifies memory pressure and disk usage across local development environments.
    • Tiered reclamation categorizes targets into dead assets (Tier 1), idle caches (Tier 2), and active work (Tier 3) to prevent accidental data loss.
    • Build daemon management locates and terminates orphaned processes from Gradle, NX, or Node.js.
    • Safe worktree pruning detects uncommitted changes in abandoned git worktrees before suggesting removal.
    • Undoable operations moves files to a managed trash instead of immediate deletion, allowing for restoration.

    How it works

    1. Assessment via chaff_status to determine current system pressure and identify specific bottlenecks.
    2. Planning using chaff_plan to generate a list of targets and their associated tiers/sizes for user review.
    3. Safety check with chaff_worktrees to ensure no uncommitted code is lost in stale directories.
    4. Execution of chaff_reap for dead assets or chaff_clean for idle caches after explicit user confirmation.
    5. Verification by re-running status checks to report total reclaimed space and memory.

    Frameworks & tools

    Works with Node.js, Gradle, NX, git worktrees, and standard build daemons. Integrates via MCP, Claude Code plugins, or the @gulsahsarsilmaz/chaff CLI.

    Why this beats prompting it yourself

    Writing manual rm -rf commands or shell scripts risks deleting uncommitted work or active build artifacts. This skill uses a tiered safety system and built-in trash/restore functionality that basic file system prompts cannot replicate.

    Use cases

    • Fix ENOSPC "no space left on device" errors during large npm installs.
    • Clean up orphaned tsserver or gradle processes causing system lag.
    • Identify and remove forgotten git worktrees that duplicate heavy project caches.
    • Recover disk space by clearing stale build outputs from inactive projects.

    Known limitations

    Tier 3 (live work) removal is disabled over MCP and requires manual CLI execution. Requires the chaff MCP server or CLI package to be available in the environment.

    How to use

    Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    1 install

    Downloaded by developers to date

    Free forever

    No account required to browse

    Trust & safety

    Security scanned

    Verified clean 4 days ago

    • Free to download with an account

    Requires

    @gulsahsarsilmaz/chaff
    Node.js
    Git

    Listed4 days ago

    What's inside

    Frequently Asked Questions