Prompt Engineer logo

Prompt Engineer

Community
aakashg
prompt-engineer

Use when the user asks to improve, optimize, rewrite, debug, or shorten a prompt, or asks why a prompt is producing bad output. Do NOT use for writing a Claude Code SKILL.md — that needs skill structure rules, not prompt techniques.

Overview

Publisheraakashg
Repositorypm-claude-skills
Skill nameprompt-engineer
Stars
116
Forks
35
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by aakashg on GitHub. Read the source before you install it.

Installation

Install the Prompt Engineer AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/aakashg/pm-claude-skills/tree/main/skills/prompt-engineer
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/aakashg/pm-claude-skills.git /tmp/pm-claude-skills
mkdir -p .claude/skills
cp -r /tmp/pm-claude-skills/skills/prompt-engineer .claude/skills/prompt-engineer
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Prompt Engineer in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Prompt Engineer on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Prompt Engineer is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Prompt Engineer

Diagnose a prompt, rewrite it, and show exactly what changed and why.

Step 0 — Read first

SourcePathWhat to extract
The promptwhatever the user pastedActual wording — never paraphrase before diagnosing
Failing outputthe output they got, if providedThe failure mode; this determines the fix
Project contextCLAUDE.mdAudience, product, banned words, output preferences
Technique referencereferences/techniques.mdFull before/after examples for each technique

If the user pasted a prompt but no failing output, ask for one example of what it produced. Diagnosing from the prompt alone guesses at the failure mode.

Constraints

Mandatory.

  • Always show before and after. The user must see the diff, not just the result.
  • Explain every change by the problem it solves, not the technique name alone.
  • Preserve the user's intent. Improve how they ask, never what they are asking for.
  • Right-size the fix. A 10-line prompt that works beats a 50-line prompt that confuses.
  • Never add chain-of-thought to a simple generative task like "write a tweet."
  • Never write "be thorough and comprehensive." Name exactly what to cover.
  • Never add a role that does not match the task.
  • Never add a few-shot example below the quality bar you expect back. Bad examples teach bad patterns.
  • If the prompt is longer than its expected output on an analytical task, it is too long. Cut it.

Existence check

Before rewriting, verify:

  1. The prompt itself — the literal text, not a description of it.
  2. The goal — what the user wants the output to do or be used for.
  3. The failure — what the current output gets wrong, ideally with a sample.

If two of three are missing, do not rewrite. Ask for exactly those. Rewriting a prompt without knowing how it fails produces a longer prompt, not a better one.

Step 1 — Diagnose

Score the prompt across these dimensions. Name which ones fail.

DimensionWhat to check
RoleIs there a specific persona? Generic "you are an expert" does not count.
ContextDoes the model have enough background to do the task well?
InstructionsAre steps explicit and ordered, or vague and open to interpretation?
Output formatIs structure defined — headers, fields, length, tone?
ExamplesAre there input/output pairs showing what good looks like?
ConstraintsAre there explicit DO/DON'T rules? Edge cases handled?
EvaluationCan the model self-check its output against clear criteria?

Step 2 — Match the failure to the fix

If the user provided failing output, use this table instead of guessing.

SymptomCauseFix
Generic, "could be anyone"Missing role or weak contextAdd a specific persona with domain details
Misses the point entirelyAmbiguous — model chose a valid but wrong readingAdd a "Your goal is..." preamble and one clarifying example
Right content, wrong formatNo output spec, or it is buriedMove format to the top, use a template
Verbose and paddedNo length limit, or "be thorough" is presentExplicit word limits. Replace "thorough" with "cover X, Y, Z"
Hallucinates factsNo grounding instruction"Only use the provided context. If data is missing, say [NEED: X]"
Strong start, weak finishPrompt too long, focus decaysShorten. Move examples before instructions. Cut redundancy.
Ignores some instructionsToo many competing rulesReduce to 3–5 numbered rules. Add "These rules are mandatory."

If the prompt is trying to do 3+ distinct things, do not rewrite it — split it into a chain and say so.

Step 3 — Apply techniques

Match technique to the diagnosed problem. Not every prompt needs every technique. Full before/after examples for each are in references/techniques.md.

  • Role priming — specific identity with relevant experience
  • Structured output — exact fields, order, and length
  • Chain of thought — only for multi-step reasoning
  • Few-shot examples — 1–3 pairs including one edge case
  • Constraints — explicit DO / DON'T
  • Evaluation criteria — self-check before responding
  • Delimiter separation — separate instructions from input data

