Logo Prompt Compilation

Prompt Compilation

Cộng đồng
drayline
prompt-compilation

Builds complete, optimized Claude prompts and Project scaffolds from task descriptions. Use when building, designing, creating, or structuring a Claude prompt or system prompt. Trigger on: "build me a prompt," "compile a prompt for," "create a system prompt," "write a Claude prompt," "design a prompt for," "help me write a prompt," "scaffold a Claude Project," "design a Project for." Uses a four-stage methodology (Parse, Select, Construct, Validate) and a tested 5-layer architecture (Identity, Objective, Context, Reasoning, Output + Quality Control). In Project Mode, the Compiler is global-layer-aware — checks User Preferences, installed Skills, and MCP Connectors to avoid redundancy and flag gaps. Do NOT use for auditing existing prompts (use prompt-validation if available) or diagnosing existing Projects (use project-audit if available). Run on Opus 5.5 (`medium`+) or Sonnet 5.5 (`high`); depth reduces on legacy models.

Tổng quan

Nhà phát hànhdrayline
Kho mãrootnode-skills
Tên kỹ năngprompt-compilation
Sao
40
Bản fork
5
Tệp đi kèm
2
Giấy phépApache-2.0
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 là Markdown thuần túy, không phải 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ộ.

  • 2 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 drayline công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Prompt Compilation 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 thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/drayline/rootnode-skills/tree/main/plugins/rootnode-prompts/skills/prompt-compilation
  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/drayline/rootnode-skills.git /tmp/rootnode-skills
mkdir -p .claude/skills
cp -r /tmp/rootnode-skills/plugins/rootnode-prompts/skills/prompt-compilation .claude/skills/prompt-compilation
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 Prompt Compilation 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ự tải Prompt Compilation 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 Prompt Compilation không bị giới hạn ở mô hình mà kỹ năng này được viết cho. 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 kỹ năng chưa dùng không tốn chi phí.

  • Đổ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.

Prompt Compilation

Calibration: Tier 3 (High-effort recommended) — run on Opus 5.5 (start at its medium default; step to high when verification matters or edge cases are likely) or Sonnet 5.5 at high. Step up to xhigh only where your evals show a measured gain. Quality degrades at low effort and on legacy models (Sonnet 4.6). Reserve Fable 5.1 for long-horizon runs where Opus 5.5 at higher effort still fails your evals. See repository README for model compatibility.

Build complete, ready-to-use Claude prompts and Project scaffolds from task descriptions. This Skill transforms rough requirements into structured prompts using a tested 5-layer architecture and a four-stage assembly methodology.

When building Project scaffolds, you are aware of the user's global Claude configuration — User Preferences, installed Skills, and configured MCP Connectors. You use this awareness to avoid redundancy (not repeating Preferences in CI), design around overlaps (not creating knowledge files that duplicate installed Skills), and flag gaps (noting connector dependencies the user needs to configure). You read but do not modify global layers — that is the Optimizer's role.

Critical: The No-Interrogation Principle

Do not ask a cascade of clarifying questions before building. Make reasonable defaults for anything the user did not specify, assemble the prompt, and flag the defaults in a brief note after the deliverable. The user adjusts specific elements rather than answering a questionnaire.

The one exception: when the request is genuinely ambiguous in a way that would produce fundamentally different outputs (e.g., "write a strategy document" could mean a 500-word executive brief or a 3000-word strategic memo), ask one targeted question to resolve the ambiguity. One question, not five.

Critical: Complexity Calibration

Not every task needs the full 5-layer treatment. Match prompt complexity to task complexity.

Simple tasks (clear deliverable, single step, obvious format): Use 2-3 layers. A role statement, a clear objective, and an output format. Skip formal reasoning — a brief inline instruction is sufficient. Skip quality control when default behavior is adequate. Example: "Write a professional email declining a vendor's proposal."

Medium tasks (some ambiguity, multiple dimensions, meaningful format requirements): Use 4-5 layers. Full identity, objective, reasoning, and output. Add quality control if the task has known failure modes. Add context if the user provided situational detail. Example: "Evaluate three cloud providers for our migration."

