본문으로 건너뛰기
Skillpedia
프롬프트 및 LLM48k · #5089

llm-prompt-optimizer

하는 일

이 도구는 인공지능(AI)에 주는 지시를 개선합니다. 모호한 요청을 명확하고 효율적인 지시로 바꿔 AI가 원하는 것을 정확히 이해하고 더 나은 결과를 내도록 합니다.

사용하는 경우

  • ✓AI가 혼란스럽거나 틀린 답을 줄 때.
  • ✓목록이나 표처럼 특정 형식으로 응답을 받고 싶을 때.
  • ✓AI가 더 직접적으로 답하고 ‘군더더기’를 줄이기를 원할 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/llm-prompt-optimizer/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“AI를 위한 이 프롬프트를 개선해 주세요: ‘개에 대해 이야기해 줘.’”

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

작동 방식

도구는 원래 요청을 분석하고 알려진 ‘프롬프트 엔지니어링’ 기법을 적용합니다. AI가 어떤 역할을 해야 하는지, 맥락, 규칙, 응답 형식 같은 세부 사항을 추가합니다.

기술 내용 (원본 SKILL.md)

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

LLM Prompt Optimizer

Overview

This skill transforms weak, vague, or inconsistent prompts into precision-engineered instructions that reliably produce high-quality outputs from any LLM (Claude, Gemini, GPT-4, Llama, etc.). It applies systematic prompt engineering frameworks — from zero-shot to few-shot, chain-of-thought, and structured output patterns.

When to Use This Skill

  • Use when a prompt returns inconsistent, vague, or hallucinated results
  • Use when you need structured/JSON output from an LLM reliably
  • Use when designing system prompts for AI agents or chatbots
  • Use when you want to reduce token usage without sacrificing quality
  • Use when implementing chain-of-thought reasoning for complex tasks
  • Use when prompts work on one model but fail on another

Step-by-Step Guide

1. Diagnose the Weak Prompt

Before optimizing, identify which problem pattern applies:

Problem Symptom Fix
Too vague Generic, unhelpful answers Add role + context + constraints
No structure Unformatted, hard-to-parse output Specify output format explicitly
Hallucination Confident wrong answers Add "say I don't know if unsure"
Inconsistent Different answers each run Add few-shot examples
Too long Verbose, padded responses Add length constraints

2. Apply the RSCIT Framework

Every optimized prompt should have:

  • R — Role: Who is the AI in this interaction?
  • S — Situation: What context does it need?
  • C — Constraints: What are the rules and limits?
  • I — Instructions: What exactly should it do?
  • T — Template: What should the output look like?

Before (weak prompt):

Explain machine learning.

After (optimized prompt):

You are a senior ML engineer explaining concepts to a junior developer.

Context: The developer has 1 year of Python experience but no ML background.

Task: Explain supervised machine learning in simple terms.

Constraints:
- Use an analogy from everyday life
- Maximum 200 words
- No mathematical formulas
- End with one actionable next step

Format: Plain prose, no bullet points.

3. Chain-of-Thought (CoT) Pattern

For reasoning tasks, instruct the model to think step-by-step:

Solve this problem step by step, showing your work at each stage.
Only provide the final answer after completing all reasoning steps.

Problem: [your problem here]

Thinking process:
Step 1: [identify what's given]
Step 2: [identify what's needed]
Step 3: [apply logic or formula]
Step 4: [verify the answer]

Final Answer:

4. Few-Shot Examples Pattern

Provide 2-3 examples to establish the pattern:

Classify the sentiment of customer reviews as POSITIVE, NEGATIVE, or NEUTRAL.

Examples:
Review: "This product exceeded my expectations!" -> POSITIVE
Review: "It arrived broken and support was useless." -> NEGATIVE  
Review: "Product works as described, nothing special." -> NEUTRAL

Now classify:
Review: "[your review here]" ->

5. Structured JSON Output Pattern

Extract the following information from the text below and return it as valid JSON only.
Do not include any explanation or markdown — just the raw JSON object.

Schema:
{
  "name": string,
  "email": string | null,
  "company": string | null,
  "role": string | null
}

Text: [input text here]

6. Reduce Hallucination Pattern

Answer the following question based ONLY on the provided context.
If the answer is not contained in the context, respond with exactly: "I don't have enough information to answer this."
Do not make up or infer information not present in the context.

Context:
[your context here]

Question: [your question here]

7. Prompt Compression Techniques

Reduce token count without losing effectiveness:

# Verbose (expensive)
"Please carefully analyze the following code and provide a detailed explanation of 
what it does, how it works, and any potential issues you might find."

# Compressed (efficient, same quality)
"Analyze this code: explain what it does, how it works, and flag any issues."

Best Practices

  • ✅ Do: Always specify the output format (JSON, markdown, plain text, bullet list)
  • ✅ Do: Use delimiters (```, ---) to separate instructions from content
  • ✅ Do: Test prompts with edge cases (empty input, unusual data)
  • ✅ Do: Version your system prompts in source control

…

자주 묻는 질문

‘프롬프트 엔지니어링’이란 무엇인가요?

인공지능이 이해하고 최선의 방식으로 작업을 수행하도록 명확하고 효과적인 지시를 쓰는 기술입니다.

AI는 왜 가끔 사실이 아닌 내용을 지어내나요(환각)?

요청이 충분히 명확하지 않거나 AI에게 올바른 정보가 없을 때 생길 수 있습니다. 잘 만든 프롬프트는 이를 예방하는 데 도움이 됩니다.

‘토큰’이란 무엇인가요?

AI가 텍스트를 처리하는 기본 단위입니다. 짧고 직접적인 프롬프트는 토큰을 적게 써서 비용을 줄일 수 있습니다.

상세 정보

작성자의 원본 설명

Use when improving prompts for any LLM. Applies proven prompt engineering techniques to boost output quality, reduce hallucinations, and cut token usage.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5089
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