| name | calc-pipeline |
| description | Demonstrates passing arguments through a chain of skills. Takes two numbers (the legs of a right triangle) and computes the hypotenuse √(a²+b²) across three private stages, each its own skill. Use to show sequential skill execution with argument passing. |
| argument-hint | [a] [b] |
Calc Pipeline (demo) — arguments through a skill chain
Computes the hypotenuse of a right triangle with legs a and b,
h = √(a² + b²), split across three private stages. Each stage takes an
argument and passes its computed result to the next, like chained function calls:
calc-step-a — sum of squares: s = a² + b²
calc-step-b — square root: h = √s
calc-step-c — round, classify, and report
Arguments to this skill: $1 = a, $2 = b (raw input: $ARGUMENTS).
What to do
- Read the two numbers from the arguments:
a = $1, b = $2.
If either is missing or not a number, ask the user for two numbers and stop —
do not guess values.
- Invoke the
calc-step-a skill, passing both numbers as its argument
(args: $1 $2). Do not do the math yourself.
- Let the chain run A → B → C on its own. Each stage appends a line to
pipeline.log, so the argument hand-off is observable.
- After stage C reports, give the user a one-line summary of the result.