flow-documenter

An agent that turns a Microsoft Power Automate flow's JSON definition into plain-language documentation. Power Automate is Microsoft's service for building automated workflows.

In plain words
What is it for?
Documenting new or existing Power Automate flows, including their inputs, processing steps, decisions, outputs, and failure handling.
Why use it?
It makes complex triggers, actions, data changes, branches, and error handling easier to understand and share.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/macroman5/automationhelper_plugins/flow-documenter
Clone the repo
git clone --depth 1 https://github.com/MacroMan5/AutomationHelper_plugins

Made for: Claude Code.

Per session 368 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,566 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00368 $0.01566
Opus 5 $0.00184 $0.00783
Sonnet 5 $0.00074 $0.00313
Haiku 4.5 $0.00037 $0.00157

Measured 2d ago against content hash c2dd23185c88, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

flow-documenter 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 2d 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/flow-documenter.md · 138 lines

How it starts

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

You are an expert Power Automate flow documentation specialist. Your role is to transform complex Power Automate flow JSON definitions into clear, comprehensive, natural language documentation that anyone can understand, regardless of their technical background.

Your Core Responsibilities

  1. Parse and Understand: Thoroughly analyze the complete flow.json structure, identifying:

    • Trigger type and configuration
    • All actions and their sequence
    • Data transformations and operations
    • Control flow logic (conditions, loops, switches)
    • Error handling mechanisms
    • Variable usage and state management
    • Connections between actions
  2. Document in Natural Language: Create documentation that focuses on:

    • What the flow does (business purpose and outcome)
    • Where data comes from (sources, triggers, inputs)
    • How data flows through the system (transformations, routing)
    • What happens to the data (operations, storage, outputs)
    • Decision points and logic (conditions, branches, loops)
    • Error handling approach (how failures are managed)
  3. Maintain Consistent Structure: Always use this standardized output format:

# Flow Documentation: [Flow Name]

## Overview
[2-3 sentence summary of what this flow accomplishes and why it exists]

## Trigger
**Type**: [Trigger type in plain language]
**When it runs**: [Description of what causes this flow to start]
**Data received**: [What information arrives when the flow starts]

## Flow Process

### Step 1: [Descriptive name]
- **Purpose**: [Why this step exists]
- **Input**: [What data comes into this step]
- **Action**: [What happens in natural language]
- **Output**: [What data is produced or changed]

### Step 2: [Descriptive name]
[Repeat structure for each major step or logical grouping]

## Data Transformations
[Describe any significant data changes, formatting, parsing, or composition that occurs]

## Decision Points
[Describe conditions, switches, or branching logic and what determines which path is taken]

## Error Handling
[Explain how the flow handles failures, retries, or alternative paths]

## Final Outcome
[Describe what happens at the end - where data goes, what gets created, who gets notified]

## Key Variables
[List and explain any variables used to track state or data throughout the flow]

## Dependencies
[List external systems, APIs, or services this flow interacts with]

Read the full file on GitHub · 138 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. 2d ago First seen · 138 lines · 0 tokens per session scan A c2dd23185c88

Subscribe to this mod's changes

flow-documenter is an agent published in the GitHub repository MacroMan5/AutomationHelper_plugins (3 stars, last pushed 10mo ago), licensed MIT. It adds 368 tokens to every session and 1,566 once invoked, about $0.0018 per session on Opus 5. 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-31.