Logo System Prompt Creator

System Prompt Creator

Cộng đồng
tronghieu
system-prompt-creator

Tạo prompt hệ thống chất lượng cao, phù hợp với từng mô hình cho mọi LLM (Claude, GPT, Gemini, mô hình mã nguồn mở, v.v.). Dùng kỹ năng này khi người dùng muốn tạo, viết, xây dựng, thiết kế, soạn thảo hoặc cải thiện prompt hệ thống, chỉ dẫn hệ thống hay chỉ dẫn tùy chỉnh cho bất kỳ mô hình AI nào. Cũng kích hoạt khi người dùng hỏi về kỹ thuật viết prompt, thiết kế prompt, tối ưu prompt hoặc muốn xác định hành vi cho trợ lý AI, chatbot, tác nhân AI hay ứng dụng dùng LLM — kể cả khi họ không nói rõ “prompt hệ thống”. Hỗ trợ mọi trường hợp sử dụng, bao gồm chatbot, hệ thống tác nhân, quy trình sử dụng công cụ, tạo nội dung, trích xuất dữ liệu, trợ lý lập trình và hội thoại nhiều lượt.

Add to TypingMind

Tổng quan

Nhà phát hànhtronghieu
Kho mãagent-skills
Tên kỹ năngsystem-prompt-creator
Sao
98
Bản fork
32
Tệp đi kèm
5
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 5 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được tronghieu công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI System Prompt Creator trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/tronghieu/agent-skills/tree/main/skills/system-prompt-creator
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/tronghieu/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/skills/system-prompt-creator .claude/skills/system-prompt-creator
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật System Prompt Creator trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp System Prompt Creator ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng System Prompt Creator với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

System Prompt Creator

Build effective system prompts for any LLM using a structured, research-backed process derived from the official prompting guides of Claude (Anthropic), GPT-5 (OpenAI), and Gemini (Google).

This skill guides you through interview, analysis, structuring, drafting, and optimization — producing system prompts that are clear, well-structured, and tailored to the target model.

Workflow

Follow these 5 steps in order. Each step builds on the previous.

Step 1: Interview — Gather Requirements

Before writing anything, collect these essentials from the user:

  1. Target model — Which LLM? (Claude, GPT, Gemini, open-source, or model-agnostic)
  2. Use case — What will the AI do? (chatbot, agent, content generator, data extractor, code assistant, etc.)
  3. Persona — Who should the AI be? (role, expertise level, personality traits)
  4. Audience — Who interacts with it? (developers, end users, internal team, customers)
  5. Input types — What will users send? (free text, code, documents, images, structured data)
  6. Output format — What should responses look like? (prose, JSON, markdown, code, tables)
  7. Tone & style — Formal, casual, technical, friendly? Concise or detailed?
  8. Constraints — What must it NOT do? (safety rules, topic limits, action restrictions)
  9. Tools & capabilities — Does it have tool access? (APIs, file system, web search, code execution)
  10. Examples — Can the user provide examples of good/bad responses?

If the user is vague on some points, suggest reasonable defaults and confirm before proceeding.

Push for completeness: After gathering basics, ask "What else might users ask about?" Many prompts fail not because they handle their core task poorly, but because they don't anticipate adjacent scenarios. A billing chatbot also gets account access questions, product questions, and complaints. A coding agent needs to handle not just building features but also debugging, refactoring, and project setup. Map the full territory before writing.

Step 2: Analyze — Determine Complexity & Scope

Based on the interview, classify the prompt complexity:

ComplexityCharacteristicsTypical Length
SimpleSingle task, no tools, fixed format50-200 words
ModerateMultiple behaviors, some tools, varied outputs200-800 words
ComplexAgentic, multi-tool, long-running, safety-critical800-2000+ words

Then determine which sections are needed:

  • Role/Persona — Almost always needed
  • Context/Knowledge — When domain expertise or background is required
  • Instructions/Rules — Always needed
  • Domain Playbooks — When the system handles multiple distinct operational scenarios (see below)
  • Output Format — When response structure matters
  • Examples — When accuracy and consistency matter (3-5 diverse examples)
  • Tool Usage — When the model has access to tools or APIs
  • Safety/Guardrails — When actions have real-world consequences
  • Agentic Behavior — When the model operates autonomously

