dotfiles/link/claude/skills/optimizing-llm-prompts/SKILL.md
Refine and structure prompts for LLMs to ensure clarity, reliability, and optimal performance. Use when writing system prompts, complex instructions, or debugging agent behaviors.
npx skillsauth add kylehughes/knapsack optimizing-llm-promptsInstall 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 steps to create robust and effective prompts for LLMs (specifically Claude).
<system>: High-level role and identity.<context>: Static background information.<rules>: Specific constraints and instructions.<examples>: Few-shot demonstrations.<user_query>) to prevent prompt injection.For a deep dive on critical rules, forbidden practices, and optimization 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
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.
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.