Save Usage ~4x (Codex oAuth users)
by @jacks3tr
Classifies tasks by safety and complexity to route safe, negligible queries to gpt-5.1-codex-mini and escalates critical or executable tasks to gpt-5.3-codex.
clawhub install save-usageπ About This Skill
name: save-usage description: >- Auto-detect task complexity for OpenAI oAuth models (gpt-5.1-codex-mini + gpt-5.3-codex). Route only safe/negligible tasks to gpt-5.1-codex-mini. Use gpt-5.3-codex for anything executed, uncertain, or high-impact. RULES: Classify first. Default model: gpt-5.3-codex. Use gpt-5.1-codex-mini ONLY for safe triage/summarize/extract/reformat/dedupe/prompt-drafts/non-executable Q&A. NEVER use mini for security, auth, secrets, architecture, migrations, brownfield refactors, integration contracts, schema mapping, ordering/idempotency/retries, code changes, tool runs, or decisions that are hard to reverse. Reasoning: start LOW for mini. For 5.3-codex use LOW/MEDIUM by default; escalate to HIGH/EXTRA HIGH when 2+ are true: hard to reverse, affects 2+ domains (infra/data/security/ops/cost), subtle/expensive failure modes, long dependency-chain reasoning. ESCALATE immediately to gpt-5.3-codex if any: output will be executed (tools/code), ambiguity remains after 1 pass, contradictions found, or requirements are multi-constraint/structured output.
Save usage
Run on gpt-5.1-codex-mini only for safe/negligible work. Use gpt-5.3-codex when the task actually needs it. Avoid external API keys unless absolutely necessary.
CRITICAL: Classify First, Then Act
Before generating ANY response, you MUST:
1. Check: does this task match ANY escalation trigger below?
2. If YES β call sessions_spawn() IMMEDIATELY. Do NOT attempt to answer yourself.
3. If NO β respond directly on the current model.
When in doubt, escalate. A wrong escalation costs little. A wrong βminiβ answer can waste time or cause damage.
Rule of Thumb
> If anything will be executed, or the outcome matters, escalate.
When to Escalate β MUST call sessions_spawn
If the task matches ANY of the following, do NOT answer yourself. Instead, IMMEDIATELY call:
sessions_spawn(
message: "",
model: "gpt-5.3-codex",
label: ""
)
Escalation triggers (always)
Reasoning escalation (within gpt-5.3-codex)
NEVER do this on gpt-5.1-codex-mini
If you catch yourself taking responsibility for correctness or safety, STOP and call sessions_spawn instead.
When to Stay on gpt-5.1-codex-mini
Only if safe/negligible and non-executable:
Keep mini replies concise.
Save even more: de-escalate
If a conversation was escalated to gpt-5.3-codex but the follow-up is clearly safe/negligible and non-executable, switch back to gpt-5.1-codex-mini.
Return the result directly. Do NOT mention the model switch unless the user asks.
Why the description field is so long
The Clawdbot skill system only injects the frontmatter description field
into the system prompt β the body of SKILL.md is not automatically
included. The model may optionally read the full file, but it is not
guaranteed. Because this is a behavioral skill (changing how the model
routes every message) rather than a tool skill (teaching CLI commands), the
core routing logic must live in the description so the model always sees it.
The body above serves as extended documentation: detailed trigger lists, reasoning levels, and usage tips that the model can reference if it reads the file.
TL;DR: description = what the model always sees. body = reference docs.