Domain Playbooks: For systems that handle multiple distinct workflows (a coding agent that builds, debugs, refactors, and reviews; a support bot that handles billing, accounts, and technical issues), include named playbooks — concise step-by-step patterns for each operational scenario. These give the model a reliable decision tree for common situations rather than forcing it to derive the approach from general instructions every time. Place playbooks inside the <instructions> section, organized by scenario name.

Step 3: Structure — Apply the Layered Architecture

Organize the prompt using this universal architecture. Include only the sections relevant to the use case.

XML structure (preferred for complex prompts):

xml
<role>
  Who the AI is, expertise, personality
</role>

<context>
  Domain knowledge, background information, constraints
</context>

<instructions>
  Core behavior rules, workflow steps, decision criteria
</instructions>

<output_format>
  Response structure, formatting rules, verbosity guidelines
</output_format>

<examples>
  3-5 diverse input/output pairs covering normal cases and edge cases
</examples>

<tools>
  Tool usage guidelines, when to use each tool, safety thresholds
</tools>

<guardrails>
  Safety boundaries, escalation rules, refusal criteria
</guardrails>

Markdown structure (suitable for simpler prompts):

markdown
# Role
...

# Instructions
...

# Output Format
...

Why structure matters: When a prompt mixes instructions, context, examples, and inputs without clear boundaries, models may confuse which content serves which purpose. Structured tags eliminate this ambiguity and directly improve instruction adherence.

Step 4: Draft — Apply the 12 Universal Principles

These principles represent the consensus from all 3 major LLM providers on what makes system prompts effective.

A. Structure Principles

P1 — Layered Architecture. Organize into distinct labeled sections (role, context, instructions, format, examples, guardrails). This directly affects how the model parses and prioritizes information.

P2 — Consistent Tags. Use XML tags or markdown headings consistently. Never mix conventions. Nest tags for hierarchical content (documents containing sub-documents).

P3 — Content Ordering. Place long reference material at the top. Place the task/query at the bottom. This alone can improve quality by up to 30% on complex multi-document tasks. Use anchoring phrases: "Based on the information above..."

B. Content Principles

P4 — Explicit Intent + Reasoning. Explain why a rule exists, not just what it is. Models generalize better from reasoning than from bare commands.

  • Bad: NEVER use ellipses
  • Good: Responses are read aloud by TTS, so avoid ellipses — TTS engines cannot pronounce them.

P5 — Positive Framing. State what TO do, not what NOT to do.

  • Bad: Do not use markdown
  • Good: Write in smoothly flowing prose paragraphs

P6 — Graduated Autonomy. For agentic systems, define action tiers explicitly:

  • Safe (do freely): read files, search, run tests
  • Moderate (proceed carefully): edit files, create branches
  • Risky (must confirm): delete, force-push, post publicly

P7 — Internal Consistency. Contradictions are actively harmful. Modern models waste reasoning tokens trying to reconcile conflicting rules. If rules have priorities, state them: "If rules conflict, prioritize user safety over task completion."

C. Calibration Principles

P8 — Match Intensity to Model Intelligence. Modern models are significantly more capable. Aggressive prompting from older models ("CRITICAL: You MUST...") causes overtriggering. Use natural language.

P9 — Few-Shot Examples. The strongest steering mechanism available. Include 3-5 diverse examples covering edge cases. Wrap in <example> tags to separate from instructions. Examples can sometimes replace explicit instructions entirely.

P10 — Separate Control Dimensions. Three independent axes exist: reasoning depth (how hard the model thinks), output verbosity (response length), and temperature (output diversity). Use the appropriate control for each — don't conflate them.

D. Agentic Principles

P11 — State Management. For long-running tasks, define how the agent tracks state. Use structured formats (JSON) for schema-bound data, plain text for progress notes, and git for restorable checkpoints.

P12 — Self-Verification Loop. End critical sections with: "Before finalizing, verify your output against [specific criteria]." This reliably catches errors in code, data extraction, and structured output.

E. Domain-Specific Patterns

Raw Data Preservation (for extraction/transformation systems). When designing schemas that normalize or transform input data, always include a field for the original raw value alongside the normalized one. For example, a price extraction should store both "price": 12.50 (normalized) and "price_raw": "$12.50" (as-is from the source). This enables downstream verification and debugging without re-processing the original input.

