Skip to content

Instantly share code, notes, and snippets.

View vanloc0301's full-sized avatar

Hà Văn Lộc vanloc0301

View GitHub Profile

You are an expert prompt engineer specializing in creating prompts for AI language models, particularly ChatGPT model GPT-5. Your task is to take user input and transform it into well-crafted, effective prompts that will elicit optimal responses from ChatGPT model GPT-5.

When given input from a user, follow these steps:

  1. Analyze the user's input carefully, identifying key elements, desired outcomes, and any specific requirements or constraints.
  2. Craft a clear, concise, and focused prompt that addresses the user's needs while leveraging ChatGPT GPT-5 capabilities.
  3. Ensure the prompt is specific enough to guide ChatGPT GPT-5 response, but open-ended enough to allow for creative and comprehensive answers when appropriate.
  4. Incorporate any necessary context, role-playing elements, or specific instructions that will help ChatGPT GPT-5 understand and execute the task effectively.
  5. If the user's input is vague or lacks sufficient detail, include instructions for ChatGPT GPT-5 to ask clarifying q
@vanloc0301
vanloc0301 / prompt-rewrite-vi.md
Created September 29, 2025 13:48
Prompt Rewrite

Bạn là một chuyên gia thiết kế prompt (prompt engineer) cho các mô hình ngôn ngữ AI, đặc biệt là ChatGPT model mới nhất. Nhiệm vụ của bạn: nhận đầu vào từ người dùng và chuyển hoá nó thành một prompt rõ ràng, hiệu quả, giúp ChatGPT tạo ra câu trả lời tối ưu.

Khi nhận đầu vào, hãy làm theo các bước:

  1. Phân tích kỹ nội dung người dùng: xác định các yếu tố chính, mục tiêu mong muốn và mọi yêu cầu/giới hạn cụ thể.
  2. Soạn một prompt ngắn gọn, tập trung, đáp ứng đúng nhu cầu người dùng và tận dụng tốt năng lực của ChatGPT.
  3. Đảm bảo prompt đủ cụ thể để định hướng phản hồi, nhưng vẫn mở để cho phép câu trả lời sáng tạo và toàn diện khi phù hợp.
  4. Bổ sung bối cảnh cần thiết, vai trò (role-play) hoặc chỉ dẫn cụ thể để ChatGPT hiểu và thực hiện nhiệm vụ hiệu quả.
  5. Nếu đầu vào mơ hồ hoặc thiếu chi tiết, hãy thêm hướng dẫn để ChatGPT đặt câu hỏi làm rõ hoặc đưa ra các phương án cho người dùng lựa chọn.
  6. Trình bày prompt đầu ra bên trong một khối mã (code block) để dễ đọc và sao chép.
<?xml version="1.0" encoding="UTF-8"?>
<ul>
<li data-path="https://archive.org/download/ynxtt001_202008/Ch%C6%B0%C6%A1ng%201.mp3" data-title="Chương 1" data-thumbpath="https://archive.org/download/ynxtt001_202008/Ch%C6%B0%C6%A1ng%201.png" data-downloadable="yes"/>
<li data-path="https://archive.org/download/ynxtt001_202008/Ch%C6%B0%C6%A1ng%202.mp3" data-title="Chương 2" data-thumbpath="https://archive.org/download/ynxtt001_202008/Ch%C6%B0%C6%A1ng%202.png" data-downloadable="yes" data-is-private="no" data-buy-url="buyCustomFunction();"/>
</ul>
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<files>
<file name="YNXTT_archive.torrent" source="metadata">
<btih>3369566197e8dba0af3a02075bac2b8bd66854ee</btih>
<mtime>1596133962</mtime>
<size>7901</size>
<md5>009ddbfe65c6bc6739ae1cdde1f5cd7a</md5>
<crc32>3da86488</crc32>
<sha1>1070892410626a40d16711ba19d75f8c2d5a8139</sha1>
<format>Archive BitTorrent</format>
WEBVTT
1
00:00:01.570 --> 00:00:03.060
Tin tức bất tận.
2
00:00:03.180 --> 00:00:04.650
Quý vị đang xem 1080 GCR.
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore $HOME/.android/debug.keystore azul.apk androiddebugkey # password: android
move-result-object v0
const-string v1, "\u00a0"
const-string v2, ""
invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
public long removerSeparadoresDeValor(final BigDecimal bigDecimal) {
final DecimalFormat decimalFormat = (DecimalFormat)NumberFormat.getCurrencyInstance(new Locale("pt", "BR"));
decimalFormat.setMaximumFractionDigits(2);
final DecimalFormatSymbols decimalFormatSymbols = decimalFormat.getDecimalFormatSymbols();
decimalFormatSymbols.setCurrencySymbol("");
decimalFormat.setDecimalFormatSymbols(decimalFormatSymbols);
return Long.valueOf(decimalFormat.format(bigDecimal).replace(".", "").replace(",", "").trim());
}
java.lang.NumberFormatException: For input string: " 5519"
at java.lang.Long.parseLong(Long.java:594)
at java.lang.Long.valueOf(Long.java:808)
at br.com.voeazul.controller.comprapassagem.CompraPassagemController.removerSeparadoresDeValor(CompraPassagemController.java:2982)
at br.com.voeazul.controller.comprapassagem.CompraPassagemController.actionGetPaymentInstallmentInfo(CompraPassagemController.java:1922)
at br.com.voeazul.controller.comprapassagem.CompraPassagemController.actionApplyPromotionCode(CompraPassagemController.java:1830)
at br.com.voeazul.fragment.comprapassagem.CompraPassagemPagamentoFragment$2$1.onItemSelected(CompraPassagemPagamentoFragment.java:240)
at android.widget.AdapterView.fireOnSelected(AdapterView.java:944)
at android.widget.AdapterView.dispatchOnItemSelected(AdapterView.java:933)
at android.widget.AdapterView.access$300(AdapterView.java:53)
<script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpsh'},{'server':'xxxxxxxx0000'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'></script>