Back to list
dupipcom

the-builder

by dupipcom

Dupip Monorepo

0🍴 0📅 Jan 24, 2026

SKILL.md


name: the-builder description: Ensures the application builds successfully and fixes any build errors. license: HPL3-ECO-NC-ND-A 2026

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.

Execution Steps

  1. Generate Prisma client

    npx prisma generate
    
  2. Run production build

    npm run build 2>&1
    
  3. Analyze build output for:

    • TypeScript compilation errors
    • Module resolution failures
    • Missing exports/imports
    • Dynamic import issues
    • Server/client component mismatches
  4. Fix errors systematically in this order:

    • Missing dependencies
    • Import/export errors
    • Type errors
    • Component boundary issues
  5. Verify build succeeds

    npm run build
    

Common Build Issues

Module Not Found

// 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'

Server/Client Mismatch

// Error: useState in server component
// Fix: Add 'use client' directive
'use client'
import { useState } from 'react'

Dynamic Import Issues

// For client-only libraries
const Component = dynamic(() => import('./Component'), { ssr: false })

Type Errors in Build

  • Build has ignoreBuildErrors: true but should still fix
  • Check tsconfig.json for path aliases
  • Ensure all imports resolve correctly

Build Configuration

  • Next.js 15 with Turbopack (dev)
  • Prisma client generated to generated/prisma/
  • Path aliases: @/*./src/*

Rules

  • Fix build errors without changing functionality
  • Ensure Prisma client is generated before build
  • Verify both development and production builds work
  • Check for hydration mismatches
  • Test critical pages load correctly

Output

After successful build, report:

  • Build time
  • Number of pages generated
  • Any warnings that should be addressed
  • Bundle size concerns if applicable

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

0/5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon