Prompt Manager Lite

Export JSON

Edit Prompt #18

Placeholder Toolbar

Cú pháp hỗ trợ: {var}, {var:default}, {var:a|b|c}, {var:textarea:required}

{name}

Variables

Sau khi chèn placeholder vào template, form phía dưới sẽ tự detect và render input tương ứng.

Chưa detect placeholder nào.

Prompt final sẽ hiển thị ở đây

LLM Test Playground

LLM response sẽ hiển thị ở đây

Version History

v4 • 7/9/2026, 4:53:20 PM
{YEUCAU:textarea:Với yêu cầu trên:required}
Trả diff theo yêu cầu bên dưới. Trả dạng có thể dùng git diff apply được. 1 file patch liền mạch không đánh dấu bằng markdown. 
TUYỆT ĐỐI: Không trả ra dạng nhiều

```diff
.....
```
```diff
.....
```

Mà trả ra duy nhất 1 block dạng sau để sẵn sàng copy dùng git apply diff

```diff
Full diff nhiêu 2file
```
Trong diff tạo  luôn 1 file trong thư mục docs chứa các logic đã implement, các thay đổi, cách sử dụng (nếu có), các lệnh cần chạy (nếu có)
Kết quả yêu cầu trả ra dạng chuẩn git diff:

Your **ONLY** output will be a series of unified diff blocks (concatenated, one per changed file). No other text, explanations, code blocks, markdown, or apologies are permitted.

### Block Structure (exact format - raw patch, dễ apply bằng `patch -p0`):
```
--- path/to/file.ext
+++ path/to/file.ext
@@ -1,3 +1,3 @@
 old line
-old line 2
+new line 2
 old line 3
```

- **File path** (first two lines): Must be the exact project-root-relative path (forward slashes `/`).
- **Hunk header**: `@@ -old_start,old_count +new_start,new_count @@` phải chính xác.
- **Lines**: Context lines (không dấu), xóa dùng `-`, thêm dùng `+`. Giữ nguyên thứ tự, indentation, whitespace từ file gốc.
- Multiple files: nối tiếp nhau (không khoảng trắng thừa giữa các block).
- Include enough context in each hunk (3–10 lines) so the patch applies cleanly.

### Specific Cases:
**Modified file (normal change):**
```
--- src/example.py
+++ src/example.py
@@ -1,5 +1,6 @@
 def old_function():
     print("hello")
+    return True
```

**Newly created file:**
```
--- /dev/null
+++ src/new_feature.py
@@ -0,0 +1,5 @@
+# Full content of the new file here
+def new_function():
+    ...
```

**Deleted file (or delete entire content):**
```
--- src/old_file.py
+++ /dev/null
@@ -1,3 +0,0 @@
-entire content of the old file
```

**Delete only some lines:**
```
--- src/example.py
+++ src/example.py
@@ -2,2 +2,0 @@
-    print("to be deleted")
-    another_line()
```

**Modified Vue file (example - maintain original order in diff):**
```
--- app/layouts/admin.vue
+++ app/layouts/admin.vue
@@ -1,10 +1,10 @@
 <template>
   <!-- Original template content -->
 </template>
 <script setup lang="ts">
-  // Original script content
+  // Updated script content
 </script>
```

- If no changes are needed → output nothing (empty response).
- Do **not** include any file that is untouched.
v3 • 7/9/2026, 4:50:15 PM
{YEUCAU:textarea:Với yêu cầu trên:required}
Trả diff theo yêu cầu bên dưới. Trả dạng có thể dùng git diff apply được. 1 file patch liền mạch không đánh dấu bằng markdown. Trong diff tạo  luôn 1 file trong thư mục docs chứa các logic đã implement, các thay đổi, cách sử dụng (nếu có), các lệnh cần chạy (nếu có)
Kết quả yêu cầu trả ra dạng chuẩn git diff:

Your **ONLY** output will be a series of unified diff blocks (concatenated, one per changed file). No other text, explanations, code blocks, markdown, or apologies are permitted.

### Block Structure (exact format - raw patch, dễ apply bằng `patch -p0`):
```
--- path/to/file.ext
+++ path/to/file.ext
@@ -1,3 +1,3 @@
 old line
-old line 2
+new line 2
 old line 3
```

- **File path** (first two lines): Must be the exact project-root-relative path (forward slashes `/`).
- **Hunk header**: `@@ -old_start,old_count +new_start,new_count @@` phải chính xác.
- **Lines**: Context lines (không dấu), xóa dùng `-`, thêm dùng `+`. Giữ nguyên thứ tự, indentation, whitespace từ file gốc.
- Multiple files: nối tiếp nhau (không khoảng trắng thừa giữa các block).
- Include enough context in each hunk (3–10 lines) so the patch applies cleanly.

### Specific Cases:
**Modified file (normal change):**
```
--- src/example.py
+++ src/example.py
@@ -1,5 +1,6 @@
 def old_function():
     print("hello")
+    return True
```

**Newly created file:**
```
--- /dev/null
+++ src/new_feature.py
@@ -0,0 +1,5 @@
+# Full content of the new file here
+def new_function():
+    ...
```

**Deleted file (or delete entire content):**
```
--- src/old_file.py
+++ /dev/null
@@ -1,3 +0,0 @@
-entire content of the old file
```

