Back to list
Mission42-ai

creating-workflows

by Mission42-ai

Claude Code plugins for modular development workflows: planning, sprint orchestration, and task execution

0🍴 0📅 Jan 21, 2026

SKILL.md


name: creating-workflows description: Guide for creating sprint workflow definitions. This skill should be used when users want to create a new workflow, modify existing workflows, understand workflow schema, or define phase sequences. Triggers on "create workflow", "new workflow", "workflow definition", "define phases".

Creating Workflows

Guide for authoring sprint workflow definitions in .claude/workflows/.

What is a Workflow?

ConceptDescription
WorkflowYAML file defining execution phases
PhaseIndividual step with prompt or iteration
For-EachPhase that iterates over sprint steps
Template VariablesDynamic values substituted at runtime
Ralph ModeAutonomous goal-driven workflow (no predefined phases)

Workflow Location

.claude/workflows/
├── sprint-default.yaml     # Top-level sprint workflow
├── feature-standard.yaml   # Step-level implementation workflow
├── bugfix-workflow.yaml    # Quick bug fix workflow
└── custom-workflow.yaml    # Your custom workflows

Quick Start

1. Create Workflow File

# .claude/workflows/my-workflow.yaml
name: My Custom Workflow
description: Brief description of workflow purpose

phases:
  - id: first-phase
    prompt: |
      Instructions for first phase.
      {{step.prompt}}

  - id: second-phase
    prompt: |
      Instructions for second phase.

2. Reference in SPRINT.yaml

workflow: my-workflow
steps:
  - Implement feature X
  - Add tests for feature X

Phase Types Decision Tree

Do you need to process multiple sprint steps?
├── YES → Use for-each phase
│         └── for-each: step
│             workflow: step-workflow
│
└── NO → Use simple phase
         └── prompt: "Instructions here"

Workflow Patterns

PatternUse CaseExample
Simple SequentialLinear task flowprepare → execute → verify
For-Each DevelopmentStep iterationdevelopment phase with for-each: step
Nested WorkflowComplex step executionFor-each phase referencing step workflow
HybridMixed phasesSimple + for-each combined
Ralph ModeAutonomous goal-drivenmode: ralph with dynamic steps

Template Variables

VariableAvailable InValue
{{step.prompt}}For-each phasesStep description from SPRINT.yaml
{{step.id}}For-each phasesStep identifier (e.g., step-1)
{{step.index}}For-each phases0-based step index
{{phase.id}}All phasesCurrent phase identifier
{{sprint.id}}All phasesSprint identifier
{{sprint.name}}All phasesSprint name (if set)

Example Workflows

Minimal Workflow

name: Minimal Execute
phases:
  - id: execute
    prompt: "Execute the task: {{step.prompt}}"

Sprint Workflow with For-Each

name: Standard Sprint
phases:
  - id: prepare
    prompt: "Prepare sprint environment"

  - id: development
    for-each: step
    workflow: feature-standard

  - id: qa
    prompt: "Run tests and quality checks"

  - id: deploy
    prompt: "Create PR and finalize"

Ralph Mode Workflows

Ralph Mode enables autonomous goal-driven execution where Claude creates steps dynamically instead of following predefined phases.

Ralph Mode Structure

name: My Ralph Workflow
mode: ralph

goal-prompt: |
  Analyze goal and create steps...

reflection-prompt: |
  Evaluate if goal is complete...

per-iteration-hooks:
  - id: learning
    workflow: "m42-signs:learning-extraction"
    parallel: true
    enabled: false

Per-Iteration Hooks

Hooks are deterministic tasks that run every iteration:

FieldTypeDescription
idstringUnique hook identifier
workflowstringExternal workflow/plugin reference
promptstringInline prompt (alternative to workflow)
parallelbooleanRun non-blocking in background
enabledbooleanDefault enabled state

See references/workflow-schema.md for full Ralph Mode schema.

References

  • references/workflow-schema.md - Complete YAML schema (includes Ralph Mode)
  • references/template-variables.md - All available variables
  • references/phase-types.md - Simple vs for-each phases
  • references/workflow-patterns.md - Common patterns

Assets

  • assets/feature-workflow.yaml - Feature implementation template
  • assets/bugfix-workflow.yaml - Bug fix template
  • assets/validation-checklist.md - Pre-deployment checklist

Validation

Before using a workflow:

  1. Check YAML syntax is valid
  2. Verify all phase IDs are unique
  3. Ensure for-each phases have workflow reference
  4. Confirm referenced workflows exist in .claude/workflows/
  5. Test template variables resolve correctly

Troubleshooting

IssueCauseResolution
Workflow not foundMissing fileCreate in .claude/workflows/
Phase skippedMissing prompt or for-eachAdd required field
Variable not resolvedWrong contextCheck variable availability (step.* only in for-each)
Compilation errorInvalid YAMLValidate YAML syntax
  • orchestrating-sprints - Running and managing sprints
  • creating-sprints - Creating SPRINT.yaml definitions

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon