/engineering:typescript-full-stackfrom engineering
Builds end-to-end TypeScript apps with Fastify, React/Next, tRPC or Zod shared types, Prisma/Drizzle, and turborepo/nx monorepos for zero type drift.
Ships in engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com, +256 784 464178.
| Category | Artifact | Format | Example |
|---|---|---|---|
| Correctness | Full-stack contract test plan | Markdown doc covering Fastify route + tRPC router + Prisma schema contract tests | docs/ts/full-stack-tests.md |
references/ directory for deep detail after reading the core workflow below.Build and maintain apps where the same types flow from database to backend to frontend to mobile. Zero runtime type drift between layers.
Prerequisites: Load typescript-effective for production idioms. Load typescript-mastery for type-system depth.
Skill-specific references:
references/monorepo-turborepo.mdreferences/fastify-backend.mdreferences/trpc-end-to-end.mdreferences/rest-plus-openapi.mdreferences/prisma-vs-drizzle.mdreferences/zod-shared-schemas.mdreferences/auth-patterns.mdreferences/testing-full-stack.mdreferences/docker-node-production.mdreferences/large-scale-react-ts.md - load when designing folder structure, state ownership, HTTP/API client seams, config, i18n, primitives, or test layout for a large React + TS app.+----------------------------------+
| apps/web (Next.js) |
| apps/mobile (Expo RN) |
| apps/api (Fastify) |
| packages/schemas (Zod) |---> source of truth for types
| packages/api-client (tRPC / fetch)
| packages/db (Prisma client)
| packages/ui (shadcn-like components)
| packages/config (tsconfig, eslint, prettier)
+----------------------------------+
ts-rest or zod-to-openapi.pnpm init -w
pnpm add -D turbo
turbo.json defines pipeline (build, test, lint, type-check) with caching. Remote cache on Vercel or self-hosted.
Rule: every package has its own tsconfig.json extending packages/config/tsconfig.base.json. Project references enable incremental typecheck.
See references/monorepo-turborepo.md.
import Fastify from "fastify";
import { z } from "zod";
const app = Fastify({ logger: true });
const Params = z.object({ id: z.string().uuid() });
app.get("/users/:id", async (req, reply) => {
const { id } = Params.parse(req.params);
const user = await db.user.findUnique({ where: { id } });
if (!user) return reply.code(404).send({ error: "not_found" });
return user;
});
Fastify beats Express for TS: first-class hooks, schema validation, plugin system, lifecycle typing. See references/fastify-backend.md.
// packages/api/src/router.ts
import { initTRPC } from "@trpc/server";
import { z } from "zod";
const t = initTRPC.create();
export const appRouter = t.router({
user: t.router({
byId: t.procedure
.input(z.object({ id: z.string().uuid() }))
.query(async ({ input }) => db.user.findUnique({ where: { id: input.id } })),
create: t.procedure
.input(UserCreate)
.mutation(async ({ input }) => db.user.create({ data: input })),
}),
});
export type AppRouter = typeof appRouter;
Frontend imports AppRouter type only. Runtime is fetch; types flow at compile time. Zero duplication. See references/trpc-end-to-end.md.
When tRPC vs REST:
All clients are your own code, no public API -> tRPC
External partners, third-party integrations, public SDK -> REST + OpenAPI
Mobile on old TS versions / no TS -> REST
GraphQL ecosystem in the org -> GraphQL (not covered here)
Use ts-rest or zod-to-openapi — define schemas once, generate OpenAPI spec automatically.
import { initContract } from "@ts-rest/core";
const c = initContract();
export const userContract = c.router({
getUser: {
method: "GET",
path: "/users/:id",
pathParams: z.object({ id: z.string().uuid() }),
responses: { 200: UserSchema, 404: z.object({ error: z.literal("not_found") }) },
},
});
See references/rest-plus-openapi.md.
Prisma: schema-first, Prisma Client is fully typed, great DX. Ships with migration tool. Best for teams.
Drizzle: SQL-first, TypeScript-first. Queries look like SQL, no hidden abstractions. Best when you love SQL and want explicit control.
Decision rule:
Want schema.prisma as source of truth, good migrations, team of mixed SQL skill -> Prisma
Want SQL-in-code visibility, complex queries, performance-critical -> Drizzle
Postgres-only with advanced features (arrays, ranges, custom types) -> Drizzle
MySQL primary, migrations managed alongside PHP app -> Prisma
See references/prisma-vs-drizzle.md.
// packages/schemas/src/user.ts
import { z } from "zod";
export const UserCreate = z.object({
email: z.string().email(),
name: z.string().min(1).max(100),
role: z.enum(["admin", "member", "viewer"]),
}).strict();
export const User = UserCreate.extend({
id: z.string().uuid(),
createdAt: z.coerce.date(),
});
export type UserCreate = z.infer<typeof UserCreate>;
export type User = z.infer<typeof User>;
Consumed by: API validation, Prisma custom types, React Hook Form, tRPC input, test fixtures. See references/zod-shared-schemas.md.
Never roll password hashing, session storage, or OAuth flows yourself. See references/auth-patterns.md.
expectTypeOf for API client usage.See references/testing-full-stack.md.
Multi-stage Dockerfile, node-slim base, non-root user, pnpm deploy for prod-only deps:
FROM node:22-slim AS base
RUN corepack enable && corepack prepare pnpm@latest --activate
WORKDIR /app
FROM base AS deps
COPY pnpm-lock.yaml pnpm-workspace.yaml package.json ./
COPY apps/api/package.json ./apps/api/
COPY packages/ ./packages/
RUN pnpm install --frozen-lockfile
FROM deps AS build
COPY . .
RUN pnpm --filter api build
FROM base AS prod
ENV NODE_ENV=production
USER node
WORKDIR /app
COPY --from=build --chown=node:node /app/apps/api/dist ./dist
COPY --from=deps --chown=node:node /app/node_modules ./node_modules
EXPOSE 3000
CMD ["node", "dist/server.js"]
See references/docker-node-production.md.
"use server" or a runtime guard).any on API boundaries.typescript-effective — idioms.typescript-mastery — type system depth.react-development / nextjs-app-router — frontend.nodejs-development — Node runtime patterns.postgresql-fundamentals / mysql-best-practices — data layer specifics.| Condition | Action |
|---|---|
| Only first-party TypeScript clients consume API | Consider tRPC with runtime validation |
| External clients or long-lived integrations exist | Publish REST/OpenAPI contracts |
| Shared package creates circular dependencies | Split schemas from implementations |
Read and search are required. Editing, database mutation, builds, and tests require authorisation.
Fallback: without execution or services, return unverified integration points and exact end-to-end checks. Validate every network boundary at runtime.
| Artefact | Required? | Purpose |
|---|---|---|
| Frontend/backend boundaries, shared contracts, runtime targets, and deployment context | yes | Coordinate full-stack types and behaviour |
references/auth-patterns.md (opens in a new tab)references/docker-node-production.md (opens in a new tab)references/fastify-backend.md (opens in a new tab)references/large-scale-react-ts.md (opens in a new tab)references/monorepo-turborepo.md (opens in a new tab)references/prisma-vs-drizzle.md (opens in a new tab)references/rest-plus-openapi.md (opens in a new tab)references/testing-full-stack.md (opens in a new tab)references/trpc-end-to-end.md (opens in a new tab)references/zod-shared-schemas.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub peterbamuhigire/chwezi-dev-engine --plugin engineering169 skills in this plugin
/accounting-engineUse when designing or implementing double-entry accounting policy and an embedded ledger engine for invoices, payments, stock, balanced postings, mapped accounts, idempotency, reversals, period locks, audit trails, and financial statements./accounting-finance-controllerUse when coordinating accounting and finance implementation reviews, doctrine routing, control evidence, remediation priorities, and release decisions across a software system./advanced-testing-strategyUse when designing or reviewing test strategy for production systems, APIs, mobile apps, SaaS platforms, ERP workflows, and AI-enabled systems. Covers unit, integration, contract, end-to-end, regression, release-gate, and risk-based testing decisions.Other plugins' skills for the same job