skills/context-engineer/SKILL.md
Optimize what loads into the agent's context — what to include, what to drop, how to recover when output quality degrades. Use when starting a new session on a complex task, when agent output starts inventing APIs or diverging from conventions, when switching between tasks, or when context is approaching the window limit. Don't use for trivial single-file tasks where context is obvious.
npx skillsauth add helderberto/skills context-engineerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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:
testing
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
documentation
Compact the current conversation into a handoff doc so a fresh agent can continue the work. Use when user asks to "handoff", "/handoff", "hand this off", or wants to end a session mid-task. Don't use for summarising completed work, writing PRDs/plans/ADRs, or committing changes.
development
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill, or asks "make a skill for X".
development
Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.