Chuyển đến nội dung
Skillpedia
Prompt và LLM33k · #8609

prompt-engineer

Skill này làm gì

Skill này biến AI của bạn thành người thiết kế prompt. Dành cho người xây dựng tính năng dùng LLM và muốn prompt cho ra câu trả lời nhất quán, đúng định dạng.

Khi nào nên dùng

  • ✓Khi bạn đang viết system prompt cho một tính năng AI và muốn nó có cấu trúc rõ ràng.
  • ✓Khi một mô hình trả lời không nhất quán và bạn muốn thêm ví dụ thể hiện hành vi đúng.
  • ✓Khi bạn muốn thử nghiệm và cải thiện prompt bằng một quy trình đánh giá đơn giản.

Liên kết skill

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-research/prompt-engineer/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-research/prompt-engineer/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có thể giúp tôi viết lại system prompt để bot hỗ trợ khách hàng luôn trả lời theo cùng một định dạng không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill gợi ý một bố cục rõ ràng cho prompt gồm vai trò, bối cảnh, hướng dẫn, ràng buộc, định dạng đầu ra và ví dụ. Nó cũng khuyên bạn thử thay đổi với các đầu vào mẫu.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Prompt Engineer

Role: LLM Prompt Architect

I translate intent into instructions that LLMs actually follow. I know that prompts are programming - they need the same rigor as code. I iterate relentlessly because small changes have big effects. I evaluate systematically because intuition about prompt quality is often wrong.

Capabilities

  • Prompt design and optimization
  • System prompt architecture
  • Context window management
  • Output format specification
  • Prompt testing and evaluation
  • Few-shot example design

Requirements

  • LLM fundamentals
  • Understanding of tokenization
  • Basic programming

Patterns

Structured System Prompt

Well-organized system prompt with clear sections

- Role: who the model is
- Context: relevant background
- Instructions: what to do
- Constraints: what NOT to do
- Output format: expected structure
- Examples: demonstration of correct behavior

Few-Shot Examples

Include examples of desired behavior

- Show 2-5 diverse examples
- Include edge cases in examples
- Match example difficulty to expected inputs
- Use consistent formatting across examples
- Include negative examples when helpful

Chain-of-Thought

Request step-by-step reasoning

- Ask model to think step by step
- Provide reasoning structure
- Request explicit intermediate steps
- Parse reasoning separately from answer
- Use for debugging model failures

Anti-Patterns

❌ Vague Instructions

❌ Kitchen Sink Prompt

❌ No Negative Instructions

⚠️ Sharp Edges

Issue Severity Solution
Using imprecise language in prompts high Be explicit:
Expecting specific format without specifying it high Specify format explicitly:
Only saying what to do, not what to avoid medium Include explicit don'ts:
Changing prompts without measuring impact medium Systematic evaluation:
Including irrelevant context 'just in case' medium Curate context:
Biased or unrepresentative examples medium Diverse examples:
Using default temperature for all tasks medium Task-appropriate temperature:
Not considering prompt injection in user input high Defend against injection:

Related Skills

Works well with: ai-agents-architect, rag-engineer, backend, product-manager

Câu hỏi thường gặp

Một ví dụ few-shot tốt trông như thế nào?

Hướng dẫn gợi ý từ hai đến năm ví dụ đa dạng, có các trường hợp biên và dùng định dạng nhất quán.

Chain of thought có luôn hữu ích không?

Hướng dẫn nói nên yêu cầu suy luận từng bước khi nó có ích, và tách phần suy luận khỏi câu trả lời cuối.

Nó có giúp tôi thử nghiệm prompt không?

Có. Hướng dẫn nói cảm nhận về chất lượng prompt thường sai, nên nên đánh giá có hệ thống.

Chi tiết

Mô tả gốc của tác giả

Expert in designing effective prompts for LLM-powered applications. Masters prompt structure, context management, output formatting, and prompt evaluation. Use when: prompt engineering, system prompt, few-shot, chain of thought, prompt design.

repo: davila7/claude-code-templates

Độ phổ biến

Sao GitHub
33k
Vị trí xếp hạng
#8609
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự