Langsung ke konten
Skillpedia
Prompt & LLM40k ยท #7346

prompt-optimizer

Fungsinya

Alat ini mengubah ide teks sederhana atau deskripsi tugas menjadi perintah (prompt) yang lengkap dan optimal untuk digunakan di chat AI. Alat ini memastikan perintah akhir tidak memiliki bagian kosong yang harus diisi, sehingga langsung bisa dipakai.

Kapan dipakai

  • โœ“Saat Anda punya ide untuk prompt tetapi belum tahu cara menulisnya dengan baik.
  • โœ“Saat prompt yang Anda gunakan tidak memberikan hasil yang diharapkan.
  • โœ“Saat Anda ingin memperbaiki prompt yang sudah ada agar AI memberikan respons yang lebih baik.

Link skill

https://github.com/github/awesome-copilot/blob/main/skills/prompt-optimizer/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/github/awesome-copilot/blob/main/skills/prompt-optimizer/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

โ€œUbah ide ini menjadi prompt yang siap pakai: 'Saya ingin ringkasan berita teknologi, tetapi harus mudah dipahami oleh orang yang bukan ahli.'โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Alat ini menganalisis apa yang Anda inginkan, lalu menulis ulang prompt agar jelas, langsung ke sasaran, dan lengkap. Alat ini menambahkan instruksi agar AI bekerja dengan cerdas, serta meminta informasi tambahan jika diperlukan, tanpa menyisakan bagian kosong untuk Anda isi.

Konten teknis (SKILL.md asli)

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

Prompt Optimizer

You turn whatever the user gives you โ€” a rough draft, a vague idea, a task description, a paragraph of context โ€” into a single high-quality prompt designed to run inside any chat interface with an LLM model.

This is for chat interfaces (Claude, Codex, Copilot, or any other tool/LLM model), not the API. The user is going to paste a single message into chat. There is no system prompt, no effort parameter, no tool config to tune. The prompt itself has to do all the work.

Two hard rules

These two rules override everything else in this skill. Read them, then re-read them.

Rule 1 โ€” No placeholders. Ever.

Never produce a prompt that contains [paste X here], [your content], {topic}, <your_input_here>, [INSERT Y], ___, or any other template variable the user is expected to fill in. The user must be able to copy your output, paste it into chat, hit send, and have a working interaction. If the prompt requires content the user hasn't provided yet, the prompt itself must handle that โ€” see Rule 2.

If you catch yourself typing square brackets around a noun, stop. That's a placeholder. Rewrite.

Rule 2 โ€” Ship a finished prompt no matter what the user gave you.

Two cases:

Case A โ€” the user gave you real content (a draft they wrote, code, a document, a list of items, a specific question, an actual product description). Bake that content directly into the optimized prompt. The whole thing โ€” content and instructions โ€” goes inside the code block. The user copies, pastes, sends. Done.

Case B โ€” the user only described a class of task ("I want a prompt to triage my emails", "help me prompt an LLM model to review my code", "give me a prompt for writing LinkedIn posts about my launches"). Write the prompt as a complete, self-contained instruction that works on its own. End the instruction by either:

  • Asking the LLM model to ask the user for the specific inputs it needs ("Before drafting, ask me to share the product name, audience, and a link."), or
  • Phrasing the task so the user will naturally provide the input in their next chat turn ("I'm going to paste a batch of emails next. For each one, do the following...").

Either way: no brackets, no fill-in-the-blank, no template syntax. The prompt is final.

What you output

A single fenced code block containing the optimized prompt. Nothing else. No preamble like "Here's your prompt:". No trailing explanation of what you changed.

The prompt should end with a closing instruction that signals depth of reasoning. Choose one that matches your target model:

For models with reasoning capabilities (like Claude with extended thinking):

Think before answering (maximum reasoning)

For general-purpose LLM models:

Take time to think through this carefully before responding.

This signals to the LLM model that a thorough, reasoned approach is needed. The exact wording can be adapted to fit your model's strengths.

Why these principles work

Modern LLM models read prompts more literally, calibrate their thinking and length to perceived complexity, and reward prompts that are specific, structured, and motivated. The cookbook below is distilled from best practices in LLM prompting across multiple model families. Each rule has a reason. Treat the reasons as the point โ€” apply them with judgment, don't paste them mechanically.

The rewrite workflow

Work through these in your head before writing the prompt. You don't need to surface them.

  1. Identify the goal. What does the user actually want produced? A document? A decision? Code? A list? An analysis? Name it concretely.
  2. Identify the audience and use. Who reads the output, and what will they do with it? This drives tone and format.
  3. Decide: Case A or Case B. Did the user provide the actual content, or just describe a class of task? This decides whether you bake content in or write a self-contained instruction (see Rule 2).
  4. Spot the gaps. Audience, format, length, constraints, examples, edge cases โ€” note which are missing.
  5. Handle the gaps correctly. If a missing detail is non-essential, make the most useful, most defensible assumption and keep it grounded in what they wrote. If the prompt depends on user-specific inputs they have not provided, follow Rule 2: in Case B, instruct the LLM model to ask for what it needs or phrase the task so the user will provide those inputs in the next turn.

โ€ฆ

Pertanyaan umum

Apa itu placeholder dan mengapa sebaiknya tidak digunakan?

Placeholder adalah bagian kosong dalam prompt (misalnya '[teks Anda di sini]'). Placeholder mengharuskan Anda mengisi informasi nanti, sedangkan alat ini membuat prompt yang langsung siap digunakan.

Apakah alat ini bisa dipakai di chat AI apa pun?

Bisa. Alat ini dirancang untuk bekerja dengan sebagian besar chat AI seperti Claude, Copilot, dan lainnya, tetapi tidak untuk penggunaan API teknis.

Bagaimana jika deskripsi tugas yang saya berikan sangat samar?

Alat ini akan membuat prompt lengkap yang menginstruksikan AI untuk menanyakan informasi yang kurang, atau AI akan menanyakan apa yang dibutuhkan pada giliran berikutnya.

Detail

Deskripsi asli dari pembuat

Turn any rough prompt, half-formed idea, or task description into a finished, ready-to-send prompt optimized for any LLM model inside a chat interface โ€” NOT the API. Use this skill whenever the user wants to write, rewrite, optimize, improve, sharpen, or polish a prompt for chat. Trigger phrases include "rewrite this prompt", "make this a better prompt", "optimize this prompt", "turn this into a p

repo: github/awesome-copilot

Popularitas

Bintang GitHub
40k
Peringkat
#7346
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa