dotfiles/link/claude/skills/engineering-claude-context/SKILL.md
Curates context, optimizes prompts with XML, and manages extended thinking for Anthropic Claude models. Use when building Claude-based agents, designing system prompts, or handling long-context tasks.
npx skillsauth add kylehughes/knapsack engineering-claude-contextInstall 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.
Follow these strategies to maximize reliability and performance for Anthropic Claude models within limited attention budgets.
Curate High-Signal Context
Structure with XML Tags
<instructions>, <context>, <tools>, <examples>, <formatting>.<examples><example>...</example></examples>).<context>").Optimize for Long Horizons
scratchpad.md) where Claude reads/writes persistent state, freeing it from the context window.Leverage Extended Thinking
<thinking> blocks in your examples to demonstrate the reasoning process, not just the final output.Design Token-Efficient Tools
grep output vs. full file).System Instructions from User Data to prevent prompt injection and confusion.For deep dives on context anatomy, compaction strategies, and extended thinking patterns, see REFERENCE.md.
development
Create a fully standalone escalation brief for a programming/debugging problem when an agent is stuck, repeated fixes have failed, root cause is uncertain, or the user asks to hand off context to a stronger model, senior engineer, teammate, maintainer, or external expert. Produces a no-prior-context, no-repo-access packet with goal, failure evidence, embedded relevant code/config/examples, attempted fixes, constraints, hypotheses, and verification criteria.
tools
Use when preparing or verifying a host for Moshi remote coding. Trigger this for SSH or preferably Mosh readiness, non-interactive shell PATH issues, tmux defaults, creating a tmux project session rooted at a chosen directory, adapting shell or tmux behavior with the `MOSHI_CLIENT` env signal, installing Moshi agent hooks for Claude Code or Codex CLI, or offering the optional `moshi DIR` shell helper.
development
Refine and structure prompts for LLMs to ensure clarity, reliability, and optimal performance. Use when writing system prompts, complex instructions, or debugging agent behaviors.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.