channel
01Command
Add a new WebSocket channel to a TriadJS router — connection params, clientMessages/serverMessages, onConnect/onDisconnect, handlers, and behaviors.
Triad is a TypeScript/Node.js framework where API specification, implementation, validation, and testing are a single source of truth.
Command
Add a new WebSocket channel to a TriadJS router — connection params, clientMessages/serverMessages, onConnect/onDisconnect, handlers, and behaviors.
Command
Run triad docs to regenerate OpenAPI 3.1 and (if the router has channels) AsyncAPI 3.0, then summarize what was written.
Command
Add a new HTTP endpoint to an existing TriadJS router — request/response schemas, handler, auth via beforeHandler if needed, and behavior scenarios.
Command
Add a new TriadJS t.model (or t.value) to an existing project, along with derived request DTOs (CreateX, UpdateX) and the models[] entry in the bounded context.
Command
Scaffold a new TriadJS backend project from scratch — package.json, schemas, an endpoint with behaviors, Fastify server, and test config.
Command
Add BDD behavior scenarios to an existing TriadJS endpoint or channel. Writes .given().when().then() chains using only valid assertion phrases from the parser table.
Command
Run triad test and diagnose any failures, using the triad-cli and triad-behaviors skills to interpret errors precisely.
Command
Run triad validate --strict and fix any consistency issues — duplicate endpoint names, duplicate routes, missing responses, unknown model references, or bounded-context leaks.