workflows-simplify

Clay workflows simplification via the `clay workflows` CLI: merge redundant nodes, reduce unnecessary complexity, and replace LLM nodes with deterministic alternatives where possible.

Last repository push
GitHub Stars
158
Forks
27
Issues / PRs
10

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "workflows-simplify" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-8acaeaf95504b270487692f3da3aff596e32c296caba2be924522420a2e5099f. Verify the upstream source and version against https://github.com/clay-run/agent-plugins before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Clay workflows simplification via the `clay workflows` CLI: merge redundant nodes, reduce unnecessary complexity, and replace LLM nodes with deterministic alternatives where possible.

0 Downloads

Introduction source: third_party · clay-run · 0.0.1 Reference

SkillPi interpretation

Tasks
Clay workflows — simplify a workflow via the CLI (`clay workflows` commands): merge redundant nodes, cut unnecessary complexity, and replace LLM nodes with deterministic alternatives where possible.
Inputs and outputs
When a downstream node needs specific typed data from an upstream node: Add `outputSchema` to the upstream node On the downstream agent node, pin each input via `sourceNodeId`/`sourcePath` inline on the `inputSchema` property (see the `workflows` skill's `data-passing.md`) This preserves exact values across nodes
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: workflows-simplify
description: 'Clay workflows — simplify a workflow via the CLI (`clay workflows` commands): merge redundant nodes, cut unnecessary complexity, and replace LLM nodes with deterministic alternatives where possible.'

Simplifying a workflow

Analyze the current workflow and suggest concrete simplifications to reduce complexity, improve reliability, and lower costs.

Process

  1. Read the workflow using clay workflows graph get <workflowId> --mode full to get all node details
  2. Analyze each node against the simplification checklist below
  3. 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
  4. 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
  5. 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 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:

  • Data transformation — extracting fields, reformatting JSON, string manipulation → code node
  • Simple routing — if the decision can be expressed as rules on data fields → conditional node (rules mode)
  • Calculations — math, aggregation, counting → code node
  • Template filling — constructing strings from known fields → code node

Ask: "Does this node require creative reasoning, or could a Python function do the same thing?"

Merge sequential nodes

Two adjacent nodes can often be combined into one if:

  • Node A passes all its output to Node B, and Node B doesn't add new tools or branching
  • Both nodes use the same model and could be described in a single prompt
  • One node just reformats the other's output

Ask: "Would combining these prompts into one still produce the same result?"

Remove unnecessary nodes

  • Nodes that just pass data through without transformation
  • Conditional nodes with only one possible outcome

Pin typed inputs deterministically

When a downstream node needs specific typed data from an upstream node:

  • Add outputSchema to the upstream node
  • On the downstream agent node, pin each input via sourceNodeId/sourcePath inline on the inputSchema property (see the workflows skill's data-passing.md)
  • This preserves exact values across nodes

Simplify tool usage

  • If a node has tools it never uses, remove them (reduces prompt size and cost)
  • If a node calls one tool and passes the result, consider making it a code node with context.call_tool()

Use code mode for conditional and map nodes

  • Conditional nodes: prefer rules or code mode over agentic mode when the decision logic is expressible programmatically
  • Map nodes: prefer code mode over agent mode when processing is deterministic

Output Format

Present suggestions as:

  1. What to change — specific node(s) affected
  2. Why — what complexity or cost this removes
  3. How — the concrete edit (new node type, merged prompt, code snippet)

Pair the suggestion list with the current-graph render so each affected node is easy to locate. For analysis or recommendation requests, present the suggestions without editing. If the user asks you to modify the workflow, apply clearly behavior-preserving improvements as you identify them and state your assumptions. Ask only when an edit has a meaningful behavior or quality trade-off. Then run clay workflows graph format <workflowId> and show the updated graph so the user can see the before/after difference.

Version history

  1. clay-cli-v1.22.0 GitHub ↗
    Original release notes

    Standalone Clay CLI 1.22.0 binaries, consumed by the Clay agent plugin. ## What's new - `clay ad-syncs trigger <adSyncId>` starts an export of an ad sync’s audience to its destinations: a draft’s first trigger starts the sync, later triggers run it again, and a paused sync resumes. - When a command fails because of a plan limit, the agent shows the upgrade link from the error and offers a way to continue without the gated feature. - Various bug fixes and stability improvements.

  2. clay-cli-v1.21.0 GitHub ↗
    Original release notes

    Standalone Clay CLI 1.21.0 binaries, consumed by the Clay agent plugin. ## What's new - `clay knowledge-hub skills create` saves agent skills to the workspace and resolves duplicate names without overwriting existing skills. - Various bug fixes and stability improvements.

  3. clay-cli-v1.20.0 GitHub ↗
    Original release notes

    Standalone Clay CLI 1.20.0 binaries, consumed by the Clay agent plugin. ## What's new - `clay workflows runs bulk pause`, `resume`, and `stop` control many runs; `clay workflows triggers list` lists assignments and schedules, and `update --resume-paused-runs` resumes paused runs with a trigger. - `clay workflows groups publish-as-function` creates reusable functions; the Workflows and Enhanced Match skills guide Classify routing and hashed-email enrichment, and `clay workflows runs get` shows waterfall provider names. - `clay audiences activities` reads and summarizes record activities, retrieves Gong transcripts, and searches call content; `clay audiences records get` includes related-record references. - `clay searches query-mode reference --sections` retrieves selected reference sections. - Various bug fixes and stability improvements.

  4. clay-cli-v1.19.0 GitHub ↗
    Original release notes

    Standalone Clay CLI 1.19.0 binaries, consumed by the Clay agent plugin. ## What's new - `clay workflows nodes insert --help` describes the Classify step: a Use AI step that sorts each record into one of a fixed set of categories with GPT 6 Luna or Jev, ready to branch on the chosen category. - `clay ad-syncs destinations delete` removes a destination from a paused or failed ad sync, not only a draft. - `clay searches preview` output includes `preview.isCurrent`, which says whether the stored preview still matches the search's current configuration. - Various bug fixes and stability improvements.

  5. clay-cli-v1.18.0 GitHub ↗
    Original release notes

    Standalone Clay CLI 1.18.0 binaries, consumed by the Clay agent plugin. ## What's new - `clay workflows runs steps` accepts `--omit-payloads` to list steps without their input and output data, and `--step-ids s1,s2` to fetch selected steps using comma-separated IDs, up to 50 per request. - Various bug fixes and stability improvements.

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 直接解决用户工作流优化核心痛点,显著提升效率并降低成本
  • 提供具体检查清单与行为保留改进策略,实用性强
Trigger Precision95/100

Highlights

  • 触发词精准完整,覆盖多种变体,边界清晰
Structure and Standards95/100

Highlights

  • Phase/步骤清晰,有出口条件,含端到端示例,frontmatter完整
Execution Reliability95/100

Highlights

  • 工具来源明确,参数正确,覆盖主要异常,不可逆操作有确认机制
Evidence Verifiability (mean of the first four)95/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.