Complex tasks (high stakes, multiple competing dimensions, deep analysis required): Use all 5 layers plus quality control with task-specific additions. Full context, detailed reasoning (or combined approaches), specific output structure with per-section length guidance, and behavioral countermeasures. Example: "Develop a market entry strategy for our AI product in the healthcare vertical."

Model requirements

This Skill performs multi-stage construction across the four-stage pipeline (Parse, Select, Construct, Validate) and three modes (Prompt, Project, Prep), with decision trees spanning identity × reasoning × output × domain selection. In Project Mode, synthesis extends across User Preferences, installed Skills, and MCP Connectors. Run on Opus 5.5 (start at its medium default) or Sonnet 5.5 (high) — the recommended starting points. Step up to xhigh only where your evals show a measured gain. Effort controls thinking depth, not visible output length — for deep block selection and validation, step to high when verification matters or edge cases are likely.

On the dual-primary tier (Opus 5.5 at its medium default or high; Sonnet 5.5 at high) the Skill runs with full depth. On Sonnet 4.6 (legacy-graceful) and at low effort, expect compressed selection logic, less specific block recommendations, and reduced cross-layer validation. Fallback-graceful on Opus 5 / Sonnet 5. The Skill will execute and produce correctly-shaped output on all supported targets; users should weight the resulting prompts by the model that produced them.

The Four-Stage Workflow

Produce a complete, defensible prompt — identity, objective, context, reasoning, and output structure selected and assembled so the prompt yields the user's intended deliverable on first execution, with defaults flagged in a delivery note. The method that reliably gets there: parse the task, select the approaches, construct the prompt, validate the assembly. The stages are the path; the within-stage rules (XML wrapping, primacy-recency ordering, the validate-before-deliver checks) are the load-bearing gates that keep the output correct.

Stage 1 — Parse

Extract from the user's description:

  • Core task: What must be accomplished? (action + deliverable)
  • Task category: Which domain? (strategic, technical, analytical, creative, research, comparative, operational, educational)
  • Audience: Who reads the output? What expertise level?
  • Constraints: What boundaries exist? (length, format, tone, domain limits, timeline)
  • Context signals: What background is provided or implied? What is missing that would make the output generic?
  • Deliverable type: What format should the final output take?

Where elements are missing, infer reasonable defaults from the task category and stated context. Record your defaults — you will flag them in the delivery note.

Project Mode — Global Layer Awareness Inputs:

When building a Project scaffold, check for available global layer information:

  • User Preferences text — if visible in context, note behavioral instructions already established globally. These do not need to be repeated in the Project CI.
  • Installed Skills — if the user mentions relevant Skills or if Skill descriptions are visible, note procedural capabilities already available. Knowledge files should not duplicate what an installed Skill provides.
  • Configured MCP Connectors — if the user mentions integrations or connectors are visible, note available tool access. CI should reference configured connectors and flag dependencies on unconfigured ones.

Graceful degradation: if no global layer information is available, proceed without it. The scaffold will be self-contained, which is functional but may duplicate global configuration. Note in the compilation note that global awareness was not available and suggest the user check for redundancy with their Preferences after deployment.

Stage 2 — Select

Choose approaches for each architectural layer based on the parsed task.

Identity (Layer 1): Match the task domain to the appropriate expert role. Customize the domain focus, seniority, and values to fit the specific task. If the task sits at the intersection of two domains, build a hybrid identity. Use the task category routing table below to start, then consult references/five-layer-architecture.md for detailed identity guidance and templates.

Reasoning (Layer 4): Match the task category to the appropriate reasoning family, then the specific variant. If the task spans categories, combine elements — but keep total reasoning steps to 5-7, leading with the dominant task type. See the reasoning selection logic below.

Output (Layer 5): Match the deliverable type to the appropriate output structure. Adjust section names, lengths, and constraints to fit the specific task. See the output selection logic below.

Quality Control: Start with the standard quality checks (accuracy, completeness, assumptions, pushback, actionability). Add task-specific checks based on domain. See the quality control selection logic below.

Project Mode — Global-Layer-Aware Design Decisions:

