Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

prompt-engineering及时工程

Agent Skill

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

总安装

318

周安装

13

GitHub Stars

95

下载量

102
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/rfxlamia/claude-skillkit --skill prompt-engineering

简介

prompt-engineering 用于辅助提示词、系统指令和工作流模板的整理,帮助规范任务边界和输出格式。

  • 适用于 Agent 行为约束和提示词可复用性优化场景。
  • 可通过 npx 命令从 claude-skillkit 仓库安装,建议查看原始 README 了解具体用法。
  • 使用时需保留真实业务约束,避免将示例当作硬规则,涉及高风险操作时应明确确认步骤。
  • 输出内容应以项目实际需求为基础,不擅自扩展未定义的能力边界。

SKILL.md

Prompt Engineering

Overview

This skill helps create highly effective prompts by selecting the optimal technique and format based on task characteristics. Analyzes complexity, target LLM, accuracy needs, and context to recommend the best approach from 10+ proven methods and 4 structured formats.

Quick Start Decision Tree

Answer these questions to find the right approach:

1. Task Complexity?

2. Target LLM?

3. Output Use?

  • Code/API → JSON
  • Complex hierarchy → XML (if Claude) or JSON
  • Human editing → YAML or Natural Language
  • Simple explanation → Natural Language (see references/natural-language.md)

For detailed decision matrix: references/decision_matrix.md


Method Selection Quick Reference

NeedMethodBest FormatReference
Simple taskZero-ShotNatural Languagezero-shot.md
Style consistencyFew-ShotSame as examplesfew-shot.md
Multi-step reasoningCoTNatural/XMLchain-of-thought.md
Tool interactionReActJSONreact.md
Complex planningToTYAML/XMLtree-of-thoughts.md
High confidenceSelf-ConsistencyAnyself-consistency.md

Format Selection Quick Reference

TargetComplexityUse CaseFormatReference
ClaudeHighHumanXMLxml-format.md
ClaudeMediumAPIJSONjson-format.md
GPTAnyAPIJSONjson-format.md
AnyLowHumanNaturalnatural-language.md
AnyConfigHuman-editableYAMLyaml-format.md
Multi-LLMAnyPortableJSONjson-format.md

Common Patterns At-A-Glance

Zero-Shot Template

Task: [X]
Requirements: [Y]
Output: [Z]

Few-Shot Template

Task: [X]
Examples:
- Input: A → Output: B
- Input: C → Output: D
Your turn: Input: E → Output: ?

Chain of Thought Template

Problem: [X]
Let's think step by step:
1. [Step 1]
2. [Step 2]
3. [Step 3]
Answer: [Y]

ReAct Template

Thought: [Reasoning]
Action: [Tool/action]
Observation: [Result]
[Repeat]

For complete templates and examples, see individual method references.


Common Pitfalls & Quick Fixes

❌ Ambiguous Instructions

Bad: "Make this better" Good: "Improve by: 1) Add error handling, 2) Optimize to O(n log n), 3) Add docs"

❌ Wrong Format for LLM

Bad: JSON for Claude complex hierarchy Good: XML for Claude, JSON for GPT/APIs

❌ No Examples When Needed

Bad: "Extract features in structured format" Good: Show 2-3 concrete input→output examples

❌ Overcomplicating Simple Tasks

Bad: Tree of Thoughts for "Convert 25°C to F" Good: Simple zero-shot instruction

For complete pitfalls guide: references/pitfalls.md


Advanced Techniques

Combining Methods

  • Few-Shot + CoT: Examples with reasoning steps (see references/advanced-combinations.md)
  • ReAct + Self-Consistency: Multiple tool paths, compare results
  • ToT + XML: Claude-optimized complex planning

Meta-Prompting

Ask LLM to help design the prompt:

I need a prompt for [task].
Task characteristics: [complexity, LLM, output use, accuracy needs]
Recommend: 1) Technique, 2) Format, 3) Draft template, 4) Why

Prompt Chaining

Break complex tasks into sequential prompts. See: references/prompt-chaining.md


Token Efficiency Tips

✓ More Efficient          ✗ Less Efficient
- Zero-shot for simple    - 10+ examples
- Concise instructions    - Verbose repetition
- JSON for API parsing    - XML for API parsing
- Direct examples         - Over-explained examples

Typical token counts:

  • Zero-Shot: 50-200 tokens
  • Few-Shot (3 examples): 200-800 tokens
  • Chain of Thought: 100-500 tokens
  • ReAct: 300-1000 tokens
  • Tree of Thoughts: 500-2000+ tokens
  • Self-Consistency: 500-3000+ tokens

Implementation Checklist

When creating a prompt:

  • Identify task complexity → Choose method
  • Identify target LLM → Choose format
  • Write clear, specific instructions
  • Add examples if Few-Shot/Few-Shot CoT
  • Specify output format explicitly
  • Include constraints and requirements
  • Test with sample inputs
  • Validate outputs
  • Refine based on results

Resources

References (Detailed Guides)

Assets (Templates)

  • templates/ - Ready-to-use templates for common scenarios (coming soon)

Navigate to specific references above for detailed implementation guides, templates, and examples.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.47%
按下载量换算35

Claude

27.12%
按下载量换算28

Cursor

20.11%
按下载量换算21

Gemini CLI

8.88%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills