mandu-debug

mandu-debug is a skill for Claude Code, Codex from konamgil/mandu. It costs 37 tokens per session (1,087 once invoked), scanned C, original, MPL-2.0.

A troubleshooting workflow for Mandu web projects, covering build failures, blank pages, API errors, broken styles, and other common problems.

In plain words
What is it for?
Use it to investigate TypeScript and build errors, server-rendered blank pages, inactive client components, endpoint failures, CSS issues, hot-reload problems, and hydration warnings.
Why use it?
It organizes debugging from symptom collection through diagnosis, fixes, and verification instead of relying on guesswork.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/konamgil/mandu/mandu-debug
Any agent
npx skills add konamgil/mandu --skill mandu-debug
Clone the repo
git clone --depth 1 https://github.com/konamgil/mandu

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mandu-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/konamgil/mandu/mandu-debug.svg)](https://agentmods.dev/skills/konamgil/mandu/mandu-debug)
Your own site
<a href="https://agentmods.dev/skills/konamgil/mandu/mandu-debug"><img src="https://agentmods.dev/badge/skills/konamgil/mandu/mandu-debug.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,087 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00037 $0.01087
Opus 5 $0.00018 $0.00544
Sonnet 5 $0.00007 $0.00217
Haiku 4.5 $0.00004 $0.00109

Measured 4d ago against content hash 336f641f20bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

mandu-debug scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

3. `.mandu/` 캐시 삭제: `rm -rf .mandu/generated`
docs/archive/skills/package-v0/mandu-debug/SKILL.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mandu Debug

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

Triage: 8 Error Categories

Category Symptoms First Check
Build bun run build fails, TS errors bunx mandu guard arch --ci
White Screen Page loads but blank Browser console, SSR output
Island Component not interactive "use client", import path
API 4xx/5xx from endpoints Route file, Mandu.filling() chain
CSS Styles missing/broken app/globals.css, Tailwind config
Guard Architecture violations bunx mandu guard arch
HMR Changes not reflecting Dev server restart, port conflict
Hydration Mismatch warnings Server 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 확인

Read the full file on GitHub · 116 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 116 lines · 37 tokens per session scan C 336f641f20bb

Subscribe to this mod's changes

mandu-debug is a skill published in the GitHub repository konamgil/mandu (46 stars, last pushed 8d ago), licensed MPL-2.0. It adds 37 tokens to every session and 1,087 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.