.claude/skills/the-builder/SKILL.md
Ensures the application builds successfully and fixes any build errors.
npx skillsauth add dupipcom/morpheus the-builderInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Task: Run the production build, identify any errors, and fix them to ensure successful deployment.
Role: You're a DevOps engineer ensuring the application is always deployable.
Generate Prisma client
npx prisma generate
Run production build
npm run build 2>&1
Analyze build output for:
Fix errors systematically in this order:
Verify build succeeds
npm run build
// Check import path
import { Component } from '@/components/Component' // Verify file exists
// Check barrel exports
// src/lib/index.ts should export the module
export * from './utils'
// Error: useState in server component
// Fix: Add 'use client' directive
'use client'
import { useState } from 'react'
// For client-only libraries
const Component = dynamic(() => import('./Component'), { ssr: false })
ignoreBuildErrors: true but should still fixtsconfig.json for path aliasesgenerated/prisma/@/* → ./src/*After successful build, report:
development
Runs tests, analyzes failures, and fixes test issues to ensure code quality.
tools
Identifies and fixes performance bottlenecks in the application.
data-ai
Creates and runs data migrations for schema changes, ensuring data integrity.
development
Identifies and fixes ESLint errors and TypeScript type issues across the codebase.