workflows-optimize-credits-cli
Installation
SKILL.md
Reducing workflow credit & LLM cost
Analyze the current workflow and suggest changes to reduce credit consumption and LLM costs without sacrificing quality.
Process
- Read the workflow using
clay workflows graph get <workflowId> --mode fullto get all node details - Identify cost drivers — LLM calls, Clay action usage, model selection
- Present optimization opportunities with estimated impact, alongside a render of the current graph (
clay workflows diagram <workflowId>) with the expensive nodes called out so the user can see where the cost lives - 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 safe optimizations as you go and ask before changes with a material quality or behavior trade-off - Show the result — after applying, run
clay workflows graph format <workflowId>and render the updated graph so the change is visible
Narrate throughout and prefer the diagram over raw node JSON — see the workflows-cli skill's presenting.md.
Cost Drivers in Clay Workflows
LLM Calls (biggest cost driver)
Every regular (LLM) node makes at least one LLM call per execution. More capable models cost more.