Skip to content
published Visibility internal Owner erik@uvilo.com Approver _ Created _ Updated _

Audit Context

Systematically review all agent prompts for compliance with context budgets defined in the context-hygiene skill.

/audit-context

Count words in all agent prompts and compare against budgets.

Budgets are defined in Forge/Skills/Context_Hygiene/SKILL.md.

Procedure:

  1. For each agent, use searchBots to find the bot, then readPrompt (with text: true, childPrompts: true) to load its prompt text including all child prompts
  2. Count words in each prompt’s combined text (parent + children)
  3. Compare each count against its category budget (from context-hygiene)
  4. Report: bot name, word count, budget, status (✅ or ⚠️ OVER)
  5. Write results to Forge/Skills/Audit_Context/references/context_audit.md as a markdown table (overwrite each run)
  6. Display the results as a application/vnd.markdown-file artifact pointing to Forge/Skills/Audit_Context/references/context_audit.md

Scope: All bots in the forge group. Use searchBots({ group: "forge" }) to discover them dynamically.