Mandu performance

From konamgil/mandu · View interactive version

Mandu performance is an AI agent skill from the GitHub repository konamgil/mandu. Performance optimization patterns for Mandu applications. Use when optimizing slot handlers, Island components, bundle size, or Bun runtime. Triggers on tasks involving async/await, Promise.all, lazy loading, caching, or performance.

How to use this skill

Skill file

Mandu Performance

Mandu 애플리케이션의 성능 최적화 가이드. 워터폴 제거, 번들 최적화, 캐싱 패턴, Bun 런타임 활용법을 다룹니다. Vercel의 React Best Practices를 Mandu 컨텍스트로 변환하여 적용합니다.

Agent Workflow Contract

This skill is a Domain addendum. It must not replace mandu-agent-workflow.

Use it only after mandu.agent.plan selects performance, hydration, route, API, or runtime domains.

Canonical workflow step: plan -> verify -> repair.

Preferred MCP tools:

| Step | Tools |

|------|-------|

| plan | mandu.agent.plan, mandu.agent.context |

| apply | mandu.agent.apply |

| verify | mandu.agent.verify, mandu.build, mandu.run.tests |

| repair | mandu.agent.repair |

Allowed file edits:

Verification command:

mandu agent verify --changed --json --write

Common failures:

Repair path:

mandu agent repair --from .mandu/agent-verify.json --json

When to Apply

Reference these guidelines when:

Rule Categories by Priority

| Priority | Category | Impact | Prefix |

|----------|----------|--------|--------|

| 1 | Async Optimization | CRITICAL | perf-async- |

| 2 | Bundle Optimization | CRITICAL | perf-bundle- |

| 3 | Caching Strategies | HIGH | perf-cache- |

| 4 | Bun Runtime | HIGH | perf-bun- |

| 5 | Rendering | MEDIUM | perf-render- |

Quick Reference

1. Async Optimization (CRITICAL)

2. Bundle Optimization (CRITICAL)

3. Caching Strategies (HIGH)

4. Bun Runtime (HIGH)

5. Rendering (MEDIUM)

Performance Impact Summary

| Optimization | Typical Improvement |

|--------------|---------------------|

| Promise.all() | 2-10× faster |

| Direct imports | 15-70% faster dev boot |

| Island lazy loading | 40-60% smaller initial bundle |

| React.cache() | Eliminates duplicate queries |

| Bun.file() | 10× faster than Node fs |

How to Use

Read individual rule files for detailed explanations:

rules/perf-async-parallel.md
rules/perf-bundle-imports.md
rules/perf-bun-serve.md
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.