description: "Categorize words into fruits and vegetables, then sort each list alphabetically."
params:
WORDS:
type: string
required: true
description: "Comma-separated words to categorize (e.g. apple, carrot, pear, onion)"
steps:
categorize:
agent:
harness: claude
model: sonnet
inputs:
WORDS: params.WORDS
prompt: |
The WORDS input is a comma-separated list of words. Split them into two groups —
fruits and vegetables — and return each as a comma-separated string.
output:
fruits:
type: string
vegetables:
type: string
sort_fruits:
needs: categorize
agent:
harness: claude
model: sonnet
inputs:
LIST: categorize.fruits
prompt: |
The LIST input is a comma-separated list. Return it sorted alphabetically, as a
comma-separated string.
output:
sorted:
type: string
sort_vegetables:
needs: categorize
agent:
harness: claude
model: sonnet
inputs:
LIST: categorize.vegetables
prompt: |
The LIST input is a comma-separated list. Return it sorted alphabetically, as a
comma-separated string.
output:
sorted:
type: string