Skip to content
Skills Library
Personal productivity · Automation

w-token-efficient

/w-token-efficient

Use for multi-step tasks that read/write files or a repo, spawn subagents, or run retries/unattended loops, or when a session is getting long: map-first reads, scoped output, bounded loops, compact discipline, brief reports.

Licence
MIT
Last repository change
08.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
5
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 08.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use for multi-step tasks that read/write files or a repo, spawn subagents, or run retries/unattended loops, or when a session is getting long: map-first reads, scoped output, bounded loops, compact discipline, brief reports.

Original author description

Use for multi-step tasks that read/write files or a repo, spawn subagents, or run retries/unattended loops, or when a session is getting long: map-first reads, scoped output, bounded loops, compact discipline, brief reports.

How it works

  1. Rules
  2. Compact discipline
  3. Cheap habits
Original SKILL.md headings · 31 lines, 479 words
SKILL.md preview
---
name: "w-token-efficient"
description: "Use for multi-step tasks that read/write files or a repo, spawn subagents, or run retries/unattended loops, or when a session is getting long: map-first reads, scoped output, bounded loops, compact discipline, brief reports."
---

# Token-efficient work rules (Token 高效工作法)

Finish the same task with fewer tokens. These rules change HOW you read, split, stop, compact and report, not WHAT you do. Tokens leak through unneeded reads, stale history re-carried every turn, unbounded retries, noisy tool output and recaps.

## Rules

1. **Map first, files on demand.** Start from a short map (file tree + entry points/key interfaces). Read a file only when the task needs it; full re-read only on the first pass or after a big refactor. Not: reading all of `src/` "to get familiar".
2. **Scope every read and output.** Explicit paths/modules; skip node_modules, build output, logs, large data. Cap noisy command output (`head`, `tail`, `-n`, `--stat`, grep with a path); use Read with offset+limit. Not: an unfiltered recursive grep from the repo root.
3. **Compact at breakpoints, not at the wall** (below).
4. **Subagents only when useful.** Independent tasks that don't read the same files; start with 2-3 max; narrow scope each; ask for conclusions + file paths, not pasted code. Each starts cold, so overlapping reads are paid twice.
5. **Always bound loops.** Set up front: max attempts, time/budget cap, stop rule (same step fails 3 times in a row → stop, report what was tried and why it failed). Never edit tests just to make them pass (no commented-out assertions, no "rerun until green").
6. **Right-size model and plan.** Smaller model for simple edits/lookups; for changes touching more than ~3 files write a change list first.
7. **Report briefly.** Result + one next step; no recap of actions.

## Compact discipline

Every turn re-carries the full history, so long context costs more per step and quality drops before the window is full.

- One task per session; unrelated new work → `/clear` or a new session, not `/compact`.
- Breakpoints: subtask done, tests passing, failed approach abandoned, or before moving to another part of the repo.
- Claude can't run `/compact` or see the context percentage. At a breakpoint in a long session (many tool calls, big outputs, several subtasks), say once, in one line, that now is a good time to compact, with preservation text, e.g. `/compact keep: goal, files changed, commands run, failing tests + exact errors, decisions, next steps; drop: old exploration, repeated logs`. Don't repeat until the next breakpoint; never interrupt mid-subtask.
- Before compacting, write must-survive state to a notes file, TODO list or commit, not only chat.
- User side: compact around ~70% (`/context` or a status line shows usage); past ~90% quality is already degraded. A `# Compact instructions` section in CLAUDE.md can list what to keep/drop. `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=70` makes auto-compact fire earlier (reported to only lower the threshold, never raise it).

## Cheap habits

Keep CLAUDE.md short (occasional guidance → skills, one-off workflows → commands); disable MCP servers not needed for the task, each adds passive context.

Worked example: `examples.md`.
Files in this package (5)
  • LICENSE 1 KB
  • README.md 5 KB
  • README.zh-CN.md 5 KB
  • SKILL.md 3 KB
  • examples.md 1 KB

Versions

The database has no other skills named w-token-efficient.

Database snapshot: 13.11.2026 · package version 6c4bf10f02c0 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90token-efficient-execution
    Reduce token waste in long coding-agent sessions by avoiding repeated reads, noisy output, oversized context, broad rewrites, and unnecessary narration. Use on long tasks, heavy repos, multi-file audits, shell-heavy debugging loops, or whenever token budget is a practical delivery constraint.
  • 100lean
    Use when the user invokes /lean, says "save tokens", "token efficient", "don't drain my tokens", "watch the budget", "cheap mode", or at the start of any large multi-step task where token cost matters. Also use when about to do bulk reads, spawn subagents, or process large…
  • 100token-efficiency-optimizer
    Keep Claude responses concise, context-aware, and efficient without sacrificing accuracy. Use for everyday chat, research, explanations, and multi-step tasks when unnecessary verbosity or repeated work would waste tokens.
  • 100token-diet
    Work in a token-efficient way: read in slices, search before reading, delegate bulk reading to cheap subagents and compact on time. Use on every long or expensive session, or when the user mentions cost, limits or tokens.
  • 100planning-with-files
    Implements file-based planning for complex multi-step tasks. Creates task_plan.md, findings.md, and progress.md as persistent working memory. Use when starting tasks requiring >5 tool calls, multi-phase projects, research, or any work where losing track of goals and progress would be costly.
  • 95planning-with-files
    Transforms workflow to use Manus-style persistent markdown files for planning, progress tracking, and knowledge storage. Use when starting complex tasks, multi-step projects, research tasks, or when the user mentions planning, organizing work, tracking progress, or wants structured output.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.