Temporal Workflow Design Critic
Use this skill to review a Temporal workflow design, spec, architecture document, implementation plan, pseudocode, workflow code, or code-generation output.
This skill is for critique and review, not implementation.
What this skill does
This skill helps you:
- determine whether a use case is a good fit for Temporal
- inspect usage of Temporal primitives
- identify determinism, retry, timeout, event-history, signal-volume, and payload-size risks
- detect anti-patterns and missing design decisions
- evaluate production readiness
- give concrete remediation guidance
- produce consistent review output across designs
When to use this skill
Use this skill when the user asks you to:
- review a Temporal workflow design
- critique a Temporal architecture or implementation plan
- evaluate workflow code or pseudocode against best practices
- assess whether a design is production ready
- identify risks, anti-patterns, or missing decisions in a Temporal-based design
- score or checklist a Temporal design
Do not use this skill for:
- deep debugging of a live production incident
- replacing SDK documentation
- writing the full implementation unless the user explicitly asks for that
- deciding product strategy unrelated to Temporal workflow design
Primary review goal
Prioritize:
- correctness
- operability
- production readiness
Do not demand perfection. Accept reasonable tradeoffs, but clearly flag risks, anti-patterns, and missing information.
Expected inputs
This skill works best when the user provides some combination of:
- deployment model (Temporal Cloud or self-hosted)
- use-case description
- workflow diagram
- workflow code or pseudocode
- Temporal UI execution history
- activity definitions
- signal, query, or update usage
- timeout and retry settings
- task queue and worker topology
- expected scale, volume, and duration
If important inputs are missing, explicitly call that out and mark affected checks as inconclusive.
Review method
When reviewing a design, follow this sequence:
- Decide whether the use case is actually a good fit for Temporal.
- Inspect workflow-level correctness and determinism.
- Evaluate use of Temporal primitives.
- Check event-history growth, payload size, and long-running execution strategy.
- Inspect retries, timeouts, idempotency, and cancellation behavior.
- Evaluate worker topology, task queues, and routing choices.
- Check visibility, versioning, and replay safety.
- Return a structured critique with severity-ranked findings and actionable fixes.
Reference materials
For detailed guidance during review, consult these supporting files:
- rubric.md — Complete review rubric covering Temporal fit, workflows, child workflows, activities, signals, queries, updates, workers, timers, side effects, data converters, visibility, versioning, Continue-As-New, sessions, and storage optimization (sections 1-16).
- checklist.md — Structured pass/fail/inconclusive checklist for all review categories.
- decision-guide.md — Verdict rubric (approve, approve with changes, needs revision, high risk), open questions template, and optional structured JSON output format.
Output contract
Always return results in this structure:
# Workflow Design Critique
## Verdict
- status: approve | approve_with_changes | needs_revision | high_risk
- summary: <1-3 paragraph summary>
## Top Issues
1. [severity] <issue title>
- why it matters
- evidence from design
- recommended fix
## Category Review
### Temporal fit
### Workflows
### Child Workflows
### Activities
### Signals
### Queries
### Updates
### Workers and Task Queues
### Timers / Schedules / Cron
### Data / Payloads / Converters
### Visibility
### Versioning
### Long-running execution
## Open Questions
- <question>
## Checklist Result
- pass/fail/inconclusive per item
Severity levels
Use only these severity levels:
critical — likely to fail, become non-deterministic, exceed limits, or cause production incidents
high — serious design problem likely to impair correctness, scale, or operability
medium — suboptimal design likely to cause friction, cost, or maintenance issues
low — improvement opportunity or missing optimization
info — observation or tradeoff explanation
Default judgments
Apply these defaults unless the design clearly justifies otherwise.
Local activity vs regular activity
Default to regular activities.
Use local activities only when very short execution and high-throughput fan-out justify them.
Child workflow vs activity
Default to activity.
Use child workflows only when partitioning, lifecycle isolation, or routing semantics justify them.
Workflow-to-workflow communication
Acceptable options include:
- signals
- queries
- updates
- Nexus where applicable
- activity-mediated client calls for cross-namespace interaction where needed
Large payload handling
Prefer:
- passing references
- moving data-heavy work into activities
- compression
- explicit handling over hidden remote payload fetches
Large workflow history
Prefer:
- Continue-As-New
- partitioning with child workflows where justified
- reducing per-event data size and message volume
Parallelism
Parallel execution should use async invocation patterns with promise or future collection and later aggregation.
Worker-specific activity queues
Use when capabilities, locality, security, or rate control justify them.
Schedule vs timer
Use timers for relative delays inside workflows.
Use schedules for calendar-based or recurring launches.
Reviewer operating style
When using this skill:
- be specific, practical, and conservative
- do not assume missing details are safe
- distinguish between blocking issues and reasonable tradeoffs
- provide concrete remediation guidance, not vague advice
- clearly separate evidence, risk, and recommendation
- mark missing-information areas as
inconclusive instead of guessing
Anti-pattern catalog
Explicitly call out the following when present.
Critical anti-patterns
- non-deterministic workflow logic
- workflow logic depending directly on external mutable state
- passing large data blobs through workflow history
- activity side effects without idempotency
- signal floods against a single workflow
- search attributes used as business-state storage
- workflow retry policy used to compensate for transient activity failures
High-risk anti-patterns
- child workflows used purely for code organization
- local activities used for long or failure-prone work
- schedules used for one-time delayed starts without need
- cron used where schedules should be used
- missing Continue-As-New strategy in high-volume or long-running workflows
- no replay or versioning strategy
Medium-risk anti-patterns
- identical timeout policies for all activities
- over-fragmented activities causing event-history bloat
- memo or visibility data assumed to be strongly consistent
- arbitrary task queue splitting
Maintainer note
Keep this skill:
- stable enough for repeatable agent use
- readable by humans
- extensible as Temporal features evolve
- opinionated toward production safety
When updating, preserve:
- explicit rules
- default recommendations
- anti-pattern detection
- structured output expectations
- practical review questions
1---2name: temporal-workflow-design-critic3description: Critique, audit, or score a Temporal workflow design for correctness, production readiness, and best-practice compliance. Use when asked to review a Temporal architecture, evaluate whether a design is production ready, identify anti-patterns or risks, assess Temporal fitness for a use case, or give a design a thumbs up/down. Not for writing or debugging Temporal code — use temporal-developer for that.4---56# Temporal Workflow Design Critic78Use this skill to review a Temporal workflow design, spec, architecture document, implementation plan, pseudocode, workflow code, or code-generation output.910This skill is for critique and review, not implementation.1112## What this skill does1314This skill helps you:1516- determine whether a use case is a good fit for Temporal17- inspect usage of Temporal primitives18- identify determinism, retry, timeout, event-history, signal-volume, and payload-size risks19- detect anti-patterns and missing design decisions20- evaluate production readiness21- give concrete remediation guidance22- produce consistent review output across designs2324## When to use this skill2526Use this skill when the user asks you to:2728- review a Temporal workflow design29- critique a Temporal architecture or implementation plan30- evaluate workflow code or pseudocode against best practices31- assess whether a design is production ready32- identify risks, anti-patterns, or missing decisions in a Temporal-based design33- score or checklist a Temporal design3435Do not use this skill for:3637- deep debugging of a live production incident38- replacing SDK documentation39- writing the full implementation unless the user explicitly asks for that40- deciding product strategy unrelated to Temporal workflow design4142## Primary review goal4344Prioritize:45461. correctness472. operability483. production readiness4950Do not demand perfection. Accept reasonable tradeoffs, but clearly flag risks, anti-patterns, and missing information.5152## Expected inputs5354This skill works best when the user provides some combination of:5556- deployment model (Temporal Cloud or self-hosted)57- use-case description58- workflow diagram59- workflow code or pseudocode60- Temporal UI execution history61- activity definitions62- signal, query, or update usage63- timeout and retry settings64- task queue and worker topology65- expected scale, volume, and duration6667If important inputs are missing, explicitly call that out and mark affected checks as `inconclusive`.6869## Review method7071When reviewing a design, follow this sequence:72731. Decide whether the use case is actually a good fit for Temporal.742. Inspect workflow-level correctness and determinism.753. Evaluate use of Temporal primitives.764. Check event-history growth, payload size, and long-running execution strategy.775. Inspect retries, timeouts, idempotency, and cancellation behavior.786. Evaluate worker topology, task queues, and routing choices.797. Check visibility, versioning, and replay safety.808. Return a structured critique with severity-ranked findings and actionable fixes.8182## Reference materials8384For detailed guidance during review, consult these supporting files:8586- [rubric.md](references/rubric.md) — Complete review rubric covering Temporal fit, workflows, child workflows, activities, signals, queries, updates, workers, timers, side effects, data converters, visibility, versioning, Continue-As-New, sessions, and storage optimization (sections 1-16).87- [checklist.md](references/checklist.md) — Structured pass/fail/inconclusive checklist for all review categories.88- [decision-guide.md](references/decision-guide.md) — Verdict rubric (approve, approve with changes, needs revision, high risk), open questions template, and optional structured JSON output format.8990## Output contract9192Always return results in this structure:9394```md95# Workflow Design Critique9697## Verdict98- status: approve | approve_with_changes | needs_revision | high_risk99- summary: <1-3 paragraph summary>100101## Top Issues1021. [severity] <issue title>103 - why it matters104 - evidence from design105 - recommended fix106107## Category Review108### Temporal fit109### Workflows110### Child Workflows111### Activities112### Signals113### Queries114### Updates115### Workers and Task Queues116### Timers / Schedules / Cron117### Data / Payloads / Converters118### Visibility119### Versioning120### Long-running execution121122## Open Questions123- <question>124125## Checklist Result126- pass/fail/inconclusive per item127```128129## Severity levels130131Use only these severity levels:132133- `critical` — likely to fail, become non-deterministic, exceed limits, or cause production incidents134- `high` — serious design problem likely to impair correctness, scale, or operability135- `medium` — suboptimal design likely to cause friction, cost, or maintenance issues136- `low` — improvement opportunity or missing optimization137- `info` — observation or tradeoff explanation138139## Default judgments140141Apply these defaults unless the design clearly justifies otherwise.142143### Local activity vs regular activity144145Default to regular activities.146147Use local activities only when very short execution and high-throughput fan-out justify them.148149### Child workflow vs activity150151Default to activity.152153Use child workflows only when partitioning, lifecycle isolation, or routing semantics justify them.154155### Workflow-to-workflow communication156157Acceptable options include:158159- signals160- queries161- updates162- Nexus where applicable163- activity-mediated client calls for cross-namespace interaction where needed164165### Large payload handling166167Prefer:168169- passing references170- moving data-heavy work into activities171- compression172- explicit handling over hidden remote payload fetches173174### Large workflow history175176Prefer:177178- Continue-As-New179- partitioning with child workflows where justified180- reducing per-event data size and message volume181182### Parallelism183184Parallel execution should use async invocation patterns with promise or future collection and later aggregation.185186### Worker-specific activity queues187188Use when capabilities, locality, security, or rate control justify them.189190### Schedule vs timer191192Use timers for relative delays inside workflows.193194Use schedules for calendar-based or recurring launches.195196## Reviewer operating style197198When using this skill:199200- be specific, practical, and conservative201- do not assume missing details are safe202- distinguish between blocking issues and reasonable tradeoffs203- provide concrete remediation guidance, not vague advice204- clearly separate evidence, risk, and recommendation205- mark missing-information areas as `inconclusive` instead of guessing206207## Anti-pattern catalog208209Explicitly call out the following when present.210211### Critical anti-patterns212213- non-deterministic workflow logic214- workflow logic depending directly on external mutable state215- passing large data blobs through workflow history216- activity side effects without idempotency217- signal floods against a single workflow218- search attributes used as business-state storage219- workflow retry policy used to compensate for transient activity failures220221### High-risk anti-patterns222223- child workflows used purely for code organization224- local activities used for long or failure-prone work225- schedules used for one-time delayed starts without need226- cron used where schedules should be used227- missing Continue-As-New strategy in high-volume or long-running workflows228- no replay or versioning strategy229230### Medium-risk anti-patterns231232- identical timeout policies for all activities233- over-fragmented activities causing event-history bloat234- memo or visibility data assumed to be strongly consistent235- arbitrary task queue splitting236237## Maintainer note238239Keep this skill:240241- stable enough for repeatable agent use242- readable by humans243- extensible as Temporal features evolve244- opinionated toward production safety245246When updating, preserve:247248- explicit rules249- default recommendations250- anti-pattern detection251- structured output expectations252- practical review questions