Mandu testing

From konamgil/mandu · View interactive version

Mandu testing is an AI agent skill from the GitHub repository konamgil/mandu. Testing patterns for Mandu applications. Use when writing unit tests, integration tests, or E2E tests. Triggers on test, spec, Bun test, Playwright, or testing tasks.

How to use this skill

Skill file

Mandu Testing

Mandu 애플리케이션의 테스트 패턴 가이드. Bun test를 활용한 단위 테스트, slot 테스트, Island 컴포넌트 테스트, Playwright E2E 테스트를 다룹니다.

Agent Workflow Contract

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

Use it only after mandu.agent.plan selects testing or mandu.agent.verify asks for targeted test coverage.

Canonical workflow step: verify -> repair.

Preferred MCP tools:

| Step | Tools |

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

| plan | mandu.agent.plan |

| verify | mandu.agent.verify, mandu.run.tests, mandu.ate.generate, mandu.ate.run |

| repair | mandu.agent.repair, mandu.ate.heal |

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 | Slot Testing | HIGH | test-slot- |

| 2 | Component Testing | HIGH | test-component- |

| 3 | E2E Testing | MEDIUM | test-e2e- |

| 4 | Mocking | MEDIUM | test-mock- |

Quick Reference

1. Slot Testing (HIGH)

2. Component Testing (HIGH)

3. E2E Testing (MEDIUM)

4. Mocking (MEDIUM)

Low-Level Test Commands

Use these only after agent plan or agent verify identifies the target:

mandu agent verify --changed --json --write
bun test src/slots/user.test.ts
bun test --coverage

Test File Convention

spec/slots/
├── users.slot.ts
├── users.slot.test.ts    # Slot tests
app/
├── dashboard/
│   ├── client.tsx
│   └── client.test.tsx   # Component tests
tests/
└── e2e/
    └── auth.spec.ts      # E2E tests

How to Use

Read individual rule files for detailed explanations:

rules/test-slot-unit.md
rules/test-component-island.md
rules/test-e2e-playwright.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.