**Delete only some lines:**
```
--- src/example.py
+++ src/example.py
@@ -2,2 +2,0 @@
-    print("to be deleted")
-    another_line()
```

**Modified Vue file (example - maintain original order in diff):**
```
--- app/layouts/admin.vue
+++ app/layouts/admin.vue
@@ -1,10 +1,10 @@
 <template>
   <!-- Original template content -->
 </template>
 <script setup lang="ts">
-  // Original script content
+  // Updated script content
 </script>
```

- If no changes are needed → output nothing (empty response).
- Do **not** include any file that is untouched.
v2 • 7/9/2026, 4:49:21 PM
{YEUCAU:textarea:required}
Trả diff theo yêu cầu bên dưới. Trả dạng có thể dùng git diff apply được. 1 file patch liền mạch không đánh dấu bằng markdown. Trong diff tạo  luôn 1 file trong thư mục docs chứa các logic đã implement, các thay đổi, cách sử dụng (nếu có), các lệnh cần chạy (nếu có)
Kết quả yêu cầu trả ra dạng chuẩn git diff:

Your **ONLY** output will be a series of unified diff blocks (concatenated, one per changed file). No other text, explanations, code blocks, markdown, or apologies are permitted.

### Block Structure (exact format - raw patch, dễ apply bằng `patch -p0`):
```
--- path/to/file.ext
+++ path/to/file.ext
@@ -1,3 +1,3 @@
 old line
-old line 2
+new line 2
 old line 3
```

- **File path** (first two lines): Must be the exact project-root-relative path (forward slashes `/`).
- **Hunk header**: `@@ -old_start,old_count +new_start,new_count @@` phải chính xác.
- **Lines**: Context lines (không dấu), xóa dùng `-`, thêm dùng `+`. Giữ nguyên thứ tự, indentation, whitespace từ file gốc.
- Multiple files: nối tiếp nhau (không khoảng trắng thừa giữa các block).
- Include enough context in each hunk (3–10 lines) so the patch applies cleanly.

### Specific Cases:
**Modified file (normal change):**
```
--- src/example.py
+++ src/example.py
@@ -1,5 +1,6 @@
 def old_function():
     print("hello")
+    return True
```

**Newly created file:**
```
--- /dev/null
+++ src/new_feature.py
@@ -0,0 +1,5 @@
+# Full content of the new file here
+def new_function():
+    ...
```

**Deleted file (or delete entire content):**
```
--- src/old_file.py
+++ /dev/null
@@ -1,3 +0,0 @@
-entire content of the old file
```

**Delete only some lines:**
```
--- src/example.py
+++ src/example.py
@@ -2,2 +2,0 @@
-    print("to be deleted")
-    another_line()
```

**Modified Vue file (example - maintain original order in diff):**
```
--- app/layouts/admin.vue
+++ app/layouts/admin.vue
@@ -1,10 +1,10 @@
 <template>
   <!-- Original template content -->
 </template>
 <script setup lang="ts">
-  // Original script content
+  // Updated script content
 </script>
```

- If no changes are needed → output nothing (empty response).
- Do **not** include any file that is untouched.
v1 • 6/21/2026, 8:24:57 AM
{YEUCAU:textarea:required}
Kết quả yêu cầu trả ra dạng chuẩn git diff:

Your **ONLY** output will be a series of unified diff blocks (concatenated, one per changed file). No other text, explanations, code blocks, markdown, or apologies are permitted.

### Block Structure (exact format - raw patch, dễ apply bằng `patch -p0`):
```
--- path/to/file.ext
+++ path/to/file.ext
@@ -1,3 +1,3 @@
 old line
-old line 2
+new line 2
 old line 3
```

- **File path** (first two lines): Must be the exact project-root-relative path (forward slashes `/`).
- **Hunk header**: `@@ -old_start,old_count +new_start,new_count @@` phải chính xác.
- **Lines**: Context lines (không dấu), xóa dùng `-`, thêm dùng `+`. Giữ nguyên thứ tự, indentation, whitespace từ file gốc.
- Multiple files: nối tiếp nhau (không khoảng trắng thừa giữa các block).
- Include enough context in each hunk (3–10 lines) so the patch applies cleanly.

### Specific Cases:
**Modified file (normal change):**
```
--- src/example.py
+++ src/example.py
@@ -1,5 +1,6 @@
 def old_function():
     print("hello")
+    return True
```

**Newly created file:**
```
--- /dev/null
+++ src/new_feature.py
@@ -0,0 +1,5 @@
+# Full content of the new file here
+def new_function():
+    ...
```

**Deleted file (or delete entire content):**
```
--- src/old_file.py
+++ /dev/null
@@ -1,3 +0,0 @@
-entire content of the old file
```

**Delete only some lines:**
```
--- src/example.py
+++ src/example.py
@@ -2,2 +2,0 @@
-    print("to be deleted")
-    another_line()
```

**Modified Vue file (example - maintain original order in diff):**
```
--- app/layouts/admin.vue
+++ app/layouts/admin.vue
@@ -1,10 +1,10 @@
 <template>
   <!-- Original template content -->
 </template>
 <script setup lang="ts">
-  // Original script content
+  // Updated script content
 </script>
```

- If no changes are needed → output nothing (empty response).
- Do **not** include any file that is untouched.