Install
$ agentstack add skill-besync-labs-antigravity-ai-kit-context-budget ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Context Budget Skill
> Purpose: Manage LLM context window as a finite resource. Ensure the right agents and skills are loaded for each task while preventing context overflow.
Overview
LLM context windows have hard token limits. Loading all 19 agents and 27 skills simultaneously consumes context that should be reserved for the actual work. This skill implements intelligent selective loading to maximize usable context for code and reasoning.
How It Works
1. Domain Detection
At the start of each task, analyze the user request to identify which domains are involved:
User: "Add JWT authentication to the API"
→ Detected domains: security, backend, testing
→ Load: security-reviewer, backend-specialist, tdd-guide
→ Load: security-practices, api-patterns, testing-patterns
2. Selective Loading
Consult engine/loading-rules.json to determine which agents and skills to load:
- Always loaded (core):
rules.md,manifest.json,workflow-state.json - Session context:
session-context.md,session-state.json - Domain-specific: Only agents/skills matching detected domains
3. Budget Limits
| Resource | Default Limit | Rationale | |:---------|:-------------|:----------| | Agents per session | 4 | Each agent ~200-500 tokens of context | | Skills per session | 6 | Each skill ~200-800 tokens of context | | Maximum loaded context | ~30% of window | Reserve 70% for code and reasoning |
4. Overflow Prevention
When approaching context limits:
- Warn: Alert that context is nearing capacity
- Compact: Apply
strategic-compactskill to summarize completed work - Unload: Release agents/skills no longer needed for current phase
- Persist: Save important context to
session-state.jsonbefore compaction
Task-Based Loading Profiles
| Task Type | Agents Loaded | Skills Loaded | |:----------|:-------------|:-------------| | Security audit | security-reviewer, architect | security-practices, architecture | | Feature build | planner, architect, tdd-guide | plan-writing, testing-patterns, clean-code | | Bug fix | build-error-resolver | debugging-strategies | | Sprint planning | sprint-orchestrator, planner | plan-writing, brainstorming | | Code review | code-reviewer, security-reviewer | clean-code, security-practices | | Deployment | devops-engineer, reliability-engineer | deployment-procedures, docker-patterns |
Integration
- Triggered at session start by reading
engine/loading-rules.json - Enforced by
reliability-engineeragent - Monitored throughout session lifecycle
- Compaction delegated to
strategic-compactskill
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: besync-labs
- Source: besync-labs/antigravity-ai-kit
- License: MIT
- Homepage: https://besync-labs.github.io/antigravity-ai-kit/
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.