agentsclimarketplace

Session miser

Skill scoobydont-666/shared-claude-skills/skills/session-miser

10 production-tested Claude Code skills — model routing, security hardening, code quality, tax advisory, cost optimization. Install: clone to ~/.claude/skills/

Install
npx -y skills add scoobydont-666/shared-claude-skills --skill session-miser

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Intelligent model routing for Claude Code sessions. Recommends optimal model (Opus/Sonnet/Haiku) and effort level based on task complexity. Delegates mechanical work to cheaper subagents. Maximizes quality-per-dollar across the entire session. Trigger on: any new session, "save tokens", "cheaper model", "delegate this", "use sonnet", "effort level", "cost", or automatically when task complexity is clearly below the current model's tier.

SKILL.md

4.8 KB, as published. Nobody here has run it

Session-Miser — Intelligent Session Cost Optimization

Core Principle

Use the cheapest model that can do the job well. Opus for thinking, Sonnet for doing, Haiku for fetching.

Model Selection Matrix

Task TypeModelEffortWhy
Architecture, design, complex reasoningOpushighNeeds deep reasoning
Security audits, code review with judgmentOpusmediumQuality-sensitive
Code generation (new features, complex logic)Opus or SonnetmediumSonnet handles most code well
Code generation (boilerplate, simple functions)SonnetlowTemplated, predictable
Text editing, formatting, refactoringSonnetlowMechanical transformation
Git operations (commit, push, branch, merge)SonnetlowDeterministic commands
File search, grep, glob, reading filesHaiku (subagent)Read-only, no reasoning
Config file edits (.yaml, .json, .toml)SonnetlowStructural, not creative
Documentation writingSonnetmediumNeeds coherence, not deep reasoning
Debugging (root cause analysis)OpushighMulti-step reasoning
Debugging (applying a known fix)SonnetlowJust follow the plan
Research (web search, GitHub crawl)SonnetmediumSynthesis, not deep reasoning
Planning (PRD, architecture)OpushighOpen-ended judgment
Running tests, checking statusHaiku (subagent)Mechanical execution

Session Start Recommendation

At the start of every session, assess the likely work and recommend:

You're on Opus. Based on the project and recent activity:
- If primarily editing/committing/deploying → suggest /model sonnet
- If primarily debugging/designing/architecting → stay on Opus
- If mixing both → stay on Opus but DELEGATE mechanical tasks to subagents

Delegation Rules

ALWAYS delegate these to subagents (automatic, don't ask):

  • File exploration (Explore agent → haiku)
  • Running bash commands for status checks → haiku
  • Git status, diff, log → haiku
  • Searching codebase → haiku

SUGGEST delegating these (mention to user):

  • Bulk file edits across multiple repos → sonnet subagent
  • Running test suites → haiku subagent
  • Documentation generation → sonnet subagent
  • Config file updates → sonnet subagent

NEVER delegate (must stay in main thread):

  • Anything the user is actively discussing
  • Decisions that need user confirmation
  • Security-sensitive operations
  • Complex multi-step reasoning chains

Effort Level Guide

Claude Code supports effort levels: opus:low, opus:medium, opus:high (and sonnet:low/medium/high)

EffortUse ForCost
highFirst attempt at complex problems, architecture, security1x
mediumMost coding, debugging, research~0.7x
lowSimple edits, formatting, git ops, status checks~0.4x

Recommend /model opus:low for simple tasks instead of switching to Sonnet entirely. This preserves Opus quality for unexpected complexity while saving cost.

Integration with Multi-Instance Coordination

When coordinating work across multiple nodes:

  • Route GPU-intensive tasks to GPU hosts (create coordination task with requires: [gpu, ollama])
  • Route mechanical fleet tasks to primary/CPU hosts (lower cost hosts)
  • When creating coordination tasks, specify the model tier in the task description: "This is a sonnet-tier task: bulk edit config files across 5 repos"
  • This helps the claiming instance pick the right model

Cost Tracking

After significant work blocks, check session-snitch:

session-snitch stats       # session cost so far
session-snitch cost        # cost breakdown by model

If session cost is climbing fast, suggest:

  1. Delegate more to subagents
  2. Switch to /model sonnet for the current phase
  3. Use /model opus:low instead of opus:high

Anti-Patterns

DON'T:

  • Use Opus to read a file and report its contents (that's a haiku job)
  • Use Opus to run git status and parse the output (haiku)
  • Use Opus to format JSON or YAML (sonnet:low)
  • Stay on Opus when doing 30 minutes of file edits (switch to sonnet)

DO:

  • Start on Opus for planning, switch to Sonnet for execution
  • Delegate parallel searches to haiku subagents
  • Come back to Opus for review/verification of Sonnet's work
  • Use effort levels to fine-tune cost within a model tier

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.