restate-workflows
БесплатноБез исполняемых скриптовНе проверенCompatibility alias for substrate-specific ADR-0217 runtime bridge work. For new work, load `workflow-rig` first; use this skill only when the task is…
от joelhooks★ 69 звёзд на GitHubОб этом скилле
Restate Workflows
This skill is now a compatibility alias for substrate work.
For new work, load workflow-rig first. Use this skill only when the real problem is the runtime bridge itself: external repo submission, queue-family contracts, or low-level ADR-0217 substrate mechanics.
The boundary is the joelclaw CLI.
Do not reach into Redis directly. Do not import private joelclaw packages. Do not pretend the other repo knows internal queue schemas unless you have explicitly verified them.
The runtime shape
ADR-0217 currently reads best as:
- Redis is the pressure layer — queue admission, bursts, pause/resume, family control
- Dkron is the clock — scheduled starts
- Restate is the durable executor — workflow identity, retries, DAG progress
- Sandboxed runners are the side-effect boundary — isolated code-changing work
An external repo should integrate at the edge, not by coupling itself to the middle.
That means:
- submit saved workload artifacts through
joelclaw workload runwhen the work has already been shaped at the workload layer - use
joelclaw queue emitonly as the low-level escape hatch for verified raw queue families - carry enough metadata for idempotency and tracing
- let joelclaw decide how that request reaches Restate or a sandbox runner
When to use
Use this skill when a user asks for any of these:
- "send work to the queue"
- "have this repo request background work"
- "bridge this repo into joelclaw"
- "submit sandboxed work"
- "emit a workflow request"
- "wrap joelclaw queue emit"
- "run this in Restate from another repo"
Non-negotiable rules
- CLI boundary only. Prefer
joelclaw workload runfor approved workload artifacts; usejoelclaw queue emitonly when you are intentionally working at the raw queue-family layer. - Never talk to Redis directly from the external repo.
- Never depend on private joelclaw internals (
@joelclaw/*, Redis keys, internal TypeScript types, worker-only contracts) unless the repo itself is the joelclaw monorepo. - Keep changes inside the calling repo. Build a wrapper in that repo; do not assume you can edit joelclaw at the same time.
- Inspect live help first. The CLI contract wins over memory.
- Prefer explicit workflow families. If there is no verified family for the job, stop and document the proposed family/contract instead of guessing silently.
- Machine-readable output by default. The wrapper should return stable JSON that callers can parse.
- Support dry-run. The repo should be able to show the exact request without enqueuing it.
First steps
Run these before designing the bridge:
joelclaw workload run --help
joelclaw queue --help
joelclaw queue emit --help
If the target repo is supposed to monitor results too, also inspect:
joelclaw jobs status --hours 1 --count 10
joelclaw queue observe --hours 1
If you are unsure whether a workflow family already exists, search docs or ask instead of inventing one.
What to build in the external repo
The default deliverable is a thin wrapper command/module/script around joelclaw workload run when the repo can produce a saved workload artifact. Fall back to joelclaw queue emit only when you have a verified low-level family and there is no workload artifact to bridge.
Good shapes:
scripts/request-work.tsbin/request-background-worksrc/lib/joelclaw/requestWorkflow.tssrc/cli/restate-workflow.ts
Bad shape:
- raw shell one-liners scattered across the repo with no contract doc or tests
Minimum request payload
Every request payload should include these fields unless the target family has a stricter contract:
{
"idempotencyKey": "repo-name:task-type:base-sha:input-hash",
"requestId": "uuid-or-stable-derived-id",
"repo": {
"path": "/abs/path/or/null",
"url": "[email protected]:owner/repo.git",
"name": "repo-name",
"baseSha": "abc123",
"branch": "main"
},
"task": {
"kind": "sandboxed-change",
"prompt": "what the runtime should do",
"artifacts": ["patch", "test-report", "summary.json"]
},
"caller": {
"source": "external-repo-name",
"requestedBy": "human-or-agent",
"sessionId": "optional-session-id",
"callback": {
"kind": "poll",
"target": "joelclaw jobs status"
}
},
"meta": {
"dryRun": false,
"createdAt": "2026-03-08T05:00:00.000Z"
}
}
Required semantics
idempotencyKeymust be stable for the same intended work requestbaseShamust reflect the code the sandbox should start frompromptmust say what success looks likeartifactsmust list what the caller expects backcaller.sourcemust identify who emitted the request
Emission pattern
The wrapper should construct JSON, then call the CLI.
Example pattern:
joelclaw queue emit <event-family> --data '<json>'
Example Node/Bun sketch:
import { spawn } from "node:child_process";
export
Установить restate-workflows в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл restate-workflows?
Compatibility alias for substrate-specific ADR-0217 runtime bridge work. For new work, load `workflow-rig` first; use this skill only when the task is explicitly about external-repo bridging, queue-family contracts, or low-level runtime submission mechanics.
Как установить скилл restate-workflows?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл restate-workflows запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic