/clay:workflows-optimize-creditsfrom clay
Analyzes Clay workflows to reduce credit and LLM costs. Identifies expensive patterns and suggests cheaper alternatives via the `clay workflows` CLI.
Ships in clay. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Before using this skill, read the clay entry skill if you haven’t already this session, and follow its access guidance.
Analyze the current workflow and suggest changes to reduce credit consumption and LLM costs without sacrificing quality.
clay workflows graph get <workflowId> --mode full to get all node detailsclay workflows diagram <workflowId>) with the expensive nodes called out so the user can see where the cost livesclay 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-offclay workflows graph format <workflowId> and render the updated graph so the change is visibleNarrate throughout and prefer the diagram over raw node JSON — see the workflows skill's presenting.md.
Every regular (LLM) node makes at least one LLM call per execution. More capable models cost more.
Optimizations:
static or reference input mappings (inputMappingConfig, see the workflows skill's data-passing.md) for parameters that don't need LLM inference. If ALL parameters are pre-mapped, the LLM parameter mapping call is skipped entirelyEach Clay action execution consumes credits based on the action's pricing tier.
Optimizations:
sourceNodeId/sourcePath) instead of calling the action againclay workflows actions list (see /workflows-discover-actions) to compare options and their priority tierDifferent models have different cost/capability profiles.
Optimizations:
Nodes in Repeat mode (listMode: true) multiply costs by the number of items processed.
Optimizations:
Use conditional nodes to skip expensive branches for items that don't need them.
Example:
Instead of: [All items] → [Expensive enrichment] → [Process]
Do this: [All items] → [Conditional: has data?] → Yes → [Process]
→ No → [Enrichment] → [Process]
For each optimization opportunity, present:
Prioritize suggestions by impact (highest savings first). Pair the list with the current-graph render, with the expensive nodes called out, so each is easy to locate.
For analysis or recommendation requests, present the opportunities without editing. If the user asks you to modify the workflow, apply clearly safe savings as you identify them and state your assumptions. Ask only when an optimization has a meaningful quality, cost, or behavior trade-off. Then validate with clay workflows graph format <workflowId> and show the updated graph so the user can see the before/after difference.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
39 skills in this plugin
/ad-syncsClay ad syncs — push an audience segment to ad platforms (LinkedIn, Meta, Google, Bing, Reddit, Vibe) as a custom audience. Use to create, edit, start, pause, or map the fields of an ad sync, or to check its status, match rate, or run history./audiencesClay Audiences — the workspace's own people, companies, and deals (contacts, leads, accounts, customers). Use for any request about their records when no surface is named, including counts, fill rates, lookups ("how many people have a phone?"), saved segments, and field definitions. Also deal and pipeline questions like largest opportunities, biggest pipeline items, recent wins, closed-won, deal stage, and ACV. Also Data hub enrichment configuration, audience assignments, and parity checks. Also the calls and meetings synced onto those records, such as Gong recordings, and which accounts discussed a topic on their calls./clayClay — start here. A table of contents for working with Clay and which skill to use for each thing — audiences (the workspace's own people/companies/deals), sequences (formerly campaigns; create, improve, and analyze outbound email sequences in Sequencer), ad syncs (push audience segments to ad platforms), search (find net-new people/companies), routines (run Clay-managed and custom functions), tables (query/export data), the CLI (ephemeral programmatic access), the Public API (build services on Clay), workflows (build automations), feedback, and getting help — reaching Clay support or a human about billing, refunds, or account problems. Read this first to answer "what can I do with Clay?"/clay-docsUse when the user asks a Clay product question — how a feature works, whether Clay supports or integrates with something, what plans include, security/compliance, or what's new — and the answer isn't operational guidance another skill owns. Answer from Clay's live public documentation, fetched and cited, never from memory./clay-feedbackClay feedback — send a bug report or product feedback to the Clay team via the `clay feedback` CLI./cliClay CLI — the primary scripting surface (JSON output, typed errors). Use when running or discovering `clay` commands. For what Clay can do and which skill to use, read the `clay` skill when it is available; otherwise run `clay --help`. Use `clay --help` for command names, flags, JSON shape, and error codes.npx claudepluginhub clay-run/agent-plugins --plugin clayOther plugins' skills for the same job