# AGENTS.md instructions for ブラウザ自動化と UI 検証のための Playwright CLI

Use ブラウザ自動化と UI 検証のための Playwright CLI only for: CLI からブラウザテスト、trace、ユーザーフロー検証を実行できます。

## Default behavior

- Prefer non-interactive commands and stable output formats: json, junit, html, text.
- Start with read-only inspection commands before changing state.
- Show the exact command before destructive or deployment actions.
- Require explicit user approval for commands marked `requires-review` or `destructive`.

## Useful commands

- safe: `npx playwright test` — Runs browser tests in CI or locally.
- safe: `npx playwright show-report` — Inspects the generated HTML report.
- requires-review: `npx playwright codegen https://example.com` — Records browser actions for a target site.

## Safety notes

- Browser automation should avoid destructive authenticated flows unless explicitly approved.
- Use screenshots, traces, and test reports as evidence for agent conclusions.