size-guard

Enforce line budgets and rotate or split large context files.

📖 中文导读:Enforce line budgets and rotate or split large context files. 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: size_guard description: Enforce line budgets and rotate or split large context files. metadata: short-description: Line 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.