agentsclimarketplace

Prompt engineering

Skill ComeOnOliver/skillshub/skills/aiskillstore/marketplace/doyajin174/prompt-engineering

🧠 The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.

Install
npx -y skills add ComeOnOliver/skillshub --skill prompt-engineering

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

Advanced prompt engineering techniques for optimal AI responses. Use this when crafting prompts, optimizing AI interactions, or designing system prompts for applications.

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

4.1 KB, as published. Nobody here has run it

Prompt Engineering

효과적인 ν”„λ‘¬ν”„νŠΈ μž‘μ„±μ„ μœ„ν•œ κ³ κΈ‰ 기법 κ°€μ΄λ“œμž…λ‹ˆλ‹€.

Core Principles

1. Clarity (λͺ…ν™•μ„±)

❌ "μ½”λ“œ μ’€ 고쳐쀘"
βœ… "auth.js의 validateToken ν•¨μˆ˜μ—μ„œ 만료된 토큰 처리 μ‹œ
    λ°œμƒν•˜λŠ” TypeErrorλ₯Ό μˆ˜μ •ν•΄μ£Όμ„Έμš”"

2. Context (λ§₯락)

❌ "이 μ—λŸ¬ ν•΄κ²°ν•΄μ€˜: TypeError"
βœ… "Node.js 18, Express 4 ν™˜κ²½μ—μ„œ JWT 검증 μ‹œ
    λ‹€μŒ μ—λŸ¬ λ°œμƒ: TypeError: Cannot read property 'exp' of undefined
    κ΄€λ ¨ μ½”λ“œ: [μ½”λ“œ 첨뢀]"

3. Specificity (ꡬ체성)

❌ "쒋은 API λ§Œλ“€μ–΄μ€˜"
βœ… "λ‹€μŒ μš”κ΅¬μ‚¬ν•­μ˜ REST API 섀계:
    - λ¦¬μ†ŒμŠ€: μ‚¬μš©μž, κ²Œμ‹œλ¬Ό
    - 인증: JWT Bearer
    - νŽ˜μ΄μ§€λ„€μ΄μ…˜: cursor 기반
    - 응닡 ν˜•μ‹: JSON:API μŠ€νŽ™"

Prompting Techniques

Zero-Shot Prompting

직접 μ§€μ‹œλ§ŒμœΌλ‘œ κ²°κ³Ό λ„μΆœ

예: "λ‹€μŒ ν…μŠ€νŠΈμ˜ 감정을 λΆ„μ„ν•˜μ„Έμš”: [ν…μŠ€νŠΈ]"

Few-Shot Prompting

μ˜ˆμ‹œλ₯Ό ν†΅ν•œ νŒ¨ν„΄ ν•™μŠ΅

μ˜ˆμ‹œ 1: μž…λ ₯ β†’ 좜λ ₯
μ˜ˆμ‹œ 2: μž…λ ₯ β†’ 좜λ ₯
---
μ‹€μ œ μž…λ ₯ β†’ ?

Chain-of-Thought (CoT)

단계별 μΆ”λ‘  μœ λ„

"λ‹¨κ³„λ³„λ‘œ μƒκ°ν•΄λ³΄μ„Έμš”:
1. λ¨Όμ € 문제λ₯Ό λΆ„μ„ν•©λ‹ˆλ‹€
2. κ°€λŠ₯ν•œ 해결책을 λ‚˜μ—΄ν•©λ‹ˆλ‹€
3. 각 ν•΄κ²°μ±…μ˜ μž₯단점을 ν‰κ°€ν•©λ‹ˆλ‹€
4. 졜적의 해결책을 μ„ νƒν•©λ‹ˆλ‹€"

Role Prompting

νŠΉμ • μ—­ν•  λΆ€μ—¬

"당신은 10λ…„ κ²½λ ₯의 μ‹œλ‹ˆμ–΄ λ°±μ—”λ“œ κ°œλ°œμžμž…λ‹ˆλ‹€.
μ½”λ“œ 리뷰 κ΄€μ μ—μ„œ λ‹€μŒ μ½”λ“œλ₯Ό ν‰κ°€ν•΄μ£Όμ„Έμš”..."

Prompt Structure

기본 ꡬ쑰

## Role (μ—­ν• )
[AIκ°€ μˆ˜ν–‰ν•  μ—­ν•  μ •μ˜]

## Context (λ§₯락)
[λ°°κ²½ 정보, μ œμ•½ 쑰건]

## Task (μž‘μ—…)
[ꡬ체적인 μš”μ²­ 사항]

## Format (ν˜•μ‹)
[μ›ν•˜λŠ” 좜λ ₯ ν˜•μ‹]

## Examples (μ˜ˆμ‹œ) - 선택적
[μž…μΆœλ ₯ μ˜ˆμ‹œ]

