mandu-testing
Testing patterns for Mandu applications. Use when writing unit tests, integration tests, or E2E tests. Triggers on test, spec, Bun test, Playwright, or…
от konamgil★ 46 звёзд на GitHub
Установить mandu-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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:
- Co-located
*.test.ts/*.test.tsxfiles tests/e2e/**/*.spec.ts- Test fixtures and mocks scoped to the planned domain
Verification command:
mandu agent verify --changed --json --write
Common failures:
- Running broad watch-mode tests as an agent default
- Adding tests that bypass the route/slot/contract path under change
- Applying ATE healing before reading the verify report
Repair path:
mandu agent repair --from .mandu/agent-verify.json --json
When to Apply
Reference these guidelines when:
- Writing unit tests for slots
- Testing Island components
- Setting up E2E tests with Playwright
- Mocking external dependencies
- Testing authentication flows
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)
test-slot-unit- Unit test slot handlerstest-slot-guard- Test guard authenticationtest-slot-integration- Integration test with database
2. Component Testing (HIGH)
test-component-island- Test Island componentstest-component-render- Test rendering outputtest-component-interaction- Test user interactions
3. E2E Testing (MEDIUM)
test-e2e-playwright- Playwright setup and patternstest-e2e-auth- Test authentication flowstest-e2e-navigation- Test page navigation
4. Mocking (MEDIUM)
test-mock-fetch- Mock fetch requeststest-mock-database- Mock database operations
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
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- metadata.json
- rules/_sections.md
- rules/_template.md
- rules/test-component-island.md
- rules/test-e2e-playwright.md
- rules/test-mock-fetch.md
- rules/test-slot-unit.md
FAQ
Что делает скилл mandu-testing?
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.
Как установить скилл mandu-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mandu-testing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…