workflow

Create project-local delivery workflow templates and run or resume those workflows as the main controller by orchestrating existing `agent-team` commands without modifying `agent-team`. Use when the user asks to create workflow files, run `workflow.yaml`, resume blocked workflow runs, manage `run-state.yaml`, or model dev-first, test-first, or limited-branch controller approval flows across roles.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "workflow" with this command: npx skills add jsonlee12138/agent-team/jsonlee12138-agent-team-workflow

Workflow

Overview

Create and execute controller-side delivery workflows that sit above agent-team. Keep workflow templates reusable, keep run state separate, and use the Go-based agent-team workflow helpers in this repository for template generation, validation, and run-state persistence.

Hard Rules

  • Act as the main controller only. Do not use this skill inside a worker session.
  • Do not modify agent-team source code, config schema, or internal protocol.
  • Require an approved brainstorming/design artifact before writing a new workflow file.
  • Keep template files and run-state files separate at all times.
  • Use existing agent-team commands as the only execution backend.
  • Persist state after every node transition and before every pause or confirmation gate.

Default Paths

Use these defaults unless the user explicitly chooses another project-local path:

  • Workflow templates: .agents/workflow/<workflow-name>.yaml
  • Run-state files: .agents/workflow/runs/<workflow-name>/<run-id>.yaml

Prefer a single reusable workflow template and one run-state file per execution.

Action Routing

Create Workflow

Use this flow when the user asks to create a workflow file.

  1. Verify there is an approved brainstorming/design artifact.
  2. If no approved design exists, stop and invoke brainstorming first.
  3. Choose the smallest preset that matches the design:
    • branching for controller dispatch with explicit dev_first / test_first
    • dev-first for a linear implement-then-verify loop
    • test-first for tests-before-implementation
  4. Generate the template with agent-team workflow create.
  5. Validate it immediately with agent-team workflow validate.
  6. Summarize the generated roles, entry node, branches, and output path.

Example:

agent-team workflow create feature-delivery \
  --preset branching \
  --output .agents/workflow/feature-delivery.yaml

agent-team workflow validate .agents/workflow/feature-delivery.yaml

Run Workflow

Use this flow when the user asks to run workflow.yaml, resume a run, or inspect workflow progress.

  1. Validate the workflow template before execution.
  2. Initialize run state with agent-team workflow state init unless resuming an existing run.
  3. Resolve each workflow role alias to a concrete worker at runtime.
  4. Create or reuse workers with agent-team worker create and agent-team worker open.
  5. Execute the current node, then persist state with agent-team workflow state ....
  6. Pause on worker wait states, ambiguous outcomes, or controller confirmations.
  7. Resume by reading the run-state file and continuing from current_node.

Example bootstrap:

agent-team workflow validate .agents/workflow/feature-delivery.yaml
agent-team workflow state init .agents/workflow/feature-delivery.yaml

Execution Loop

Follow this controller loop for every run:

  1. Read the template and current run-state.
  2. Start the current node with agent-team workflow state start.
  3. Execute the node action:
    • controller_task: do the task directly, then complete or confirm it.
    • assign_role_task: assign work to the mapped worker with agent-team worker assign.
    • wait_for_completion: inspect worker status or wait for worker feedback.
    • decision: choose an explicit branch outcome and record it.
    • handoff: assign the follow-up task to the next role and capture the transfer in state.
    • verify_or_test: run verification or dispatch QA verification, then branch on outcome.
    • merge: run agent-team worker merge <worker-id> only after explicit controller approval.
  4. Persist one of these outcomes:
    • wait when waiting on worker feedback or external verification
    • block when the run cannot advance without controller intervention
    • complete when the node finishes and can auto-advance
    • confirm when a confirmation gate is satisfied and a branch is selected
  5. Stop when the run state becomes completed or blocked.

Worker Preparation

Before the first role-backed node executes:

  1. Confirm every referenced role exists locally or can be installed.
  2. If a role is missing and must be created, follow the role-creator contract instead of authoring role files manually.
  3. Confirm whether to reuse an existing worker or create a new worker for each role alias.
  4. Open worker sessions before assignment so replies can flow back to the controller.

agent-team commands are the bridge layer:

agent-team worker create <role-name>
agent-team worker open <worker-id>
agent-team worker assign <worker-id> "<task>"
agent-team worker status
agent-team reply <worker-id> "<answer>"
agent-team worker merge <worker-id>

Confirmation And Branching

  • Treat requires_confirmation: true as a hard pause.
  • Do not auto-select a branch when worker feedback is ambiguous.
  • Prefer workflow-defined branch labels such as test_first, dev_first, passed, and failed.
  • Re-run a completed node only when the controller explicitly asks for a retry.

Use agent-team workflow state confirm to resolve confirmation nodes deterministically.

References

Commands

  • agent-team workflow create: generate a starter workflow template from a supported preset.
  • agent-team workflow validate: fail-fast validation for workflow structure and node references.
  • agent-team workflow state ...: initialize, inspect, and update run-state files during execution.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

agent-team

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

role-creator

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

brainstorming

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

frontend-architect

No summary provided by upstream source.

Repository SourceNeeds Review