Productivity and leadership

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.

How to install it

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

Text only

Works in any chat tool with these capabilities.

promptingAIsystem promptstemplatesGCES

What's inside

  1. 01When this skill applies
  2. 02When not
  3. 03What I need
  4. 04Procedure
  5. 05Expertise and rules
  6. 06Edge cases
  7. 07Output format
  8. 08Prompt analysis
  9. 09Optimised prompt
  10. 10Why these changes
  11. 11How to test it
  12. 12Variants (only if useful)
  13. 13Example
  14. 14Prompt analysis
  15. 15Anti-patterns
  16. 16Quality check before delivery
  17. 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.

DimensionPointsFinding
Goal1post yes, desired effect missing
Context0no audience, no channel
Format0no structure, no hashtag rule
Length0missing
Tone and language0missing
Limits0no prohibitions
Missing info0no rule
Examples1not needed for a short post
Total2/16rewrite

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

  1. Goal with an effect (a visit at the weekend) instead of just "a post".
  2. Length in sentences, so the text does not sprawl.
  3. Banned ad words remove the advertising tone.
  4. Placeholders make the prompt reusable for every new product.

How to test it

TestInputExpected behaviour
Normal casecinnamon roll, Friday to Sunday3 to 4 sentences, invitation at the end
Edge caseavailability 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:

  1. 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

  1. 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.md and 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.
  2. 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.
  3. 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.
  4. 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.
  5. Delimit and safeguard. Add prohibitions, handling of missing information ("If X is missing, write [MISSING: X]") and an output template.
  6. 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.
  7. Justify. Three to six changes, each with reference to the diagnosis.
  8. 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.
  9. 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):

BlockContentTest question
G, GoalResult 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, ContextWho writes, for whom, situation, facts, sources, constraintsIs any information missing that a human professional would ask for?
E, Expectation, ExamplesFormat, length, structure, examples, output templateIs the length stated in numbers (words, sentences, points)?
S, Style, SourceTone, language, form of address, prohibitions, source rulesAre tone and prohibitions phrased in observable terms?

Eight diagnostic dimensions (0 to 2 points each):

  1. Goal unambiguous (one main goal, checkable).
  2. Context sufficient (audience, situation, facts).
  3. Format specified (structure, headings, table, JSON).
  4. Length in numbers.
  5. Tone and language described in observable terms.
  6. Limits and prohibitions.
  7. Handling of missing information and uncertainty.
  8. Examples or output template where needed.

Symptom and cause:

SymptomLikely causeMeasure
Output too longLength missing or "detailed" in the promptLength in words or sentences, "brevity over completeness"
Output genericContext missing, no audienceFacts, audience, examples of "good"
Format is ignoredInstruction sits in the middle of a long promptOutput template at the end, given verbatim
Invented facts or sourcesNo source rule, gap gets filled"Only from the data provided. If not available: [MISSING]"
Wrong toneAdjectives instead of behaviour ("friendly")Observable rules: sentence length, form of address, banned words
Ignores a ruleConflict with another ruleLook for conflicts, set priority ("If A and B conflict, A applies")
Copies the exampleOnly one example, too close to the caseTwo to three different examples, labelled as patterns
Fluctuating qualitySeveral tasks in one promptSplit 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) and references/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. 1

    Download the ZIP

    Click "Download ZIP" above. Do not unzip prompt-engineer.zip.

  2. 2

    Open settings

    In Claude, click your name at the bottom left, then Settings. Open Capabilities and scroll to the Skills section.

  3. 3

    Upload the skill

    Click "Upload skill" and select prompt-engineer.zip.

  4. 4

    Turn it on

    Enable the toggle next to the new skill. It now works in every new chat and in projects.

  5. 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 prompt

Install 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.

Detailed guide with troubleshooting

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.