When global layer information is available, three design decisions change:

  1. CI behavioral rules defer to Preferences. If the user's Preferences already establish a behavioral pattern (e.g., "be direct and concise"), do not repeat it in CI. Focus CI behavioral rules on project-specific calibration that goes beyond the universal defaults. If a Preference partially covers a needed behavior but the Project requires a more specific version, include the specific version in CI and note the relationship.

  2. Knowledge file architecture defers to installed Skills. If an installed Skill covers procedural content the Project would otherwise need in a knowledge file (e.g., a code review Skill eliminates the need for a code review checklist KF), design the KF architecture around the Skill's coverage. The CI should reference the Skill's capability rather than duplicating it. The KF should provide the project-specific context the Skill needs (e.g., "our coding standards" rather than "how to review code").

  3. CI references configured connectors. If the Project's tasks involve external tools that have configured connectors, reference them in CI: "Use the [connector] for [task]." If the Project depends on a connector that is not configured, flag it in the compilation note rather than building CI instructions that assume capabilities Claude doesn't have.

Stage 3 — Construct

Assemble the complete prompt following these structural rules:

  1. Wrap every layer in XML tags. Use clear, descriptive tag names: <role>, <objective>, <context>, <reasoning>, <output_format>, <quality_standards>.

  2. Order layers following the primacy-recency pattern. Identity and critical constraints at the top (highest attention). Context and reasoning in the middle. Output format and quality standards at the bottom (closest to generation).

  3. Write the Objective (Layer 2) fresh for each task. This is never a reused template because it must be specific to the task. Apply the clarity test: could two people read this and produce substantially different outputs? If yes, sharpen it.

  4. Include Context (Layer 3) only if the user provided specific situational information. If context is thin, note in the delivery which specific context elements would most improve results. Do not fabricate context.

  5. Add behavioral countermeasures only when the task domain triggers known tendencies:

    • Strategic/advisory tasks: counter agreeableness — add explicit pushback permission.
    • Analytical/research tasks: counter excessive hedging — add decisiveness instruction.
    • Long-form tasks: counter verbosity drift — add a specific length constraint.
    • Tasks that could produce lists: add a prose instruction if prose is more appropriate.
  6. Audit before finalizing. Every instruction must earn its place. Remove anything included "just in case."

Stage 4 — Validate

Before delivering, check the assembled prompt:

  1. Objective passes the clarity test (unambiguous success criteria).
  2. No conflicting instructions (e.g., "be concise" alongside a 1500-word output specification).
  3. Reasoning steps are specific to the task type, not generic "think carefully."
  4. Output format specifies per-section length, not just total length.
  5. Every instruction earns its place — nothing included "just in case."
  6. If context is thin, the prompt still works (produces more generic output, but does not fail).
  7. The prompt can be copied directly into Claude and used as-is.
  8. Reasoning-extraction check. No Reasoning-layer instruction asks the model to reproduce its internal reasoning in the response text. Such an instruction can be declined with stop_reason: "refusal", category reasoning_extraction, on every current model. Task-specific analytical steps and a request for a short explanation of the answer or a summary of actions taken are fine. Remove "think carefully before answering" lines; effort is the control. Detail and the Anthropic text: references/five-layer-architecture.md, Layer 4 Reasoning. [Anthropic docs, Opus 5.5 / Sonnet 5.5 guides]

Global Layer Alignment (Project Mode, when global layer information is available):

CheckFailure SignalFix
CI does not duplicate User PreferencesBehavioral instructions semantically equivalent to Preferences contentRemove from CI; note in Global Layer Advisory
Knowledge files do not duplicate installed SkillsKF covers procedural content an installed Skill providesRemove or reduce the KF; reference Skill coverage in architecture note
Connector dependencies flaggedCI references tools requiring unconfigured connectorsFlag in CI and in Global Layer Advisory
Promotion candidates identifiedCI contains behavioral instructions that appear universally usefulNote in Global Layer Advisory as potential Preference candidates

Fix any issues found. Deliver only a clean prompt.

The 5-Layer Architecture (Overview)

Every prompt is built from five architectural layers. Each has a specific job:

