Ubah kebutuhan menjadi kode yang bersih dan berkomentar
A ready-to-use “Pemrograman” AI prompt template, designed and tested with Claude. Replace the (bracketed) parts below with your own needs.
Prompt template
Tulis kode sesuai kebutuhanku. Syarat: penamaan jelas, struktur bersih, komentar Bahasa Indonesia di titik kunci, dan penanganan galat dasar serta kasus tepi. Setelah menulis, jelaskan tradeoff desainmu dalam beberapa kalimat dan apa yang bisa dioptimalkan lebih lanjut. Kebutuhan: "jelaskan apa yang ingin kamu lakukan, dalam bahasa/kerangka apa"
How to use this prompt
- Copy the whole prompt above and paste it into Claude or ChatGPT / Claude / Gemini.
- Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
- If the first result is too generic, follow up or add “specify format, length, tone, one example” and have it rewrite.
Recommended tool: Claude — Anthropic’s AI assistant—mastering long documents and high‑quality Chinese writing