maf-fan-out-validator

maf-fan-out-validator is a skill for Claude Code, Codex from joslat/maf-doctor. It costs 55 tokens per session (828 once invoked), scanned A, original, MIT.

A checker for fan-out and fan-in workflows, where one step starts several branches and a later step waits for their results. It finds handlers that finish without returning a message, which can leave the waiting step stuck.

In plain words
What is it for?
Use it to inspect message-handler return types, validate fan-out/fan-in workflows, simulate whether they finish, and generate a topology diagram.
Why use it?
The compiler may accept these handlers even though the workflow never completes. The checker exposes this silent failure and can show the workflow's message paths.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect message-handler return types, validate fan-out/fan-in workflows, simulate whether they finish, and generate a topology diagram.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/joslat/maf-doctor/maf-fan-out-validator
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.

Any agent
npx skills add joslat/maf-doctor --skill maf-fan-out-validator
Clone the repo
git clone --depth 1 https://github.com/joslat/maf-doctor

Made for: Claude Code, Codex.

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 maf-fan-out-validator

README.md
[![agentmods](https://agentmods.dev/badge/skills/joslat/maf-doctor/maf-fan-out-validator/github.svg)](https://agentmods.dev/skills/joslat/maf-doctor/maf-fan-out-validator)
Your own site
<a href="https://agentmods.dev/skills/joslat/maf-doctor/maf-fan-out-validator"><img src="https://agentmods.dev/badge/skills/joslat/maf-doctor/maf-fan-out-validator/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 maf-fan-out-validator

Your own site · 80×15
<a href="https://agentmods.dev/skills/joslat/maf-doctor/maf-fan-out-validator"><img src="https://agentmods.dev/badge/skills/joslat/maf-doctor/maf-fan-out-validator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 828 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.00055 $0.00828
Opus 5 $0.00028 $0.00414
Sonnet 5 $0.00011 $0.00166
Haiku 4.5 $0.00006 $0.00083

Measured 12d ago against content hash 1d1ac84e0f4a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

maf-fan-out-validator 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 12d 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.

.github/skills/maf-fan-out-validator/SKILL.md · 56 lines

How it starts

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

fan-out-validator — silent fan-in starvation detection

⚡ Prefer the MCP tools. The maf-autopilot MCP server exposes:

  • MafValidateFanOut(repoPath) — Roslyn syntax walk; flags any [MessageHandler] returning void / non-generic Task / ValueTask (the silent-starvation patterns).
  • MafSimulateWorkflow(repoPath) — builds the full executor topology graph (fan-out + fan-in edges resolved through variable bindings), emits a Mermaid diagram, and gives an end-to-end completion forecast.

Use both: MafValidateFanOut for per-handler verdicts, MafSimulateWorkflow for "would this workflow complete?"

This skill formerly had a sibling fan-in-static-analyzer that walked the same patterns by hand; both have been merged here now that the MCP tools cover the procedural work.

The bug class — "silent fan-in starvation"

A fan-out executor's [MessageHandler] method MUST return one of:

  • Task<TMessage>
  • ValueTask<TMessage>
  • IAsyncEnumerable<TMessage> (streaming)

A handler that returns void, Task, or ValueTask (non-generic) produces no output message. The fan-in barrier on the downstream edge then starves silently — the workflow exits cleanly but incompletely.

This is NOT a build error. dotnet build is clean. Tests that don't exercise the fan-in path are clean. The bug only surfaces in production traces (or with one of the tools above).

Return-type verdict table

Return type Verdict Why
Task<TMessage>, ValueTask<TMessage> ✅ OK Produces a downstream message
IAsyncEnumerable<TMessage> ✅ OK (streaming pattern) Produces a stream of messages
void ❌ SILENT_STARVATION_RISK No completion signal AND no message
Task, ValueTask (non-generic) ❌ SILENT_STARVATION_RISK Completes but emits nothing
int, string, raw concrete types ⚠ LIKELY_INVALID Cannot satisfy MAF's fan-out contract

Read the full file on GitHub · 56 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. 12d ago First seen · 56 lines · 55 tokens per session scan A 1d1ac84e0f4a

Subscribe to this mod's changes

maf-fan-out-validator is a skill published in the GitHub repository joslat/maf-doctor (14 stars, last pushed 25d ago), licensed MIT. It adds 55 tokens to every session and 828 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

eve

Build durable backend AI agents with the eve framework. Use when creating, editing, or debugging an eve project — agent instructions, skills, tools, connections, channels, sandboxes, subagents, schedules, or evals.

vercel/eve · 47 tokens

bfl-api

BFL FLUX API integration guide covering endpoints, async polling patterns, rate limiting, error handling, webhooks, and regional endpoints with Python and TypeScript code examples.

calesthio/OpenMontage · 38 tokens

winui-session-report

Analyze the current or a recent agent session (GitHub Copilot CLI or Claude Code) and generate a diagnostic report. Use only when the user explicitly asks for session feedback, agent debugging, or a review of what happened during a build session. Do not inspect session data automatically.

microsoft/win-dev-skills · 61 tokens

aspire

Build, upgrade, and operate Aspire 13.5.x C# or TypeScript application hosts with the current CLI, AppHost, ServiceDefaults, integrations, dashboard, testing, MCP, and deployment patterns for distributed apps. USE FOR: Aspire.AppHost.Sdk, Aspire.Hosting., DistributedApplication.CreateBuilder, apphost.mts…

managedcode/dotnet-skills · 145 tokens

worker-services

Build long-running .NET background services with BackgroundService, Generic Host, graceful shutdown, configuration, logging, and deployment patterns suited to workers and daemons. USE FOR: background services; scheduled workers; hosted services; worker extraction; graceful shutdown, health checks, and service hosting…

managedcode/dotnet-skills · 109 tokens

azure-functions

Build, review, or migrate Azure Functions in .NET with correct execution model, isolated worker setup, bindings, DI, and Durable Functions patterns. USE FOR: working on Azure Functions in .NET; migrating from the in-process model to the isolated worker model; adding Durable Functions, bindings, or host configuration.…

managedcode/dotnet-skills · 113 tokens