size-guard

Enforce line budgets and rotate or split large context files.

⭐0stars🔀0forks📁View on GitHub🕐Updated Dec 30, 2025

When & Why to Use This Skill

The size_guard Claude skill is a specialized utility designed to optimize agent performance by enforcing strict line budgets on context-heavy files. It automatically rotates or splits large files that exceed predefined limits, ensuring fast loading times and efficient context window utilization while maintaining data integrity through archiving and index updates.

Use Cases

  • Managing long-running conversation logs or memory files to prevent them from exceeding LLM context limits and causing latency.
  • Automating the maintenance of technical documentation and knowledge bases by splitting oversized files into manageable, indexed parts.
  • Implementing operational guardrails for agentic workflows to ensure that generated or retrieved data remains within optimal processing thresholds.
namesize_guard
descriptionEnforce line budgets and rotate or split large context files.
short-descriptionLine budget guard

Purpose

Keep context-heavy files within line limits for fast loading.

Steps

  1. Read .agent-docs/memory/LINE_BUDGETS.yaml.
  2. Rotate or split files that exceed budgets.
  3. Update indexes to reference new parts.
  4. Record the action in the Action Log.

Guardrails

  • Preserve history by archiving before splitting.