Skip to content
Writing Prompts & Skills
DocsProduct Guide

Writing prompts and skills

Write instructions that are clear, stable, and easy for agents to apply without guessing.

System prompts establish an agent's role and highest-priority behavior within platform constraints. In Vorflux, harness instructions extend the canonical system prompt for built-in roles and form the role prompt for custom roles. They cannot override platform, safety, tool, or other mandatory built-in constraints. Skills are reusable procedures applied when a task matches. Both work best when they state the goal, boundaries, and expected behavior directly.

System prompt guidelines

1. Be explicit about hierarchy and goals

State what the agent is, who it serves, and its top priority. Spell out which rules always come first, which goals come next, and how to resolve conflicts. For example: “If a user request conflicts with these role instructions, follow the role instructions unless a higher-priority platform or built-in rule applies.”

2. Specify scope and boundaries

Define what the agent should and should not do: the domains it handles, hard boundaries, and when it should decline, ask for clarification, or redirect to a safer alternative. Clear boundaries reduce both over-compliance and unnecessary refusals.

3. Make behavior and style concrete

Replace vague adjectives with observable rules. Specify tone, preferred length, and formatting—for example, “Use clear, direct language; avoid slang and emojis unless asked” or “Prefer concise, information-dense answers unless the user requests detail.” Support words like “helpful” or “friendly” with examples or sub-rules.

4. Define tool usage precisely

Say when tools must be used, when they must not be used, and any required syntax, limits, or verification steps. Put durable tool policy in the harness instructions so individual user prompts and skills do not need to repeat it.

5. Anticipate conflicts and edge cases

Cover common failure modes: conflicting instructions, missing information, ambiguous requests, and outputs that need special handling. Conditional rules such as “If X happens, do Y instead of Z” are easier to follow than broad warnings.

6. Keep instructions stable, modular, and readable

Treat system prompts as infrastructure. Prefer stable rules over one-off exceptions, group related instructions under headings such as Scope, Tools, Style, and Edge cases, and remove contradictions when requirements change. Concise, structured instructions outperform long, repetitive ones.

7. Use a few short examples

When behavior is subtle, add two or three compact examples: a good response, a borderline case, and—when relevant—a refusal or redirect. Examples communicate the spirit of a rule without burying it in theory.

Skill guidelines

  • Make matching obvious. Write a specific frontmatter description that says when the skill applies and what outcome it produces.
  • Keep one skill focused on one job. Split unrelated workflows instead of hiding several procedures behind branches in one large skill.
  • Write an executable procedure. Use ordered steps, exact commands, required inputs, expected outputs, and clear completion checks.
  • Separate requirements from preferences. Use words such as “must” only for true constraints. Explain which choices the agent may adapt to the task.
  • Handle meaningful branches. Document what to do when prerequisites are missing, a command fails, or approval is required—without trying to predict every possible exception.
  • Verify the result. End with concrete evidence the agent must collect before reporting success, such as a passing test, a health check, or a reviewed artifact.

Put durable policy in the harness; put task procedures in skills. If every agent role must obey a rule, it belongs in harness or team instructions. If the rule applies only when performing a particular workflow, make it a skill.

Starter templates

System prompt

markdown
# Role and goal
You are [role]. Your primary goal is [outcome].

# Priorities
1. Follow [highest-priority constraints].
2. Produce [quality goal].
3. Prefer [style or efficiency goal].

# Scope and boundaries
- Handle: [supported work].
- Do not: [hard boundaries].
- If information is missing: [ask, inspect, or state assumptions].

# Tools
- Always use [tool] when [condition].
- Do not use [tool] when [condition].
- Verify tool results by [check].

# Output style
- Use [tone, length, and format].

# Edge cases
- If [condition], do [action] instead of [undesired action].

Skill

markdown
---
name: focused-skill-name
description: Use when [specific trigger] to produce [specific outcome].
argument-hint: <required-input>
---

# Goal
Complete [specific outcome] for `$ARGUMENTS`.

# Prerequisites
- [Required access, files, or state.]

# Steps
1. Validate that `$ARGUMENTS` identifies [required input].
2. [Exact action and expected result.]
3. [Meaningful failure or approval branch.]

# Verification
- [Evidence required before reporting success.]

See Harness Builder to configure role instructions and Skills to create and manage reusable playbooks.