LayerPurposeAlways Required?
Layer 1 — IdentityWHO Claude is — expert role, seniority, valuesYes, even if brief
Layer 2 — ObjectiveWHAT must be accomplished — task, success criteria, audienceYes
Layer 3 — ContextWHAT Claude needs to know — situation, constraints, prior decisionsOnly if user provides it
Layer 4 — ReasoningHOW Claude should think — task-specific analytical stepsMedium and complex tasks
Layer 5 — OutputWHAT the deliverable looks like — structure, length, formatYes for structured output
Quality ControlCross-cutting standards — accuracy, pushback, consistencyMedium and complex tasks

For detailed layer descriptions, templates, ready-to-use approaches for each layer, the Context Engineering Toolkit, and global layer interaction guidance for Project Mode, see references/five-layer-architecture.md.

Task Category Routing

Use this quick-reference to route tasks to the right approaches. When a task matches multiple categories, lead with the dominant one and fold in elements from the secondary.

Strategic / Advisory — Identity: Strategic Advisor or Product Strategist. Reasoning: Market and Competitive Strategy, Resource Allocation, or Change and Transformation. Output: Executive Brief, Strategic Memo, or Decision Matrix.

Technical / Engineering — Identity: Technical Architect. Reasoning: System Design, Debugging and Incident Analysis, or Migration and Transition. Output: Technical Design Document or Implementation Plan.

Analytical / Evaluative — Identity: Research Synthesist or Financial Analyst. Reasoning: General Analysis, Root Cause Diagnosis, or Risk Assessment. Output: Research Summary, Post-Mortem, or Decision Matrix.

Creative / Generative — Identity: Communications Strategist or custom. Reasoning: Concept Development, Messaging and Narrative, or Solution Ideation. Output: custom, matched to deliverable type.

Research / Synthesis — Identity: Research Synthesist. Reasoning: Evidence Synthesis, Landscape Scan, or Gap Analysis. Output: Research Summary or Competitive Analysis.

Comparative / Decision — Identity: matched to domain. Reasoning: Option Evaluation, Vendor/Tool Selection, or Prioritization. Output: Decision Matrix or Executive Brief.

Operational / Process — Identity: Operations Designer. Reasoning: General Analysis or custom. Output: Process Documentation, Implementation Plan, or Stakeholder Update.

Educational / Explanatory — Identity: Educator/Explainer. Reasoning: light, focused on progressive complexity. Output: custom, matched to format.

Selection Decision Trees

Identity Selection

  1. What domain is the task in? Match to the closest expert role from the routing table.
  2. Does the task sit at an intersection of two domains? Build a hybrid identity combining both.
  3. Seniority calibration: Expert audience → use "principal" or "world-class" (more nuanced, assumption-challenging). Audience needs guidance → reduce seniority (more explanatory). Default → "senior."
  4. No role fits? Build custom: [SENIORITY] [ROLE] with expertise in [DOMAINS]. Approaches problems by [REASONING STYLE]. Prioritizes [VALUE 1] over [VALUE 2]. [ONE BEHAVIORAL SENTENCE].

Reasoning Selection

  1. Identify the primary task shape:
    • Evaluate something that exists → Analytical family (General Analysis, Root Cause Diagnosis, Risk Assessment)
    • Plan or decide a strategic direction → Strategic family (Market Strategy, Resource Allocation, Change and Transformation)
    • Generate something new → Creative family (Concept Development, Messaging and Narrative, Solution Ideation)
    • Build or fix a technical system → Technical family (System Design, Debugging, Migration and Transition)
    • Synthesize information across sources → Research family (Evidence Synthesis, Landscape Scan, Gap Analysis)
    • Compare options and recommend → Comparative family (Option Evaluation, Vendor Selection, Prioritization)
  2. Select the specific variant within the family that fits the task shape.
  3. Task spans categories? Combine elements from both families. Keep total steps to 5-7. Lead with the dominant type.

Output Selection

  1. Match the deliverable type: leadership decision → Executive Brief; architecture proposal → Technical Design Document; evidence synthesis → Research Summary; project plan → Implementation Plan; structured comparison → Decision Matrix; market positioning → Competitive Analysis; incident/project analysis → Post-Mortem; status report → Stakeholder Update; strategy recommendation → Strategic Memo; workflow or SOP → Process Documentation.
  2. No match? Build custom with named sections, per-section length, total length, tone, and audience.
  3. Calibration checks: Does it specify per-section length? Does it match the audience? Is the total length realistic?

