prompt-engineering by giuseppe-trisciuoglio/developer-kit
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill prompt-engineering使用此技能来设计清晰、可测试且可复用的提示词系统。它涵盖了提示词起草、优化、评估以及面向生产的模式,包括少样本提示、推理工作流、模板和系统提示。
请将主要工作流程保留在此文件中,仅在应用特定模式时加载对应的参考文件。
在以下情况使用此技能:
当您需要对特定模式进行更深入的指导时,请阅读 references/ 目录下的相关文件。
references/few-shot-patterns.md 获取全面的选择框架Classify the sentiment as Positive, Negative, or Neutral.
Text: "I love this product! It exceeded my expectations."
Sentiment: Positive
Reasoning: Enthusiastic language, positive adjectives, satisfaction
Text: "The app keeps crashing when I upload large files."
Sentiment: Negative
Reasoning: Complaint about functionality, frustration indicator
Text: "It arrived on time, as described."
Sentiment: Neutral
Reasoning: Factual statement, no strong emotion either way
Text: "{user_input}"
Sentiment:
Reasoning:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
references/cot-patterns.md 获取详细的推理框架Let's approach this step-by-step:
Step 1: {break_down_the_problem}
Analysis: {detailed_reasoning}
Step 2: {identify_key_components}
Analysis: {component_analysis}
Step 3: {synthesize_solution}
Analysis: {solution_justification}
Final Answer: {conclusion_with_confidence}
references/optimization-frameworks.md 获取全面的优化策略跟踪这些指标:准确性、一致性、令牌效率、鲁棒性、安全性。有关测量工具,请参阅 references/optimization-frameworks.md。
references/template-systems.md 获取模块化模板框架{user_input}, {context})# System Context
You are a {role} with {expertise_level} expertise in {domain}.
# Task Context
{if background_information}
Background: {background_information}
{endif}
# Instructions
{task_instructions}
# Examples
{example_count}
# Output Format
{output_specification}
# Input
{user_query}
references/system-prompt-design.md 获取详细的设计指南You are an expert {role} specializing in {domain} with {experience_level} of experience.
## Core Capabilities
- List specific capabilities and expertise areas
- Define scope of knowledge and limitations
## Behavioral Guidelines
- Specify interaction style and communication approach
- Define error handling and uncertainty protocols
- Establish quality standards and verification requirements
## Output Requirements
- Specify format expectations and structural requirements
- Define content inclusion and exclusion criteria
- Establish consistency and validation requirements
## Safety and Ethics
- Include content policy adherence
- Specify bias mitigation requirements
- Define harm prevention protocols
references/,而不是使 SKILL.md 臃肿此技能可与以下技能无缝集成:
references/few-shot-patterns.md: 全面的少样本学习框架references/cot-patterns.md: 思维链推理模式和示例references/optimization-frameworks.md: 系统化提示词优化方法references/template-systems.md: 模块化模板设计和实现references/system-prompt-design.md: 系统提示架构和最佳实践| 陷阱 | 修复方法 |
|---|---|
| 输出格式错误 | 在提示词末尾添加一个具体的输出示例 |
| 答案不一致 | 添加 2-3 个展示预期推理的少样本示例 |
| 幻觉 | 添加 "If unsure, say 'I don't know'" + 限制答案领域 |
| 过于冗长 | 添加明确的字数/句子限制 + "Be concise" 指令 |
| 遗漏边缘案例 | 添加一个边缘案例的少样本示例 |
每周安装量
373
仓库
GitHub 星标数
173
首次出现
Feb 3, 2026
安全审计
安装于
claude-code293
gemini-cli285
opencode284
cursor282
codex280
github-copilot263
Use this skill to design prompt systems that are clear, testable, and reusable. It covers prompt drafting, optimization, evaluation, and production-oriented patterns for few-shot prompting, reasoning workflows, templates, and system prompts.
Keep the main workflow in this file and load the targeted reference files only for the pattern you are applying.
Use this skill when:
Read the relevant files in references/ when you need deeper guidance on a specific pattern.
references/few-shot-patterns.md for comprehensive selection frameworksClassify the sentiment as Positive, Negative, or Neutral.
Text: "I love this product! It exceeded my expectations."
Sentiment: Positive
Reasoning: Enthusiastic language, positive adjectives, satisfaction
Text: "The app keeps crashing when I upload large files."
Sentiment: Negative
Reasoning: Complaint about functionality, frustration indicator
Text: "It arrived on time, as described."
Sentiment: Neutral
Reasoning: Factual statement, no strong emotion either way
Text: "{user_input}"
Sentiment:
Reasoning:
references/cot-patterns.md for detailed reasoning frameworksLet's approach this step-by-step:
Step 1: {break_down_the_problem}
Analysis: {detailed_reasoning}
Step 2: {identify_key_components}
Analysis: {component_analysis}
Step 3: {synthesize_solution}
Analysis: {solution_justification}
Final Answer: {conclusion_with_confidence}
references/optimization-frameworks.md for comprehensive optimization strategiesTrack these metrics: accuracy, consistency, token efficiency, robustness, safety. See references/optimization-frameworks.md for measurement utilities.
references/template-systems.md for modular template frameworks{user_input}, {context})# System Context
You are a {role} with {expertise_level} expertise in {domain}.
# Task Context
{if background_information}
Background: {background_information}
{endif}
# Instructions
{task_instructions}
# Examples
{example_count}
# Output Format
{output_specification}
# Input
{user_query}
references/system-prompt-design.md for detailed design guidelinesYou are an expert {role} specializing in {domain} with {experience_level} of experience.
## Core Capabilities
- List specific capabilities and expertise areas
- Define scope of knowledge and limitations
## Behavioral Guidelines
- Specify interaction style and communication approach
- Define error handling and uncertainty protocols
- Establish quality standards and verification requirements
## Output Requirements
- Specify format expectations and structural requirements
- Define content inclusion and exclusion criteria
- Establish consistency and validation requirements
## Safety and Ethics
- Include content policy adherence
- Specify bias mitigation requirements
- Define harm prevention protocols
Analyze Requirements
Select Pattern Strategy
Draft Initial Prompt
Validate and Test
Performance Analysis
Optimization Strategy
Implementation and Testing
Modular Architecture Design
Production Integration
references/ instead of bloating SKILL.mdThis skill integrates seamlessly with:
references/few-shot-patterns.md: Comprehensive few-shot learning frameworksreferences/cot-patterns.md: Chain-of-thought reasoning patterns and examplesreferences/optimization-frameworks.md: Systematic prompt optimization methodologiesreferences/template-systems.md: Modular template design and implementationreferences/system-prompt-design.md: System prompt architecture and best practices| Pitfall | Fix |
|---|---|
| Wrong output format | Add a concrete output example at the end of the prompt |
| Inconsistent answers | Add 2-3 few-shot examples showing expected reasoning |
| Hallucination | Add "If unsure, say 'I don't know'" + constrain the answer domain |
| Too verbose | Add explicit word/sentence limit + "Be concise" instruction |
| Missed edge cases | Add an edge-case few-shot example |
Weekly Installs
373
Repository
GitHub Stars
173
First Seen
Feb 3, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code293
gemini-cli285
opencode284
cursor282
codex280
github-copilot263
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
106,200 周安装