workflow-cache

Save up to 90% on Token costs. One agent explores, all agents benefit. Cloud-cached workflows with zero inference cost.

3,891 stars

Best use case

workflow-cache is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Save up to 90% on Token costs. One agent explores, all agents benefit. Cloud-cached workflows with zero inference cost.

Teams using workflow-cache should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/workflow-cache/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/ainclaw/workflow-cache/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/workflow-cache/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How workflow-cache Compares

Feature / Agentworkflow-cacheStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Save up to 90% on Token costs. One agent explores, all agents benefit. Cloud-cached workflows with zero inference cost.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Workflow Cache

**One agent explores, all agents benefit.**

A crowdsourced workflow registry that caches successful automation patterns, letting you skip LLM inference entirely when a matching workflow exists.

## Why Use This?

### 1. Save Real Money

Traditional approach: LLM explores and reasons through every step, burning tokens on trial-and-error.

Our approach: Query the cloud for a cached workflow. If found, execute directly. **Zero inference cost.**

**Token savings example (10-step browser task):**
- Traditional: ~5000 tokens
- Workflow Cache: ~800 tokens
- **Savings: 80%+**

The more complex the task and the more you repeat it, the more you save.

### 2. Skip the Debugging Hell

The painful part of AI automation isn't writing the script—it's the endless debugging when:
- The website changes its layout
- Selectors break unexpectedly
- Edge cases you didn't anticipate

**Workflow Cache solves this:**
- Every successful workflow from any agent is cached
- When websites change, cached workflows auto-update
- You never debug the same problem twice

### 3. Platform Agnostic

Works with any Claw/Lobster engine. One workflow, all platforms. Automatic syntax adaptation.

## How It Works

```
User Intent → Query Cloud → Match Found?
                                ↓ Yes        ↓ No
                          Execute Now    Normal Flow
                          (1 second)     (LLM reasons)
                                ↓              ↓
                          Success!      Success → Contribute
```

**One agent's success becomes every agent's shortcut.**

## Features

### Interceptor
Queries the cloud before LLM inference. On match, replays the cached workflow directly.

### Trace Compiler
Converts successful session traces into reusable Lobster workflows automatically.

### PII Sanitizer
Local-first privacy. All sensitive data stays local. Only workflow patterns are shared.

## Configuration

| Option | Type | Default | Description |
|--------|------|---------|-------------|
| `cloud_endpoint` | string | `https://api.workflowcache.dev` | Cloud API endpoint |
| `enabled` | boolean | `true` | Enable/disable interception |
| `auto_contribute` | boolean | `true` | Auto-contribute successful workflows |
| `timeout_ms` | number | `300` | API timeout (ms) |

## Installation

```bash
npx clawhub install workflow-cache
```

Or manually:

```bash
cd ~/.qclaw/workspace/skills/workflow-cache
npm install
npm run build
```

## Security

- Full PII sanitization pipeline
- No account credentials ever uploaded
- Multi-node security validation on all workflows
- Malicious injection detection and blocking

## Who Is This For?

- **Heavy AI users** — Daily automation, high token bills
- **Cost-conscious developers** — Every token saved is money saved
- **Automation enthusiasts** — Stop reinventing wheels
- **Efficiency maximalists** — Why reason when you can replay?

## License

MIT-0 — Free to use, modify, and redistribute. No attribution required.

---

**Tags:** `#AI-efficiency` `#token-saver` `#automation` `#crowdsourced` `#workflow-cache`

Related Skills

n8n Workflow Mastery — Complete Automation Engineering System

3891
from openclaw/skills

You are an expert n8n workflow architect. You design, build, debug, optimize, and scale n8n automations following production-grade methodology. Every workflow you create is complete, functional, and follows the patterns in this guide.

Workflow & Productivity

memory-cache

3891
from openclaw/skills

High-performance temporary storage system using Redis. Supports namespaced keys (mema:*), TTL management, and session context caching. Use for: (1) Saving agent state, (2) Caching API results, (3) Sharing data between sub-agents.

General Utilities

n8n-workflow-automation

3891
from openclaw/skills

Designs and outputs n8n workflow JSON with robust triggers, idempotency, error handling, logging, retries, and human-in-the-loop review queues. Use when you need an auditable automation that won’t silently fail.

Workflow & Productivity

swarm-workflow-protocol

3891
from openclaw/skills

Multi-agent orchestration protocol for the 0x-wzw swarm. Defines spawn logic, relay communication, task routing, and information flow. Agents drive decisions; humans spar.

Workflow & Productivity

agentic-workflow-automation

3891
from openclaw/skills

Generate reusable multi-step agent workflow blueprints. Use for trigger/action orchestration, deterministic workflow definitions, and automation handoff artifacts.

Workflow & Productivity

workflow-agent

3891
from openclaw/skills

选择并改写 ComfyUI 工作流模板,输出可直接提交到 ComfyUI API 的完整 JSON。当需要准备渲染任务、选择模型、调整参数时触发。

byt-workflow

3891
from openclaw/skills

YouTube video translation workflow, download audio, launch Doubao, play audio, capture translation

banner-youtube-translate-workflow

3891
from openclaw/skills

Complete workflow: download YouTube audio, launch Doubao, play audio, capture translation. Activates when user needs full video translation.

ayao-workflow-agent

3891
from openclaw/skills

Multi-agent workflow orchestrator for coding, writing, analysis, and image tasks via tmux-driven Claude Code and Codex agents. Use when: (1) user requests a feature/fix that should be delegated to coding agents, (2) managing parallel coding tasks across front-end and back-end, (3) monitoring active agent sessions and coordinating review, (4) user says 'start task', 'assign to agents', 'swarm mode', or references the ayao-workflow-agent playbook. NOT for: simple one-liner edits (just edit directly), reading code (use read tool), or single quick questions about code.

dify-workflow

3891
from openclaw/skills

Use when creating, editing, debugging, or validating Dify workflow DSL for self-hosted Dify. Start from an exported workflow of the target instance, edit minimally, and verify by re-importing.

mixcache-ebook-search-suggester

3891
from openclaw/skills

When a user wants ebooks on a topic (or asks where to find ebooks about something), suggest Mixcache search result pages by generating one or more Mixcache book-search URLs using GET queries in the format: https://mixcache.com/books/search?q=<query>

muapi-workflow

3891
from openclaw/skills

Build, run, and visualize multi-step AI generation workflows. The AI architect translates natural language descriptions into connected node graphs — chain image generation, video creation, enhancement, and editing into automated pipelines.