Master prompt engineering techniques: few-shot learning, chain-of-thought, optimization, and system prompts. Use when improving LLM outputs or designing production templates.
Ships in rmyndharis-antigravity-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Master advanced prompt engineering techniques to maximize LLM performance, reliability, and controllability.
from prompt_optimizer import PromptTemplate, FewShotSelector
# Define a structured prompt template
template = PromptTemplate(
system="You are an expert SQL developer. Generate efficient, secure SQL queries.",
instruction="Convert the following natural language query to SQL:\n{query}",
few_shot_examples=True,
output_format="SQL code block with explanatory comments"
)
# Configure few-shot learning
selector = FewShotSelector(
examples_db="sql_examples.jsonl",
selection_strategy="semantic_similarity",
max_examples=3
)
# Generate optimized prompt
prompt = template.render(
query="Find all users who registered in the last 30 days",
examples=selector.select(query="user registration date filter")
)
Start with simple prompts, add complexity only when needed:
Level 1: Direct instruction
Level 2: Add constraints
Level 3: Add reasoning
Level 4: Add examples
[System Context] → [Task Instruction] → [Examples] → [Input Data] → [Output Format]
Build prompts that gracefully handle failures:
# Combine retrieved context with prompt engineering
prompt = f"""Given the following context:
{retrieved_context}
{few_shot_examples}
Question: {user_question}
Provide a detailed answer based solely on the context above. If the context doesn't contain enough information, explicitly state what's missing."""
# Add self-verification step
prompt = f"""{main_task_prompt}
After generating your response, verify it meets these criteria:
1. Answers the question directly
2. Uses only information from provided context
3. Cites specific sources
4. Acknowledges any uncertainty
If verification fails, revise your response."""
Track these KPIs for your prompts:
assets/few-shot-examples.json (opens in a new tab)assets/prompt-template-library.md (opens in a new tab)references/chain-of-thought.md (opens in a new tab)references/few-shot-learning.md (opens in a new tab)references/prompt-optimization.md (opens in a new tab)references/prompt-templates.md (opens in a new tab)references/system-prompts.md (opens in a new tab)scripts/optimize-prompt.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/rmyndharis-antigravity-skills:prompt-engineering-patternsfrom rmyndharis-antigravity-skills
rmyndharis-antigravity-skills@cascade-code-general-misc-2 is listed by joshuarweaver/cascade-code-general-misc-2 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-general-misc-2 --plugin rmyndharis-antigravity-skills307 skills in this plugin
/accessibility-compliance-accessibility-auditYou are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct audits, identify barriers, and provide remediation guidance./agent-orchestration-improve-agentSystematic improvement of existing agents through performance analysis, prompt engineering, and continuous iteration./agent-orchestration-multi-agent-optimizeOptimize multi-agent systems with coordinated profiling, workload distribution, and cost-aware orchestration. Use when improving agent performance, throughput, or reliability.Other plugins' skills for the same job