Quality Control Selection

  1. Always include the standard checks: accuracy, completeness, assumptions, pushback, actionability.
  2. Add task-specific checks: Strategic work → internal consistency. Technical work → edge case identification. Research work → source discrimination. Creative work → distinctiveness. Financial work → assumption transparency. Advisory work → agreeableness counter.
  3. Add behavioral countermeasures based on likely tendencies: Task invites agreement → add pushback permission. Task invites hedging → add decisiveness instruction. Long-form task → add length constraint. Task could produce lists → add prose instruction if prose is better.

Delivery Standards

Prompt Mode Delivery

  1. Present the complete prompt in a single, clean code block with XML tags. No interleaved commentary.
  2. Follow with a compilation note (3-7 sentences) covering: which approaches were selected and why, what defaults were assumed, and what the user should customize to improve results.
  3. Do not explain what each section does — the user can read it.
  4. Do not add disclaimers about prompt engineering being iterative.

Project Mode Delivery

When the user needs a full Claude Project scaffold (multiple related tasks, ongoing usage, reference material needed across conversations), deliver each scaffold artifact as a separate file on disk — the Custom Instructions and each knowledge file as its own uploadable file. This is a v4.0 contract change (per D5 of the 5-generation alignment cycle) from the prior inline-code-block delivery contract: inline code blocks force the user to copy-and-paste each block into a separate upload dialog, which is friction the file-per-artifact contract eliminates.

  1. Create the Custom Instructions file at a filename the user can upload directly: {code}_CI.md where {code} is the project's short identifier (e.g., hyge_CI.md, modelcast_CI.md). Contents: the complete Custom Instructions, using XML tags for all section boundaries (<identity>, <core_rules> or <core_instructions>, <knowledge_file_guide> or <knowledge_routing>, <operational_modes>, <output_standards>, and any other top-level sections). Do not use markdown headers (##) for section boundaries in Custom Instructions.
  2. Create each knowledge file at a filename the user can upload directly: {code}_{NAME}.md (e.g., hyge_PIPELINE.md, hyge_STUDY_PROGRESS.md). Contents: the file's complete content. For critical files, write the full content. For reference files that depend on the user's domain, provide the structural outline with section descriptions and content guidance.
  3. Follow with an architecture note (as chat prose, not a file) explaining key decisions and mapping each created file to its role.
  4. Be explicit about what the user needs to supply vs. what you have provided.

Inline-fallback exception. If the current runtime cannot create files on disk (e.g., a chat surface without file-creation capability), fall back to inline code-block delivery and explicitly state that the runtime constraint forced the fallback. The inline form is not the default and should be flagged when used. Runtimes that can create files (Claude Code, Claude.ai with file-creation support, any environment where the model has Write tool access) should always use the file-per-artifact contract.

Filename discipline. Prefix per Aaron Long / root.node convention: {code}_ for project-specific files; shared_ for cross-project shared files (rare in scaffolds). Never use session numbers in filenames. Confirm the {code} with the user before creating files; if uncertain, ask rather than invent.

Global Layer Advisory (Project Mode only, when global layer information is available):

After the architecture note, append a brief Global Layer Advisory (3-5 sentences) covering:

  • Preference redundancies avoided — behavioral instructions intentionally omitted from CI because User Preferences already establish them. This tells the user why certain expected instructions are absent.
  • Skill overlaps designed around — knowledge file decisions informed by installed Skills. This explains why certain KFs are leaner than expected or absent.
  • Connector dependencies — MCP Connectors the Project relies on, plus any missing connectors the user needs to configure.
  • Promotion candidates — behavioral instructions included in this Project's CI that might belong in User Preferences if the user finds them universally useful after burn-in. This seeds the evolutionary loop.

The advisory is informational — the Compiler does not modify global layers. If the user wants to act on promotion candidates or Preference optimization, recommend global-audit if available.

For Project Mode, the same four stages apply but expand in scope: Parse extracts project purpose, task types, knowledge requirements, audience, and scope boundaries. Select designs identity, operational modes, knowledge file architecture, and Custom Instructions structure. Construct builds the full scaffold with primacy-recency ordering and XML tags. Validate checks comprehensibility, coherence, efficiency, evolvability, and format compliance (XML tags in Custom Instructions, each file separately copyable).

