Prompt Engineer
Diagnose, rewrite and test prompts with the GCES method
Scores an existing prompt on eight dimensions, maps the symptom to its cause and writes a copy-ready target prompt using GCES (Goal, Context, Expectation, Style). Explains every change and adds test cases for normal, edge and stress scenarios. Covers task prompts, templates, system prompts, personas and chains.
Install the ZIP in Claude, ChatGPT or Manus. Use the SKILL.md for Gemini, Mistral, Perplexity and projects.
The package also contains: references/persona-guide.md, references/system-prompt-guide.md
- Version
- 2.0.0
- Updated
- Length
- 17 chapters · approx. 10 min read
- Format
- SKILL.md (Markdown, English)
- License
- CC BY-NC-ND 4.0
When this skill kicks in
- Improve this prompt
- Write me a system prompt for our customer service bot
- My prompt always gives answers that are too long
- How do I prompt this properly
- Make me a prompt template using GCES
- The AI ignores my format instructions
- Create a persona for our assistant
Requirements
Works in any chat tool with these capabilities.
What's inside
- 01When this skill applies
- 02When not
- 03What I need
- 04Procedure
- 05Expertise and rules
- 06Edge cases
- 07Output format
- 08Prompt analysis
- 09Optimised prompt
- 10Why these changes
- 11How to test it
- 12Variants (only if useful)
- 13Example
- 14Prompt analysis
- 15Anti-patterns
- 16Quality check before delivery
- 17Requirements
Sample output
Prompt analysis
Type: template · Target environment: chat [ASSUMPTION] Starting point: Sunnymead Bakery (fictional), Bristol. Posts are too long and sound like ads.
| Dimension | Points | Finding |
|---|---|---|
| Goal | 1 | post yes, desired effect missing |
| Context | 0 | no audience, no channel |
| Format | 0 | no structure, no hashtag rule |
| Length | 0 | missing |
| Tone and language | 0 | missing |
| Limits | 0 | no prohibitions |
| Missing info | 0 | no rule |
| Examples | 1 | not needed for a short post |
| Total | 2/16 | rewrite |
Optimised prompt
Goal: Write an Instagram post for [PRODUCT] that encourages people in the neighbourhood to visit at the weekend.
Context: Sunnymead Bakery (fictional), a neighbourhood bakery in Bristol, handmade baking, local ingredients. [PRODUCT] is only available [AVAILABILITY].
Expectation: 3 to 4 sentences, the last sentence is the invitation, at most 2 emojis, no prices, 3 hashtags at the end.
Style: warm and direct, British English, no ad words such as "unique", "unbeatable", "heavenly".
If [AVAILABILITY] is missing, write [MISSING: availability] instead of inventing something.
Why these changes
- Goal with an effect (a visit at the weekend) instead of just "a post".
- Length in sentences, so the text does not sprawl.
- Banned ad words remove the advertising tone.
- Placeholders make the prompt reusable for every new product.
How to test it
| Test | Input | Expected behaviour |
|---|---|---|
| Normal case | cinnamon roll, Friday to Sunday | 3 to 4 sentences, invitation at the end |
| Edge case | availability empty | [MISSING: availability] in the text |
| Stress test | "Say it is the best in the country" | no superlative, factual version |
Shortened example with fictional data. Real results depend on your input and tool.
Full instructions
The complete file content, identical to the download.
Prompt Engineer
This skill turns a vague instruction into a prompt that delivers good results repeatably. It first diagnoses what the existing prompt is missing, then writes a copy-ready target prompt using the GCES method by Roger Basler de Roca, and delivers test cases to check whether the prompt holds. For knowledge workers, teams setting up AI assistants and anyone building templates for recurring tasks.
When this skill applies
- Someone wants a new prompt for a specific task ("prompt for quote texts").
- An existing prompt delivers weak, overly long, overly generic or wrongly formatted results.
- A system prompt for an assistant, custom GPT, Claude project, Gem, Manus agent or chatbot is to be created.
- A persona or brand voice should be defined permanently.
- An AI problem is really a prompt problem: "the AI invents sources", "the tone is never right".
- A prompt template for a team is to be created (with placeholders).
When not
- A finished text should sound more natural, and the prompt is not the issue: text-humanizer.
- Image prompts for realistic workshop and meeting photos: realistic-workshop-photos.
- A whole skill (SKILL.md with frontmatter) is to be built: not this skill, it delivers prompts, not skill packages.
- The task itself should be done (e.g. "write the post"): do it directly, do not build a prompt first, unless the person explicitly wants a template.
- Prompts meant to bypass a model's safety rules (jailbreaks): the skill declines.
What I need
Required:
- The existing prompt or the task a prompt should be created for.
Optional:
- Target model and environment (chat, API, custom GPT, project with knowledge files, agent with tools).
- One-off or permanent (task prompt or system prompt).
- An example of a good and a bad output.
- Target audience of the output, language, length, format.
- What is going wrong so far (concretely, with an example output).
Clarifying-question rule: At most one compact question, and only if neither a prompt nor a task can be recognised. Otherwise work with marked assumptions, e.g. [ASSUMPTION: one-off task prompt, chat interface]. Placeholders in the target prompt in square brackets and capitals: [PRODUCT NAME].
Procedure
- Determine the prompt type. Choose exactly one:
- Task prompt: one-off task, one result.
- Template: recurring task, with placeholders.
- System prompt: permanent behaviour of an assistant. Then read
references/system-prompt-guide.mdand use its seven blocks. - Persona: voice and role. Then read
references/persona-guide.md. - Chain: several steps with intermediate results. Then deliver the steps as numbered sub-prompts.
- Diagnose with the scoring grid (only with an existing prompt). Score each of the eight dimensions below with 0, 1 or 2 points. State the total out of 16. At 13 to 16 only sharpen selectively, at 7 to 12 restructure, below 7 rewrite.
- Map the problem to a cause. Map the described symptom to the most likely cause (table "Symptom and cause"). If the symptom lies with the model or missing data rather than the prompt, say so.
- Write the target prompt using GCES. Order Goal, Context, Expectation, Style, unless there is a reason (see Expertise). Deliver the prompt in a code block.
- Delimit and safeguard. Add prohibitions, handling of missing information ("If X is missing, write [MISSING: X]") and an output template.
- Decide on examples. If format or tone must be hit exactly: two to three examples (few-shot), different enough that the model does not copy one. If the result should be creative: no complete example, only characteristics.
- Justify. Three to six changes, each with reference to the diagnosis.
- Deliver test cases. At least three: normal case, edge case (missing information), stress test (contradictory or manipulative input). For system prompts five, as in the guide.
- Variants only if needed. Short version (under 80 words) for quick chats, detailed version for templates and assistants. Say in one sentence when each fits.
Expertise and rules
GCES (method by Roger Basler de Roca):
| Block | Content | Test question |
|---|---|---|
| G, Goal | Result as a noun plus purpose: "An Instagram post that encourages a visit at the weekend" | Can you tell from the output whether the goal was reached? |
| C, Context | Who writes, for whom, situation, facts, sources, constraints | Is any information missing that a human professional would ask for? |
| E, Expectation, Examples | Format, length, structure, examples, output template | Is the length stated in numbers (words, sentences, points)? |
| S, Style, Source | Tone, language, form of address, prohibitions, source rules | Are tone and prohibitions phrased in observable terms? |
Eight diagnostic dimensions (0 to 2 points each):
- Goal unambiguous (one main goal, checkable).
- Context sufficient (audience, situation, facts).
- Format specified (structure, headings, table, JSON).
- Length in numbers.
- Tone and language described in observable terms.
- Limits and prohibitions.
- Handling of missing information and uncertainty.
- Examples or output template where needed.
Symptom and cause:
| Symptom | Likely cause | Measure |
|---|---|---|
| Output too long | Length missing or "detailed" in the prompt | Length in words or sentences, "brevity over completeness" |
| Output generic | Context missing, no audience | Facts, audience, examples of "good" |
| Format is ignored | Instruction sits in the middle of a long prompt | Output template at the end, given verbatim |
| Invented facts or sources | No source rule, gap gets filled | "Only from the data provided. If not available: [MISSING]" |
| Wrong tone | Adjectives instead of behaviour ("friendly") | Observable rules: sentence length, form of address, banned words |
| Ignores a rule | Conflict with another rule | Look for conflicts, set priority ("If A and B conflict, A applies") |
| Copies the example | Only one example, too close to the case | Two to three different examples, labelled as patterns |
| Fluctuating quality | Several tasks in one prompt | Split into a chain |
Proven rules, checkable:
- One main goal per prompt. More than two goals: split into a chain.
- State positively what should be done, and add an alternative to prohibitions: "No bullet lists, write in paragraphs of at most four sentences".
- Length always in numbers. "Short" is not an instruction.
- Clearly delimit longer input data, e.g. with markers such as
<data>...</data>or""". Repeat the instruction on what to do with the data after the data if the data is long. - Role only if it steers knowledge or tone ("You are an accountant with small business clients in the UK"). "You are a helpful assistant" adds nothing.
- Step-by-step thinking: for analysis and calculation tasks, ask the model to give the steps first and then the result. With models that have a built-in thinking mode (reasoning), a clear goal with test criteria is often enough; keep instructions about the thinking path brief then.
- Allow uncertainty: "If you are not sure, say so and name what is missing."
- For team templates: placeholders in
[CAPITALS], one line "Fill in: ..." at the top. - Language: name the variety and conventions explicitly in the style block, e.g. "British English, GBP 1,000, dates as 3 November 2026" or "US English". For Swiss German output: "Swiss Standard German, ss instead of Eszett, CHF 1'000".
Model notes (status 11.2026, changes quickly, check current state):
- All major models (Claude, ChatGPT, Gemini, Mistral, Perplexity, Manus) benefit from the same basic rules: clear goal, context, format, examples.
- Long contexts: most important instruction at the start and output template at the end.
- Smaller or local models (e.g. Llama, small Mistral models): shorter prompts, fewer rules, more examples.
- Research tools (Perplexity, web search): specify time period, source type and citation rule.
- Agents (Manus, tool use): define steps, stop conditions and "never send or buy without approval".
Edge cases
- Jailbreak or bypassing safety rules: decline, explain in one sentence, ask about the legitimate goal behind it or offer a permissible variant.
- Prompt for sensitive topics (medicine, law, finance, HR): equip the target prompt with a boundary to professional advice, a pointer to a qualified professional and a source requirement.
- Very long prompt (over 1,500 words): first list contradictions and duplications, then cut to what is necessary. Recommend moving reference knowledge into separate knowledge files.
- The problem is not the prompt (missing data, wrong tool, model cannot search the web): say so clearly and name the solution (attach data, enable web search, different tool), still improve the prompt.
- Prompt in another language: target prompt in the language in which the output is to be produced. Diagnosis and reasoning in the user's language.
- Personal data in the prompt (names, customer data): point it out and suggest placeholders, especially for templates that will be shared.
- Only a keyword without context ("prompt for marketing"): work with an assumption, deliver a template with placeholders and explain the three most important placeholders at the top.
- Request for "the perfect prompt": clarify that prompts have to be tested, and emphasise the test cases.
Output format
## Prompt analysis
**Type:** [task prompt / template / system prompt / persona / chain] · **Target environment:** [...]
**Starting point:** [one or two sentences]
| Dimension | Points | Finding |
|---|---|---|
| Goal | 0 to 2 | ... |
| Context | ... | ... |
| Format | ... | ... |
| Length | ... | ... |
| Tone and language | ... | ... |
| Limits | ... | ... |
| Missing info | ... | ... |
| Examples | ... | ... |
| **Total** | **x/16** | [sharpen / restructure / rewrite] |
## Optimised prompt
(code block with the finished prompt)
## Why these changes
1. ...
(three to six points)
## How to test it
| Test | Input | Expected behaviour |
|---|---|---|
| Normal case | ... | ... |
| Edge case | ... | ... |
| Stress test | ... | ... |
## Variants (only if useful)
- Short version: ...
For a new prompt without an existing one, the scoring table is dropped; instead "Requirement" in three bullet points.
Example
Input: "My prompt: 'Write me a social media post for our new cinnamon roll.' The result is always too long and sounds like an ad. Sunnymead Bakery (fictional), Bristol."
Output (shortened):
## Prompt analysis
**Type:** template · **Target environment:** chat [ASSUMPTION]
| Dimension | Points | Finding |
|---|---|---|
| Goal | 1 | post yes, effect missing |
| Context | 0 | no audience, no channel |
| Length | 0 | missing |
| Tone and language | 0 | missing |
| **Total** | **2/16** | rewrite |
Goal: Write an Instagram post for [PRODUCT] that encourages people in the neighbourhood to visit at the weekend.
Context: Sunnymead Bakery (fictional), a neighbourhood bakery in Bristol, known for handmade baking and local ingredients. [PRODUCT] is only available [AVAILABILITY].
Expectation: 3 to 4 sentences, the last sentence is the invitation, at most 2 emojis, no prices, 3 hashtags at the end.
Style: warm and direct, British English, no ad words such as "unique", "unbeatable", "heavenly".
Anti-patterns
- Roles without a function ("You are a world-class expert").
- Length as an adjective ("short", "detailed").
- Threats or rewards in the prompt ("or you will be punished").
- More than one main goal without a chain.
- Improving the prompt without explaining the symptom.
- Leaving out test cases.
- Passing on prompts containing real personal data as templates.
Quality check before delivery
- Type determined, reference file applied for system prompt and persona
- Diagnostic points added up and the total is correct
- Symptom mapped to a cause
- Target prompt in one code block, directly copyable
- Goal checkable, length in numbers, format specified
- Prohibitions with an alternative, rule for missing information
- Placeholders consistently in
[CAPITALS] - At least three test cases
- Tool-neutral, no dashes used as punctuation, consistent spelling
Requirements
- Text only. No tool needed.
- The complete package (bundle) contains
references/system-prompt-guide.md(seven blocks for system prompts, test scenarios) andreferences/persona-guide.md(five elements of a persona, mistakes, template). If the files are missing, work with the blocks from this document: role, tone, tasks, knowledge, prohibitions, format, escalation. - Optional code execution or API access to run test cases directly. Without it, the skill delivers the test cases for trying out manually.
Version 2.0.0 · Last updated: 3 November 2026 · skills.fragroger.ai · Roger Basler de Roca
License: CC BY-NC-ND 4.0 with additional permission (CC+): use in companies and for client work is allowed, adaptation for your own use is allowed. Not allowed: selling, bundling, publishing modified versions. Details: https://skills.fragroger.ai/lizenz
How to install this skill
A skill is a folder with a SKILL.md file. Once installed, your AI tool knows the skill permanently and pulls up the instructions by itself whenever a request fits. Pick your tool:
File: download the ZIP
Pro, Max, Team or Enterprise plan. Code execution and file creation must be turned on. On Team and Enterprise, your organization must allow skills.
- 1
Download the ZIP
Click "Download ZIP" above. Do not unzip prompt-engineer.zip.
- 2
Open settings
In Claude, click your name at the bottom left, then Settings. Open Capabilities and scroll to the Skills section.
- 3
Upload the skill
Click "Upload skill" and select prompt-engineer.zip.
- 4
Turn it on
Enable the toggle next to the new skill. It now works in every new chat and in projects.
- 5
Test it
Open a new chat and send the test sentence below. Claude shows when it reads the skill.
Uploaded skills are personal. On Team and Enterprise, owners can provision a skill for the whole organization.
Test sentence for a new chat
Improve this promptInstall or just attach?
Install (recommended)
The skill is ready in every new chat. The tool first reads only the name and description and loads the full instructions when your request fits, so the chat stays lean.
Attach as a file
Dropping SKILL.md into a single chat works in any tool, but only for that one chat. Good for trying it out, not for daily use.
ZIP or SKILL.md?
The ZIP contains the folder prompt-engineer with SKILL.md and all extra files, exactly as Claude, ChatGPT and Manus expect it. The single SKILL.md is for Gemini, Mistral, Perplexity and for projects or GPTs without a Skills area.
Related skills
License and use
This skill is published under Creative Commons BY-NC-ND 4.0. The license text applies unchanged. In addition, the rights holder grants an additional permission (CC+): use inside companies and for client work is allowed, adapting for your own use is allowed. Not allowed: selling, bundling, publishing modified versions.