context-budget-guard

Scan inputs, summarize results, and transmit minimal fragments with budget checks.

3|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/eaglhuang/cocos_new --skill context-budget-guard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-budget-guard
Source: https://github.com/eaglhuang/cocos_new/tree/main/.agents/skills/context-budget-guard
Command: npx skills add https://github.com/eaglhuang/cocos_new --skill context-budget-guard

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps reduce the risk of token growth by scanning inputs, summarizing results, and transmitting only the minimal fragments needed for decision and context.

Core Features & Use Cases

  • Context scoping: detect when inputs risk excessive tokens and trigger concise summaries instead of full payloads.
  • Guardrails for sharing: enforce per-task budget levels (ok, warn, hard-stop) and produce compact handoff cards.
  • Artifact management: generate structured diffs and selective references for image-heavy QA, large manifests, and long notes.

Quick Start

Ask the agent to run a budget check and generate a minimized handoff card before sharing artifacts.

Frequently Asked Questions about context-budget-guard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce context window token usage in long agent workflows?

To reduce context window token usage in long agent workflows, scan inputs, summarize results, and transmit only minimal necessary fragments. This approach prevents information overload and enforces token budget checks.

What's the best way to generate compact handoff cards for task manifests?

The best way to generate compact handoff cards for large task manifests is to run a context budget check. This process scopes inputs, enforces per-task budget levels, and outputs a minimized handoff card with only essential fragments.

How does context budget management work for image-heavy QA artifacts?

Context budget management for image-heavy QA artifacts works by detecting excessive token risks and generating structured diffs or selective references. This ensures only minimal necessary fragments are transmitted instead of full payloads.

Can I enforce hard-stop limits on token growth during long notes handoffs?

Yes, you can enforce hard-stop limits on token growth during long notes handoffs. The system applies per-task budget levels including ok, warn, and hard-stop to guard against information overload and transmit only essentials.

When do I need context budget guardrails for agent workflows?

You need context budget guardrails for agent workflows whenever token usage risk warrants selective sharing, such as handling image-heavy QA, large keep/todo/task manifests, or long notes handoffs that risk excessive context growth.