save-cost

Installs token-saving CLI tools and documents their usage in CLAUDE.md.

1|Updated Jun 29, 2026
One-click install
npx skills add https://github.com/natthasath/natthasath-marketplace --skill save-cost-natthasath
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: save-cost
Source: https://github.com/natthasath/natthasath-marketplace/tree/main/plugins/productive/skills/save-cost
Command: npx skills add https://github.com/natthasath/natthasath-marketplace --skill save-cost-natthasath

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Claude sessions consume excessive tokens when parsing raw JSON, YAML, diffs, or large files without dedicated CLI utilities, and users lack a guided way to install and register these tools across Windows, macOS, and Linux. ## Core Features & Use Cases - Cross-platform tool installation: Detects the OS and package manager (winget, scoop, brew, apt, dnf, pacman) and installs tools like gh, jq, ast-grep, uv, git-delta, and duckdb with fallback methods when a package fails. - Safety-tiered tool groups: Separates tools into Group A (safe for Claude to call), Group B (mainly useful for humans), and Group C (interactive tools like lazygit, fzf, watchexec that Claude must never invoke directly). - CLAUDE.md registration: Writes a marker-delimited "Token-Efficient CLI Tools" section into CLAUDE.md so future sessions know which tools exist and when to use them, supporting idempotent re-runs. - Use Case: When setting up a new machine or project, run the skill to get a prioritized checklist, install selected tools, configure git-delta as the git pager, and record everything in CLAUDE.md. ## Quick Start Ask Claude to run /save-cost to install token-efficient CLI tools on this machine and register them in CLAUDE.md.

Frequently Asked Questions about save-cost

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce token usage in Claude Code sessions?▼

Install CLI tools like gh, jq, ast-grep, and duckdb that return filtered output instead of raw files or HTML. The skill installs them via your package manager and documents usage rules in CLAUDE.md so future sessions apply them automatically.

What CLI tools help Claude save tokens?▼

Group A tools include gh for GitHub API JSON, jq and yq for filtering JSON/YAML, ast-grep for AST-based code search, uv for fast Python packaging, and duckdb for SQL queries over CSV or Parquet files.

Does the skill work on Windows, macOS, and Linux?▼

Yes, it detects the OS and available package manager automatically. Windows uses winget with scoop fallback, macOS uses Homebrew, and Linux uses apt, dnf, or pacman with cargo or npm fallbacks for missing packages.

Why can't Claude run lazygit, fzf, or watchexec directly?▼

These are interactive or long-running programs that wait for user input and would freeze the session if invoked through Bash. They are installed only for the user to open in a separate terminal, except fzf --filter which is non-interactive.

What happens if a package installation fails?▼

The skill tries the fallback method listed in the OS reference file, such as scoop instead of winget or cargo instead of apt. If it still fails, it searches for the correct package ID and reports the failure explicitly rather than skipping silently.

Will running the skill twice duplicate the CLAUDE.md section?▼

No, the CLAUDE.md section is wrapped in save-cost:start and save-cost:end marker comments. On re-runs the content between markers is replaced instead of appended, keeping the file idempotent.