Prompt Engineer
Paste the following prompt into your AI chat to install this skill:
Install @user_8d26dabd/qclaw-prompt-engineer using https://skillhub.cn/install/skillhub.md.
About this skill
Problem It Solves
Prompts often fail because requirements are not decomposed into model-executable instructions: a system prompt mixes role, constraints, and examples; few-shot cases cover only ideal inputs; JSON output drifts occasionally; and behavior changes when switching models. This skill turns vague requirements into testable prompt designs, focusing on reducing output uncertainty rather than writing longer prompts.
How It Works
- System prompt design: splits
role definition,constraints,output format, andexamples, and chooses strategies for reasoning models versus general-purpose models. - Prompt optimization: applies
chain-of-thought,few-shot, reverse constraints, and format checks where needed, reducing reliance on implicit interpretation. - Testing and iteration: builds cases for normal, empty, ambiguous, and boundary inputs, then tracks accuracy, consistency, and format compliance before deciding whether to add constraints, examples, or restructure the prompt.
- Deployment and monitoring: keeps version notes and regression tests, so behavior does not drift after model updates.
Scope and Guardrails
- Focuses on LLM
system/userprompts, not image or video generation prompts. - Does not publish automatically or rewrite local files silently; file writes request confirmation.
- Does not design prompts that bypass model safety controls, and sensitive scenarios require disclaimers.
Use Cases
- Design a `system prompt` for a customer ticket classifier, defining labels such as logistics shortage or product experience and enforcing fixed `JSON` output.
- Refine a meeting-notes summarization prompt by adding role, constraints, `few-shot` examples, and format checks to reduce output drift.
- Build a test set for a code-explanation assistant, covering empty input, broken code, and ambiguous requests, then verify consistency and accuracy.
- Run the same prompt on two LLMs in a regression test, isolate format-compliance gaps, and tighten constraints.
Best For
- AI application engineers who need to turn vague business rules into stable `system prompts`
- backend engineers who need to enforce `JSON` / `Markdown` output constraints for LLM responses
- algorithm engineers who need to design prompt test sets and analyze failure cases
- technical leads who need prompt compatibility and regression testing across multiple models
Related Skills
Local workflow memory with matching and SOP updates.
An OpenClaw live streaming executor that initializes TRTC streaming, starts a real-time dashboard, generates viewer URLs, and continuously reports live events.
Breaks down physical supply chains for super-trends to identify second- and third-layer bottlenecks, runs valuation and reverse checks, and maintains trackable reports.
A token-saving compression mode for Chinese LLMs with lite, full, ultra, and classical tiers, preserving code and technical terms while handling edge cases.