tools/skills/aaf-cost-context/SKILL.md
--- name: aaf-cost-context description: Applies AAF Cost pillar and context optimization: budgets, model routing, token economics, context discipline. Use when controlling cost in agentic systems, budgeting context, choosing model routing, or designing for token economics. --- # AAF Cost & Context Cost optimization in agentic systems is an architectural requirement: autonomy without budgets is cost volatility by design. Context optimization cross-cuts cost, performance, reliability, and securi
npx skillsauth add agenticaf-community/frameworkcore tools/skills/aaf-cost-contextInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Cost optimization in agentic systems is an architectural requirement: autonomy without budgets is cost volatility by design. Context optimization cross-cuts cost, performance, reliability, and security—context is the working memory of the control loop and must be engineered deliberately.
Introduce explicit budgets for at least some of: max steps, max tool calls, max wall-clock time, max tokens, max spend per task. Define what happens when budgets are exceeded (escalation, defer, degrade). Budgets shape behavior: they force planning discipline, early stopping, and verification-based termination.
Stop as soon as verification passes against a Definition of Done—not when the agent “feels done.” This is both cost control and an epistemic gate.
Provide the minimum sufficient context for the task, in a controlled and explainable form, while preserving verification signals and preventing unsafe information flow.
Context tension: too little → poor decisions, unreliable outcomes; too much → high cost, latency, leakage risk, instruction collisions.
docs/08-pillar-cost.mddocs/12-context-optimization.mdtools
--- name: aaf-security description: Applies the AAF Security pillar: boundaries, tool actuation, epistemic gatekeeping, supply chain. Use when designing security for agentic systems, tool gateways, prompt-injection mitigations, privilege separation, or supply-chain risk for skills/tools. --- # AAF Security Security in agentic systems is impact-reduction: assume the reasoning layer can be influenced, and architect so that influence cannot easily become harmful actions. This skill distills the A
tools
Helps build agent orchestration properly using the Orchestrator Capability Contract (OCC) and governance-above-orchestration pattern. Use when choosing or implementing orchestration (graphs, multi-agent, workflows), ensuring tool gateway is non-bypassable, or satisfying OCC requirements for audit and safety.
testing
Guides when and where to place epistemic gates; candidate → validated → authority; gates scale with risk. Use when defining validation vs authority, reducing "AI said so" authority, or designing high-stakes decision flows.
development
Applies the two AAF cross-cutting foundations—Context Optimization and Autonomy & Outcome Governance. Use when designing context vs memory, context budgeting, autonomy levels, Definition of Done, budgets, or escalation.