Design, iterate, test, and version prompts for LLMs — system prompts, few-shot examples, chain-of-thought, structured output, and agentic tool-use prompts.
SkillScore91Maintained
Automatic
◆AI Engineer pack
Last verified 8/4/2026
What it changes
Passed 21 of 23 test cases with the skill, and 15 of 23 without it.
Without skill65%
With skill91%
Checks it passed that the model alone missed
Recommends bumping the minor version for breaking schema changes or refusal behavior modifications
The system prompt places ROLE first, followed immediately by CONTEXT, TASK, FORMAT, RULES, and EXAMPLES
Requires defining the exact input and expected output in one precise sentence before writing prompt tokens
and 3 more in the full report
6 fixed15 passed either way2 still failing0 broke
Pass-rate lift
+26 pp
Tokens
+161%
Agent turns
0%
Response time
+1%
Model gemini-3.6-flashMeasured 8/4/2026v121 of 23 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 6 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 6
Prompt
Before writing the first token of a new system prompt for financial news processing, what initial task definition step must be completed?
What was checked, without and with the skill
Checked
Without skill
With skill
Requires defining the exact input and expected output in one precise sentence before writing prompt tokens
Missed
Passed
case-19 · gemini-3.6-flash · 8/4/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md373 linessingle file
Prompt Engineering
Approach every prompt as a precision instrument, not a casual instruction. A prompt is a program — it has inputs, logic, constraints, and expected outputs. Write it with the same rigour you would apply to production code.
The model is a probabilistic function. Your job as a prompt engineer is to narrow the distribution of outputs to the range that is useful, correct, and safe — and to do so reliably, not just on your test cases.
Prompt Engineering Principles
The prompt is the product. A bad prompt that ships is a broken product. A great model with a bad prompt produces bad outputs. The prompt is as important as the model choice.
Test before you ship. A prompt you have not tested against adversarial inputs, edge cases, and off-topic requests is a prompt that will surprise you in production.
Version your prompts. A prompt is code. It lives in version control, has a changelog, and requires a test suite before deployment. Inline strings scattered across source files are technical debt.
Measure before you change. Never modify a production prompt without an eval baseline. Without one, you cannot know if the change helped or hurt.
Shorter is stronger. Every unnecessary sentence in a system prompt is a sentence that competes with the important instructions. Every word must earn its place.
Model output is untrusted input. Treat everything the model returns as potentially wrong, hallucinated, or injected. Validate. Schema-check. Never execute model output directly.
Prompts degrade silently. Model updates, context changes, and input distribution shifts can all break a working prompt without triggering an error. Monitor quality continuously.
Step 0: Frame the Prompting Task
Before writing a single token:
What is the exact task? Define the input and expected output in one precise sentence.
What does a good output look like? If you cannot describe a 10/10 output, you cannot write a prompt that produces it.
What does a bad output look like? Name the failure modes: hallucination, wrong format, off-topic, too verbose, too terse, unsafe.
What is the model's role? Is it an assistant, a classifier, an extractor, a generator, a judge? Name the role explicitly.
What constraints apply? Length, tone, format, language, topic scope, what to refuse.
How will you evaluate? Define the eval metric before writing the prompt — accuracy, format compliance, faithfulness, refusal rate.
Prompt Architecture
Every non-trivial prompt has three components. Understand what each does.
1. System Prompt
Sets the model's role, persona, constraints, and behaviour rules. Applied once. Persists across the conversation.
Writes, refactors, and evaluates prompts for LLMs — generating optimized prompt templates, structured output schemas, evaluation rubrics, and test suites. Use when designing prompts for new LLM applications, refactoring existing prompts for better accuracy or token efficiency, implementing chain-of-thought or few-shot learning, creating system prompts with personas and guardrails, building JSON/function-calling schemas, or developing prompt evaluation frameworks to measure and improve model perf