More
The Switchyard skills
Two skills for state machines in TypeScript. They are copies from the Switchyard project.
Why they are here
The rule state-machines.md tells the
agent to write each state machine as one explicit definition. For TypeScript and JavaScript,
the library of that rule is Switchyard. An
agent that obeys the rule then needs to know how to write a Switchyard machine. These two
skills tell it.
The two skills
| Skill | Use it to | Result |
|---|---|---|
switchyard |
Write, change and test a machine: its states, events, guards, timers and invoked work. | A Machine class and its tests. |
switchyard-design |
Design a machine before the build. It has an interview of 12 questions. | One page that runs the real machine: a rendered UI, a live chart, a reason for each transition, and walkthroughs that the build runs as checks. |
They come with the rule switchyard-state-machines.md. The commands of these
skills are in @switchyard-ts/cli, not in the skillsaw CLI. The pages of
switchyard-design do not use the skillsaw livery.
Where they come from
The source is the package @switchyard-ts/skills of the Switchyard repo. skillsaw
has a copy of version 0.6.0. A lock file records the version and the hash of each file. To change a Switchyard skill, change it in the Switchyard repo.
The example runs of this guide used the two skillsaw review skills on the branch of
Switchyard that added switchyard-design. See
the quality report and
the round comments.