본문으로 건너뛰기
Skillpedia
프롬프트 및 LLM12k · #11446

prompt-engineer

하는 일

언어 모델에서 정확하고 일관된 답을 얻는 프롬프트를 설계하도록 AI 에이전트를 안내합니다. 안정적인 결과가 필요한 AI 기능을 만드는 사람들을 위한 스킬입니다.

사용하는 경우

  • ✓새 AI 애플리케이션을 위한 프롬프트를 설계할 때.
  • ✓기존 프롬프트가 일관성 없거나 품질이 낮은 결과를 줄 때.
  • ✓구조화된 JSON 출력이나 프롬프트용 테스트 스위트가 필요할 때.

스킬 링크

https://github.com/Jeffallan/claude-skills/blob/main/skills/prompt-engineer/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/Jeffallan/claude-skills/blob/main/skills/prompt-engineer/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“지원 봇의 시스템 프롬프트를 작성해 주세요. 항상 카테고리와 답변을 담은 JSON으로 답하게 해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 과제와 성공 기준을 정의하고, 필요하면 예제를 넣어 프롬프트를 설계한 뒤 다양한 사례로 테스트합니다. 한 번에 한 가지만 바꾸고 결과를 기록합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Prompt Engineer

Expert prompt engineer specializing in designing, optimizing, and evaluating prompts that maximize LLM performance across diverse use cases.

When to Use This Skill

  • Designing prompts for new LLM applications
  • Optimizing existing prompts for better accuracy or efficiency
  • Implementing chain-of-thought or few-shot learning
  • Creating system prompts with personas and guardrails
  • Building structured output schemas (JSON mode, function calling)
  • Developing prompt evaluation and testing frameworks
  • Debugging inconsistent or poor-quality LLM outputs
  • Migrating prompts between different models or providers

Core Workflow

  1. Understand requirements — Define task, success criteria, constraints, and edge cases
  2. Design initial prompt — Choose pattern (zero-shot, few-shot, CoT), write clear instructions
  3. Test and evaluate — Run diverse test cases, measure quality metrics
    • Validation checkpoint: If accuracy < 80% on the test set, identify failure patterns before iterating (e.g., ambiguous instructions, missing examples, edge case gaps)
  4. Iterate and optimize — Make one change at a time; refine based on failures, reduce tokens, improve reliability
  5. Document and deploy — Version prompts, document behavior, monitor production

Reference Guide

Load detailed guidance based on context:

Topic Reference Load When
Prompt Patterns references/prompt-patterns.md Zero-shot, few-shot, chain-of-thought, ReAct
Optimization references/prompt-optimization.md Iterative refinement, A/B testing, token reduction
Evaluation references/evaluation-frameworks.md Metrics, test suites, automated evaluation
Structured Outputs references/structured-outputs.md JSON mode, function calling, schema design
System Prompts references/system-prompts.md Persona design, guardrails, injection defense
Context Management references/context-management.md Attention budget, degradation patterns, context optimization

Prompt Examples

Zero-shot vs. Few-shot

Zero-shot (baseline):

Classify the sentiment of the following review as Positive, Negative, or Neutral.

Review: {{review}}
Sentiment:

Few-shot (improved reliability):

Classify the sentiment of the following review as Positive, Negative, or Neutral.

Review: "The battery life is incredible, lasts all day."
Sentiment: Positive

Review: "Stopped working after two weeks. Very disappointed."
Sentiment: Negative

Review: "It arrived on time and matches the description."
Sentiment: Neutral

Review: {{review}}
Sentiment:

Before/After Optimization

Before (vague, inconsistent outputs):

Summarize this document.

{{document}}

After (structured, token-efficient):

Summarize the document below in exactly 3 bullet points. Each bullet must be one sentence and start with an action verb. Do not include opinions or information not present in the document.

Document:
{{document}}

Summary:

Constraints

MUST DO

  • Test prompts with diverse, realistic inputs including edge cases
  • Measure performance with quantitative metrics (accuracy, consistency)
  • Version prompts and track changes systematically
  • Document expected behavior and known limitations
  • Use few-shot examples that match target distribution
  • Validate structured outputs against schemas
  • Consider token costs and latency in design
  • Test across model versions before production deployment

MUST NOT DO

  • Deploy prompts without systematic evaluation on test cases
  • Use few-shot examples that contradict instructions
  • Ignore model-specific capabilities and limitations
  • Skip edge case testing (empty inputs, unusual formats)
  • Make multiple changes simultaneously when debugging
  • Hardcode sensitive data in prompts or examples
  • Assume prompts transfer perfectly between models
  • Neglect monitoring for prompt degradation in production

Output Templates

When delivering prompt work, provide:

  1. Final prompt with clear sections (role, task, constraints, format)
  2. Test cases and evaluation results
  3. Usage instructions (temperature, max tokens, model version)
  4. Performance metrics and comparison with baselines
  5. Known limitations and edge cases

Coverage Note

Reference files cover major prompting techniques (zero-shot, few-shot, CoT, ReAct, tree-of-thoughts), structured output patterns (JSON mode, function calling), context management (

자주 묻는 질문

정확도가 낮으면 어떻게 하나요?

테스트 세트에서 정확도가 80퍼센트 미만이면, 더 많은 변경을 하기 전에 실패 패턴을 먼저 찾습니다.

프롬프트를 짧게 만들 수 있나요?

네. 정확도를 유지하면서 토큰을 줄이도록 프롬프트를 리팩터링할 수 있습니다.

단계별 추론 프롬프트도 도와주나요?

네. 생각의 사슬(chain-of-thought)과 퓨샷 학습 패턴을 다룹니다.

상세 정보

작성자의 원본 설명

Writes, refactors, and evaluates prompts for LLMs — generating optimized prompt templates, structured output schemas, evaluation rubrics, and test suites. Use when designing prompts for new LLM applications, refactoring existing prompts for better accuracy or token efficiency, implementing chain-of-thought or few-shot learning, creating system prompts with personas and guardrails, building JSON/function-calling schemas, or developing prompt evaluation frameworks to measure and improve model performance.

repo: Jeffallan/claude-skills

인기도

GitHub 스타
12k
순위
#11446
라이선스
MIT
업데이트
2026. 10. 30.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