# Playwright AI MCP Tutor

> Teach and implement Playwright AI agent workflows (Planner, Generator, Healer) with MCP and repository guardrails. Use when preparing workshops, generating Playwright tests with architecture constraints, or enforcing deterministic code generation through a rule engine.

- Skill: `pramoddutta/playwright-ai-mcp-tutor` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add pramoddutta/playwright-ai-mcp-tutor`
- Raw SKILL.md: https://api.skillmd.com/api/skills/pramoddutta/playwright-ai-mcp-tutor/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: PramodDutta (https://skillmd.com/u/pramoddutta)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/pramoddutta/playwright-ai-mcp-tutor

---


# Playwright AI MCP Tutor Skill

Use this skill to teach or execute AI-assisted test automation in this repository.

## Core Workflow

1. Read architecture constraints from `references/rules.md`.
2. Ask Planner to output scenarios, tags, and impacted files only.
3. Ask Generator to write code only in approved folders.
4. Run `npm run rules:check` and relevant tests.
5. If failing, ask Healer to patch minimal code using logs/traces.
6. Re-run rule engine and tests.

## Required Constraints

- Keep `Pages -> Modules -> Tests` layering.
- Place page objects in `src/pages`.
- Place module/modal workflow code in `src/modules`.
- Place utility code in `src/utils`.
- Keep direct locators out of modules.

## Use Prompt Templates

Load `references/prompts.md` and reuse prompts with repository-specific inputs.

## Teaching Sequence

1. Explain the three-agent model.
2. Demonstrate MCP browser grounding.
3. Run a live generate -> validate -> heal loop.
4. Make students pass `rules:check` before grading.

