Skill · em Dados, IA e pesquisa

prompt-engineering-patterns

Master advanced prompt engineering techniques to maximize LLM performance, reliability, and controllability.

Procedência

Antes de instalar

9 arquivos · 72,4 KB · inclui 1 script que executa: scripts/optimize-prompt.py

Instalar na sua CLI

O comando baixa a versão fixada (commit 57f899e) direto da origem, para a pasta que a CLI lê. Precisa de curl (macOS e Linux); no Windows não há comando, porque o Rook Labs é para macOS.

Claude Code

Neste projeto: instala em .claude/skills/prompt-engineering-patterns/.

d=".claude/skills/prompt-engineering-patterns"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/ai-research/prompt-engineering-patterns"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/assets/few-shot-examples.json" "$u/assets/few-shot-examples.json" \
  -o "$d/assets/prompt-template-library.md" "$u/assets/prompt-template-library.md" \
  -o "$d/references/chain-of-thought.md" "$u/references/chain-of-thought.md" \
  -o "$d/references/few-shot-learning.md" "$u/references/few-shot-learning.md" \
  -o "$d/references/prompt-optimization.md" "$u/references/prompt-optimization.md" \
  -o "$d/references/prompt-templates.md" "$u/references/prompt-templates.md" \
  -o "$d/references/system-prompts.md" "$u/references/system-prompts.md" \
  -o "$d/scripts/optimize-prompt.py" "$u/scripts/optimize-prompt.py" \
  -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Global: instala em ~/.claude/skills/prompt-engineering-patterns/.

d="$HOME/.claude/skills/prompt-engineering-patterns"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/ai-research/prompt-engineering-patterns"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/assets/few-shot-examples.json" "$u/assets/few-shot-examples.json" \
  -o "$d/assets/prompt-template-library.md" "$u/assets/prompt-template-library.md" \
  -o "$d/references/chain-of-thought.md" "$u/references/chain-of-thought.md" \
  -o "$d/references/few-shot-learning.md" "$u/references/few-shot-learning.md" \
  -o "$d/references/prompt-optimization.md" "$u/references/prompt-optimization.md" \
  -o "$d/references/prompt-templates.md" "$u/references/prompt-templates.md" \
  -o "$d/references/system-prompts.md" "$u/references/system-prompts.md" \
  -o "$d/scripts/optimize-prompt.py" "$u/scripts/optimize-prompt.py" \
  -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Codex

Neste projeto: instala em .agents/skills/prompt-engineering-patterns/.

d=".agents/skills/prompt-engineering-patterns"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/ai-research/prompt-engineering-patterns"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/assets/few-shot-examples.json" "$u/assets/few-shot-examples.json" \
  -o "$d/assets/prompt-template-library.md" "$u/assets/prompt-template-library.md" \
  -o "$d/references/chain-of-thought.md" "$u/references/chain-of-thought.md" \
  -o "$d/references/few-shot-learning.md" "$u/references/few-shot-learning.md" \
  -o "$d/references/prompt-optimization.md" "$u/references/prompt-optimization.md" \
  -o "$d/references/prompt-templates.md" "$u/references/prompt-templates.md" \
  -o "$d/references/system-prompts.md" "$u/references/system-prompts.md" \
  -o "$d/scripts/optimize-prompt.py" "$u/scripts/optimize-prompt.py" \
  -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Global: instala em ~/.agents/skills/prompt-engineering-patterns/.

d="$HOME/.agents/skills/prompt-engineering-patterns"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/ai-research/prompt-engineering-patterns"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/assets/few-shot-examples.json" "$u/assets/few-shot-examples.json" \
  -o "$d/assets/prompt-template-library.md" "$u/assets/prompt-template-library.md" \
  -o "$d/references/chain-of-thought.md" "$u/references/chain-of-thought.md" \
  -o "$d/references/few-shot-learning.md" "$u/references/few-shot-learning.md" \
  -o "$d/references/prompt-optimization.md" "$u/references/prompt-optimization.md" \
  -o "$d/references/prompt-templates.md" "$u/references/prompt-templates.md" \
  -o "$d/references/system-prompts.md" "$u/references/system-prompts.md" \
  -o "$d/scripts/optimize-prompt.py" "$u/scripts/optimize-prompt.py" \
  -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Antigravity

Neste projeto: instala em .agents/skills/prompt-engineering-patterns/.

d=".agents/skills/prompt-engineering-patterns"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/ai-research/prompt-engineering-patterns"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/assets/few-shot-examples.json" "$u/assets/few-shot-examples.json" \
  -o "$d/assets/prompt-template-library.md" "$u/assets/prompt-template-library.md" \
  -o "$d/references/chain-of-thought.md" "$u/references/chain-of-thought.md" \
  -o "$d/references/few-shot-learning.md" "$u/references/few-shot-learning.md" \
  -o "$d/references/prompt-optimization.md" "$u/references/prompt-optimization.md" \
  -o "$d/references/prompt-templates.md" "$u/references/prompt-templates.md" \
  -o "$d/references/system-prompts.md" "$u/references/system-prompts.md" \
  -o "$d/scripts/optimize-prompt.py" "$u/scripts/optimize-prompt.py" \
  -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Global: instala em ~/.gemini/antigravity-cli/skills/prompt-engineering-patterns/.

d="$HOME/.gemini/antigravity-cli/skills/prompt-engineering-patterns"
u="https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/skills/ai-research/prompt-engineering-patterns"
curl -fsSL --create-dirs \
  -o "$d/SKILL.md" "$u/SKILL.md" \
  -o "$d/assets/few-shot-examples.json" "$u/assets/few-shot-examples.json" \
  -o "$d/assets/prompt-template-library.md" "$u/assets/prompt-template-library.md" \
  -o "$d/references/chain-of-thought.md" "$u/references/chain-of-thought.md" \
  -o "$d/references/few-shot-learning.md" "$u/references/few-shot-learning.md" \
  -o "$d/references/prompt-optimization.md" "$u/references/prompt-optimization.md" \
  -o "$d/references/prompt-templates.md" "$u/references/prompt-templates.md" \
  -o "$d/references/system-prompts.md" "$u/references/system-prompts.md" \
  -o "$d/scripts/optimize-prompt.py" "$u/scripts/optimize-prompt.py" \
  -o "$d/LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Peça ao Rook

Já usa o Rook Labs? Cole no chat do Rook: instale a skill https://rooklabs.sh/marketplace/cct.prompt-engineering-patterns

Prévia do SKILL.md

---
name: prompt-engineering-patterns
description: "Master advanced prompt engineering techniques to maximize LLM performance, reliability, and controllability."
risk: unknown
source: community
date_added: "2026-02-27"
---

# Prompt Engineering Patterns

Master advanced prompt engineering techniques to maximize LLM performance, reliability, and controllability.

## Do not use this skill when

- The task is unrelated to prompt engineering patterns
- You need a different domain or tool outside this scope

## Instructions

- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open `resources/implementation-playbook.md`.

## Use this skill when

- Designing complex prompts for production LLM applications
- Optimizing prompt performance and consistency
- Implementing structured reasoning patterns (chain-of-thought, tree-of-thought)
- Building few-shot learning systems with dynamic example selection
- Creating reusable prompt templates with variable interpolation
- Debugging and refining prompts that produce inconsistent outputs
- Implementing system prompts for specialized AI assistants

## Core Capabilities

### 1. Few-Shot Learning
- Example selection strategies (semantic similarity, diversity sampling)
- Balancing example count with context window constraints
- Constructing effective demonstrations with input-output pairs
…

Ver todo o marketplace