From hb
Optimizes agent context by deciding what to load, drop, and how to recover when output quality degrades. Use for complex multi-file tasks, not trivial single-file work.
How this skill is triggered — by the user, by Claude, or both
Slash command
/hb:context-engineerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Context is the agent's working memory. Bad context produces hallucinated APIs, ignored conventions, and repeated mistakes. Good context produces tight, conventional, on-target output. This skill is the discipline of deciding what loads, in what order, and what to drop when quality degrades.
Context is the agent's working memory. Bad context produces hallucinated APIs, ignored conventions, and repeated mistakes. Good context produces tight, conventional, on-target output. This skill is the discipline of deciding what loads, in what order, and what to drop when quality degrades.
This skill mirrors ~/.claude/rules/context-engineering.md. Keep both in sync when updating.
~/.claude/rules/).specs/<slug>.md for the current task)The order matters. Rules anchor everything. Specs scope. Source grounds. Errors guide. History contextualizes.
src/auth/session.ts:42 instead of pasting the function. The agent can re-read on demand.Before non-trivial work:
~/.claude/rules/*.mdIf you can't fit the above in <30% of the context window, the task is too big — break it into smaller conversations.
Watch for these signals. They are silent until you look:
When you see any of these, stop and recover.
In order of cost:
/clear between unrelated tasks — frees context, re-loads rules at next messageDo not push through degraded context. The cost of one fresh session is less than the cost of one wrong commit caused by drift.
When pivoting from task A to task B:
/clear and start fresh; the new task pays a tiny cold-start cost in exchange for clean context/clear when in doubt — fresh context is almost free; degraded context is expensiveSign you switched too aggressively: agent answers task B with patterns from task A.
Preloading "just in case" reads token budget you'll need later.
/clear early, not late/clear or compaction)When applied to a non-trivial task:
npx claudepluginhub helderberto/agent-skills --plugin hbManages context hierarchy (rules → memory → specs → source → state) to improve output quality, onboard new sessions, and coordinate subagent fan-out.
Optimizes AI agent context setup with rules files (CLAUDE.md), specs, source files, and hierarchy. Use for new sessions, degrading output, task switches, or project configuration.
Optimizes Claude Code context-window usage for accuracy and cost. Helps when hitting context limits, structuring prompts, or trimming injected content.