triadjs
01Plugin Claude Code
Plugin marketplace listing 1 plugin: triadjs.
Plugin Claude Code
Plugin marketplace listing 1 plugin: triadjs.
Plugin Claude Code
Claude Code plugin for building TypeScript backends with TriadJS — one declarative definition produces validation, types, OpenAPI, AsyncAPI, Gherkin, BDD tests, and Drizzle database schemas.
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.
Skill Claude CodeCodex
Use when mounting a TriadJS router on Fastify (triadPlugin), Express (createTriadRouter), or Hono (createTriadHono), configuring per-request services, or choosing which adapter fits a deployment target. Fastify is the only adapter with WebSocket support.
Skill Claude CodeCodex
Use when writing TriadJS BDD scenarios, wiring .given().when().then().and() chains, choosing assertion phrases, using scenario.auto() for schema-derived adversarial tests, or debugging "Unrecognized assertion" errors. Authoritative phrase table for the heuristic assertion parser.
Skill Claude CodeCodex
Use when declaring TriadJS WebSocket channels with channel(), wiring onConnect/onDisconnect/handlers, typing per-connection state via the phantom witness, using ctx.broadcast/ctx.broadcastOthers/ctx.send, or implementing first-message auth for browsers.
Skill Claude CodeCodex
Use when running the triad CLI — triad test, triad docs, triad gherkin, triad db generate, triad validate, triad fuzz — configuring triad.config.ts, debugging CLI errors, or understanding flag behavior.
Skill Claude CodeCodex
Use when generating Drizzle ORM schemas from TriadJS models via triad db generate, choosing a dialect (sqlite/postgres/mysql), declaring .storage() hints on fields, designing repositories around the generated tables, or handling isUniqueViolation for domain-level conflict detection.
Skill Claude CodeCodex
Use when declaring TriadJS HTTP endpoints with endpoint(), wiring request/responses/handler/beforeHandler, building a router with createRouter and router.context() bounded contexts, designing auth via beforeHandler, or debugging ctx.respond/ctx.state/ctx.services.
Skill Claude CodeCodex
Use when designing TriadJS schemas — t.model(), t.value(), primitives (t.string, t.int32, t.enum, t.datetime, t.file), collections (t.array, t.record, t.tuple, t.union), model operations (.pick, .omit, .partial, .extend, .merge, .named), or DDD entities and value objects. Loaded by using-triadjs when schema work is…
Skill Claude CodeCodex
Use when wiring dependency injection for TriadJS — declaring services, module-augmenting ServiceContainer, creating createServices() factories, and threading repositories/clients onto ctx.services with full type inference and no casts.
Skill Claude CodeCodex
Use when wiring the TriadJS test runner — triad.config.ts, test-setup.ts default-exported services factory, per-scenario DB isolation, teardown, fixtures, and scenario.auto() for schema-derived adversarial tests. Tests run in-process — no HTTP, no adapter middleware.
Skill Claude CodeCodex
Use whenever the user mentions TriadJS, the @triadjs/ packages, t.model(), endpoint(), channel(), scenario(), triad test, triad docs, or asks to build a TypeScript backend with validation + OpenAPI + BDD tests from one definition. Overview of the framework and pointer to the focused sub-skills.