一键导入
token-optimizer
Classify task complexity and right-size reasoning depth, context gathering, and response detail to reduce wasted tokens.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Classify task complexity and right-size reasoning depth, context gathering, and response detail to reduce wasted tokens.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Review code, decisions, and artifacts through an independent committee and safety guard, then optionally run bounded, approval-gated remediation. Trigger: reviewing risky artifacts or remediating structured review findings.
Plan, execute, and verify multi-step work through versioned specs with small, testable tasks. Trigger: planning or executing feature work, bug fixes, and multi-phase implementation.
Guide implementation through evidence-based RED, GREEN, and REFACTOR cycles without assuming a language, framework, or test runner. Trigger: implementing testable behavior or reproducing a regression with tests first.
Guide users from Figma MCP installation and authentication through first canvas creation, with function-level tool coverage and operational recovery patterns.
Capture compact, neutral, AI-ready Markdown handoffs that preserve session context across chats without becoming a full transcript or personal memory store. Trigger: summarizing, compacting, preserving, or handing off session context across chats.
Author root AGENTS.md as a Where/What/When orchestrator that routes tasks and skill invocation clearly.
| name | token-optimizer |
| description | Classify task complexity and right-size reasoning depth, context gathering, and response detail to reduce wasted tokens. |
| skillMetadata | {"author":"skilly-hand","last-edit":"2026-04-03","license":"Apache-2.0","version":"1.0.3","changelog":"Migrated token-optimizer into portable catalog format with curated model-agnostic guidance; improves default reasoning and token-efficiency behavior across installs; affects skill discovery, auto-invoke routing, and install baseline","auto-invoke":"Classifying task complexity and choosing reasoning depth/token budget","allowed-tools":["Read","Edit","Write","Glob","Grep","Bash","Task"]} |
Use this skill when:
Do not use this skill for:
Pick a complexity tier before doing substantial work:
| Tier | Typical Shape |
|---|---|
| Trivial | Single lookup, deterministic answer, no ambiguity |
| Simple | 2-3 clear steps, minimal context, low risk |
| Moderate | Multiple files or decisions, some trade-offs |
| Complex | Broad impact, cross-cutting behavior, non-trivial edge cases |
| Expert | Security/performance critical, architecture-level consequences |
Use the lightest viable approach, then escalate only if needed:
| Tier | Reasoning Style | Context Gathering | Response Depth |
|---|---|---|---|
| Trivial | None or minimal | Direct targeted read/search | 1-2 sentences |
| Simple | Light | 1-2 focused operations | Brief factual answer |
| Moderate | Selective | 3-5 targeted operations | Concise rationale |
| Complex | Regular | Systematic exploration | Detailed explanation |
| Expert | Deep | Broad investigation + explicit trade-offs | Thorough analysis |
Escalate one tier when you discover:
Do not jump to the highest-effort tier by default.
Always prefer:
rg) before broad scans.Avoid:
Single lookup with known target? -> Trivial
Needs 2-3 clear actions and limited context? -> Simple
Touches multiple files or design choices? -> Moderate
Needs architectural/refactor trade-offs? -> Complex
Impacts security/performance/core reliability? -> Expert
Upgrade one tier if:
Downgrade one tier if:
Request: "What version is in package.json?"
Approach: single file read, no extra reasoning, direct answer.
Request: "Check whether alert component has tests."
Approach: targeted file search, return yes/no + location.
Request: "Add disabled state to button component."
Approach: inspect component + styles + tests, apply existing patterns, summarize key decisions.
Request: "Refactor validation flow to support async checks."
Approach: analyze architecture and compatibility constraints, propose phased changes, verify behavior end-to-end.
rg --files
rg -n "<pattern>" <path>
rg -n "TODO|FIXME" src