express/add-handler
Source
Usage
bash
npm exec saf-workflow kickoff express/add-handler <path>To run this workflow automatically, tell the agent to:
- Navigate to the target package
- Run this command
- Follow the instructions until done
Checklist
When run, the workflow will:
- Copy template files and rename placeholders.
- Implement the example-handler route handler.
- Update the feature router to include the new route handler.
- Update the generated example-handler.test.ts file following the testing guide patterns.
- Run
npm run typecheck - Run
npm run test
Help Docs
bash
Usage: npm exec saf-workflow kickoff express/add-handler <path>
Add a new route to an Express.js service.
Arguments:
path Path of the new handler (e.g. 'routes/todos/create')
Example: "./routes/example-subpath/example-handler.ts"