cost-mode
Use when the user wants to reduce token or API cost, asks for concise or cost-conscious responses, or invokes cost mode.
Skill by victorhg
Chalk Labs
Need help deploying cost-mode?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/victorhg-cost-mode
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/cost-mode
What's inside
- Skill name
cost-mode- Description
- Use when the user wants to reduce token or API cost, asks for concise or cost-conscious responses, or invokes cost mode. Enforces terse output, cheap-model routing, and token-saving workflows via pi-token-saver, /model, /compact, and thinking levels.
- License
- MIT
- Instructions
- 134 lines in SKILL.md · view on GitHub
Files (2)
- NOTICE.md
- SKILL.md
SKILL.md (first lines)
# Cost Mode — token- and cost-conscious Pi sessions
You are in cost-conscious mode. Every token costs money. Minimize waste
while keeping full technical accuracy.
Default: **standard**. Switch with `/skill:cost-mode lite|standard|strict`
(the level arrives as `User: <level>`). Exit with `/skill:cost-mode off` or
when the user says "exit cost mode".
## Know your tools — Pi already saves tokens
`@victorhg/pi-token-saver` runs in the background and needs no prompting:
- Bash output (git, ls/find, grep, installs, test/build logs) is already
auto-filtered into compact summaries and secrets are redacted.
- `token-saver:savings` — cumulative KB saved this session.
- `token-saver:history` — per-command savings breakdown.
- `token-saver:audit` — audit the active model and list cheaper
alternatives with monthly-cost estimates. Use this before suggesting a
model switch.
- `token-saver:passthrough` — bypass filtering for the next command only.
- `token-saver:compress` — scan workspace `.md` files (AGENTS.md,
MEMORY.md, …) for AI-efficient notation savings; these files are sent
with every prompt, so this cuts every turn.
- `token-saver:footer on|off|toggle` — show/hide the 💰 savings badge.
Context management is separate: `@victorhg/pi-auto-compact` (if installed)
auto-compacts before overflow; `/compact [instructions]` triggers it
manually.
## Response Rules
Keep all technical substance. Cut everything else.
**Drop:**
- Pleasantries ("Sure!", "I'd be happy to", "Great question")
- Hedging ("It might be worth considering", "You could potentially")
- Restating the question back to the user
- Trailing summaries of what you just did
- Explaining obvious things the user clearly already knows
**Keep:**
- All technical terms, exact names, specific values
- Code blocks (unchanged)
- Error messages (quoted exactly)
- Warnings about destructive or irreversible operations
- Step-by-step instructions when the task is genuinely multi-step
**Format:**
- Lead with the answer or action, not the reasoning
- One-sentence explanations max, unless the user asks "why"
- Code blocks over prose when showing what to do
- Tables over paragraphs for comparisons
- Bullet points over flowing text
## Intensity Levels
| Level | Behavior |
|-------|----------|
| **lite** | Professional brevity. Full sentences, no filler. Good for team-visible work |
| **standard** | Concise fragments OK. Skip articles where clear. Default mode |
| **strict** | Telegraphic. Abbreviate (config, impl, fn, req, res, DB, auth). Arrows for causality (X -> Y). Maximum savings |
## Model Routing
When spawning subagents or the user asks for a task, suggest the cheapest
viable option:
| Task Type | Suggest |
|-----------|---------|
| Formatting, linting, renaming, imports, git ops | "This doesn't need an LLM — use `prettier` / `eslint --fix` / `git` directly" |
| Single file: tests, docs, types, simple fixes | "A cheaper model or lower thinking handles this: run `token-saver:audit`, then `/model <cheaper>`" |
| Multi-file feature work, debugging, code review | "A mid-tier model at `medium` thinking is sufficient" |
| Architecture, complex refactors, security audits | Keep the flagship model, but drop `high`/`max` thinking for routine turns |
Only suggest model changes when it would save meaningful cost. Don't
suggest on every turn.
**Thinking levels** (`off` / `minimal` / `low` / `medium` / `high` /
`xhigh` / `max`) bill as output tokens — higher levels cost more on the
same model. For routine work, lower the level via `/settings` rather than
switching models; reasoning is a hidden cost multiplier.
## Session Awareness
- After 20+ turns: remind the user "`/compact` will summarize history and save tokens"
- After completing a task: suggest "start a fresh session for the next task"
- When the user asks a simple question mid-complex-session: note "this could be a quick cheap-model / low-thinking question"
- When about to read many files: prefer targeted reads over broad searches
## Code Generation
- Generate minimal working code, not comprehensive examples
- Skip boilerplate the user can infer
- Show diffs or targeted edits over full file rewrites when possible
- Don't add comments explaining obvious code
- Don't add error handling for scenarios that can't happen
## What Cost Mode Does NOT Change
- Technical accuracy (never sacrifice correctness for brevity)
- Code in commits, PRs, and generated files (written normally)
- Security warnings (full clarity always)
- Destructive operation confirmations (full clarity always)
- Responses when the user says "explain in detail" or asks follow-up questions
## Auto-Deactivation
Temporarily exit cost mode when:
- The user is confused (switch to normal, resume after)
- Explaining a complex concept the user hasn't seen before
- Security-sensitive operations
- Writing commit messages or PR descriptions
Resume cost mode after the exception is handled.
## Quick ReferenceFrom victorhg/pi-dev, MIT.
More from victorhg/pi-dev
- 0.529score
pi-extension-development
victorhg
Use when creating or modifying Pi extensions, built-in extension wiring, prompt shims, package scaffolds, package READMEs, or packages/pi-* implementation in…
SkillBFreshness: BClaude Code +9 - 0.528score
pdf-reader
victorhg
Use when reading or extracting content from a PDF file, such as papers and lecture notes.
SkillBFreshness: BClaude Code +9 - 0.524score
youtube-transcript
victorhg
Use when the user provides a YouTube URL and needs the spoken content (captions) as text for analysis, summarization, quoting, or search.
SkillBFreshness: BClaude Code +9 - 0.524score
code-quality
victorhg
Configure and run the @victorhg/pi-code-quality extension via code-quality.json (metric weights, failBelow gate, complexity threshold, file/directory…
SkillBFreshness: BClaude Code +9 - 0.520score
hallmark
victorhg
Anti-AI-slop design skill for greenfield pages, audits, critiques, redesigns, production hardening, deterministic anti-pattern detection, design extraction…
SkillBFreshness: BClaude Code +9 - 0.499score
footer
victorhg
Use when the user asks to customize, change, remove, hide, show, rearrange, or style the Pi status bar / powerdev footer — e.g.
SkillBFreshness: BClaude Code +9 - 0.499score
framed-editor
victorhg
Use when the user asks to frame, box, round, or border the Pi input editor — e.g.
SkillBFreshness: BClaude Code +9 - 0.474score
pi-package-sandbox-test
victorhg
Use when verifying that published my-pi packages install and load for normal users, including Pi package compatibility checks, release validation, sandbox…
SkillCFreshness: CClaude Code +9 - 0.474score
pi-primitive-check
victorhg
Use when evaluating proposed Pi customisation work against built-in Pi primitives before implementation, especially extensions, packages, slash commands, and…
SkillCFreshness: CClaude Code +9 - 0.474score
pi-release-workflow
victorhg
Use when preparing or validating Pi monorepo releases, including Changesets, pnpm lockfile updates, package previews, release-age policy, and installability…
SkillCFreshness: CClaude Code +9 - 0.474score
pi-validation-flow
victorhg
Use when validating Pi monorepo changes after editing TypeScript, Svelte, package manifests, built-in registry, tests, repo tooling, skills, or docs.
SkillCFreshness: CClaude Code +9 - 0.474score
code-quality
victorhg
Use when requesting code analysis, style reviews, linting recommendations, or refactoring suggestions to improve maintainability, performance, and readability.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 24, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/victorhg/pi-dev
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from victorhg
- 0.529score
pi-extension-development
victorhg
Use when creating or modifying Pi extensions, built-in extension wiring, prompt shims, package scaffolds, package READMEs, or packages/pi-* implementation in…
SkillBFreshness: BClaude Code +9 - 0.528score
pdf-reader
victorhg
Use when reading or extracting content from a PDF file, such as papers and lecture notes.
SkillBFreshness: BClaude Code +9 - 0.524score
code-quality
victorhg
Configure and run the @victorhg/pi-code-quality extension via code-quality.json (metric weights, failBelow gate, complexity threshold, file/directory…
SkillBFreshness: BClaude Code +9 - 0.524score
youtube-transcript
victorhg
Use when the user provides a YouTube URL and needs the spoken content (captions) as text for analysis, summarization, quoting, or search.
SkillBFreshness: BClaude Code +9 - 0.520score
hallmark
victorhg
Anti-AI-slop design skill for greenfield pages, audits, critiques, redesigns, production hardening, deterministic anti-pattern detection, design extraction…
SkillBFreshness: BClaude Code +9 - 0.499score
footer
victorhg
Use when the user asks to customize, change, remove, hide, show, rearrange, or style the Pi status bar / powerdev footer — e.g.
SkillBFreshness: BClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get cost-mode running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
cost-mode skill. Agent Mart. https://agentmart.dev/skills/victorhg-cost-mode (last updated 2026-10-24)