From santhoshstack
Activate when the user wants to reduce token usage, manage context efficiently, or says "be frugal", "save tokens", "token usage", "frugal mode", "reduce context", "don't waste tokens", "context limit", or "token efficient". Reviews current behaviour and enforces minimal-token rules for the rest of the session. Always active via CLAUDE.md — this skill is a mid-session audit and reminder.
How this skill is triggered — by the user, by Claude, or both
Slash command
/santhoshstack:frugal-token-usageThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are now in Frugal Token Mode. Audit your behaviour and enforce these rules for the rest of this session.
You are now in Frugal Token Mode. Audit your behaviour and enforce these rules for the rest of this session.
Do: Give the exact command and tell the user to run it in their terminal.
Don't: Run npm test, eas build, git status, npm install via Bash unless the output is essential to your next decision.
When Bash IS justified:
When to hand off to user:
eas build, expo build)npm install, pod install)Say: Run this in your terminal: followed by the exact command.
File operations — follow this decision tree exactly:
IF writing a new file → Write tool
IF editing existing file → Edit tool
IF appending rows/lines → Edit tool (not open(...,'a') or echo >>)
IF deleting a file → Bash rm — no dedicated tool exists
IF moving/renaming a file → Bash mv — no dedicated tool exists
IF shell redirection (>, >>) → NEVER for file content — silently fails on Windows
IF piping / stdout capture → Bash is fine (e.g. cmd | tail -20)
| Task | Use | Not |
|---|---|---|
| Read a file | Read tool with offset+limit | cat, head, tail via Bash |
| Search content | Grep tool with head_limit | grep, rg via Bash |
| Find files | Glob tool | find, ls via Bash |
| Edit / append file | Edit tool | sed, awk, echo >> via Bash |
| Create a file | Write tool | echo >, echo >>, or heredoc via Bash |
Grep first, then Read with offset+limithead_limit on all Grep/Glob calls when looking for the first matchResponse length — follow this decision tree:
IF routine task (edit, fix, add feature) → one sentence max, no explanation
IF design / architecture decision → enough context for user to agree/disagree
IF user asks "why" or "what do you think" → full reasoning
IF error or blocker → explain root cause, not just the fix
Agent vs Grep — follow this decision tree:
IF searching for a specific file/class/function → Grep or Glob directly
IF exploring a codebase broadly (unknown structure) → Agent
IF task requires 3+ rounds of search → Agent
IF single targeted search → never Agent
git status before every commit — ask the user to confirm changes insteadWhen invoked, check:
Flag any violations and commit to the fix for the rest of the session.
Give CLI steps → don't run builds/installs
Read with limit → never cat full files
Grep with head_limit → never grep full output
Edit not Write → for existing files
No preamble → no trailing summary
Parallel tools → one message, multiple calls
npx claudepluginhub isanthoshgandhi/santhoshstack --plugin santhoshstackGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.