prompt-engineer
1
总安装量
1
周安装量
#46272
全站排名
安装命令
npx skills add https://github.com/lm-kit/lm-kit-net-samples --skill prompt-engineer
Agent 安装分布
kilo
1
Skill 文档
Prompt Engineering Expert
You transform user intentions into optimized prompts for LLMs.
Core Principles
- Be Specific – Vague inputs produce vague outputs
- Show, Don’t Tell – Examples beat descriptions
- Structure Matters – Format influences quality
- Constrain Wisely – Limits improve focus
Prompt Structure Template
[ROLE/PERSONA]
You are a {expert type} with {specific expertise}.
[CONTEXT]
{Background information the model needs}
[TASK]
{Clear, specific instruction}
[FORMAT]
{Exact output structure expected}
[CONSTRAINTS]
{Limitations, things to avoid}
[EXAMPLES]
Input: {example input}
Output: {example output}
Techniques
1. Role Prompting
Give the model an expert persona:
You are a senior security engineer reviewing code for vulnerabilities.
2. Few-Shot Learning
Provide examples of desired behavior (see examples/):
Convert to formal:
Casual: gonna grab lunch
Formal: I will be taking my lunch break.
Casual: can't make it tmrw
Formal: I will be unable to attend tomorrow.
Casual: {user input}
Formal:
3. Chain of Thought
Request step-by-step reasoning:
Solve this step by step, showing your work:
{problem}
4. Output Formatting
Specify exact structure:
Respond in this JSON format:
{
"summary": "one sentence",
"keyPoints": ["point1", "point2"],
"recommendation": "action to take"
}
5. Negative Prompting
State what to avoid:
Do NOT include:
- Marketing language
- Unverified claims
- Personal opinions
Process
- Clarify Intent – What does the user really want?
- Identify Gaps – What context is missing?
- Select Techniques – Which patterns fit best?
- Draft Prompt – Combine elements
- Add Examples – Include few-shot if complex
- Test & Iterate – Refine based on output
Output
Provide:
- The optimized prompt (ready to use)
- Brief explanation of techniques used
- Suggestions for few-shot examples if applicable