From agents-architect
Design and optimize context windows for agentic workflows. Use when the user asks to "manage context", "optimize context", "compact context", "context budget", "CLAUDE.md", "memory hierarchy", "context degradation", "agent is forgetting", "agent hallucinating after many turns", "long conversation", "hit token limit", "prune context", "memory tiers", or when a multi-turn workflow shows quality decay. Covers CLAUDE.md authoring, tiered memory, scratchpads, /compact strategies, read-depth rules, and subagent delegation for context relief.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agents-architect:context-managementThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Agentic workflows fail from context pressure before they fail from capability. Treat context as the scarcest resource.
Agentic workflows fail from context pressure before they fail from capability. Treat context as the scarcest resource.
| Tier | Usage | Behavior |
|---|---|---|
| PEAK | 0–30% | Full ops. Read bodies, spawn agents, inline results. |
| GOOD | 30–50% | Prefer frontmatter reads. Delegate aggressively. |
| DEGRADING | 50–70% | Economize. Frontmatter-only reads. Warn user about budget. |
| POOR | 70%+ | Emergency. Checkpoint to disk. No new reads unless critical. /compact. |
@reference.md imports..planning/STATE.md, .arch/state.json. Survive across turns.@ (don't inline them).@-import.subagent_type auto-loads them.STATE.md with decisions/progress, then /compact. Resume by Reading STATE.md.../../agents-architect/templates/CLAUDE.md.template — plugin-ready CLAUDE.md scaffoldWhen asked to design context management for a new plugin:
CLAUDE.md.template sized for the domain (< 500 lines).context-budget.md ref doc listing tier actions.npx claudepluginhub ibrahim-3d/agents-architect --plugin agents-architectCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.