Pipeline

From baekenough/oh-my-customcode · View interactive version

Pipeline is an AI agent skill from the GitHub repository baekenough/oh-my-customcode. Invoke and resume YAML-defined pipelines by name — /pipeline auto-dev runs the full release pipeline

How to use this skill

Skill file

/pipeline — Pipeline Invocation

Usage

/pipeline auto-dev          # Run the auto-dev pipeline
/pipeline                   # List available pipelines
/pipeline resume            # Resume a halted pipeline

Behavior

List Mode (no arguments or --list flag)

Execute these steps to display available pipelines:

  1. Scan built-in pipelines: Use Glob("workflows/*.yaml") (NOT templates/) to find all pipeline definitions
  2. Extract metadata: For each YAML file found, use Bash to extract name and description:

```bash

for f in workflows/*.yaml; do

name=$(grep -m1 '^name:' "$f" | sed 's/^name: *//' | tr -d '"')

desc=$(grep -m1 '^description:' "$f" | sed 's/^description: *//' | tr -d '"')

echo " $name — $desc"

done

```

  1. Scan template pipelines: Use Glob("templates/workflows/*.yaml") for template examples
  2. Display formatted output:

```

Available pipelines:

{name} — {description}

{name} — {description}

Template pipelines (in templates/workflows/):

{name} — {description}

```

  1. If no pipelines found, display: "No pipelines found in workflows/ directory."
  2. If YAML parsing fails for a file, skip it and show: {filename} — (parse error, skipped)

Run Mode (with pipeline name)

  1. Validate pipeline exists: workflows/{name}.yaml
  2. Load and validate YAML structure:
  1. Announce: [Pipeline] Starting {name} — {step_count} steps
  2. Execute steps top-to-bottom:
  1. Report completion or failure

Resume Mode (/pipeline resume)

  1. Scan /tmp/.claude-pipeline-*-{PPID}.json for state files
  2. If none found: "No halted pipelines found."
  3. If found: display pipeline name, failed step, error message
  4. Options:
  1. On resume: execute from the failed step

State Tracking

Track per-step state:

{
  "pipeline": "{name}",
  "started": "ISO-8601",
  "status": "running|completed|halted",
  "current_step": 0,
  "steps": [
    {"name": "triage", "status": "completed", "duration_ms": 5000},
    {"name": "plan", "status": "running"}
  ]
}

State saved to /tmp/.claude-pipeline-{name}-{PPID}.json on failure.

Parallel Execution

Pipeline steps can be grouped for parallel execution:

steps:
  - name: phase-1
    parallel:
      - name: task-a
        skill: skill-a
        description: First independent task
      - name: task-b
        skill: skill-b
        description: Second independent task
  - name: phase-2
    skill: next-step
    depends_on: phase-1

Parallel Rules

Parallel State Format

{
  "name": "phase-1",
  "type": "parallel",
  "status": "running",
  "children": [
    {"name": "task-a", "status": "completed", "duration_ms": 5000},
    {"name": "task-b", "status": "running"}
  ]
}

Workflow File Locations

The auto-dev.yaml (and other workflow YAML files) exist in 4 locations. Only one is the runtime source — the others are mirrors for deployment and examples.

| Path | Role | Used by |

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

| .claude/skills/pipeline/workflows/auto-dev.yaml | Runtime source (실행본) — /pipeline reads from here via Glob("workflows/*.yaml") relative to the skill base dir | /pipeline skill at runtime |

| templates/.claude/skills/pipeline/workflows/auto-dev.yaml | Init deployment mirror — copied to the runtime location when omcustom init runs | omcustom init |

| workflows/auto-dev.yaml (repo root) | Legacy /omcustom:workflow directory remnant — NOT referenced by /pipeline. Also contains eraser.yaml and template examples. | Unused after /pipeline migration |

| templates/workflows/auto-dev.yaml | Template example mirror — Glob'd by List Mode as "template examples" (Glob("templates/workflows/*.yaml")) | /pipeline List Mode display only |

Key rules:

Error Handling

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.