Output template

Exact sections, exact order.

## Diagnosis
[2-3 sentences. Which dimensions fail and what that causes in the output.]

## Improved prompt
```
[The full rewritten prompt, copy-pasteable, nothing else in the block]
```

## What changed and why
- [Technique] → [the specific problem it fixes]
- [Technique] → [the specific problem it fixes]
- [Technique] → [the specific problem it fixes]

## How to test it
Run it with [specific input]. You should see [specific difference].
If it still fails, try [fallback].

Example

Before:

Write a competitive analysis of Notion.

Diagnosis: No role, no structure, no audience, no scope, no output format. The model will produce a generic overview of everything Notion does, at whatever length it picks.

After:

You are a senior product strategist at a B2B knowledge management company competing with Notion.

Analyze Notion's AI features specifically. Structure your analysis as:

1. WHAT THEY BUILT
- Core AI features (list each with one-line description)
- Target user for each feature
- Pricing model for AI features

2. WHAT'S SMART (3 product decisions)
- For each: what they did, why it works, evidence

3. WHAT'S WEAK (3 gaps or friction points)
- For each: the issue, who it affects, opportunity for us

4. IMPLICATIONS
- 2 things we should copy and why
- 2 things we should avoid and why
- 1 opportunity they're missing that we could own

Rules:
- Be specific. "Good UX" is not analysis. Name the interaction and explain why it works.
- If you don't have data, say "[NEED: data on X]" instead of guessing.
- Keep total output under 800 words.

What changed and why:

  • Role priming → output comes from a strategic angle instead of an encyclopedia entry
  • Structured output → every run returns the same four sections, so runs are comparable
  • Scope narrowing ("AI features specifically") → prevents a shallow survey of the whole product
  • Grounding rule → replaces invented statistics with a visible gap marker
  • Length cap → forces selection instead of padding

How to test it: Run both versions. The original will open with "Notion is an all-in-one workspace." The rewrite will open with a named feature and a pricing tier.

Two more full before/afters — weak few-shot → strong few-shot, and over-engineered → right-sized — are in references/techniques.md.

Shortcuts Claude takes

What Claude might thinkWhy it's wrong
"I'll make it more detailed"Length is not quality. Most broken prompts get better by cutting.
"Add a role to be safe"An irrelevant role ("world-class neurosurgeon" on a marketing brief) adds noise.
"The user knows what changed, skip the diff"The diff is the teaching. Without it they cannot improve the next prompt themselves.
"I'll improve the task while I'm here"Never change what they are asking for. Only how they ask it.
"One example is enough, I'll write it quickly"A sloppy example teaches sloppiness. The example is the quality bar.
"This prompt does five things, I'll just tighten it"Five things needs a chain, not a tighter paragraph. Say so.

Exit checklist

Not complete until every box is checked. Any [bracket] placeholder left in the improved prompt is an automatic unchecked box.

  • Existence check passed, or missing inputs requested
  • Diagnosis names the specific failing dimensions
  • Improved prompt is in one clean code block, copy-pasteable
  • Every change is listed with the problem it fixes
  • The improved prompt preserves the user's original intent
  • Length is proportionate to the task — no bloat added
  • No banned filler ("be thorough and comprehensive")
  • Any few-shot example meets the quality bar expected back
  • A concrete test input and expected difference are given
  • A fallback is named for if it still fails
  • No placeholders remain

Next

  • If the prompt turned out to need 3+ chained steps → recommend building it as a skill instead, using templates/SKILL-TEMPLATE.md.
  • If the prompt is one the user runs weekly → recommend turning it into a skill so it stops living in a scratch file.
  • If the underlying task is writing a status update, a LinkedIn post, or a design review → recommend the matching skill rather than a custom prompt.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Prompt Engineer AI skill do?

Use when the user asks to improve, optimize, rewrite, debug, or shorten a prompt, or asks why a prompt is producing bad output. Do NOT use for writing a Claude Code SKILL.md — that needs skill structure rules, not prompt techniques.

Why use Prompt Engineer on TypingMind?

Because you install it once and use it with any model. Prompt Engineer is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Prompt Engineer in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/aakashg/pm-claude-skills/tree/main/skills/prompt-engineer. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Prompt Engineer?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Prompt Engineer?

As many as you like. As long as a model supports skills, you can use Prompt Engineer with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Prompt Engineer AI skill free?

Yes. It is published on GitHub by aakashg under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