Mandu Debug

SkillDev tools

Error diagnosis + fixes. Automatically invoked on build failures, white screens, Islands not working, API errors, or broken CSS.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Mandu Debug skill

What this skill tells your AI

The instructions your AI receives, as published by konamgil/mandu in docs/archive/skills/package-v0/mandu-debug/SKILL.md and read by ahel’s review.

Mandu 프로젝트의 에러를 진단하고 수정하는 8카테고리 트리아지 시스템. 증상 → 수집 → 진단 → 수정 → 검증 순서로 진행합니다.

Triage: 8 Error Categories

CategorySymptomsFirst Check
Buildbun run build fails, TS errorsbunx mandu guard arch --ci
White ScreenPage loads but blankBrowser console, SSR output
IslandComponent not interactive"use client", import path
API4xx/5xx from endpointsRoute file, Mandu.filling() chain
CSSStyles missing/brokenapp/globals.css, Tailwind config
GuardArchitecture violationsbunx mandu guard arch
HMRChanges not reflectingDev server restart, port conflict
HydrationMismatch warningsServer vs client render diff

Parallel Collection Phase

문제 발생 시 동시에 수집할 정보:

# 1. Guard check (아키텍처 위반 여부)
bunx mandu guard arch --ci

# 2. TypeScript check
bunx tsc --noEmit

# 3. Dev server logs
# 이미 실행 중이면 터미널 출력 확인

# 4. Browser console
# 개발자 도구에서 에러 메시지 확인

MCP 도구로 수집:

mandu_brain_diagnose({ symptoms: "white screen on /dashboard" })

Fix Patterns by Category

Build Failure

  1. bunx tsc --noEmit - TypeScript 에러 위치 확인
  2. Import 경로 확인 (특히 @mandujs/core vs @mandujs/core/client)
  3. bun install - 의존성 누락 확인

White Screen

  1. app/layout.tsx<html>/<head>/<body> 태그가 있는지 확인 -> 있으면 제거
  2. page.tsx에서 default export 확인
  3. SSR 에러: 서버 로그에서 렌더링 에러 확인

Island Not Working

  1. "use client" 디렉티브 확인 (파일 최상단)
  2. Import: @mandujs/core/client (NOT @mandujs/core)
  3. .island.tsx 또는 .client.tsx 파일 확장자 확인
  4. island() API로 감싸져 있는지 확인

API Error

  1. route.ts (NOT route.tsx) 확인
  2. Mandu.filling() 체인으로 default export 확인
  3. ctx.body() await 누락 확인
  4. .guard() 반환값 확인 (void = 계속, Response = 차단)

CSS Missing

  1. app/globals.css 존재 확인
  2. Tailwind v4 import 확인: @import "tailwindcss"
  3. 프로덕션: cssPath 옵션이 서버에 전달되는지 확인

Guard Violation

  1. bunx mandu guard arch 실행
  2. Layer 위반: import 방향 확인 (상위 → 하위만 허용)
  3. mandu.config.ts의 preset 확인

HMR Not Working

  1. Dev server 재시작: Ctrl+Cbun run dev
  2. 포트 충돌: lsof -i :3333 또는 다른 포트 사용
  3. .mandu/ 캐시 삭제: rm -rf .mandu/generated

Hydration Mismatch

  1. 서버/클라이언트 렌더링 차이 확인
  2. Date.now(), Math.random() 등 비결정적 값 제거
  3. useHydrated() 훅으로 클라이언트 전용 코드 분기

Verification

수정 후 반드시 검증:

bunx mandu guard arch --ci  # 아키텍처 검증
bunx tsc --noEmit            # 타입 검증
bun run dev                  # 런타임 검증

MCP Tools for Debugging

ToolPurpose
mandu_brain_diagnose증상 기반 자동 진단
mandu_guard아키텍처 규칙 검사
mandu_guard_heal위반 자동 수정
mandu_runtime_check런타임 상태 점검

See also

  • mandu-mcp-verify — 진단 시작점 (fast path: ate.auto_pipeline + guard_check + doctor 병렬), drill-down 규칙
  • mandu-mcp-orient — 세션 진입 직후 상태 파악으로 문제 배경 확보

Signals

GitHub stars
46
Forks
3
Last commit
Aug 2026
Advanced
Catalog kind
skill
Gateway key
mandu-debug
Source
github.com/konamgil/mandu