Token导航 LogoToken导航TokenDH.com
AI 工具只读github未标认证来源可访问clear审计通过

prompt-engineer提示工程师

Agent Skill

用于辅助提示词、系统指令、Agent 行为约束和工作流模板的整理。它适合让 Agent 规范任务边界、统一输出格式、拆分操作步骤或优化提示词可复用性。使用时需要保留真实业务约束,不要把示例当硬规则;涉及自动执行、外部工具或高风险操作时,应在提示词中明确确认步骤、权限边界和失败处理方式。

总安装

2,471

周安装

99

GitHub Stars

98

下载量

490
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:prompt-engineer(提示工程师)
来源仓库:https://github.com/erichowens/some_claude_skills
仓库路径:skills/prompt-engineer
安装命令:
npx skills add https://github.com/erichowens/some_claude_skills --skill prompt-engineer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/erichowens/some_claude_skills --skill prompt-engineer

简介

专门 crafting 和优化大模型提示词以获得一致高质量输出的专家。

  • 擅长将模糊需求转化为精确指令,添加约束条件和示例说明。
  • 提供 prompt 架构设计、对抗输入测试和改进效果度量方法。
  • 适用于聊天机器人、工作流模板等各类 AI 应用场景优化。
  • 使用时需保留真实业务约束,避免将示例当作硬性规则套用。

SKILL.md

Prompt Engineer

Expert in crafting, optimizing, and debugging prompts for large language models. Transform vague requirements into precise, effective prompts that produce consistent, high-quality outputs.

Quick Start

User: "My chatbot gives inconsistent answers about our refund policy"

Prompt Engineer:
1. Analyze current prompt structure
2. Identify ambiguity and edge cases
3. Apply constraint engineering
4. Add few-shot examples
5. Test with adversarial inputs
6. Measure improvement

Result: 40-60% improvement in response consistency

Core Competencies

1. Prompt Architecture

  • System prompt design for persona and constraints
  • User prompt structure for clarity
  • Context window optimization
  • Multi-turn conversation design

2. Optimization Techniques

TechniqueWhen to UseExpected Improvement
Chain-of-ThoughtComplex reasoning20-40% accuracy
Few-Shot ExamplesFormat consistency30-50% reliability
Constraint EngineeringEdge case handling50%+ consistency
Role PromptingDomain expertise15-25% quality
Self-ConsistencyCritical decisions10-20% accuracy

3. Debugging & Testing

  • Prompt ablation studies
  • Adversarial input testing
  • A/B testing frameworks
  • Regression detection

Prompt Patterns

The CLEAR Framework

C - Context: What background does the model need?
L - Limits: What constraints apply?
E - Examples: What does good output look like?
A - Action: What specific task to perform?
R - Review: How to verify correctness?

System Prompt Template

You are [ROLE] with expertise in [DOMAIN].

## Your Task
[CLEAR, SPECIFIC INSTRUCTION]

## Constraints
- [CONSTRAINT 1]
- [CONSTRAINT 2]

## Output Format
[EXACT FORMAT SPECIFICATION]

## Examples
Input: [EXAMPLE INPUT]
Output: [EXAMPLE OUTPUT]

Chain-of-Thought Pattern

Think through this step-by-step:

1. First, identify [ASPECT 1]
2. Then, analyze [ASPECT 2]
3. Consider [EDGE CASES]
4. Finally, synthesize into [OUTPUT]

Show your reasoning before the final answer.

Optimization Workflow

PhaseActivitiesTools
AnalyzeReview current prompts, identify issuesRead, pattern analysis
HypothesizeForm improvement hypothesesSequential thinking
ImplementApply prompt engineering techniquesWrite, Edit
TestValidate with diverse inputsManual testing
MeasureQuantify improvementA/B comparison
IterateRefine based on resultsRepeat cycle

Common Issues & Fixes

Issue: Hallucinations

Problem: Model fabricates information
Fix: Add "Only use information provided. Say 'I don't know' if uncertain."

Issue: Verbose Output

Problem: Model produces too much text
Fix: Add "Be concise. Maximum 3 sentences." + format constraints

Issue: Format Violations

Problem: Output doesn't match required format
Fix: Add explicit examples + "Follow this exact format:"

Issue: Context Confusion

Problem: Model loses track in long conversations
Fix: Add periodic context summaries + clear role reminders

Anti-Patterns

Anti-Pattern: Prompt Stuffing

What it looks like: Cramming every possible instruction into one prompt Why wrong: Dilutes important instructions, confuses model Instead: Prioritize 3-5 key constraints, use progressive disclosure

Anti-Pattern: Vague Instructions

What it looks like: "Write something good about our product" Why wrong: No measurable criteria, inconsistent outputs Instead: Specific requirements with examples

Anti-Pattern: Over-Constraining

What it looks like: 50+ rules the model must follow Why wrong: Model can't prioritize, contradictions emerge Instead: Essential constraints only, test for necessity

Anti-Pattern: No Examples

What it looks like: Complex format with no concrete examples Why wrong: Model interprets instructions differently Instead: Always include 2-3 representative examples

Quality Metrics

MetricHow to MeasureTarget
ConsistencySame input, same output quality>90%
AccuracyCorrect information>95%
Format ComplianceFollows specified format>98%
LatencyTime to first token<2s
Token EfficiencyOutput tokens per task-20% waste

When to Use

Use for:

  • Designing system prompts for chatbots
  • Optimizing agent instructions
  • Reducing hallucinations
  • Improving output consistency
  • Creating prompt templates

Do NOT use for:

  • Building LLM applications (use ai-engineer)
  • Automated optimization (use automatic-stateful-prompt-improver)
  • General coding tasks (use language-specific skills)
  • Infrastructure setup (use deployment skills)

Core insight: Great prompts are like great specifications—specific enough to eliminate ambiguity, flexible enough to handle variation, and tested against adversarial inputs.

Use with: ai-engineer (production apps) | automatic-stateful-prompt-improver (automation) | agent-creator (new agents)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.07%
按下载量换算138

windsurf

24.69%
按下载量换算121

Antigravity

17.25%
按下载量换算85

Codex

14.57%
按下载量换算71

OpenCode

9.52%
按下载量换算47

Cursor

3.98%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills