When managing token budget use token budget advisor

From DNYoussef/context-cascade · View interactive version

When managing token budget use token budget advisor is an AI agent skill from the GitHub repository DNYoussef/context-cascade. [assert|neutral] Proactive token budget management tool for assessing usage, analyzing task complexity, generating chunking strategies, and creating execution plans that stay within budget limits [ground:given] [conf:0.95] [state:confirmed]

How to use this skill

Skill file

/============================================================================/

/* WHEN-MANAGING-TOKEN-BUDGET-USE-TOKEN-BUDGET-ADVISOR SKILL :: VERILINGUA x VERIX EDITION */

/============================================================================/


name: when-managing-token-budget-use-token-budget-advisor

version: 1.0.0

description: |

[assert|neutral] Proactive token budget management tool for assessing usage, analyzing task complexity, generating chunking strategies, and creating execution plans that stay within budget limits [ground:given] [conf:0.95] [state:confirmed]

category: foundry

tags:

author: ruv

cognitive_frame:

primary: compositional

goal_analysis:

first_order: "Execute when-managing-token-budget-use-token-budget-advisor workflow"

second_order: "Ensure quality and consistency"

third_order: "Enable systematic foundry processes"


/----------------------------------------------------------------------------/

/* S0 META-IDENTITY */

/----------------------------------------------------------------------------/

[define|neutral] SKILL := {

name: "when-managing-token-budget-use-token-budget-advisor",

category: "foundry",

version: "1.0.0",

layer: L1

} [ground:given] [conf:1.0] [state:confirmed]

/----------------------------------------------------------------------------/

/* S1 COGNITIVE FRAME */

/----------------------------------------------------------------------------/

[define|neutral] COGNITIVE_FRAME := {

frame: "Compositional",

source: "German",

force: "Build from primitives?"

} [ground:cognitive-science] [conf:0.92] [state:confirmed]

Kanitsal Cerceve (Evidential Frame Activation)

Kaynak dogrulama modu etkin.

/----------------------------------------------------------------------------/

/* S2 TRIGGER CONDITIONS */

/----------------------------------------------------------------------------/

[define|neutral] TRIGGER_POSITIVE := {

keywords: ["when-managing-token-budget-use-token-budget-advisor", "foundry", "workflow"],

context: "user needs when-managing-token-budget-use-token-budget-advisor capability"

} [ground:given] [conf:1.0] [state:confirmed]

/----------------------------------------------------------------------------/

/* S3 CORE CONTENT */

/----------------------------------------------------------------------------/

<!-- SKILL SOP IMPROVEMENT v1.0 -->

Skill Execution Criteria

When to Use This Skill

When NOT to Use This Skill

Success Criteria

Edge Cases

handling: "Request clarification, document assumptions, proceed with explicit constraints"

handling: "Surface conflict to user, propose resolution options, document trade-offs"

handling: "Flag missing information, provide template for needed context, proceed with documented limitations"

Skill Guardrails

NEVER:

ALWAYS:

Evidence-Based Execution

self_consistency: "After completing this skill, verify output quality by [SKILL-SPECIFIC validation approach]"

program_of_thought: "Decompose this skill execution into: [SKILL-SPECIFIC sequential steps]"

plan_and_solve: "Plan: [SKILL-SPECIFIC planning phase] -> Execute: [SKILL-SPECIFIC execution phase] -> Verify: [SKILL-SPECIFIC verification phase]"

<!-- END SKILL SOP IMPROVEMENT -->

Token Budget Advisor

Kanitsal Cerceve (Evidential Frame Activation)

Kaynak dogrulama modu etkin.

Purpose: Proactively manage token budgets by analyzing current usage, estimating task complexity, generating intelligent chunking strategies, prioritizing work, and creating step-by-step execution plans that stay within budget limits.

When to Use This Skill

Analysis Dimensions

1. Budget Assessment

2. Task Complexity Analysis

3. Chunking Strategy

4. Priority Optimization

5. Execution Planning

Execution Process

Phase 1: Budget Assessment

# Initialize budget analysis
npx claude-flow@alpha hooks pre-task --description "Analyzing token budget"

# Retrieve current usage
npx claude-flow@alpha memory retrieve --key "token-usage/current"

Budget Calculation:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.