Install
openclaw skills install workflowhubUse when the user wants OpenClaw or Codex to remember their way of working as reusable SOPs, workflows, queues, or "how I do things". Best for repeated multi-step tasks where the agent should proactively check saved workflows before starting, ask whether to reuse an existing SOP when there is a strong match, and ask whether to save or update a workflow after the task.
openclaw skills install workflowhubThis skill treats the user's repeated ways of working as a local workflow library instead of burying them inside a one-off prompt. The workflow file is the source of truth; the agent uses it to match similar requests, generate an execution brief, and ask whether the run should be saved back into the library.
Use this skill when the user says things like:
Do not use this skill for truly one-off tasks or very small requests that do not benefit from storing a reusable process.
The skill works in four phases:
The workflow library should be editable outside the skill. The recommended storage layout is:
.openclaw/workflows/*.json$CODEX_HOME/work-style-memory/workflows/*.jsonPrefer project-local workflows when the process is tied to a repository, team, or codebase. Prefer the global store when the process reflects the user's personal way of working across contexts.
When this skill is active during a normal chat task, the workflow check should happen as part of the agent's task handling flow, not only in the local UI.
When this skill is active, build a candidate list by comparing the current request with saved workflows using:
Behavior rules:
A workflow is not the final prompt. It is structured memory that gets compiled into a short execution brief.
When executing a matched workflow:
Use render_workflow_prompt.py to generate a deterministic draft brief when helpful. Use match_workflows.py when you want a deterministic similarity check against the saved workflow library. Read runtime-behavior.md for the expected preflight behavior during normal chat tasks.
After completing a task, ask whether to save it if any of these are true:
When saving or updating a workflow, record:
Use workflow-template.json as the starting shape. Use new_workflow.py to scaffold a file quickly. Use capture_workflow.py when you want to turn a real task description into a draft workflow quickly. Use save_workflow.py when the user confirms that the task should be saved or used to update an existing workflow.
This skill assumes the workflow library is user-editable. The local UI should edit the same files that the skill reads.
The minimum useful UI has:
This skill bundle includes a runnable MVP UI at ui/server.py, which serves a local editor for the workflow JSON files. The local UI can also:
See local-ui-spec.md for the recommended interface model.
Use JSON for the initial implementation so the files are easy to render, diff, validate, and edit from scripts or a local UI. The schema and field guidance are in workflow-schema.md.
Important conventions:
When a similar request arrives:
pr-review workflow for this. Do you want me to use that SOP?"When no workflow matches: