Contract
- Input: problem or task defined by the skill body.
- Output: Markdown artifact or structured result with completion criteria met.
- Side effects: none (design/review/documentation only unless explicitly stated).
- Dependencies: none (self-contained unless linked to other skills).
- Stop condition: all process steps completed; artifact saved; criteria checked.
- Risk: low.
- Boundary: produces reasoning or documentation artifacts; does not modify external systems unless explicitly instructed.
Queueing
Use this skill when work leaves the request path and becomes background processing. It should define where durability starts, how retries behave, and what happens when the queue or worker misbehaves.
Contract
- Input: queue brief, background flow, and delivery constraints.
- Output: queue seam proposal, retry guidance, and recovery posture.
- Scope: design the queue shape, not the worker implementation.
- Rule: keep enqueue/dequeue responsibilities explicit.
- Rule: call out retry limits, dead-letter handling, and visibility requirements.
- Rule: prefer a design that survives worker restarts and partial failures.
Steps
- Identify the background job's lifecycle.
- Define the enqueue/dequeue seam.
- Specify retry and dead-letter behavior.
- Note the observability required to keep the flow recoverable.
Completion criteria
- the queue seam is named
- the retry policy is named
- the recovery posture is explicit