ai-prompting

📁 1mangesh1/dev-skills-collection 📅 6 days ago
1
总安装量
1
周安装量
#49584
全站排名
安装命令
npx skills add https://github.com/1mangesh1/dev-skills-collection --skill ai-prompting

Agent 安装分布

amp 1
opencode 1
kimi-cli 1
codex 1
github-copilot 1
claude-code 1

Skill 文档

AI Prompting & LLM Patterns

Prompt engineering techniques and LLM interaction patterns for Claude, GPT, and other AI models.

Prompt Techniques

Basic Structure

Role: [Specify role/expertise]
Task: [Clear, specific task]
Context: [Relevant background]
Format: [Desired output format]
Constraints: [Any limitations]

Few-Shot Prompting

Provide 2-3 examples of input-output pairs before the actual request to guide model behavior.

Chain-of-Thought

Ask model to “explain your reasoning step by step” for complex tasks. Improves accuracy on logical problems.

System Prompts

Design detailed system prompts that establish persona, expertise level, and behavioral guidelines.

Key Strategies

  1. Clarity – Be specific and unambiguous
  2. Examples – Provide concrete examples
  3. Constraints – Define output format and limits
  4. Role Definition – Specify expertise and perspective
  5. Iterative Refinement – Test and improve prompts

Common Patterns

  • Classification & Categorization
  • Text Generation & Creative Writing
  • Code Generation & Debugging
  • Data Extraction & Parsing
  • Analysis & Reasoning
  • Summarization & Synthesis
  • Translation & Conversion
  • Problem Solving & Ideation

References

  • OpenAI Prompt Engineering Guide
  • Anthropic Claude Best Practices
  • Prompt Engineering Institute