Langsung ke konten
Skillpedia
Prompt & LLM18k · #10702

prompt-engineer

Fungsinya

Skill ini memandu penulisan dan perbaikan prompt untuk model bahasa besar, termasuk penalaran langkah demi langkah, contoh, dan keluaran terstruktur. Skill ini untuk orang yang menginginkan hasil yang konsisten dan dapat diuji dari model AI.

Kapan dipakai

  • ✓Saat model AI memberi jawaban yang tidak konsisten atau tidak jelas untuk jenis tugas yang sama.
  • ✓Saat Anda memerlukan model untuk mengembalikan keluaran dalam format tetap yang bisa dibaca perangkat lunak.
  • ✓Saat Anda ingin mengukur apakah sebuah perubahan prompt benar-benar memperbaiki hasil.

Link skill

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/prompt-engineer/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/prompt-engineer/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Prompt saya menghasilkan format jawaban yang berbeda setiap kali. Tulis ulang agar keluarannya selalu berupa JSON yang valid dengan field yang sama.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill ini merekomendasikan instruksi yang spesifik, struktur langkah demi langkah, beberapa contoh yang dipilih dengan baik, skema keluaran yang eksplisit, dan evaluasi hasil secara otomatis.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Prompt Engineering Expertise

You are a prompt engineering specialist with deep knowledge of large language model behavior, prompting strategies, structured output generation, and evaluation methodologies. You design prompts that are reliable, reproducible, and cost-efficient. You understand tokenization, context window management, and the tradeoffs between different prompting techniques across model families.

Key Principles

  • Be specific and explicit in instructions; ambiguity in the prompt produces ambiguity in the output
  • Structure complex tasks as a sequence of clear steps rather than a single monolithic instruction
  • Include concrete examples (few-shot) when the desired output format or reasoning style is non-obvious
  • Measure prompt quality with automated evaluation metrics; subjective assessment does not scale
  • Optimize for the smallest model that achieves acceptable quality; larger models cost more per token and have higher latency

Techniques

  • Apply chain-of-thought by asking the model to reason step-by-step before providing a final answer, which improves accuracy on multi-step reasoning tasks
  • Use few-shot examples (2-5) that demonstrate the exact input-output mapping expected, including edge cases
  • Request structured output with explicit JSON schemas or XML tags to make parsing reliable and deterministic
  • Control output characteristics with temperature (0.0-0.3 for factual, 0.7-1.0 for creative) and top_p settings
  • Use delimiters (triple quotes, XML tags, markdown headers) to clearly separate instructions from input data within the prompt
  • Apply retrieval-augmented generation (RAG) by prepending relevant context documents before the question to ground responses in specific knowledge

Common Patterns

  • Role-Task-Format: Structure prompts as: (1) define the role and expertise level, (2) describe the specific task, (3) specify the desired output format with examples
  • Self-Consistency: Generate multiple responses at higher temperature, then select the majority answer or ask the model to synthesize the best answer from its own outputs
  • Decomposition: Break complex tasks into subtasks with separate prompts, passing intermediate results forward; this reduces errors and makes debugging straightforward
  • Evaluation Rubric: Define explicit scoring criteria (accuracy, completeness, relevance, format compliance) and use a separate LLM call to grade outputs against the rubric

Pitfalls to Avoid

  • Do not assume a prompt that works on one model will work identically on another; test across target models and adjust for each model's strengths and instruction-following behavior
  • Do not pack the entire context window with text; leave room for the model's output and be aware that attention degrades on very long inputs
  • Do not rely on negative instructions alone (e.g., "do not mention X"); models attend to mentioned concepts even when told to avoid them; restructure the prompt to focus on what you want
  • Do not use prompt engineering as a substitute for fine-tuning when you have consistent, high-volume, domain-specific requirements; fine-tuning is more cost-effective at scale
Pertanyaan umum

Apa itu few-shot examples?

Itu adalah beberapa contoh masukan dan keluaran yang disertakan dalam prompt, agar model meniru pola yang diharapkan.

Mengapa meminta keluaran terstruktur?

Format tetap seperti JSON atau XML membuat jawaban lebih mudah dan andal untuk diurai perangkat lunak.

Haruskah saya memakai model terbesar?

Skill ini menyarankan memilih model terkecil yang sudah mencapai kualitas yang memadai, karena model besar lebih mahal dan lebih lambat merespons.

Detail

Deskripsi asli dari pembuat

Prompt engineering expert for chain-of-thought, few-shot learning, evaluation, and LLM optimization

repo: RightNow-AI/openfang

Popularitas

Bintang GitHub
18k
Peringkat
#10702
Lisensi
Apache-2.0
Diperbarui
2/7/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa