Prompt Engineering logo

Prompt Engineering

Community
liqiongyu
prompt-engineering

Manual-first workflow skill for redesigning, debugging, hardening, or productionizing LLM prompts and system prompts. Use when the user needs end-to-end prompt work such as stabilizing behavior, migrating across models, or preparing a prompt for production. Do not use for quick technique lookup or for general LLM-powered coding tasks.

Overview

Publisherliqiongyu
Repositorymy-agents
Skill nameprompt-engineering
Stars
29
Forks
3
Bundled files
8
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.

  • 8 bundled files

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

  • Open source

    Published by liqiongyu 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/liqiongyu/my-agents/tree/main/skills/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/liqiongyu/my-agents.git /tmp/my-agents
mkdir -p .claude/skills
cp -r /tmp/my-agents/skills/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

Use this skill when prompt work needs an actual workflow: define success, draft or repair the prompt, test it on real inputs, and harden it for the target model and operating environment.

This skill is intentionally workflow-first. It is for prompt jobs with real tradeoffs, failure modes, or rollout concerns. It is not meant to be a general prompt encyclopedia.

Invocation posture: manual-first. This skill is broad and relatively heavy, so false positives are more harmful than occasional misses.

When Not To Use

  • Quick technique lookup such as "what is chain-of-thought?" or "show me a few-shot template"
  • Explaining an existing prompt line by line without redesigning or validating it
  • General coding, product, or research work that only happens to involve an LLM somewhere in the stack
  • Tiny one-off prompt tweaks where no real evaluation, migration, or hardening decision is needed

When To Activate

  • Drafting a new prompt or system prompt from requirements
  • Debugging a prompt that is inconsistent, verbose, unsafe, or hard to steer
  • Migrating prompt behavior between Claude, GPT, Gemini, or open-source models
  • Hardening an agent prompt against injection, tool misuse, or output drift
  • Turning an ad hoc prompt into a reusable template, chain, or production asset
  • Setting up a realistic evaluation plan for prompt quality, format adherence, latency, or cost

Outputs

Depending on the request, produce one or more of:

  • a revised prompt or system prompt
  • a failure-mode diagnosis with targeted fixes
  • a cross-model migration checklist
  • a prompt evaluation plan with representative test cases
  • a production hardening checklist for output control, safety, and monitoring

Reference Files

Keep the main workflow lean. Read deeper references only when the task needs them.

ReferenceWhen to read
references/advanced-reasoning.mdYou need structured reasoning patterns such as CoT, ToT, ReAct, self-consistency, or self-refine
references/cross-model-guide.mdYou are migrating prompts across Claude, GPT, Gemini, or open-source models
references/production-patterns.mdYou need versioning, evaluation, caching, rollout, monitoring, or prompt-chain design
references/security-patterns.mdYou are handling untrusted input, tool use, prompt injection, or output validation

Core Workflow

Workflow 1: Scope The Prompt Job

Before rewriting anything, pin down:

  1. The task and the exact output shape
  2. What "good" looks like with 3-5 representative examples
  3. The constraints: model, context budget, latency, cost, determinism, safety
  4. The current failure modes: wrong format, wrong content, instability, unsafe behavior, or cross-model drift

Always collect at least:

  • one happy-path input
  • one edge case
  • one adversarial or malformed case

If you cannot explain what success means, do not jump into fancy prompting techniques yet.

Workflow 2: Draft Or Repair With Minimum Necessary Complexity

Start with the smallest change that could plausibly fix the problem, then escalate only if the evidence says you need more structure.

LevelDefault moveUse when
L1Clear direct instructionFirst pass for almost every task
L2Add explicit constraints and output formatThe model drifts on brevity, style, or schema
L3Add examplesThe model still misclassifies, misformats, or misses edge cases
L4Add reasoning scaffoldThe task needs multi-step analysis or error checking
L5Split into a chain or reusable templateIntermediate validation or multi-stage processing matters

Use this structure by default:

text
[Role or system context]
[Task instructions]
[Examples, if needed]
[Input data]
[Output format]

Keep model-specific features explicit and removable. Do not bury XML tags, prefilling tricks, or vendor-specific schema APIs inside a supposedly model-agnostic prompt.

Workflow 3: Evaluate On Real Work

Treat prompt changes like code changes:

  1. Record a baseline on representative inputs
  2. Change one variable at a time when possible
  3. Re-run the same cases on the revised prompt
  4. Compare:
    • task accuracy or usefulness
    • format compliance
    • consistency across repeated runs
    • latency and token cost
  5. Keep notes on what changed, why, and what improved

If the task involves model migration, re-test on the target model directly. Do not assume prompt portability just because two models are both strong.

Workflow 4: Productionize And Harden

When the prompt is headed toward repeated or user-facing use:

  • version the prompt and template variables
  • prefer API-level structure enforcement when the platform supports it
  • isolate untrusted input from instructions
  • restate critical boundaries when injection risk exists
  • validate outputs before downstream actions depend on them
  • define rollback or fallback behavior for high-impact uses
  • monitor drift, edge cases, and cost regressions over time

Technique Selection Guide

Use the lightest tool that matches the problem.

NeedDefault moveRead next
Reliable structured outputShow the exact format first; use schema enforcement when availablereferences/production-patterns.md, references/cross-model-guide.md
Stronger analytical reasoningPrefer model-native reasoning first; add a structured scaffold only if neededreferences/advanced-reasoning.md
Cross-model migrationRemove vendor-specific tricks, normalize delimiters, then re-test on the target modelreferences/cross-model-guide.md
Injection resistanceIsolate data, repeat critical constraints, and validate outputsreferences/security-patterns.md
Multi-step pipelineSplit into a chain only when intermediate validation adds valuereferences/production-patterns.md

Validate And Evaluate

This canonical package ships a lightweight eval suite under eval/ for realistic prompt-work scenarios.

When updating the canonical skill in this repo, validate the package and eval fixture before projecting:

bash
uv run python skills/skill-lifecycle-manager/scripts/quick_validate.py skills/prompt-engineering
uv run python skills/skill-lifecycle-manager/scripts/validate_eval_suite.py skills/prompt-engineering/eval/eval-cases.json

For behavioral review, run the cases in eval/eval-cases.json as realistic tasks and check whether the response:

  • defines success before rewriting
  • proposes the smallest effective prompt change
  • calibrates advice to the target model or runtime
  • includes a concrete validation plan
  • treats safety and output control explicitly when risk is present

Projection And Install Notes

Treat skills/prompt-engineering/ as the canonical package. Generate runtime surfaces from it rather than hand-editing copies:

bash
uv run python skills/skill-lifecycle-manager/scripts/project_skill.py skills/prompt-engineering --platform all
uv run python skills/skill-lifecycle-manager/scripts/validate_projection.py skills/prompt-engineering --platform all

projection.json excludes author-only evaluation artifacts from runtime projections so Codex and Claude Code only receive the execution-relevant package.

Best Practices

  1. Start with the smallest prompt change that could fix the failure.
  2. Measure on representative inputs before and after edits.
  3. Keep model-specific tricks explicit and easy to remove.
  4. Prefer API-level structure enforcement over prompt-only formatting when the platform supports it.
  5. Treat prompts as versioned artifacts, not disposable chat snippets.

Common Pitfalls

PitfallWhy it hurtsFix
Jumping to exotic techniques too earlyComplexity hides the real failure modeDefine success and start at the lowest effective level
Shipping without negative casesEdge failures appear only in productionTest happy-path, edge, and adversarial inputs
Assuming prompt portabilityVendor behaviors diverge in subtle waysRe-test on the target model and remove model-specific tricks
Mixing trusted instructions with untrusted dataInjection risk rises sharplyDelimit, isolate, and restate boundaries
Changing many variables at onceYou cannot tell what improvedRun one targeted fix at a time where practical

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?

Manual-first workflow skill for redesigning, debugging, hardening, or productionizing LLM prompts and system prompts. Use when the user needs end-to-end prompt work such as stabilizing behavior, migrating across models, or preparing a prompt for production. Do not use for quick technique lookup or for general LLM-powered coding tasks.

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/liqiongyu/my-agents/tree/main/skills/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 liqiongyu 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 👇