$npx -y skills add DNYoussef/context-cascade --skill when-managing-token-budget-use-token-budget-advisor/*============================================================================*/ /* WHEN-MANAGING-TOKEN-BUDGET-USE-TOKEN-BUDGET-ADVISOR SKILL :: VERILINGUA x VERIX EDITION */ /*============================================================================*/
| 1 | /*============================================================================*/ |
| 2 | /* WHEN-MANAGING-TOKEN-BUDGET-USE-TOKEN-BUDGET-ADVISOR SKILL :: VERILINGUA x VERIX EDITION */ |
| 3 | /*============================================================================*/ |
| 4 | |
| 5 | --- |
| 6 | name: when-managing-token-budget-use-token-budget-advisor |
| 7 | version: 1.0.0 |
| 8 | description: | |
| 9 | [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] |
| 10 | category: foundry |
| 11 | tags: |
| 12 | - meta-tool |
| 13 | - token-management |
| 14 | - budget-optimization |
| 15 | - task-planning |
| 16 | - chunking |
| 17 | author: ruv |
| 18 | cognitive_frame: |
| 19 | primary: compositional |
| 20 | goal_analysis: |
| 21 | first_order: "Execute when-managing-token-budget-use-token-budget-advisor workflow" |
| 22 | second_order: "Ensure quality and consistency" |
| 23 | third_order: "Enable systematic foundry processes" |
| 24 | --- |
| 25 | |
| 26 | /*----------------------------------------------------------------------------*/ |
| 27 | /* S0 META-IDENTITY */ |
| 28 | /*----------------------------------------------------------------------------*/ |
| 29 | |
| 30 | [define|neutral] SKILL := { |
| 31 | name: "when-managing-token-budget-use-token-budget-advisor", |
| 32 | category: "foundry", |
| 33 | version: "1.0.0", |
| 34 | layer: L1 |
| 35 | } [ground:given] [conf:1.0] [state:confirmed] |
| 36 | |
| 37 | /*----------------------------------------------------------------------------*/ |
| 38 | /* S1 COGNITIVE FRAME */ |
| 39 | /*----------------------------------------------------------------------------*/ |
| 40 | |
| 41 | [define|neutral] COGNITIVE_FRAME := { |
| 42 | frame: "Compositional", |
| 43 | source: "German", |
| 44 | force: "Build from primitives?" |
| 45 | } [ground:cognitive-science] [conf:0.92] [state:confirmed] |
| 46 | |
| 47 | ## Kanitsal Cerceve (Evidential Frame Activation) |
| 48 | Kaynak dogrulama modu etkin. |
| 49 | |
| 50 | /*----------------------------------------------------------------------------*/ |
| 51 | /* S2 TRIGGER CONDITIONS */ |
| 52 | /*----------------------------------------------------------------------------*/ |
| 53 | |
| 54 | [define|neutral] TRIGGER_POSITIVE := { |
| 55 | keywords: ["when-managing-token-budget-use-token-budget-advisor", "foundry", "workflow"], |
| 56 | context: "user needs when-managing-token-budget-use-token-budget-advisor capability" |
| 57 | } [ground:given] [conf:1.0] [state:confirmed] |
| 58 | |
| 59 | /*----------------------------------------------------------------------------*/ |
| 60 | /* S3 CORE CONTENT */ |
| 61 | /*----------------------------------------------------------------------------*/ |
| 62 | |
| 63 | <!-- SKILL SOP IMPROVEMENT v1.0 --> |
| 64 | ## Skill Execution Criteria |
| 65 | |
| 66 | ### When to Use This Skill |
| 67 | - [AUTO-EXTRACTED from skill description and content] |
| 68 | - [Task patterns this skill is optimized for] |
| 69 | - [Workflow contexts where this skill excels] |
| 70 | |
| 71 | ### When NOT to Use This Skill |
| 72 | - [Situations where alternative skills are better suited] |
| 73 | - [Anti-patterns that indicate wrong skill choice] |
| 74 | - [Edge cases this skill doesn't handle well] |
| 75 | |
| 76 | ### Success Criteria |
| 77 | - primary_outcome: "[SKILL-SPECIFIC measurable result based on skill purpose]" |
| 78 | - [assert|neutral] quality_threshold: 0.85 [ground:acceptance-criteria] [conf:0.90] [state:provisional] |
| 79 | - verification_method: "[How to validate skill executed correctly and produced expected outcome]" |
| 80 | |
| 81 | ### Edge Cases |
| 82 | - case: "Ambiguous or incomplete input" |
| 83 | handling: "Request clarification, document assumptions, proceed with explicit constraints" |
| 84 | - case: "Conflicting requirements or constraints" |
| 85 | handling: "Surface conflict to user, propose resolution options, document trade-offs" |
| 86 | - case: "Insufficient context for quality execution" |
| 87 | handling: "Flag missing information, provide template for needed context, proceed with documented limitations" |
| 88 | |
| 89 | ### Skill Guardrails |
| 90 | NEVER: |
| 91 | - "[SKILL-SPECIFIC anti-pattern that breaks methodology]" |
| 92 | - "[Common mistake that degrades output quality]" |
| 93 | - "[Shortcut that compromises skill effectiveness]" |
| 94 | ALWAYS: |
| 95 | - "[SKILL-SPECIFIC requirement for successful execution]" |
| 96 | - "[Critical step that must not be skipped]" |
| 97 | - "[Quality check that ensures reliable output]" |
| 98 | |
| 99 | ### Evidence-Based Execution |
| 100 | self_consistency: "After completing this skill, verify output quality by [SKILL-SPECIFIC validation approach]" |
| 101 | program_of_thought: "Decompose this skill execution into: [SKILL-SPECIFIC sequential steps]" |
| 102 | plan_and_solve: "Plan: [SKILL-SPECIFIC planning phase] -> Execute: [SKILL-SPECIFIC execution phase] -> Verify: [SKILL-SPECIFIC verification phase]" |
| 103 | <!-- END SKILL SOP IMPROVEMENT --> |
| 104 | |
| 105 | # Token Budget Advisor |
| 106 | |
| 107 | ## Kanitsal Cerceve (Evidential Frame Activation) |
| 108 | Kaynak dogrulama modu etkin. |
| 109 | |
| 110 | |
| 111 | |
| 112 | **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. |
| 113 | |
| 114 | ## When to |