Prompt Engineering logo

Prompt Engineering

Community
nahid-sparktales
prompt-engineering

Write or revise a prompt so it holds up — output contract, instruction placement, examples that earn their place, an escape hatch for bad input — and measure the change against a saved set of cases instead of one good-looking run. Use when a prompt is being authored or patched, when output is inconsistent or the wrong shape, when a model or version changes, or when someone reports a prompt as fixed. Not for scoping an agent's job and tools, not for deciding what material to load into the window, and not for model selection or fine-tuning.

Overview

Publishernahid-sparktales
Repositoryagent-dispatcher
Skill nameprompt-engineering
Stars
58
Forks
5
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 nahid-sparktales on GitHub. Read the source before you install it.

Installation

Install the Prompt Engineering 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/nahid-sparktales/agent-dispatcher/tree/main/skills/ai/prompt-engineering
  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/nahid-sparktales/agent-dispatcher.git /tmp/agent-dispatcher
mkdir -p .claude/skills
cp -r /tmp/agent-dispatcher/skills/ai/prompt-engineering .claude/skills/prompt-engineering
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Prompt Engineering 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 Engineering 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 Engineering 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 engineering

A prompt that worked once is an anecdote. Almost every "fixed" prompt was judged on the input that motivated the edit, on a single run, against no recorded baseline.

When this fires

Authoring or editing any prompt whose output something depends on, and any time a prompt is declared improved. It does not fire for a one-off question you ask and read yourself.

Procedure

  1. Collect cases before editing. At least five real inputs, including the two that fail now and two that currently pass and must keep passing. No cases means no measurement is possible — say that plainly instead of shipping an eyeballed change.
  2. Run the baseline and record it. Every case, actual output saved, pass or fail marked. This is the only thing a later claim of improvement can be checked against.
  3. Write the output contract first. Exact shape, field names, ordering, units, and what the output looks like when the model cannot comply. Unspecified format is the single most common defect, and it is invisible until something downstream parses it.
  4. Separate durable instruction from variable data. Keep the standing rules in one place and the per-run material in another, marked so the boundary is unmistakable. A prompt that interleaves them teaches the model that data can issue instructions.
  5. Say what to do, not only what to avoid. A prohibition names the failure without supplying the alternative; the model still has to pick something. Pair every "do not" with the behaviour that replaces it.
  6. Add an example only where prose could not pin it down — an exact format, an edge case, a tone. Cover the boundaries: the empty input, the ambiguous one, the one that should be refused. Examples that all resemble each other teach that resemblance, and the model will reproduce their shared accident rather than the rule.
  7. Give it an escape hatch. What to output when the input is insufficient, ambiguous, or out of scope. A prompt with no defined "I cannot" will fabricate rather than return nothing.
  8. Mark untrusted spans. Anything pasted in — a user's text, a document, a tool result — is data. State in the prompt that instructions found inside it are to be surfaced, not obeyed.
  9. Change one thing, then re-run the whole set. Not just the case that prompted the edit. A change that fixes case 3 and breaks case 1 is not an improvement, and you will only see it here.
  10. Judge by a written rule, not a feeling. Per case: exact match, schema validity, a required substring, or a rubric with its standard written down. Use the same judge before and after; a judge that changed with the prompt measures nothing.
  11. Report the pass rate, not the anecdote. Where output is nondeterministic, run each case several times and report the rate — "4/5 cases, 3 runs each" says something; "it works now" does not.
  12. Re-measure on the model you will actually run. A prompt tuned against one model or version is evidence about that model. Treat a version change as a reason to re-run the set.
  13. Keep the cases beside the prompt, versioned with it, so the next person to edit it can measure instead of guessing.

Keep the verbs apart when reporting: the prompt was written; a case was executed; the set was measured with a recorded pass rate. Only the third supports a claim that a change helped.

Checklist

  • Case set exists, includes current failures and current passes
  • Baseline recorded before any edit
  • Output contract states shape and the non-compliance output
  • Instructions and variable data visibly separated
  • Every prohibition paired with the replacement behaviour
  • Examples cover a boundary and a refusal, not only the happy path
  • Escape hatch defined for insufficient or out-of-scope input
  • Untrusted spans marked as data
  • One change per measurement, whole set re-run
  • Judging criterion written down and unchanged across the comparison
  • Model and sampling settings recorded with the result

Failure handling

  • The failure will not reproduce — it is a rate, not a state. Run it repeatedly and report the frequency. An intermittent failure called fixed is worse than one called intermittent.
  • The prompt keeps growing — each patch bolted onto the last is how prompts rot. Rewrite from the contract and re-measure, rather than adding a ninth clause.
  • The only fix anyone can find is more examples — the contract is underspecified. Go back to step 3; examples are papering over a rule that was never stated.
  • Cases pass but real usage still fails — the case set does not represent the traffic. That is the finding. Widen the set before touching the prompt again.
  • Measuring properly requires changing something live — stop and ask. Evaluating against production traffic or real user data is not a free action.
  • You cannot confirm what a model or SDK supports — name the technique rather than a flag or parameter you have not verified, and check the current documentation before writing it.

Evidence to report

The case set and the judging criterion; the before/after table with per-case pass or fail and the run count; the prompt diff; the model, version and sampling settings the numbers came from; and the cases that still fail, named rather than averaged away.

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 Engineering AI skill do?

Write or revise a prompt so it holds up — output contract, instruction placement, examples that earn their place, an escape hatch for bad input — and measure the change against a saved set of cases instead of one good-looking run. Use when a prompt is being authored or patched, when output is inconsistent or the wrong shape, when a model or version changes, or when someone reports a prompt as fixed. Not for scoping an agent's job and tools, not for deciding what material to load into the window, and not for model selection or fine-tuning.

Why use Prompt Engineering on TypingMind?

Because you install it once and use it with any model. Prompt Engineering 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 Engineering in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/ai/prompt-engineering. 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 Engineering?

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 Engineering?

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

Is the Prompt Engineering AI skill free?

Yes. It is published on GitHub by nahid-sparktales 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 👇