prompt-engineering
Advanced prompt engineering techniques for optimal AI responses. Use this when crafting prompts, optimizing AI interactions, or designing system prompts for applications.
npx skills add majiayu000/claude-skill-registry --skill prompt-engineering-doyajin174-myskills --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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 ### 기본 구조 ```markdown ## Role (역할) [AI가 수행할 역할 정의] ## Context (맥락) [배경 정보, 제약 조건] ## Task (작업) [구체적인 요청 사항] ## Format (형식) [원하는 출력 형식] ## Examples (예시) - 선택적 [입출력 예시] ``` ### 코드 관련 프롬프트 ```markdown ## 환경 - 언어/프레임워크: [명시] - 버전: [명시] - 관련 의존성: [명시] ## 현재 상태 [현재 코드 또는 상황
- Core Principles
- 1. Clarity (명확성)
- 2. Context (맥락)
- 3. Specificity (구체성)
- Prompting Techniques
- Zero-Shot Prompting
- Few-Shot Prompting
- Chain-of-Thought (CoT)
- Role Prompting
- Prompt Structure
- 기본 구조
- 코드 관련 프롬프트
- Anti-Patterns
- 피해야 할 패턴
What does the prompt-engineering skill do?
Advanced prompt engineering techniques for optimal AI responses. Use this when crafting prompts, optimizing AI interactions, or designing system prompts for applications.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill prompt-engineering-doyajin174-myskills --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
