一键导入
token-efficiency
Token economy rules: diff-over-rewrite, context compression, avoid verbose re-explanations, minimize round-trips.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Token economy rules: diff-over-rewrite, context compression, avoid verbose re-explanations, minimize round-trips.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Multi-agent delegation rules, three-phase workflow (Plan/Build/Review), model selection, collaboration gates, and Ralph Loop integration.
Autonomous build driver after SDD spec approval: phase-scoped headless build sessions, driver-owned commits, cross-provider review gates, milestone pauses, and fail-closed escalation — under explicit opt-in autonomy profiles.
When and how to ask clarifying questions before implementing. Data model review gate and ambiguity resolution rules.
Quality gates, prohibited patterns, verification discipline, and self-audit rules for all code generation and review sessions.
Cross-copilot portable conventions: read before write, minimal changes, git discipline, project structure, and priority rules.
Copyright header rules for generated source files. Applies the company name from providers.toml to new files.
| name | token-efficiency |
| description | Token economy rules: diff-over-rewrite, context compression, avoid verbose re-explanations, minimize round-trips. |
Practices to minimise token waste across all sessions.
An advisory token budget for the full agentic loop, not a single request. Currently public beta on Opus 4.7 via the API; not available in Claude Code or Cowork at launch.
output_config.task_budget: {type: "tokens", total: N} in the API request.total: 20,000 tokens.max_tokens is still the hard cap per individual request. task_budget shapes behavior across the loop; it does not stop a request from completing.How it composes with effort:
effort controls depth per step (how hard Claude thinks about each turn).task_budget controls breadth across the loop (how much total work Claude attempts before wrapping up)./btw — Side Questions Without Polluting ContextOpus 4.7 introduces /btw <question> for quick sidebar questions that never enter conversation history.
Important — /btw has no tool access. It cannot read files, run bash, search the codebase, or call MCP tools. It can only answer from what is already in the current conversation context (files Claude has already read, prior tool output, system prompts, loaded memory). If the information you need isn't already in context, /btw cannot fetch it.
Good /btw questions (answerable from existing context):
Not good for /btw (require tools, ask as a normal turn instead):
Foo defined in?" — needs grep.If the answer requires fresh tool work, ask it as a normal turn so the lookup runs and the result becomes part of the conversation record.
Per Anthropic's April 30 2026 guidance, prompt caching is the single most important token optimization for Claude Code workflows. Specific rules to keep cache hit rates high:
adaptive and enabled/disabled breaks per-message cache breakpoints. Pick one and stay with it. (See opus-4-7-features.md § Caching Awareness.)ENABLE_PROMPT_CACHING_1H=1 for sessions over 30 minutes. Default 5-minute TTL evicts warm cache between turns when you take a break. (See opus-4-7-features.md § Prompt Caching.)/clear between unrelated tasks. Stale context wastes cache and degrades performance — the cache stays warm only for context that's actually still being used.