μ½”λ“œ κ΄€λ ¨ ν”„λ‘¬ν”„νŠΈ

## ν™˜κ²½
- μ–Έμ–΄/ν”„λ ˆμž„μ›Œν¬: [λͺ…μ‹œ]
- 버전: [λͺ…μ‹œ]
- κ΄€λ ¨ μ˜μ‘΄μ„±: [λͺ…μ‹œ]

## ν˜„μž¬ μƒνƒœ
[ν˜„μž¬ μ½”λ“œ λ˜λŠ” 상황]

## λͺ©ν‘œ
[λ‹¬μ„±ν•˜λ €λŠ” κ²°κ³Ό]

## μ œμ•½ 쑰건
- [μ œμ•½ 1]
- [μ œμ•½ 2]

Anti-Patterns

ν”Όν•΄μ•Ό ν•  νŒ¨ν„΄

μ•ˆν‹°νŒ¨ν„΄λ¬Έμ œμ κ°œμ„ 
λͺ¨ν˜Έν•œ μš”μ²­ν•΄μ„μ˜ μ—¬μ§€κ°€ 많음ꡬ체적 쑰건 λͺ…μ‹œ
κ³Όλ„ν•œ 정보핡심이 λ¬»νž˜κ΄€λ ¨ μ •λ³΄λ§Œ 포함
λΆ€μ •ν˜• μ§€μ‹œ"~ν•˜μ§€ λ§ˆμ„Έμš”""~ν•΄μ£Όμ„Έμš”" 둜 λ³€κ²½
μ—΄λ¦° κ²°λ§λ²”μœ„κ°€ λ¬΄ν•œν•¨λ²”μœ„μ™€ μ œμ•½ λͺ…μ‹œ

μ˜ˆμ‹œ

❌ "μ΄μƒν•œ μ½”λ“œ νŒ¨ν„΄ μ‚¬μš©ν•˜μ§€ λ§ˆμ„Έμš”"
βœ… "ESLint κ·œμΉ™μ„ λ”°λ₯΄κ³ , ν•¨μˆ˜λŠ” 20쀄 μ΄λ‚΄λ‘œ μž‘μ„±ν•΄μ£Όμ„Έμš”"

❌ "쒋은 μ„±λŠ₯으둜 λ§Œλ“€μ–΄μ£Όμ„Έμš”"
βœ… "응닡 μ‹œκ°„ 100ms 이내, λ©”λͺ¨λ¦¬ μ‚¬μš© 512MB μ΄ν•˜λ‘œ μ΅œμ ν™”ν•΄μ£Όμ„Έμš”"

System Prompt Design

ꡬ쑰

# Identity
[AI의 정체성과 λͺ©μ ]

# Capabilities
[ν•  수 μžˆλŠ” 것]

# Constraints
[μ œν•œ 사항]

# Response Format
[응닡 ν˜•μ‹ κ·œμΉ™]

# Examples
[λŒ€ν‘œμ μΈ μƒν˜Έμž‘μš© μ˜ˆμ‹œ]

μ˜ˆμ‹œ: μ½”λ“œ 리뷰 봇

# Identity
당신은 μ½”λ“œ ν’ˆμ§ˆ ν–₯상을 λ•λŠ” μ‹œλ‹ˆμ–΄ κ°œλ°œμžμž…λ‹ˆλ‹€.

# Capabilities
- μ½”λ“œ μŠ€νƒ€μΌ κ²€ν† 
- 버그 탐지
- μ„±λŠ₯ κ°œμ„  μ œμ•ˆ
- λ³΄μ•ˆ 취약점 식별

# Constraints
- 개인적 μŠ€νƒ€μΌ κ°•μš” κΈˆμ§€
- ν”„λ‘œμ νŠΈ μ»¨λ²€μ…˜ μš°μ„ 
- 건섀적 ν”Όλ“œλ°±λ§Œ 제곡

# Response Format
## μš”μ•½
[ν•œ 쀄 μš”μ•½]

## μ£Όμš” 발견
- [이슈 1]: [μ„€λͺ…] β†’ [μ œμ•ˆ]

## 긍정적 μΈ‘λ©΄
- [μž˜ν•œ 점]

Iteration Strategies

1. 초기 ν”„λ‘¬ν”„νŠΈ μž‘μ„±
2. κ²°κ³Ό 평가
3. 문제점 식별:
   - λΆˆμ™„μ „ν•œ 응닡 β†’ 더 ꡬ체적인 μ§€μ‹œ μΆ”κ°€
   - 잘λͺ»λœ λ°©ν–₯ β†’ μ œμ•½ 쑰건 κ°•ν™”
   - ν˜•μ‹ 뢈일치 β†’ μ˜ˆμ‹œ μΆ”κ°€
4. ν”„λ‘¬ν”„νŠΈ μˆ˜μ •
5. 반볡

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.