Thinking cannot be disabled on the primary tier (Opus 5.5, Sonnet 5.5), so Project Mode scaffolds no longer carry thinking-disabled mitigations. Haiku 5.5 is the one current model that still accepts disabled (at high effort or below). [Anthropic docs, verified 2026-10-22]

In All Modes

  • Write in direct, professional prose. Not bullet points unless genuinely parallel items.
  • Be decisive about recommendations. If one approach is clearly right, say so — do not present it as "one option among many."
  • If the user's request has a flaw or a better framing, state it before building. Then build what they actually need.

Prep Mode

When the user needs help developing a task description before compilation, shift into preparation mode. Two paths:

Generator: Walk the user through the highest-leverage dimensions to produce a structured task description. Ask 1-2 batched questions, not a list of six. Dimensions (in leverage order): Task and Deliverable, Audience and Stakes, Situational Context, Constraints, Success Criteria, Reusability Intent. Batch related dimensions into the same question. Complete in 2-4 turns.

Evaluator: Score an existing task description against the six dimensions above (each 1-5) to identify gaps. Deliver scorecard results, 2-3 improvement priorities, and a revised version when any dimension scores below 3.

Apply the same No-Interrogation Principle: batch dimensions, drop those already covered, complete in minimal turns.

Troubleshooting

Output is generic, could apply to any company. Context is too thin. Flag in your compilation note which specific context elements would most improve results: numbers, constraints, prior decisions.

Analysis is shallow, states the obvious. Reasoning layer is missing or generic. Replace "think step by step" with task-specific analytical steps that direct attention to the right dimensions.

Claude agrees with a flawed premise. Quality control layer does not include pushback permission. Add: "If the request contains a flawed premise, challenge it before proceeding."

Recommendations contradict each other. Cross-recommendation compatibility isn't grounded in an evidence rule. On the 5.5 generation, adding a "verify your recommendations are consistent" step compounds automatic self-verification (see root_OPTIMIZATION_REFERENCE.md tendency #11) without adding a check the model wasn't already doing. Better fix: specify the compatibility criteria the recommendations must satisfy against a source (project constraints, spec, prior decisions) — external-artifact verification the model would not otherwise perform. Example: "Every recommendation must be consistent with the constraints in <project_constraints> and the decisions listed in <prior_decisions>; cite the specific constraint or decision each recommendation aligns with."

Output keeps growing across turns. No length constraint combined with verbosity drift. Specify target length in the output layer. Restate when asking follow-up questions.

Prompt is bloated — instructions that add no value. Failed the "every instruction earns its place" audit. Remove sections included "just in case." A lean prompt with five precise instructions outperforms a bloated one with twenty vague ones.

Examples

For 2-3 annotated end-to-end compilation examples showing the full workflow from task description to finished prompt at different complexity levels, see references/compilation-examples.md.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

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

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

Builds complete, optimized Claude prompts and Project scaffolds from task descriptions. Use when building, designing, creating, or structuring a Claude prompt or system prompt. Trigger on: "build me a prompt," "compile a prompt for," "create a system prompt," "write a Claude prompt," "design a prompt for," "help me write a prompt," "scaffold a Claude Project," "design a Project for." Uses a four-stage methodology (Parse, Select, Construct, Validate) and a tested 5-layer architecture (Identity, Objective, Context, Reasoning, Output + Quality Control). In Project Mode, the Compiler is global-...

Vì sao nên dùng Prompt Compilation 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. Prompt Compilation 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 Prompt Compilation trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/drayline/rootnode-skills/tree/main/plugins/rootnode-prompts/skills/prompt-compilation. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành 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 Prompt Compilation?

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.

Bạn có thể dùng Prompt Compilation 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 Prompt Compilation 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 Prompt Compilation có miễn phí không?

Có. Kỹ năng này được drayline phát hành trên GitHub theo giấy phép Apache-2.0. 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 cho mô hình các công cụ mới để gọi — mã đượ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à tiêu chí của đầu ra tốt. 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 👇