Token导航 LogoToken导航TokenDH.com
运维和基础设施只读github未标认证来源可访问许可证需确认审计通过

prompt-engineer提示工程师

Agent Skill

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

总安装

376

周安装

16

GitHub Stars

98

下载量

132
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

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

简介

prompt-engineer 专精提示词架构设计与优化,提升 LLM 输出的稳定性与业务贴合度。

  • 可拆解模糊需求为结构化指令,添加约束条件与示例,显著改善回答一致性。
  • 适用于聊天机器人、自动化工作流等需高精度响应的场景,避免泛化回答误导用户。
  • 应保留真实业务规则作为硬约束,不可将示例直接当作唯一正确答案来源。
  • 涉及自动执行或敏感操作时,须在提示词中嵌入确认步骤与失败回退机制。

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

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.86%
按下载量换算47

Claude

29.83%
按下载量换算39

Cursor

16.81%
按下载量换算22

Gemini CLI

8.97%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills