tvproductions

gzs-agent-context-diet

Reduce always-loaded agent instruction weight while preserving every binding invariant through progressive disclosure and precise context pointers. Use when AGENTS.md, CLAUDE.md, repository rules, or skill descriptions have accumulated duplicated rationale or exceed an enforced context budget.

tvproductions 0 Updated 4w ago

Resources

1
GitHub

Install

npx skillscat add tvproductions/gz-skills/gzs-agent-context-diet

Install via the SkillsCat registry.

SKILL.md

GovZero Agent Context Diet

Reduce per-turn context load without relaxing policy. The operation is a
delivery refactor: binding decisions remain reachable and generated surfaces
remain coherent.

Discovery and fallback

Prefer, in order:

  1. The repository's own context-budget check and the tool that owns mirror
    regeneration.
  2. A documented synchronization command, run after editing authored sources.
  3. Direct measurement of each always-loaded file in bytes and lines, with edits
    confined to authored sources.

The third rung is the floor and needs only a file reader. Its limit is real and
must be stated rather than worked around: with no owning tool, generated
mirrors cannot be regenerated. Report them as unsynchronized and name the
command a maintainer must run. Never hand-edit a mirror to close the gap.

Workflow

  1. Identify authored sources and generated mirrors before editing. Read the
    repository's synchronization commands and context-budget checks.

  2. Measure each always-loaded surface by bytes and lines. Inventory every
    binding rule, trigger pointer, repeated rationale, embedded example, and
    duplicated command list.

  3. Classify content:

    • keep immediate actions, hard guardrails, and frequently needed invariants
      in the always-loaded file;
    • move conditional procedure and substantial rationale behind a one-line
      pointer that names the exact condition for reading it;
    • remove duplicates, stale caches of discoverable configuration, and
      instructions that add no behavior beyond the agent default;
    • preserve one authoritative home for each meaning.
  4. Edit authored sources only. Regenerate mirrors through the repository's
    owning tool.

  5. Verify every moved rule remains reachable through a discriminating pointer,
    every relative link resolves, every generated mirror matches its source, and
    no binding invariant disappeared or weakened.

  6. Rerun budget and repository documentation checks. Compare before and after
    measurements and review the semantic diff, not only the byte reduction.

Evidence

Report authored and generated surfaces, bytes and lines before/after, content
moved or deleted by category, new pointers and their trigger conditions,
invariant-retention evidence, mirror validation, and unresolved budget pressure.

Categories