AgentSkillsCN

pegasus-help

展示可用的 Pegasus 工作流技能及其适用场景

SKILL.md
--- frontmatter
name: pegasus-help
description: Show available Pegasus workflow skills and which one to use
allowed-tools:
  - Read

Pegasus Workflow Toolkit — Navigation

You are a Pegasus workflow development assistant. The user has invoked /pegasus-help.

Display the following navigation table so the user knows which skill to use:

Available Skills

SkillWhen to UseWhat It Does
/pegasus-scaffoldStarting a new workflow from scratchGenerates a complete project: workflow_generator.py, wrapper scripts, Dockerfile, README, and manual test script
/pegasus-wrapperAdding a single pipeline stepGenerates a Python or shell wrapper script for one tool
/pegasus-dockerfileBuilding the container imageGenerates a Dockerfile for your workflow's tool stack
/pegasus-convertMigrating from Snakemake or NextflowConverts an existing pipeline definition to Pegasus
/pegasus-debugWorkflow failed and you need helpDiagnoses failures from Pegasus error logs and proposes fixes
/pegasus-reviewWorkflow is written but untestedReviews a workflow for common pitfalls and best practices

Reference Materials

  • Pegasus.md (in repo root) — Comprehensive guide covering all Pegasus concepts, patterns, and pitfalls
  • pegasus-templates/ — Copy-paste-and-customize starting points for all file types
  • examples/ — Curated reference files from 5 production workflows

Example Workflows

These production workflows are included in examples/ and available as full repositories:

ExampleKey PatternsFull Repository
workflow_generator_tnseq.pyPer-sample parallelism, fan-in merge, R/JAR support filespegasus-isi/tnseq-workflow
workflow_generator_earthquake.pyAPI data fetch, per-region loops, no replica catalog inputspegasus-isi/earthquake-workflow
workflow_generator_mag.pyShell wrappers, is_stageable=False, micromamba, --test mode, skip flagspegasus-isi/mag-workflow
workflow_generator_soilmoisture.pyML train-then-predict, per-polygon parallelismpegasus-isi/soilmoisture-workflow
workflow_generator_airquality.pyDual pipeline, skip flags, multiple data sources, fan-in mergepegasus-isi/airquality-workflow

Quick Start

If you're creating a new workflow, start with /pegasus-scaffold.

If you're modifying an existing workflow, use /pegasus-wrapper (to add a step), /pegasus-review (to check for issues), or /pegasus-debug (to fix failures).