Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计未展示

prompt-engineering-suite提示工程套件

Agent Skill

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

总安装

441

周安装

18

GitHub Stars

公开资料未说明

下载量

143
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add yonatangross/skillforge-claude-plugin --skill "prompt-engineering-suite"

简介

提供一套完整的提示工程工具集,支持系统指令和流程模板管理。

  • 适用于需要标准化 Agent 输出格式或优化工作流的场景。
  • 帮助 Agent 更清晰地定义职责范围和执行逻辑。prompt-engineering-suite 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 安装后可直接调用预设模板,但需结合具体业务调整约束条件。
  • 注意区分通用建议与实际业务规则,防止误用示例为强制规范。

SKILL.md

Prompt Engineering Suite

Design, version, and optimize prompts for production LLM applications.

Overview

  • Designing prompts for new LLM features
  • Improving accuracy with Chain-of-Thought reasoning
  • Few-shot learning with example selection
  • Managing prompts in production (versioning, A/B testing)
  • Automatic prompt optimization with DSPy

Quick Reference

Chain-of-Thought Pattern

from langchain_core.prompts import ChatPromptTemplate

COT_SYSTEM = """You are a helpful assistant that solves problems step-by-step.

When solving problems:
1. Break down the problem into clear steps
2. Show your reasoning for each step
3. Verify your answer before responding
4. If uncertain, acknowledge limitations

Format your response as:
STEP 1: [description]
Reasoning: [your thought process]

STEP 2: [description]
Reasoning: [your thought process]

...

FINAL ANSWER: [your conclusion]"""

cot_prompt = ChatPromptTemplate.from_messages([
    ("system", COT_SYSTEM),
    ("human", "Problem: {problem}\n\nThink through this step-by-step."),
])

Few-Shot with Dynamic Examples

from langchain_core.prompts import FewShotChatMessagePromptTemplate

examples = [
    {"input": "What is 2+2?", "output": "4"},
    {"input": "What is the capital of France?", "output": "Paris"},
]

few_shot = FewShotChatMessagePromptTemplate(
    examples=examples,
    example_prompt=ChatPromptTemplate.from_messages([
        ("human", "{input}"),
        ("ai", "{output}"),
    ]),
)

final_prompt = ChatPromptTemplate.from_messages([
    ("system", "You are a helpful assistant. Answer concisely."),
    few_shot,
    ("human", "{input}"),
])

Prompt Versioning with Langfuse SDK v3

from langfuse import Langfuse
# Note: Langfuse SDK v3 is OTEL-native (acquired by ClickHouse Jan 2026)

langfuse = Langfuse()

# Get versioned prompt with label
prompt = langfuse.get_prompt(
    name="customer-support-v2",
    label="production",  # production, staging, canary
    cache_ttl_seconds=300,
)

# Compile with variables
compiled = prompt.compile(
    customer_name="John",
    issue="billing question"
)

DSPy 3.1.0 Automatic Optimization

import dspy

class OptimizedQA(dspy.Module):
    def __init__(self):
        self.generate = dspy.Predict("question -> answer")

    def forward(self, question):
        return self.generate(question=question)

# Optimize with MIPROv2 (recommended) or BootstrapFewShot
optimizer = dspy.MIPROv2(metric=answer_match)  # Data+demo-aware Bayesian optimization
optimized = optimizer.compile(OptimizedQA(), trainset=examples)

# Alternative: GEPA (July 2025) - Reflective Prompt Evolution
# Uses model introspection to analyze failures and propose better prompts

Pattern Selection Guide

PatternWhen to UseExample Use Case
Zero-shotSimple, well-defined tasksClassification, extraction
Few-shotComplex tasks needing examplesFormat conversion, style matching
CoTReasoning, math, logicProblem solving, analysis
Zero-shot CoTQuick reasoning boostAdd "Let's think step by step"
ReActTool use, multi-stepAgent tasks, API calls
StructuredJSON/schema outputData extraction, API responses

Key Decisions

DecisionRecommendation
Few-shot examples3-5 diverse, representative examples
Example orderingMost similar examples last (recency bias)
CoT trigger"Let's think step by step" or explicit format
Prompt versioningLangfuse with labels (production/staging)
A/B testing50+ samples, track via trace metadata
Auto-optimizationDSPy BootstrapFewShot for few-shot tuning

Anti-Patterns (FORBIDDEN)

# NEVER hardcode prompts without versioning
PROMPT = "You are a helpful assistant..."  # No version control!

# NEVER use single example for few-shot
examples = [{"input": "x", "output": "y"}]  # Too few!

# NEVER skip CoT for complex reasoning
response = llm.complete("Solve: 15% of 240")  # No reasoning!

# ALWAYS version prompts
prompt = langfuse.get_prompt("assistant", label="production")

# ALWAYS use 3-5 diverse examples
examples = [ex1, ex2, ex3, ex4, ex5]

# ALWAYS use CoT for math/logic
response = llm.complete("Solve: 15% of 240. Think step by step.")

Detailed Documentation

ResourceDescription
references/chain-of-thought.mdCoT patterns, zero-shot CoT, self-consistency
references/few-shot-patterns.mdExample selection, ordering, formatting
references/prompt-versioning.mdLangfuse integration, A/B testing
references/prompt-optimization.mdDSPy, automatic tuning, evaluation
scripts/cot-template.pyFull Chain-of-Thought implementation
scripts/few-shot-template.pyFew-shot with dynamic example selection
scripts/jinja2-prompts.pyJinja2 templates (2026): async, caching, LLM filters, Anthropic format

Related Skills

  • langfuse-observability - Prompt management and A/B testing tracking
  • llm-evaluation - Evaluating prompt effectiveness
  • function-calling - Structured output patterns
  • llm-testing - Testing prompt variations

Capability Details

chain-of-thought

Keywords: CoT, step by step, reasoning, think, chain of thought Solves:

  • Improve accuracy on complex reasoning tasks
  • Debug LLM reasoning process
  • Implement self-consistency with multiple CoT paths

few-shot-learning

Keywords: few-shot, examples, in-context learning, demonstrations Solves:

  • Format LLM output with examples
  • Handle complex tasks without fine-tuning
  • Select optimal examples for task

prompt-versioning

Keywords: version, prompt management, A/B test, production prompt Solves:

  • Manage prompts in production
  • A/B test prompt variations
  • Roll back to previous versions

prompt-optimization

Keywords: DSPy, optimize, tune, automatic prompt, OPRO Solves:

  • Automatically optimize prompts
  • Find best few-shot examples
  • Improve accuracy without manual tuning

zero-shot-cot

Keywords: zero-shot CoT, think step by step, reasoning trigger Solves:

  • Quick reasoning boost without examples
  • Add "Let's think step by step" trigger
  • Improve accuracy on math/logic

self-consistency

Keywords: self-consistency, multiple paths, voting, ensemble Solves:

  • Generate multiple reasoning paths
  • Vote on most common answer
  • Improve reliability on hard problems

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Claude Code

31.47%
按下载量换算45

OpenCode

22.86%
按下载量换算33

Antigravity

18.53%
按下载量换算26

Gemini CLI

12.31%
按下载量换算18

windsurf

8.09%
按下载量换算12

trae

3.53%
按下载量换算5

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills