senior-fullstack
Use when the user needs end-to-end TypeScript development — from database schema through API layer to UI — with tRPC, Prisma, Next.js, authentication, and deployment. Triggers: full-stack feature implementation, database-to-UI pipeline, tRPC router creation, Prisma schema design, auth setup, deployment configuration.
- Installs
- 83
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/pixel-process-ug/superkit-agents --skill senior-fullstack- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads senior-fullstack automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Senior Fullstack Engineer
Overview
Deliver complete, end-to-end TypeScript applications covering database design, API layer, frontend UI, authentication, and deployment. This skill specializes in the modern TypeScript full-stack: Next.js App Router, tRPC for type-safe APIs, Prisma for database access, and production deployment with monitoring.
Announce at start: "I'm using the senior-fullstack skill for end-to-end TypeScript development."
Phase 1: Data Layer
Goal: Design the database schema and data access patterns.
Actions
- Design database schema with Prisma
- Define relationships and indexes
- Create seed data for development
- Set up migrations workflow
- Implement repository pattern for data access
Prisma Schema Example
model User {
id String @id @default(cuid())
email String @unique
name String
role Role @default(USER)
posts Post[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@index([email])
@@index([createdAt])
}
model Post {
id String @id @default(cuid())
title String
content String?
published Boolean @default(false)
author User @relation(fields: [authorId], references: [id], onDelete: Cascade)
authorId String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@index([authorId])
@@index([published, createdAt])
}
Index Strategy Decision Table
| Query Pattern | Index Type | Example |
|---|---|---|
| Lookup by unique field | Unique index | @@unique([email]) |
| Filter by foreign key | Standard index | @@index([authorId]) |
| Filter + sort combination | Composite index | @@index([published, createdAt]) |
| Full-text search | Full-text index | Database-specific |
| Geospatial query | Spatial index | Database-specific |
STOP — Do NOT proceed to Phase 2 until:
- Schema is defined with all relationships
- Indexes cover all query patterns
- Seed data script exists
- Migrations are generated and tested
Phase 2: API Layer
Goal: Build type-safe API with tRPC and Zod validation.
Actions
- Define tRPC routers and procedures
- Implement input validation with Zod
- Add authentication middleware
- Build business logic in service layer
- Add error handling and logging
tRPC Router Example
export const userRouter = router({
list: protectedProcedure
.input(z.object({
page: z.number().min(1).default(1),
pageSize: z.number().min(1).max(100).default(20),
search: z.string().optional(),
}))
.query(async ({ ctx, input }) => {
const { page, pageSize, search } = input;
const where = search ? { name: { contains: search, mode: 'insensitive' } } : {};
const [users, total] = await Promise.all([
ctx.db.user.findMany({
where, skip: (page - 1) * pageSize, take: pageSize, orderBy: { createdAt: 'desc' },
}),
ctx.db.user.count({ where }),
]);
return { users, total, totalPages: Math.ceil(total / pageSize) };
}),
create: protectedProcedure
.input(createUserSchema)
.mutation(async ({ ctx, input }) => {
return ctx.db.user.create({ data: input });
}),
});
Authorization Pattern Decision Table
| Pattern | Use When | Example |
|---|---|---|
| Role-based (RBAC) | Simple permission model | Admin vs User |
| Resource-level | Owner-only access | User can edit own posts |
| Attribute-based (ABAC) | Complex rules | Org membership + role + resource state |
| Feature flags | Gradual rollout | Premium features |
STOP — Do NOT proceed to Phase 3 until:
- All tRPC routers are defined with Zod validation
- Auth middleware protects appropriate routes
- Business logic is in service layer (not in router)
- Error handling returns structured errors
Phase 3: UI Layer
Goal: Build pages with Server Components by default, Client Components for interactivity.
Actions
- Build pages with Server Components (default)
- Add Client Components for interactivity
- Connect to API via tRPC hooks
- Implement optimistic updates
- Add loading and error states
Component Type Decision Table
| Need | Component Type | Data Source |
|---|---|---|
| Static content, data display | Server Component | Direct DB/API call |
| Interactive form | Client Component | tRPC mutation hook |
| Real-time updates | Client Component | tRPC subscription or polling |
| Search/filter | Client Component | tRPC query with debounce |
| Navigation chrome | Server Component | Session data |
STOP — Do NOT proceed to Phase 4 until:
- Pages use Server Components by default
- Client Components are minimal and justified
- Loading and error states exist for all data-fetching paths
- Optimistic updates work for mutations
Phase 4: Production
Goal: Prepare for deployment with auth, monitoring, and CI/CD.
Actions
- Set up authentication (NextAuth.js / Clerk / Lucia)
- Configure deployment (Vercel / Docker)
- Add monitoring and error tracking
- Implement CI/CD pipeline
- Performance audit
Auth Solution Decision Table
| Solution | Best For | SSR Support | Self-Hosted |
|---|---|---|---|
| NextAuth.js (Auth.js) | OAuth providers, JWT/session | Yes | Yes |
| Clerk | Fast setup, managed service | Yes | No |
| Lucia | Custom, lightweight | Yes | Yes |
| Supabase Auth | Supabase ecosystem | Yes | Partial |
Monitoring Checklist
- Error tracking (Sentry) with source maps
- Performance monitoring (Vercel Analytics or custom)
- Database query performance (Prisma metrics)
- API endpoint latency and error rates
- Uptime monitoring (external ping)
- Log aggregation with structured logging
- Alerting for error rate spikes
Docker Deployment
FROM node:20-alpine AS base
RUN corepack enable
FROM base AS deps
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
FROM base AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN pnpm prisma generate
RUN pnpm build
FROM base AS runner
WORKDIR /app
ENV NODE_ENV=production
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/public ./public
EXPOSE 3000
CMD ["node", "server.js"]
STOP — Production ready when:
- Auth is configured and tested
- Deployment pipeline works (preview + production)
- Monitoring and alerting are active
- Performance audit completed
Full-Stack Type Safety Pipeline
Prisma Schema -> Prisma Client (types) -> tRPC Router -> tRPC Hooks -> React Components
| | | | |
Migration Type-safe DB Validated API Auto-typed Rendered UI
queries with Zod queries
Project Structure
prisma/
schema.prisma
migrations/
seed.ts
src/
app/ # Next.js App Router
(auth)/ # Auth route group
(dashboard)/ # Protected route group
api/trpc/[trpc]/ # tRPC handler
server/
db.ts # Prisma client singleton
trpc.ts # tRPC init
routers/ # tRPC routers
services/ # Business logic
components/
ui/ # Design system atoms
features/ # Feature components
hooks/ # Custom React hooks
lib/
trpc.ts # tRPC client
auth.ts # Auth configuration
validators.ts # Zod schemas
tests/
unit/
integration/
e2e/
Anti-Patterns / Common Mistakes
| Anti-Pattern | Why It Is Wrong | Correct Approach |
|---|---|---|
| Raw SQL in components | Bypasses type safety and security | Use Prisma through tRPC |
| Client-side fetch when Server Components work | Unnecessary JavaScript, slower | Server Components for static data |
| Sharing Prisma client with frontend | Security breach, exposes DB | Prisma only in server code |
| Missing indexes on foreign keys | Slow joins and lookups | Index every foreign key |
| Storing tokens in localStorage | XSS vulnerability | HttpOnly cookies |
| Skipping Zod validation | Runtime type errors | Validate all inputs at API boundary |
| Monolithic tRPC router | Hard to maintain, merge conflicts | Split by domain (user, post, etc.) |
| Business logic in tRPC procedures | Hard to test, not reusable | Extract to service layer |
Documentation Lookup (Context7)
Use mcp__context7__resolve-library-id then mcp__context7__query-docs for up-to-date docs. Returned docs override memorized knowledge.
react— for component patterns, hooks, or React 19+ featuresnext.js— for App Router, API routes, or server componentsprisma— for schema design, client queries, or migrationstailwindcss— for utility-first CSS patterns or configuration
Integration Points
| Skill | Relationship |
|---|---|
senior-frontend | UI layer follows frontend patterns |
senior-backend | API layer follows backend patterns |
senior-architect | Architecture decisions guide service boundaries |
security-review | Auth implementation follows security patterns |
testing-strategy | Full-stack testing uses strategy frameworks |
code-review | Review covers all layers of the stack |
performance-optimization | Optimization applies to all layers |
Key Principles
- Single language (TypeScript) from database to browser
- Type safety across the entire stack (no runtime type mismatches)
- Server Components by default, Client Components by necessity
- Validate all inputs at the API boundary with Zod
- Database indexes for every query pattern
- Environment-based configuration (no hard-coded values)
Skill Type
FLEXIBLE — Adapt the tech choices to the project context. The four-phase process is strongly recommended. Type safety across the stack is non-negotiable. All API inputs must be validated with Zod. Database schema changes must use migrations.
FAQ
What does the senior-fullstack skill do?
Use when the user needs end-to-end TypeScript development — from database schema through API layer to UI — with tRPC, Prisma, Next.js, authentication, and deployment. Triggers: full-stack feature implementation, database-to-UI pipeline, tRPC router creation, Prisma schema design, auth setup, deployment configuration.
How do I install senior-fullstack?
Run npx skills add https://github.com/pixel-process-ug/superkit-agents --skill senior-fullstack in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/senior-fullstack/ (personal) or .claude/skills/senior-fullstack/ (project).
Which AI agents can use senior-fullstack?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is senior-fullstack safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains senior-fullstack?
It is published by pixel-process-ug in pixel-process-ug/superkit-agents. It has 83 recorded installs.
More from pixel-process-ug/superkit-agents
ui-ux-pro-max
pixel-process-ug/superkit-agents
Use when the user needs full UI/UX design intelligence — styles, palettes, fonts, UX guidelines, chart selection, and accessible, performant implementation across any supported stack. Triggers: user says "design", "UI", "UX", "color palette", "typography", "accessibility", "responsive design", "chart type", "style guide", building any user-facing interface.
frontend-ui-design
pixel-process-ug/superkit-agents
Open the skill to read its SKILL.md instructions.
reverse-engineering-specs
pixel-process-ug/superkit-agents
Open the skill to read its SKILL.md instructions.
canvas-design
pixel-process-ug/superkit-agents
Open the skill to read its SKILL.md instructions.
autonomous-loop
pixel-process-ug/superkit-agents
Open the skill to read its SKILL.md instructions.
mobile-design
pixel-process-ug/superkit-agents
Open the skill to read its SKILL.md instructions.
Popular data & databases skills
supabase-postgres-best-practices
supabase/agent-skills
Postgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files, RLS policies and the tests that verify them, indexes, triggers, database functions, queues and scheduled jobs (pgcron, pgmq), vector/semantic search (pgvector), and restoring dumps (pgrestore) or importing data. Also load it when diagnosing slow queries, high CPU, timeouts, EXPLAIN plans, connection exhaustion, locking, bloat, or rows visible to the wrong user or tenant. This is not just a performance guide — schema, migration, security, and SQL authoring tasks need these rules too, even for a one-column change or a single query.
prisma-client-api
prisma/skills
Prisma Client API reference covering model queries, filters, operators, and client methods. Use when writing database queries, using CRUD operations, filtering data, or configuring Prisma Client. Triggers on "prisma query", "findMany", "create", "update", "delete", "$transaction".
prisma-database-setup
prisma/skills
Deprecated compatibility name for prisma-orm-setup. Use only when a user or existing integration explicitly invokes prisma-database-setup; otherwise select prisma-orm-setup.
prisma-cli
prisma/skills
Prisma ORM 7 CLI reference for existing Prisma 7 applications or explicitly selected Prisma 7 workflows. Covers prisma init, generate, migrate, db, dev, studio, and mcp. For setup, connection repair, or Prisma 8, use prisma-orm-setup; not the Prisma Platform CLI.
prisma-postgres
prisma/skills
Deprecated compatibility name for prisma-postgres-setup. Use only when a user or existing integration explicitly invokes prisma-postgres; otherwise select prisma-postgres-setup.
prisma-driver-adapter-implementation
prisma/skills
Required reference for Prisma ORM 7 SQL driver adapter work. Use when implementing or modifying adapters, adding database drivers, or touching SqlDriverAdapter, Transaction, savepoint, result mapping, or DriverAdapterError behavior. Covers current transaction lifecycle, optional savepoint hooks, original database-error preservation, and verification.