Flow Template Generator banner
zhao-wuyan zhao-wuyan

Flow Template Generator

Productivity community intermediate

Description

Generate workflow templates for meta-skill/flow-coordinator.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

Repository README

This is the README for zhao-wuyan/ccw-command-explorer, shared by 5 entries in this directory. It describes the repository, not this entry specifically.

Flow Template Generator

Generate workflow templates for meta-skill/flow-coordinator.

Usage

/meta-skill:flow-create [template-name] [--output ]

**Examples**:

/meta-skill:flow-create bugfix-v2
/meta-skill:flow-create my-workflow --output ~/.claude/skills/my-skill/templates/

Execution Flow

User Input → Phase 1: Template Design → Phase 2: Step Definition → Phase 3: Generate JSON
                ↓                            ↓                           ↓
         Name + Description           Define workflow steps        Write template file

Phase 1: Template Design

Gather basic template information:

async function designTemplate(input) {
  const templateName = parseTemplateName(input) || await askTemplateName();

  const metadata = await AskUserQuestion({
    questions: [
      {
        question: "What is the purpose of this workflow template?",
        header: "Purpose",
        options: [
          { label: "Feature Development", description: "Implement new features with planning and testing" },
          { label: "Bug Fix", description: "Diagnose and fix bugs with verification" },
          { label: "TDD Development", description: "Test-driven development workflow" },
          { label: "Code Review", description: "Review cycle with findings and fixes" },
          { label: "Testing", description: "Test generation and validation" },
          { label: "Issue Workflow", description: "Complete issue lifecycle (discover → plan → queue → execute)" },
          { label: "With-File Workflow", description: "Documented exploration (brainstorm/debug/analyze)" },
          { label: "Custom", description: "Define custom workflow purpose" }
        ],
        multiSelect: false
      },
      {
        question: "What complexity level?",
        header: "Level",
        options: [
          { label: "Level 1 (Rapid)", description: "1-2 steps, ultra-lightweight hotfix" },
          { label: "Level 2 (Lightweight)", description: "2-4 steps, quick implementation" },
          { label: "Level 3 (Standard)", description: "4-6 steps, with verification and testing" },
          { label: "Level 4 (Full)", description: "6+ steps, brainstorm + full workflow" }
        ],
        multiSelect: false
      }
    ]
  });

  return {
    name: templateName,
    description: generateDescription(templateName, metadata.Purpose),
    level: parseLevel(metadata.Level),
    purpose: metadata.Purpose
  };
}

Phase 2: Step Definition

Step 2.1: Select Command Category

async function selectCommandCategory() {
  return await AskUserQuestion({
    questions: [{
      question: "Select command category",
      header: "Category",
      options: [
        { label: "Planning", description: "lite-plan, plan, multi-cli-plan, tdd-plan, quick-plan-with-file" },
        { label: "Execution", description: "execute, unified-execute-with-file" },
        { label: "Testing", description: "test-fi