From infracost
Uninstall the Infracost CLI. Use this skill when the user asks to uninstall or remove Infracost from their system.
npx claudepluginhub infracost/agent-skills --plugin infracostThis skill is limited to using the following tools:
Remove the Infracost CLI binary from the system.
Uninstalls Pith from Claude Code: removes hooks, slash commands (/pith, /budget, /focus), and cleans settings.json pith entries. Preserves ~/.pith/state.json unless full wipe requested.
Automates dry-run cleanup of unused AWS resources like unattached EBS volumes, old snapshots, stopped EC2 instances, Elastic IPs, and S3 objects to reduce costs.
Share bugs, ideas, or general feedback.
Remove the Infracost CLI binary from the system.
Find the installed infracost-preview binary:
command -v infracost-preview
If the command is not found, inform the user that Infracost is not installed and stop.
Resolve the real path of the binary (following symlinks) and check whether it appears to be managed by a package manager. Do not remove the binary if the resolved path is inside any of these directories:
REAL_PATH=$(realpath "$(command -v infracost-preview)")
/opt/homebrew/ (Homebrew on Apple Silicon)/usr/local/Cellar/ (Homebrew on Intel Mac)/home/linuxbrew/ (Linuxbrew)/usr/bin/ (system packages via apt, yum, dnf, etc.)/snap/ (Snap packages)/nix/store/ (Nix packages)$resolvedPath = (Get-Command infracost-preview).Source | Resolve-Path
C:\ProgramData\chocolatey\ (Chocolatey)C:\tools\ (Chocolatey alternative install location)$env:LOCALAPPDATA\scoop\ (Scoop)C:\Program Files\WinGet\ (WinGet/msstore)If the resolved path falls inside any of these directories, inform the user that the binary appears to be managed by a package manager and they should use that package manager to uninstall it instead. Stop and do not proceed.
Delete the binary at the path returned by step 1.
rm -f /path/to/infracost-preview
If rm fails with a permission error, retry with sudo:
sudo rm -f /path/to/infracost-preview
Remove-Item -Path (Get-Command infracost-preview).Source -Force
Confirm the binary has been removed:
command -v infracost-preview
The command should return nothing or report that infracost-preview is not found.
command -v infracost-preview returns nothing, inform the user that Infracost is not installed and stop.sudo. If that also fails, inform the user they need to grant write access or run with elevated privileges.