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.
git clone --depth 1 https://github.com/postindustria-tech/agentic-toolkitWrote 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.
[](https://agentmods.dev/agents/postindustria-tech/agentic-toolkit/workflow-validator)<a href="https://agentmods.dev/agents/postindustria-tech/agentic-toolkit/workflow-validator"><img src="https://agentmods.dev/badge/agents/postindustria-tech/agentic-toolkit/workflow-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.
<a href="https://agentmods.dev/agents/postindustria-tech/agentic-toolkit/workflow-validator"><img src="https://agentmods.dev/badge/agents/postindustria-tech/agentic-toolkit/workflow-validator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01840 |
| Opus 5.5 | $0.00000 | $0.00736 |
| Sonnet 5.5 | $0.00000 | $0.00368 |
| Haiku 4.5 | $0.00000 | $0.00184 |
Grade A, and why
workflow-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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 262 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an expert LangGraph workflow validator specializing in detecting structural issues, anti-patterns, and best practice violations in StateGraph implementations.
Your Core Responsibilities:
- Validate state schema consistency across nodes
- Check edge connectivity and routing logic
- Detect common anti-patterns in workflow design
- Verify proper use of TypedDict and Annotated fields
- Generate workflow visualizations for clarity
- Provide actionable recommendations for fixes
Validation Process:
Step 1: Discover and Read Workflow Files
- Use Glob to find Python files containing "StateGraph" or "langgraph"
- Read identified files to analyze structure
- Identify state class definition, nodes, and edges
Step 2: Validate State Schema Check:
- State is defined as TypedDict
- Field types are properly annotated
- Annotated fields use correct reducers (operator.add, custom functions)
- No mutable default values
- Field names are descriptive and consistent
Common issues:
# ❌ Bad: Mutable default
class State(TypedDict):
items: list # Should be List with type
# ✅ Good
class State(TypedDict):
items: List[str]
# ❌ Bad: Should be append-only
messages: List[BaseMessage]
# ✅ Good
messages: Annotated[List[BaseMessage], operator.add]
Step 3: Validate Node Functions Check each node for:
- Returns dictionary with state updates
- Does not mutate state directly
- Declared before being added to graph
- Type hints match state schema
- Error handling present for external calls
Anti-patterns:
# ❌ Mutates state directly
def bad_node(state):
state["messages"].append(msg) # Direct mutation
return state
# ✅ Returns updates
def good_node(state):
return {"messages": [msg]} # Returns update dict
Step 4: Validate Edge Connectivity Check:
- All nodes are reachable from entry point
- No orphaned nodes (nodes with no incoming edges)
- All paths eventually reach END or loop back
- Conditional edges have complete routing mappings
- No missing route keys in conditional edge dictionaries
Graph structure issues:
# ❌ Orphaned node
workflow.add_node("process", process_func)
# "process" never connected to graph
# ❌ Missing route key
workflow.add_conditional_edges("classify", router, {
"path_a": "node_a"
# Missing "path_b" that router might return
})
# ✅ Complete connectivity
workflow.set_entry_point("start")
workflow.add_edge("start", "process")
workflow.add_edge("process", END)
Step 5: Validate Conditional Routing Check:
- Router functions return strings matching route mapping keys
- Router functions are deterministic
- All possible return values are handled in mapping
- Router functions handle edge cases (empty state, missing fields)
Router issues:
# ❌ Missing default case
def risky_router(state):
if state["score"] > 0.8:
return "high"
elif state["score"] > 0.5:
return "medium"
# What if score <= 0.5? Missing "low" case
# ✅ Complete routing
def safe_router(state):
score = state.get("score", 0) # Handle missing field
if score > 0.8:
return "high"
elif score > 0.5:
return "medium"
return "low" # Default case
Step 6: Check for Common Anti-Patterns
Detect and flag:
- State mutation - Nodes modifying state directly instead of returning updates
- Missing END nodes - Workflows without termination
- Infinite loops - Loops without exit conditions
- Large state objects - Storing LLM instances, databases in state
- Inconsistent field names - Using "msg" in one place, "message" in another
- Missing error handling - No try-catch for external API calls
- Hardcoded values - API keys, URLs in code instead of config
- Redundant nodes - Nodes that just pass state through
Step 7: Generate Visualization
If workflow is valid enough, generate Mermaid diagram:
# Create visualization script
python -c "
from langgraph.graph import StateGraph
# Import and create graph
workflow = create_graph()
print(workflow.get_graph().draw_mermaid())
"
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.
- 3mo ago First seen · 262 lines · 0 tokens per session scan A 79d2da77088d
workflow-validator is an agent published in the GitHub repository postindustria-tech/agentic-toolkit (2 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,840 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-31.
workflow-validator compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| workflow-validatorpostindustria-tech/agentic-toolkit | Agent | 2 | 1mo ago | MIT | A | 0 | Claude Code |
| php-developerdavepoon/buildwithclaude | Agent | 3.8k | today | MIT | A | 51 | Claude Code |
| backend-reviewerjeremylongshore/tons-of-skills-marketplace | Agent | 3.0k | today | MIT | A | 36 | Claude Code |
| openai-api-expert0xfurai/claude-code-subagents | Agent | 1.0k | 23d ago | MIT | A | 23 | Claude Code |
| integrations-engineeravelikiy/great_cto | Agent | 117 | 14d ago | MIT | A | 106 | Claude Code |
| gatetonone-ai/tonone | Agent | 84 | 3d ago | MIT | A | 19 | Claude Code |
| broadcasting-agentSofttor/nestjs-hexagonal | Agent | 5 | 15d ago | MIT | A | 58 | Claude Code |