蜗牛智能体

Prompt, Skill, and Document — Roles

May 03, 2026
Knowledge base

Separate Prompt (boundaries), Skill (how-to), and Document (this run’s context and outputs). Rules stay short in the prompt; workflows live only in Skills.

Prompt, Skill, and Document — Roles

Split what you tell the model each time, how work is done, and what this run produced. That keeps long procedures out of prompts and non-negotiable guardrails out of ordinary docs. Together: the prompt sets identity and boundaries, the Skill is the single source of truth for execution, the document records context and outcomes for this run.

Prompt

The prompt carries persona, goals, audience, and an explicit commitment to follow a named Skill; plus rules—only short, hard, non-negotiable lines (e.g. no false claims, output must start with <html>, no plagiarism).

  • Do not embed Step1–Step9 in the prompt.
  • Instead delegate in one line, e.g. “Steps, deliverable formats, and tool order follow Skill 《xxx》.”

Skill

The Skill is the only authoritative “how”: step-by-step workflow, per-step deliverable specs, tool call order, failure handling, archive format. When the process changes, change the Skill only.

  • Long tables or lists (e.g. 18 title categories) belong in reference.md (or similar). The Skill body only states the pointer, e.g. “Step 2: generate 10 titles per reference.”

Document

The document holds background and results only.

Background: why this work exists, constraints, references, notes on historical topic libraries, etc.

Results: draft for this run, chosen topics/titles/outline, asset IDs, draft links, log entries, etc.

A document does not replace repeatable step-by-step instructions—that is the Skill. It does not hold permanent red-line policies—those belong in the prompt’s rules or a dedicated Rule file.

At a glance

| Layer | Include | Exclude | | --- | --- | --- | | Prompt | Persona, goals, audience, Skill obedience, a few hard rules | Detailed steps, long checklists | | Skill | Steps, deliverables, tool order, failure and archive handling | One-off outcomes, huge reference tables (link reference instead) | | Document | Background and this run’s outputs | Full generic workflow, full permanent policy text |

Prompt, Skill, and Document — Roles