Confidence + Notes (for uncertain outputs). For systems that process messy or ambiguous inputs (OCR, handwriting, noisy data), include per-item confidence (high/medium/low) and notes fields. This makes the system self-documenting — downstream consumers know which outputs to trust and which to flag for human review. Silent confidence is worse than explicit uncertainty.

Operational Playbooks (for multi-scenario systems). When a system handles several distinct workflows, define named patterns with concise steps for each. A coding agent might have: Build Feature, Fix Bug, Refactor, Debug, Setup Project. A support bot might have: Answer Question, Process Refund, Escalate to Human, Handle Complaint. Playbooks reduce the model's decision space and improve consistency across similar requests.

For full principles with detailed examples from all 3 guides, read references/principles.md.

Step 5: Review & Optimize

Run through this checklist before delivering:

Structure & Format:

  • Clear structure — sections delineated with consistent tags or headings
  • Correct ordering — long reference material at top, task at bottom
  • Lean — every section pulls its weight; nothing redundant

Content Quality:

  • No internal contradictions — every instruction can be followed simultaneously
  • Positive framing — rules state what to do, not just what to avoid
  • Reasoning attached — every non-obvious rule has a "why"
  • Calibrated intensity — no unnecessary CAPS or MUST unless truly critical

Completeness:

  • Domain coverage — all operational scenarios the system will encounter are handled (not just the primary use case, but adjacent situations too)
  • Examples included — 3-5 diverse examples covering normal cases, edge cases, and failure modes
  • Edge case handling — the prompt addresses what to do when input is ambiguous, malformed, or out-of-scope
  • Playbooks included — for multi-scenario systems, named step-by-step patterns for each workflow

Model & Validation:

  • Model-appropriate — accounts for target model's strengths and quirks
  • Testable — someone could verify whether it produces desired behavior
  • Test prompts — 3-5 validation prompts included with expected behavior

For model-specific optimization tips, read references/model-specific.md.

Quick Reference: Model Comparison

AspectClaude 4.6GPT-5Gemini 3
ThinkingAdaptive (auto-calibrates)reasoning_effort paramThinking levels (low/med/high)
StructureXML tags preferredXML tags or structured specsXML or Markdown headings
VerbosityNaturally conciseverbosity API paramDefaults to direct
Parallel toolsExcellent, promptable to ~100%Good, Responses API helpsNot emphasized
RiskMay overengineerMay over-search contextMay loop at low temperature
Unique strengthSubagent orchestrationTool preambles, meta-promptingGrounding, multimodal

Read reference files selectively — don't read all of them every time:

  • references/model-specific.md — Read when the user specifies a target model or needs cross-model support
  • references/templates.md — Read when you need a starting template for the use case
  • references/principles.md — Read when you need deeper guidance on a specific principle

For simple prompts where you already know the model and use case, the guidance in this SKILL.md is often sufficient.

Output Format

When presenting the final system prompt to the user, include:

  1. The system prompt — in a fenced code block, ready to copy-paste
  2. Architecture notes — brief explanation of why you chose this structure
  3. Model-specific notes — any adjustments for the target model (API params, known quirks)
  4. Test prompts — 3-5 prompts the user can use to validate the system prompt works as intended

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI System Prompt Creator làm được gì?

Tạo prompt hệ thống chất lượng cao, phù hợp với từng mô hình cho mọi LLM (Claude, GPT, Gemini, mô hình mã nguồn mở, v.v.). Dùng kỹ năng này khi người dùng muốn tạo, viết, xây dựng, thiết kế, soạn thảo hoặc cải thiện prompt hệ thống, chỉ dẫn hệ thống hay chỉ dẫn tùy chỉnh cho bất kỳ mô hình AI nào. Cũng kích hoạt khi người dùng hỏi về kỹ thuật viết prompt, thiết kế prompt, tối ưu prompt hoặc muốn xác định hành vi cho trợ lý AI, chatbot, tác nhân AI hay ứng dụng dùng LLM — kể cả khi họ không nói rõ “prompt hệ thống”. Hỗ trợ mọi trường hợp sử dụng, bao gồm chatbot, hệ thống tác nhân, quy trình...

Vì sao nên dùng System Prompt Creator trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. System Prompt Creator là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài System Prompt Creator trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/tronghieu/agent-skills/tree/main/skills/system-prompt-creator. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng System Prompt Creator?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng System Prompt Creator với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng System Prompt Creator với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI System Prompt Creator có miễn phí không?

Có. Kỹ năng này được tronghieu phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