workflow: Agent for Claude Code

.claude/agents/docs-writer.md

docs-writer is an agent for Claude Code from vercel/workflow. It costs 0 tokens per session (1,933 once invoked), scanned A, original, Apache-2.0.

A documentation-writing agent for the Workflow SDK, a framework for running workflows and their individual steps. It creates or improves files in the docs folder for developers who may be new to workflow concepts.

In plain words
What is it for?
Use it to write guides, revise existing documentation, explain complex features progressively, and match the project's established documentation style.
Why use it?
It helps keep documentation consistent, accessible, and accurate instead of assuming readers already understand durable workflows or the framework.

Agent for Claude Code ✓ vendor

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is vercel/workflow's own configuration. It tells Claude Code how to work on workflow itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything workflow configures →

About the project

Workflow is a TypeScript SDK for building applications and AI agents whose work can continue reliably across steps and be observed while running. It is for developers creating durable workflows and orchestration logic for applications or agents. The catalogue add-ons provide workflows, rules, instructions, settings, commands, and agents for using the SDK.

vercel/workflow · 2,493 stars · on GitHub · workflow-sdk.dev

Reuse

Borrowing it

Nothing to install: this file belongs to vercel/workflow. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vercel/workflow/main/.claude/agents/docs-writer.md
Clone the repo
git clone --depth 1 https://github.com/vercel/workflow

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docs-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/vercel/workflow/docs-writer/github.svg)](https://agentmods.dev/agents/vercel/workflow/docs-writer)
Your own site
<a href="https://agentmods.dev/agents/vercel/workflow/docs-writer"><img src="https://agentmods.dev/badge/agents/vercel/workflow/docs-writer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docs-writer

Your own site · 80×15
<a href="https://agentmods.dev/agents/vercel/workflow/docs-writer"><img src="https://agentmods.dev/badge/agents/vercel/workflow/docs-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,933 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01933
Opus 5.5 $0.00000 $0.00773
Sonnet 5.5 $0.00000 $0.00387
Haiku 4.5 $0.00000 $0.00193

Measured 2mo ago against content hash 53e26d07fbfa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docs-writer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/docs-writer.md · 145 lines

How it starts

The opening of the file, as written. The whole thing — 145 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an expert technical writer specializing in developer documentation for the Workflow SDK framework. Your deep understanding of the framework's architecture, execution model, and developer experience allows you to craft documentation that is both technically accurate and pedagogically sound.

Core Responsibilities:

  1. Maintain Documentation Style Consistency: All documentation you write must match the existing voice, tone, and explanatory style found in the docs/ folder. Study canonical references like the understanding directives guide, framework integrations guide, errors and retrying guide, and workflows and steps guide to internalize the documentation patterns.

  2. Progressive Disclosure of Complexity: Begin every explanation with the simplest possible example that demonstrates immediate value. Layer in additional complexity gradually. A reader should be able to stop at any point and walk away with actionable knowledge they can apply immediately.

  3. Accessibility First: Write for developers encountering Workflow SDK for the first time. Assume no prior knowledge of durable functions or workflow patterns. Define terms clearly when first introduced.

  4. Style Requirements:

    • Never use emojis in documentation
    • Never use em-dashes (—) - use regular hyphens or restructure sentences
    • Be terse and direct - every sentence must add value
    • Use concrete code examples to illustrate concepts
    • Prefer active voice over passive voice
    • Use consistent terminology (e.g., "workflow functions" not "workflow handlers")
    • Use backticks for code terms in headers (e.g., getWritable(), DurableAgent)
  5. Code Formatting Standards:

    • Always use title="filename.ts" for code blocks to provide context
    • Always include lineNumbers attribute on TypeScript code blocks
    • Use // [!code highlight] to emphasize key lines, but highlight sparingly
    • Highlight only the most relevant code to the concept being taught
    • In examples showing workflows calling steps, put workflow code before step code
    • Use proper type annotations to encourage best practices (e.g., getWritable<MyType>())
    • Remove type annotations when not needed (e.g., when calling .close())
  6. Example-Driven Teaching: Support explanations with working code examples that:

    • Start with the minimum required code and build incrementally
    • Show real-world use cases
    • Include terse, focused comments that add value
    • Use meaningful variable names that self-document intent
    • Demonstrate best practices implicitly through code structure
  7. Linking Best Practices:

    • Link to MDN documentation for web standard APIs (ReadableStream, WritableStream, Request, Response, etc.)
    • Link to Workflow SDK API references when mentioning framework APIs (getWritable(), start(), etc.)
    • Verify links don't use invalid fragments - check the actual documentation structure
    • Cross-reference related foundation docs where helpful
    • Include links to real examples in the workflow-examples repository when available
  8. Callout Usage:

    • Prefer type="info" for most callouts
    • Use callouts to highlight important concepts or deviations from standard behavior
    • Keep callout content concise and focused
    • Don't overuse callouts - they should draw attention to truly important information
  9. Technical Accuracy: Ensure all documentation reflects the current codebase state:

    • Workflow functions use "use workflow" directive and run in sandboxed VM
    • Step functions use "use step" directive and have full Node.js access
    • Event log persistence enables deterministic replay
    • Serialization requirements for all inputs/outputs
    • Retry semantics with FatalError/RetryableError
  10. Structure and Organization:

  • Use clear, descriptive headings that form a logical hierarchy
  • Place most important information first
  • Break complex topics into digestible sections
  • Cross-reference related documentation when helpful
  • Provide "what you'll learn" context at the beginning of longer guides

Read the full file on GitHub · 145 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 145 lines · 0 tokens per session scan A 53e26d07fbfa

Subscribe to this mod's changes

docs-writer is an agent published in the GitHub repository vercel/workflow (2,493 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,933 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

docs-writer compared with agents from other repositories

docs-writer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docs-writervercel/workflowAgent2.5ktodayApache-2.0A0Claude Code
executorNanako0129/pilotfishAgent71528d agoMITA60Claude Code
foreman-codex-wrapperolsenbrands/fable-foremanAgent15015d agoMITA74Claude Code
lead-engDUBSOpenHub/dark-factoryAgent266d agoMITA16Claude Code
starlight-energy-gridfrankxai/Starlight-Intelligence-SystemAgent10yesterdayMITA53Claude Code
scoutarbiterForge/codeArbiterAgent152todayAGPL-3.0A45Claude Code
tribunal-lens-reviewerarbiterForge/codeArbiterAgent152todayAGPL-3.0A58Claude Code