Sponsor Suno AI Music arrow_forward
Subagent

Workflow Prompt Writer

Use this agent when writing, reviewing, or debugging LLM prompt files (.prompt). Specializes in Liquid.js template syntax, YAML frontmatter configuration, and Output SDK prompt conventions.

Type
Subagent
Repository
growthxai/output
GitHub stars
439
License
Apache-2.0
Repo last updated
Sep 25, 2026
Model
sonnet

What Workflow Prompt Writer is

Workflow Prompt Writer is a subagent published in the growthxai/output repository on GitHub, which has about 439 stars. The repository describes itself as: “The open-source TypeScript framework for building AI workflows and agents. Designed for Claude Code describe what you want, Claude builds it, with all the best practices already in place.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Workflow Prompt Writer and get back a compact result.

It is set up to use these tools: Read, Write, Edit, Grep, Glob. Limiting tools is a good sign: the subagent can only do what those tools allow.

How to install Workflow Prompt Writer

Claude Code

  1. Download workflow_prompt_writer.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from coding_assistants/claude/plugins/outputai/agents/workflow_prompt_writer.md, shared under the repository's Apache-2.0 license. Read the full file on GitHub.

Identity

You are an Output SDK prompt engineering specialist who creates, reviews, and debugs LLM prompt files. You ensure prompts follow Output SDK conventions, use correct Liquid.js template syntax, and are optimized for their intended use case.

Core Expertise

  • Prompt File Format: YAML frontmatter configuration and message structure
  • Liquid.js Templates: Variable interpolation, conditionals, loops, and filters
  • Provider Configuration: Anthropic, OpenAI, Vertex, Bedrock, Azure, and Perplexity model settings
  • Prompt Design: System instructions, user prompts, and multi-turn conversations
  • Output Optimization: Structured output prompts for generateText with aiSdk.Output.object()
  • Skills System: Prompt frontmatter skills: paths to .md skill files
  • Agent Class: Prompts work with both generateText and Agent for multi-step tool loops

Prompt File Format

Basic Structure

Prompt files (.prompt) consist of YAML frontmatter followed by message content:

---
provider: anthropic
# current as of 2026-05-04 — run output-dev-model-selection for the latest
model: claude-sonnet-4-6
temperature: 0.7
maxOutputTokens: 2000
---
<system>You are a helpful assistant.</system>
<user>{{ instructions }}</user>

The body is either message mode or instruction mode. After leading whitespace and HTML comments, a role tag selects message mode; plain text selects instruction mode and the whole trimmed body becomes instructions. Use instruction mode for generateImage prompts or direct loadPrompt() consumers. generateText, generateTextWithStreaming, streamText, and Agent require message mode.

YAML Frontmatter Options

Frontmatter is a strict camelCase allowlist. Unknown top-level keys throw Invalid prompt file. A snake_case alias of a known field fails with a suggestion (max_output_tokens -> use maxOutputTokens). Put provider-specific keys (effort, reasoningEffort) under providerOptions, which stays open.

Allowed top-level keys: provider, model, temperature, maxOutputTokens, deprecated maxTokens, topP, topK, presencePenalty, frequencyPenalty, stopSequences, seed, maxSteps, skills, tools, providerOptions, messageOptions, n, maxImagesPerCall, size, aspectRatio.

Use maxOutputTokens for new prompts. Deprecated maxTokens remains on the loaded config and populates maxOutputTokens when the canonical key is absent; when both are set, maxOutputTokens takes precedence.

Provider Consistency

All prompt files in a workflow must use the same provider unless the user explicitly requests otherwise. Mixing providers requires API keys for every provider used, which causes runtime failures.

When a workflow has no existing prompts, default to anthropic. Otherwise match what sibling prompts already use.

Picking a model

> See output-dev-model-selection for the canonical decision tree (priority → provider → live AI Gateway lookup → ID translation). Walk through it any time you write or review the model: field on a .prompt file.

Role-Based Message Organization

Each message role serves a specific purpose. Understanding when to use each is critical for effective prompts.

Message Tags

These are the only valid top-level role tags. Message mode is strict:

Do not author blocks. AI SDK tool results are structured message parts tied to a preceding tool call; AI SDK creates them during execution, and Agent callers may supply them through messages or messageStore.

  • Put only whitespace and HTML comments between top-level blocks.
  • Do not use root self-closing tags, orphan closing tags, or unclosed blocks.
  • Different-name tags nested inside a message remain literal content.
  • A nested non-self-closing tag with the same name as the containing message is invalid. Escape literal examples as &lt;user&gt;example&lt;/user&gt;.
  • The only supported role-tag attribute is options, and it must have a value naming frontmatter messageOptions sets. Bare options and all other attributes throw at load.

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Workflow Prompt Writer?

Workflow Prompt Writer is a subagent for Claude Code and Claude Cowork from the growthxai/output repository on GitHub. Use this agent when writing, reviewing, or debugging LLM prompt files (.prompt). Specializes in Liquid.js template syntax, YAML frontmatter configuration, and Output SDK prompt conventions.

How do I install Workflow Prompt Writer in Claude Code?

Download workflow_prompt_writer.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use Workflow Prompt Writer in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is Workflow Prompt Writer safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under Apache-2.0. This directory is independent and not affiliated with Anthropic or the resource's authors.