Skill 技能

Prompt Engineering Expert

Prompt Engineering Expert 是一套面向一人公司的通用 playbook,帮助你用更少的人力完成更稳的增长、交付与决策。

更新于 2026年4月2日 One Person Company 编辑团队 Skill 执行系统

中文导读

Prompt Engineering Expert 是一套面向一人公司的通用 playbook,帮助你用更少的人力完成更稳的增长、交付与决策。

说明: 原始步骤、命令与 API 名称保留英文,以避免参数和接口名称失真。

概览

This skill helps you design prompts and agent instructions that produce reliable, high-quality outputs in production workflows. The goal is consistency and decision-grade quality, not one-off "good answers."

For a one-person company, better prompts mean lower revision cost, faster execution, and more predictable automation.

Use with skill-creator, constraint-analysis, and test-master.

适用场景

  • Outputs are inconsistent across similar requests.
  • Agents miss constraints or required formats.
  • You are building reusable workflows for recurring tasks.
  • You need a measurable prompt iteration process.

这个技能能做什么

  • Designs clear system and task prompts.
  • Defines output schemas and acceptance checks.
  • Adds examples where they improve reliability.
  • Creates a repeatable test loop for prompt changes.

Prompt Design Framework

1) Define Outcome and Constraints

State:

  • exact output type,
  • required sections/fields,
  • forbidden behaviors,
  • quality criteria.

2) Add Context Hierarchy

Order context by importance:

  • hard constraints,
  • user objective,
  • supporting references,
  • style preferences.

3) Specify Output Contract

Use explicit structure (markdown template, JSON schema, checklist).

4) Add Examples Selectively

Include one or two strong examples when structure is complex. Avoid overfitting by copying too many examples.

5) Test and Iterate

For each prompt version:

  • run 5-10 representative cases,
  • score pass/fail against criteria,
  • identify systematic failures,
  • revise smallest possible section.

Practical Prompt Skeleton

Role: <who the model is in this task>
Goal: <single clear objective>
Inputs: <what data is available>
Constraints: <non-negotiable rules>
Output format: <exact structure>
Quality bar: <what good looks like>
Failure mode handling: <what to do when data is missing>

Common Mistakes to Avoid

  • Vague goals without measurable output requirements.
  • Too many style constraints and too few business constraints.
  • No explicit fallback behavior for missing data.
  • Changing multiple prompt variables at once during tests.

Definition of Done Prompt engineering work is complete when outputs pass your acceptance checks consistently across real task variants, with minimal manual correction.

SKILL.md 原文件

内嵌文档查看器 SKILL.md
Markdown 源文件

预览原始 SKILL.md. 下面可以直接查看完整原文。可滚动阅读、检查结构,再下载精确的 SKILL.md 原文件。

# prompt-engineering-expert

Prompt Engineering Expert

Overview
This skill helps you design prompts and agent instructions that produce reliable, high-quality outputs in production workflows. The goal is consistency and decision-grade quality, not one-off "good answers."

For a one-person company, better prompts mean lower revision cost, faster execution, and more predictable automation.

Use with [skill-creator](./advanced-skill-creator.md), [constraint-analysis](./constraint-analysis.md), and [test-master](./test-master.md).

When to Use This Skill
- Outputs are inconsistent across similar requests.
- Agents miss constraints or required formats.
- You are building reusable workflows for recurring tasks.
- You need a measurable prompt iteration process.

What This Skill Does
- Designs clear system and task prompts.
- Defines output schemas and acceptance checks.
- Adds examples where they improve reliability.
- Creates a repeatable test loop for prompt changes.

Prompt Design Framework

## 1) Define Outcome and Constraints
State:
- exact output type,
- required sections/fields,
- forbidden behaviors,
- quality criteria.

## 2) Add Context Hierarchy
Order context by importance:
1. hard constraints,
2. user objective,
3. supporting references,
4. style preferences.

## 3) Specify Output Contract
Use explicit structure (markdown template, JSON schema, checklist).

## 4) Add Examples Selectively
Include one or two strong examples when structure is complex.
Avoid overfitting by copying too many examples.

## 5) Test and Iterate
For each prompt version:
- run 5-10 representative cases,
- score pass/fail against criteria,
- identify systematic failures,
- revise smallest possible section.

Practical Prompt Skeleton
```text
Role: <who the model is in this task>
Goal: <single clear objective>
Inputs: <what data is available>
Constraints: <non-negotiable rules>
Output format: <exact structure>
Quality bar: <what good looks like>
Failure mode handling: <what to do when data is missing>
```

Common Mistakes to Avoid
- Vague goals without measurable output requirements.
- Too many style constraints and too few business constraints.
- No explicit fallback behavior for missing data.
- Changing multiple prompt variables at once during tests.

Definition of Done
Prompt engineering work is complete when outputs pass your acceptance checks consistently across real task variants, with minimal manual correction.

评论与讨论

添加评论