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.
npx claudepluginhub ibrahim-3d/agents-architect --plugin agents-architectThis skill uses the workspace's default tool permissions.
Agentic workflows fail from context pressure before they fail from capability. Treat context as the scarcest resource.
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Processes PDFs: extracts text/tables/images, merges/splits/rotates pages, adds watermarks, creates/fills forms, encrypts/decrypts, OCRs scans. Activates on PDF mentions or output requests.
Share bugs, ideas, or general feedback.
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.