hermes

Write a reusable task prompt

Writes a reusable prompt from a plain description of a task, with context, typed variables and defaults, constraints, an output format, an example and a rule to ask for missing inputs.

context

A reusable prompt is a small program: it is run many times, by people who did not write it, on inputs the author did not foresee. Current guidance from the major model providers converges on the same structure: give the context and purpose (who it is for and why), state the task as an explicit deliverable, separate variable inputs from instructions with clear delimiters, phrase constraints as what to do and why, define the output format exactly, add an example when the format or tone is hard to describe, and tell the model what to do when information is missing instead of letting it guess. A role line helps only when it carries real expertise or a stance; "You are a helpful assistant" adds nothing.

task

Write a reusable prompt for this task, to be run by .

task description

Only if [EXAMPLE_INPUT_OUTPUT] is given:

example input output

  1. Restate the job in one sentence: input, deliverable, audience, and what "good" means. If the description leaves the deliverable or its audience unclear in a way that would change the prompt, ask up to three questions and stop.
  2. Identify the variables: everything that changes between runs. For each, choose a name (snake_case), a type (string, text, enum, number or boolean), whether it is required, and a sensible default for optional ones. Keep the list short; fold rarely changed settings into the prompt.
  3. Write the prompt in this order:
  • context: purpose, audience and the domain knowledge the model needs, including what usually goes wrong;
  • the task, with each variable as a placeholder (the variable name in double curly braces) inside its own delimiters or XML-style tag;
  • numbered steps only where order matters;
  • constraints, each phrased positively with its reason when not obvious;
  • a rule for missing or ambiguous input: ask, or proceed with stated assumptions, whichever suits the target user;
  • the exact output format (sections, length, structure);
  • one example if the format or tone is subtle, based on the example given or clearly marked as illustrative.
  1. Add design notes explaining the non-obvious choices, and three test inputs, including an edge case and an input that should trigger the missing-information rule.
constraints
  • Model-agnostic: plain Markdown and tags any assistant understands; no vendor-specific syntax or model names unless the description requires a specific tool.
  • No filler roles, flattery or shouting (ALL CAPS, "CRITICAL", "NEVER EVER"); they cause over-application rather than compliance.
  • Keep the prompt as short as complete allows, usually under 600 words.
  • Do not add features, steps or outputs the task did not ask for; put optional ideas in the design notes.
  • If the target user is an automation, make the output strictly parseable (for example a fixed JSON shape) and replace "ask" with a defined fallback value.
  • If the task involves medical, legal, financial or mental-health advice, include a line in the prompt that states its limits and points to a qualified professional when stakes are high.
output format

Prompt

The complete prompt in one fenced block, ready to paste.

Variables

A table: Name | Type | Required | Default | Description.

Design notes

Three to six bullets.

Try it with

Three test inputs and what a good output should do for each.

1 required value still a placeholder; the assistant will ask for it.

details

kind
Prompt: a task you run by name to get one finished thing back
domain
Prompting and assistants
category
Prompt engineering
level
Intermediate
risk
read-only
version
v1.0.0 · incubating
reviewed
2026-10-03
works in
Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Antigravity, OpenCode, Windsurf, Zed, Continue, AGENTS.md, ChatGPT, claude.ai

Edit on GitHubReport a problem

use in

Hodios CLI
npx @hermes-hq/hodios install write-task-prompt --target claude-code
Agent Skills
npx skills add hermes-hq/hodios-dist --skill write-task-prompt -a claude-code
Add the Hodios marketplace (once)
claude plugin marketplace add hermes-hq/hodios-dist
Install the prompting plugin
claude plugin install hodios-prompting@hodios

The plugin brings every entry in this domain at once.

PromptPrompt engineering

Improve a prompt

Diagnoses why a prompt gives weak or inconsistent results and rewrites it with clear context, task, constraints and output format while keeping its intent. Use on any prompt for any AI assistant.

improve-prompt
PromptPrompt engineering

Turn a chat into a reusable prompt

Turns a successful chat conversation into a reusable prompt with named variables, the rules learned from your corrections, an output format and a worked example. Use for tasks you repeat with AI.

turn-chat-into-prompt
PromptPrompt engineering

Build a test set for a prompt

Builds a hand-run test set for a prompt with happy, edge and negative inputs, expected behaviour and checkable pass criteria per case, and a scoring sheet to compare prompt versions side by side.

build-prompt-test-set
PromptPrompt engineering

Create few-shot examples

Builds a small set of diverse, representative few-shot examples for a task, including tricky and negative cases, balanced so the model learns the rule rather than copying surface patterns.

create-few-shot-examples
PersonaPrompt engineering

Prompt engineer

Prompt engineer who writes clear, testable instructions, iterates against real examples and evals, and avoids model-specific tricks. Use for designing, debugging and maintaining prompts.

prompt-engineer
PromptPrompt engineering

Adapt a prompt for a reasoning model

Rewrites a prompt for reasoning-capable models by removing step-by-step micromanagement, stating goals, constraints and success criteria, and keeping the output format exact.

adapt-prompt-for-reasoning-model