aurostack-org/stacks/add-workflow
Claude Code and agent skill by aurostack-org/stacks
- community
Checking that the SKILL.md file is still in the repository.
Add a Temporal workflow and its activities to this worker — durable, multi-step work the API starts by name (onboarding sequences, provisioning, refunds, anything that waits or must not half-happen). Use when asked to "add a workflow", "make this durable", or when the API's TemporalService starts a workflow type this worker does not have yet.
Install
npx vskill@latest install aurostack-org/stacks/add-workflowSKILL.md
The same SKILL.md was published earlier as aurostack-org/stacks/add-workflow.
Add a Temporal workflow
The examples are src/temporal/workflows/index.ts (example) and src/temporal/activities/index.ts. Use BullMQ (add-worker) instead when one function call that can be retried from the top is enough.
- Activities first, in
src/temporal/activities/index.ts: each real side
effect (a database write, an email, an HTTP call) is one exported async function.
- Throw on failure; Temporal retries it with the workflow's retry policy.
- Make it safe to run twice: an activity can be retried after it did its
work but before Temporal recorded that.
- Log with
logfrom@temporalio/activity; sleep with
Context.current().sleep, which is cancellation-aware.
- They are registered automatically (
import * as activities).
- The workflow, exported from
src/temporal/workflows/index.ts. The
export name is the workflow type the API starts.
```ts const { sendWelcome, checkActivated, sendNudge } = proxyActivities<typeof activities>({ startToCloseTimeout: '1 minute', retry: { maximumAttempts: 5 } });
export async function onboarding(input: { userId: string }): Promise<void> { await sendWelcome(input.userId); await sleep('3 days'); if (!(await checkActivated(input.userId))) await sendNudge(input.userId); } ```
- Deterministic only: no I/O, no
Date.now(), noMath.random(), no
imports that touch the network or filesystem. Use sleep and the workflow APIs; put everything else in an activity.
- Inputs and outputs are plain JSON-serialisable values.
- Match the API: the API starts it by name on
TEMPORAL_TASK_QUEUE. That
queue, TEMPORAL_ADDRESS and TEMPORAL_NAMESPACE must be the same on both sides, or the workflow waits forever unclaimed.
- Check:
yarn typecheck && yarn lint; runyarn devwith a local
Temporal, start the workflow from the API, and follow it in the Temporal UI.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingtemplates/node-worker/files/.claude/skills/add-workflow/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aurostack-org/stacks/add-workflow)