/superpowers-optimized:token-efficiencyfrom superpowers-optimized
Always-on operational standard enforcing concise responses, parallel tool execution, no redundant work, exploration tracking, and proactive context compression throughout every session.
Ships in superpowers-optimized. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Core operating standard for all sessions. Apply permanently from activation.
ls or findoffset and limit parameters to read in sequential chunks. Never assume a single read covered the complete file.curl -sf <url> via Bash instead.Maintain a mental index of repository exploration performed in this session. Before every Read, Grep, or Glob call, check this index and skip the call if the result is already known and the file has not been modified since.
| Situation | Action |
|---|---|
| File already read, not modified since | Do NOT re-read — use what you already know |
| File already read, but YOU edited it since | Re-read only the edited file |
| File already read, but another tool/agent may have changed it | Re-read — external changes invalidate your knowledge |
| Identical Grep/Glob pattern + same scope | Do NOT re-run — reuse the previous results |
| Similar but broader Grep/Glob pattern | Run the new search — it may surface new results |
| Context compression occurred (earlier turns disappeared) | Trust your remaining knowledge of file contents; only re-read if you genuinely cannot recall the content you need |
When Claude Code compresses earlier messages, you lose the raw tool output but retain your own reasoning and summaries. This does NOT mean you need to re-read everything — you still know what you learned. Only re-read when you need specific content (exact line numbers, precise syntax) that you can no longer recall.
Do not wait for context to auto-compress mid-task. Break proactively at logical seams — before compaction forces it in the middle of implementation where you need variable names, file paths, and discovered facts intact.
Phase-transition guide — when to break:
| Transition | Break? | Reason |
|---|---|---|
| Research → Planning | Yes | Exploration context is bulky; the plan is the distilled output |
| Planning → Implementation | Yes | Plan is in files/TodoWrite; free context for code |
| Implementation → Testing | Maybe | Keep if tests reference recent code; break if switching focus |
| After a failed approach | Yes | Dead-end reasoning pollutes the next attempt |
| Debugging → next feature | Yes | Debug traces are noise for unrelated work |
| Mid-implementation | No | Losing variable names, discovered paths, and partial state mid-task is costly |
Break context by: invoking context-management to write state.md with discovered facts, then starting fresh with only state.md as input. Always save to state.md before compacting — never after.
What survives compaction (re-injected automatically by the session-start hooks, under a shared size budget in which state.md comes first — a long project-map.md or state.md can push the session-log entries out, and the injected text says so when it does):
| Survives | Lost |
|---|---|
CLAUDE.md and project-map.md | Intermediate reasoning and analysis |
Last 2 [saved] entries from session-log.md | File contents previously read into context |
known-issues.md and context-snapshot.json | Tool call history |
state.md (if written before compacting) | Multi-step conversation context |
| Git state, files on disk | Variable names, paths, facts not saved to state.md |
Why this matters: Auto-compaction at 95% context fill destroys the most recent content — exactly the variable names, discovered paths, and evidence gathered just before implementation. A proactive break well before that preserves all of it. And because project-map.md and session-log entries survive automatically, you only need to save task-specific working state to state.md — not the entire project context.
The number to break at is 60%. That is the same threshold the context pressure gate enforces in skill-activator, which hard-blocks plan execution above it. Breaking earlier is fine; letting it drift past 60% before a phase transition is what the gate exists to prevent. If SP_CONTEXT_PRESSURE_THRESHOLD is set, that value wins — the gate and this guidance always use the same number.
Use context-management when cross-session persistence is needed:
Within a session, Claude Code handles context compression automatically — do not invoke context-management just because the session is long.
Before any multi-step task, identify all missing information and request it in a single message rather than asking across multiple turns.
The plugin automatically compresses noisy Bash output before it enters your context. When you see a line like [compressed: 120->4 lines | git-status], the output was filtered to remove noise while preserving signal.
git diff (any variant) — every line matters for reviewcat/head/tail file reads — content was explicitly requested| grep, | awk, | sed)--verbose or --debug flagscurl/wget responses — API output should not be truncatedIf the same command runs twice within 60 seconds, the second run passes through uncompressed. This handles the case where you re-run a command because the compressed output was insufficient.
SP_NO_COMPRESS=1.sp-no-compress in the project rootActive silently for the entire session. No confirmation output.
What SKILL.md sets; muted values are Claude Code's defaults
24 skills in this plugin
/brainstormingUse when the user wants new features, behavior changes, refactoring with new capabilities, or architecture decisions and no approved design exists yet. Produces a design before any code is written — in the conversation for small changes, as an approved spec document for larger work. Triggers on: "build this", "add a feature", "I want to change", "how should we", "design", "architect", "new project", "refactor", "we need to add/build/create", "implement a new". Routed by using-superpowers, or invoke directly via /brainstorming.
/claude-md-creatorCreates minimal, high-signal CLAUDE.md and AGENTS.md context files based on empirical best practices. Invoke on /init command, "create CLAUDE.md", "update CLAUDE.md", "write AGENTS.md", or "set up Claude Code for this project". Also invoked by brainstorming when repo lacks a context file. tools: Read, Glob, Grep, Bash, Edit
/context-managementnpx claudepluginhub repozy/superpowers-optimized --plugin superpowers-optimizedOther plugins' skills for the same job