prompt-engineer
Create optimized, production-ready prompts for any AI model or use case. TRIGGERS - Use this skill when: - User wants to create or improve AI prompts - User mentions prompt engineering, prompt writing, or system prompts - User wants to optimize prompts for better AI outputs - User asks for help with ChatGPT, Claude, or other AI model prompts
- License 许可
- MIT
- 最近更新
- 2026-04-06
- Stars
- ★ 4
- Forks
- 1
01 前言 Front Matter
- name
- prompt-engineer
- description
- Create optimized, production-ready prompts for any AI model or use case. TRIGGERS - Use this skill when: - User wants to create or improve AI prompts - User mentions prompt engineering, prompt writing, or system prompts - User wants to optimize prompts for better AI outputs - User asks for help with ChatGPT, Claude, or other AI model prompts
03 SKILL.md 正文
Prompt Engineer
Overview
Creates structured, optimized prompts that get consistent, high-quality outputs from any AI model. Covers system prompts, user prompts, chain-of-thought, few-shot examples, and output formatting.
Workflow
Step 1: Understand the Use Case
Ask the user:
- What should the AI do? (specific task)
- What model? (Claude, GPT-4, Llama, etc.)
- Where will it run? (chatbot, automation, API, manual use)
- What does good output look like? (example if available)
- What does bad output look like? (common failures to avoid)
Step 2: Choose the Prompt Architecture
| Architecture | When to Use |
|---|---|
| Single prompt | Simple, one-shot tasks |
| System + User prompt | Chatbots, consistent behavior |
| Chain of thought | Complex reasoning, analysis |
| Few-shot | When format/style must be exact |
| Multi-step chain | Complex workflows, agents |
Step 3: Build the Prompt
Core Components:
1. ROLE — Who is the AI?
2. CONTEXT — What background does it need?
3. TASK — What exactly should it do?
4. FORMAT — How should output be structured?
5. CONSTRAINTS — What to avoid or limit?
6. EXAMPLES — What does good output look like?
Prompt Template:
You are a [ROLE] with expertise in [DOMAIN].
## Context
[Background information the AI needs to know]
## Task
[Exactly what the AI should do — be specific]
## Input
[What the user/system will provide]
{{variable_name}}
## Output Format
[Exact structure expected]
- Format: [JSON/markdown/plain text]
- Length: [word count or structure]
- Tone: [professional/casual/technical]
## Rules
- [Constraint 1]
- [Constraint 2]
- [What to NEVER do]
## Examples
### Input:
[Example input]
### Expected Output:
[Example output]
### Input:
[Second example — different case]
### Expected Output:
[Second example output]
Step 4: Optimize
Apply these optimization techniques:
- Be specific: "Write 3 bullet points" > "Write some points"
- Use positive instructions: "Include metrics" > "Don't forget metrics"
- Add guardrails: "If unsure, say 'I need more information about X'"
- Structure with XML/markdown: Use headers and tags for clarity
- Test edge cases: What happens with weird input?
- Add fallback instructions: What to do when input is incomplete
Step 5: Test & Iterate
Provide 3 test inputs:
- Happy path — typical, well-formed input
- Edge case — unusual or minimal input
- Adversarial — tricky input that might break it
Output Format
# Prompt: [Use Case Name]
## Model: [recommended model]
## Architecture: [single/system+user/chain/few-shot]
---
## System Prompt
[Full system prompt]
## User Prompt Template
[User prompt with {{variables}}]
## Variables
| Variable | Type | Description | Example |
|----------|------|-------------|---------|
| {{var1}} | string | ... | ... |
## Test Cases
### Test 1: Happy Path
**Input**: [test input]
**Expected behavior**: [what should happen]
### Test 2: Edge Case
**Input**: [edge case input]
**Expected behavior**: [what should happen]
### Test 3: Adversarial
**Input**: [tricky input]
**Expected behavior**: [what should happen]
## Integration Notes
- [How to use in Zapier/Make/n8n]
- [API call example if applicable]
- [Token/cost estimate per call]
Quality Checklist
- [ ] Role is specific (not generic "helpful assistant")
- [ ] Task is unambiguous (one interpretation only)
- [ ] Output format is explicitly defined
- [ ] At least 2 examples included
- [ ] Edge cases handled with fallback instructions
- [ ] Variables are clearly marked with {{brackets}}
- [ ] Tested with 3 different inputs
04 同仓库更多 Skills
zoning-analysis
Conduct zoning analysis for building projects. TRIGGERS - Use when user needs help with zoning-analysis related tasks.
zero-trust-plan
Design zero trust security architectures. TRIGGERS - Use when user needs help with zero-trust-plan related tasks.
zero-trust-architecture
Design zero trust security architectures. TRIGGERS - Use when user needs help with zero-trust-architecture related tasks.
zero-based-budgeting
Implement zero-based budgeting processes. TRIGGERS - Use when user needs help with zero-based-budgeting related tasks.
zapier-workflow-builder
Design Zapier workflows with triggers, actions, and error handling. TRIGGERS - Use when user needs help with zapier-workflow-builder related tasks.
youtube-script-writer
Write YouTube video scripts with hooks, retention strategies, and CTAs. TRIGGERS - Use when user wants to write a YouTube script, video content, or video outline.