workflows-simplify-cli
Installation
SKILL.md
Simplifying a workflow
Analyze the current workflow and suggest concrete simplifications to reduce complexity, improve reliability, and lower costs.
Process
- Read the workflow using
clay workflows graph get <workflowId> --mode fullto get all node details - Analyze each node against the simplification checklist below
- Present findings as a prioritized list of suggestions with specific changes, alongside a render of the current graph (
clay workflows diagram <workflowId>) so the user can see which nodes each suggestion affects - Apply authorized changes — edit the workflow only when the user's request authorizes modifications, via
clay workflows nodes update/create/delete. Once authorized, apply clearly behavior-preserving improvements as you go and ask before changes with a material behavior or quality trade-off - Show the result — after applying, run
clay workflows graph format <workflowId>and render the updated graph so the simplification is visible, not just described
Narrate throughout and prefer the diagram over raw node JSON — see the workflows-cli skill's presenting.md.
Simplification Checklist
Replace LLM nodes with code nodes
Regular (LLM) nodes cost an LLM call per execution. Many can be replaced with deterministic code: