Expert prompt creation, optimization, and compression for LLMs (Claude, GPT, Gemini, open-source). Uses PRISM framework for structured prompt design. Supports 3 modes: Create (generate production-ready prompts), Optimize (analyze and enhance existing prompts with multi-model variants), Compress (reduce long prompts to 1-2 clear sentences). Use when creating prompts, improving prompt quality, generating multi-model prompt variants, or compressing verbose prompts. Sử dụng khi: tạo prompt, tối ưu prompt, viết câu nhắc, rút gọn prompt, prompt engineering.
Expert prompt creation, optimization, and compression for LLMs.
| User Intent | Mode | Output |
|---|---|---|
| "Tạo prompt cho...", "viết prompt" | Create | 1 production-ready prompt (markdown code block) |
| "Tối ưu prompt này", "improve this prompt" | Optimize | Critique + Optimized prompt + Explanation |
| "Rút gọn prompt", "shorten this" | Compress | 1-2 sentence prompt, no explanation |
| "Tạo 3 biến thể" / multi-model | Optimize + variants | Claude (XML) + GPT (JSON Schema) + Gemini (Response Schema) |
All modes use PRISM as the structural backbone:
Generate a new production-ready prompt from a user's description.
Process:
Output: Exactly ONE fenced markdown code block containing the complete prompt. End with END_PROMPT.
Quality targets: 180-220 tokens (±20), concise, no chain-of-thought, natural Vietnamese tone.
Analyze an existing prompt and enhance it.
Process:
Multi-model variants (when requested or complex prompts):
<role>, <context>, <task>, <constraints>, <output_format>)Reduce a long prompt to 1-2 clear sentences.
Rules:
{{...}}), tags, paths, keywords{cần_điền: <short description>}For ambiguous/long prompts: internally identify (don't print): task | input | output/format | constraints → then compress.
Available techniques to apply across all modes:
| Technique | When to use |
|---|---|
| Few-shot examples | Complex tasks, specific format needed |
| Chain-of-thought | Multi-step reasoning, math, logic |
| Role-playing | Domain expertise, specific perspective |
| Constitutional AI | Safety-critical, ethical constraints |
| Recursive prompting | Multi-stage, layered processing |
| Tree of thoughts | Complex decisions, exploration |
| Self-consistency | Critical outputs, verification needed |
| Prompt chaining | Pipeline workflows, sequential tasks |
- Respond in Vietnamese.
- Every English term must include Vietnamese description:
**<English Term>** (mô tả tiếng Việt – chức năng/mục đích)
Before completing any task, verify: