Stage runtime skill

From infometa/workbuddyskills · View interactive version

Stage runtime skill is an AI agent skill from the GitHub repository infometa/workbuddyskills. Used to query or process existing stage accelerator instances, stages, and tasks. Use when the user mentions stage status, stage tasks, completion, submit after filling, save flow layout form, terminal-state prerequisite task, returned task, move to stage, trigger, reactivate, cancel, change handler

How to use this skill

Skill file

Stage Accelerator Runtime

Scope

Only handles existing stage accelerator instances, stages, tasks, and their runtime data. Do not use it for stage accelerator definitions, nodes, publishing, start or stop, or configuration deletion.

This skill only handles explicitly identified instances, stages, tasks, stage tasks, and business records. Do not treat instance detail, task detail, or validation results as authorization to write.

Tool Routing

| User Intent | Tool | Type | Primary Target | Role |

| --- | --- | --- | --- | --- |

| Validate whether rollback to a target stage is possible | stage_runtime_back-to-validate | Read | workflowInstanceId + stageId | Check whether rollback is allowed; result only, no automatic move |

| Query stage instance by business object | stage_runtime_get-instance-id-by-object-id | Read | entityId + objectId | Resolve the current stage instance from a business record |

| Cancel an entire stage instance | stage_runtime_cancel | Write | entityId + objectId | Cancel the full stage instance for the business record |

| Move to a specific target stage | stage_runtime_move-to | Write | workflowInstanceId + stageId | Move an instance to an explicit target stage |

| Query asynchronous move result | stage_runtime_query-move-to-result | Read | jobId | Query the result of move-to asynchronous execution |

| Validate whether reactivation is allowed | stage_runtime_reactive-validate | Read | workflowInstanceId | Check whether reactivation may proceed; result only, no automatic reactive |

| Reactivate instance and enter a specific stage | stage_runtime_reactive | Write | workflowInstanceId + activeStageId | Reactivate a stage instance and enter the specified stage |

| Trigger a stage instance for a business object | stage_runtime_trigger | Write | entityId + objectId + sourceWorkflowId | Trigger a stage flow on a business record |

| Manually change task handler | stage_runtime_change-task-handler | Write | taskId + candidateIds | Replace current task handlers with explicit user IDs |

| Complete returned task and move to target stage | stage_runtime_complete-back-to-task | Write | workflowInstanceId + stageId | Complete a returned task and move to a stage, with optional default-layout or flow-layout data |

| Complete terminal-state prerequisite task | stage_runtime_complete-terminal-pre-task | Write | taskId | Complete a terminal pre-task with required task data |

| Directly complete a stage task | stage_runtime_complete | Write | taskId | Complete a task without field updates |

| Disassociate task from specified business records | stage_runtime_disassociate | Write | taskId + objectIds | Remove business record associations from the task |

| Only save flow layout form | stage_runtime_edit | Write | taskId | Save flow-layout form data without completing |

| View task details | stage_runtime_get-task-by-id | Read | taskId | Read task status, task data, and writable task context |

| View tasks by instance and stage | stage_runtime_get-tasks-info-by-instance-id-and-stage-id | Read | workflowInstanceId + stageId | Read tasks under a given instance and stage |

| Recalculate stage task assignees | stage_runtime_regenerate-stage-tasks-handler | Write | stageTaskId | Recalculate handlers for a stage task |

| Recalculate runtime task assignees | stage_runtime_regenerate-task-handler | Write | taskId | Recalculate handlers for a runtime task |

| Complete task after updating default layout fields | stage_runtime_update-and-complete | Write | taskId | Update default-layout task data and complete in one call |

Read And Validation Rules

Completion, Editing, And Movement Rules

Regular completion

Use stage_runtime_complete when the task should be completed without changing business fields in the same request.

Default-layout update and complete

Use stage_runtime_update-and-complete when the user needs to update default-layout fields and complete together.

Flow-layout save only

Use stage_runtime_edit only to save flow-layout form data.

Returned task completion

Use stage_runtime_complete-back-to-task when the task is a returned task and the business action is to complete it and move to a target stage.

Terminal pre-task completion

Use stage_runtime_complete-terminal-pre-task only for terminal-state prerequisite tasks.

Rollback and move

Use stage_runtime_move-to only with an explicit target stage.

Reactivation

Before stage_runtime_reactive, first run stage_runtime_reactive-validate.

Async Rules

Write Data Rules

Identifier Contract

Write Secondary Confirmation

Before every write, present a final business-facing preview and wait for an explicit affirmative in a later user message for the same unchanged operation.

Result Reporting

Report the actually executed operation, target, server result, and any read-only verification evidence.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.