プロジェクト内の利用可能なすべての Output SDK ワークフロー(自動処理の流れ)を一覧表示します。 次のような場合に使用: - プロジェクトにどんなワークフローが存在するかを調べたい - ワークフローの名前を確認したい - プロジェクトのワークフロー構成を把握したい - 実行できるワークフローがどれかわからない
List all available Output SDK workflows in the project. Use when discovering what workflows exist, checking workflow names, exploring the project's workflow structure, or when unsure which workflows are available to run.
このスキルは、Output SDKプロジェクト内にある全てのワークフロー(タスク実行の基本単位)を見つけるのに役立ちます。ワークフローは複数のステップを組み合わせてタスクを完成させるものです。
npx output workflow list
このコマンドでプロジェクトをスキャンし、利用可能な全ワークフローを表示します。
コマンドはワークフロー情報を表形式で出力します:
| 列 | 説明 |
|---|---|
| Name | コマンドで使用するワークフロー識別子 |
| Description | ワークフローの機能についての簡潔な説明 |
| Location | ワークフロー定義ファイルのパス |
ワークフローは通常以下の場所に配置されます:
src/workflows/*/
各ワークフロー用ディレクトリには通常、以下が含まれます:
workflow.ts または index.ts - ワークフロー定義本体ワークフローを見つけたら、そのコードを確認できます:
# ワークフローファイルを表示
cat src/workflows/<workflowName>/workflow.ts
# ワークフロー用ディレクトリ全体を確認
ls -la src/workflows/<workflowName>/
例1:プロジェクト内の利用可能なワークフローを探す
npx output workflow list
# 出力例:
# Name Description Location
# ----------- --------------------------- --------------------------------
# simple Simple workflow example src/workflows/simple/workflow.ts
# data-pipeline Process and transform data src/workflows/data-pipeline/workflow.ts
# user-signup Handle user registration src/workflows/user-signup/workflow.ts
例2:ワークフローを実行する前に存在確認をする
# 「email-sender」ワークフローが存在するか確認
npx output workflow list | grep email-sender
# 結果が表示されなければ、そのワークフローは存在しません
# 見つかれば、実行に進みます
npx output workflow run email-sender --input '{"to": "user@example.com"}'
例3:ワークフローの実装を調べる
# ワークフロー一覧を表示
npx output workflow list
# 場所を確認して内容を表示
cat src/workflows/simple/workflow.ts
src/workflows/*/ に配置されていることを確認してくださいnpm run output:worker:build を実行して、TypeScript(型定義言語)のエラーをチェックしてくださいnpx output workflow run <name> - ワークフローを同期実行するnpx output workflow start <name> - ワークフローを非同期で開始するnpx output workflow runs list - 実行履歴を確認するThis skill helps you discover all available workflows in an Output SDK project. Workflows are the main execution units that orchestrate steps to accomplish tasks.
npx output workflow list
This command scans the project and displays all available workflows.
The command outputs a table with workflow information:
| Column | Description |
|---|---|
| Name | The workflow identifier used in commands |
| Description | Brief description of what the workflow does |
| Location | File path where the workflow is defined |
Workflows are typically located in:
src/workflows/*/
Each workflow directory usually contains:
workflow.ts or index.ts - The main workflow definitionAfter finding a workflow, you can examine its code:
# Read the workflow file
cat src/workflows/<workflowName>/workflow.ts
# Or examine the entire workflow directory
ls -la src/workflows/<workflowName>/
Scenario: Discover available workflows in a project
npx output workflow list
# Example output:
# Name Description Location
# ----------- --------------------------- --------------------------------
# simple Simple workflow example src/workflows/simple/workflow.ts
# data-pipeline Process and transform data src/workflows/data-pipeline/workflow.ts
# user-signup Handle user registration src/workflows/user-signup/workflow.ts
Scenario: Verify a workflow exists before running
# Check if "email-sender" workflow exists
npx output workflow list | grep email-sender
# If no output, the workflow doesn't exist
# If found, proceed with running it
npx output workflow run email-sender --input '{"to": "user@example.com"}'
Scenario: Explore workflow implementation
# List workflows
npx output workflow list
# Find the location and examine it
cat src/workflows/simple/workflow.ts
src/workflows/*/npm run output:worker:build to check for TypeScript errorsnpx output workflow run <name> - Execute a workflow synchronouslynpx output workflow start <name> - Start a workflow asynchronouslynpx output workflow runs list - View execution history原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。