Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: use full qualified agent names (#38056)

Pavel Feldman0cc12d333457
diff --git a/examples/todomvc/.claude/agents/pwt-generator.md b/examples/todomvc/.claude/agents/playwright-test-generator.md
similarity index 98%
rename from examples/todomvc/.claude/agents/pwt-generator.md
rename to examples/todomvc/.claude/agents/playwright-test-generator.md
index b1fd5934a9..0504c924c6 100644
--- a/examples/todomvc/.claude/agents/pwt-generator.md
+++ b/examples/todomvc/.claude/agents/playwright-test-generator.md
@@ -1,5 +1,5 @@
---
-name: pwt-generator
+name: playwright-test-generator
description: 'Use this agent when you need to create automated browser tests using Playwright Examples: <example>Context: User wants to generate a test for the test plan item. <test-suite><!-- Verbatim name of the test spec group w/o ordinal like "Multiplication tests" --></test-suite> <test-name><!-- Name of the test case without the ordinal like "should add two numbers" --></test-name> <test-file><!-- Name of the file to save the test into, like tests/multiplication/should-add-two-numbers.spec.ts --></test-file> <seed-file><!-- Seed file path from test plan --></seed-file> <body><!-- Test case content including steps and expectations --></body></example>'
tools: Glob, Grep, Read, LS, mcp__playwright-test__browser_click, mcp__playwright-test__browser_drag, mcp__playwright-test__browser_evaluate, mcp__playwright-test__browser_file_upload, mcp__playwright-test__browser_handle_dialog, mcp__playwright-test__browser_hover, mcp__playwright-test__browser_navigate, mcp__playwright-test__browser_press_key, mcp__playwright-test__browser_select_option, mcp__playwright-test__browser_snapshot, mcp__playwright-test__browser_type, mcp__playwright-test__browser_verify_element_visible, mcp__playwright-test__browser_verify_list_visible, mcp__playwright-test__browser_verify_text_visible, mcp__playwright-test__browser_verify_value, mcp__playwright-test__browser_wait_for, mcp__playwright-test__generator_read_log, mcp__playwright-test__generator_setup_page, mcp__playwright-test__generator_write_test
model: sonnet
diff --git a/examples/todomvc/.claude/agents/pwt-healer.md b/examples/todomvc/.claude/agents/playwright-test-healer.md
similarity index 98%
rename from examples/todomvc/.claude/agents/pwt-healer.md
rename to examples/todomvc/.claude/agents/playwright-test-healer.md
index 946b92d865..b66280f03c 100644
--- a/examples/todomvc/.claude/agents/pwt-healer.md
+++ b/examples/todomvc/.claude/agents/playwright-test-healer.md
@@ -1,5 +1,5 @@
---
-name: pwt-healer
+name: playwright-test-healer
description: Use this agent when you need to debug and fix failing Playwright tests
tools: Glob, Grep, Read, LS, Edit, MultiEdit, Write, mcp__playwright-test__browser_console_messages, mcp__playwright-test__browser_evaluate, mcp__playwright-test__browser_generate_locator, mcp__playwright-test__browser_network_requests, mcp__playwright-test__browser_snapshot, mcp__playwright-test__test_debug, mcp__playwright-test__test_list, mcp__playwright-test__test_run
model: sonnet
diff --git a/examples/todomvc/.claude/agents/pwt-planner.md b/examples/todomvc/.claude/agents/playwright-test-planner.md
similarity index 99%
rename from examples/todomvc/.claude/agents/pwt-planner.md
rename to examples/todomvc/.claude/agents/playwright-test-planner.md
index 4daa45f186..da10326eb9 100644
--- a/examples/todomvc/.claude/agents/pwt-planner.md
+++ b/examples/todomvc/.claude/agents/playwright-test-planner.md
@@ -1,5 +1,5 @@
---
-name: pwt-planner
+name: playwright-test-planner
description: Use this agent when you need to create comprehensive test plan for a web application or website
tools: Glob, Grep, Read, LS, Edit, MultiEdit, Write, mcp__playwright-test__browser_click, mcp__playwright-test__browser_close, mcp__playwright-test__browser_console_messages, mcp__playwright-test__browser_drag, mcp__playwright-test__browser_evaluate, mcp__playwright-test__browser_file_upload, mcp__playwright-test__browser_handle_dialog, mcp__playwright-test__browser_hover, mcp__playwright-test__browser_navigate, mcp__playwright-test__browser_navigate_back, mcp__playwright-test__browser_network_requests, mcp__playwright-test__browser_press_key, mcp__playwright-test__browser_select_option, mcp__playwright-test__browser_snapshot, mcp__playwright-test__browser_take_screenshot, mcp__playwright-test__browser_type, mcp__playwright-test__browser_wait_for, mcp__playwright-test__planner_setup_page
model: sonnet
diff --git a/examples/todomvc/.claude/prompts/pwt-coverage.md b/examples/todomvc/.claude/prompts/playwright-test-coverage.md
similarity index 84%
rename from examples/todomvc/.claude/prompts/pwt-coverage.md
rename to examples/todomvc/.claude/prompts/playwright-test-coverage.md
index 04e4f811fb..e5b6f26c22 100644
--- a/examples/todomvc/.claude/prompts/pwt-coverage.md
+++ b/examples/todomvc/.claude/prompts/playwright-test-coverage.md
@@ -8,7 +8,7 @@ Parameters:
- Seed file (optional): the seed file to use, defaults to `tests/seed.spec.ts`
- Test plan file (optional): the test plan file to write, under `specs/` folder.
-1. Call #pwt-planner subagent with prompt:
+1. Call #playwright-test-planner subagent with prompt:
<plan>
<task-text><!-- the task --></task-text>
@@ -16,7 +16,7 @@ Parameters:
<plan-file><!-- path to test plan file to generate --></plan-file>
</plan>
-2. For each test case from the test plan file (1.1, 1.2, ...), one after another, not in parallel, call #pwt-generator subagent with prompt:
+2. For each test case from the test plan file (1.1, 1.2, ...), one after another, not in parallel, call #playwright-test-generator subagent with prompt:
<generate>
<test-suite><!-- Verbatim name of the test spec group w/o ordinal like "Multiplication tests" --></test-suite>
@@ -26,6 +26,6 @@ Parameters:
<body><!-- Test case content including steps and expectations --></body>
</generate>
-3. Call #pwt-healer subagent with prompt:
+3. Call #playwright-test-healer subagent with prompt:
<heal>Run all tests and fix the failing ones one after another.</heal>
diff --git a/examples/todomvc/.claude/prompts/pwt-generate.md b/examples/todomvc/.claude/prompts/playwright-test-generate.md
similarity index 81%
rename from examples/todomvc/.claude/prompts/pwt-generate.md
rename to examples/todomvc/.claude/prompts/playwright-test-generate.md
index b92662678c..335e9fd8ad 100644
--- a/examples/todomvc/.claude/prompts/pwt-generate.md
+++ b/examples/todomvc/.claude/prompts/playwright-test-generate.md
@@ -1,5 +1,5 @@
---
-agent: pwt-generator
+agent: playwright-test-generator
description: Generate test plan
---
diff --git a/packages/playwright/src/agents/pwt-heal.prompt.md b/examples/todomvc/.claude/prompts/playwright-test-heal.md
similarity index 71%
rename from packages/playwright/src/agents/pwt-heal.prompt.md
rename to examples/todomvc/.claude/prompts/playwright-test-heal.md
index 2fb1bc63ce..f1ca0c67f4 100644
--- a/packages/playwright/src/agents/pwt-heal.prompt.md
+++ b/examples/todomvc/.claude/prompts/playwright-test-heal.md
@@ -1,5 +1,5 @@
---
-agent: pwt-healer
+agent: playwright-test-healer
description: Fix tests
---
diff --git a/examples/todomvc/.claude/prompts/pwt-plan.md b/examples/todomvc/.claude/prompts/playwright-test-plan.md
similarity index 84%
rename from examples/todomvc/.claude/prompts/pwt-plan.md
rename to examples/todomvc/.claude/prompts/playwright-test-plan.md
index 32452abcd5..1c1f3a1871 100644
--- a/examples/todomvc/.claude/prompts/pwt-plan.md
+++ b/examples/todomvc/.claude/prompts/playwright-test-plan.md
@@ -1,5 +1,5 @@
---
-agent: pwt-planner
+agent: playwright-test-planner
description: Create test plan
---
diff --git a/examples/todomvc/.github/agents/pwt-generator.agent.md b/examples/todomvc/.github/agents/playwright-test-generator.agent.md
similarity index 99%
rename from examples/todomvc/.github/agents/pwt-generator.agent.md
rename to examples/todomvc/.github/agents/playwright-test-generator.agent.md
index 800407b47a..e52ddbf616 100644
--- a/examples/todomvc/.github/agents/pwt-generator.agent.md
+++ b/examples/todomvc/.github/agents/playwright-test-generator.agent.md
@@ -1,5 +1,5 @@
---
-name: pwt-generator
+name: playwright-test-generator
description: 'Use this agent when you need to create automated browser tests
using Playwright Examples: <example>Context: User wants to generate a test for
the test plan item. <test-suite><!-- Verbatim name of the test spec group w/o
diff --git a/examples/todomvc/.github/agents/pwt-healer.agent.md b/examples/todomvc/.github/agents/playwright-test-healer.agent.md
similarity index 98%
rename from examples/todomvc/.github/agents/pwt-healer.agent.md
rename to examples/todomvc/.github/agents/playwright-test-healer.agent.md
index a7092019fc..a77d07b45a 100644
--- a/examples/todomvc/.github/agents/pwt-healer.agent.md
+++ b/examples/todomvc/.github/agents/playwright-test-healer.agent.md
@@ -1,5 +1,5 @@
---
-name: pwt-healer
+name: playwright-test-healer
description: Use this agent when you need to debug and fix failing Playwright tests
tools:
- search
diff --git a/examples/todomvc/.github/agents/pwt-planner.agent.md b/examples/todomvc/.github/agents/playwright-test-planner.agent.md
similarity index 99%
rename from examples/todomvc/.github/agents/pwt-planner.agent.md
rename to examples/todomvc/.github/agents/playwright-test-planner.agent.md
index 44f8cb6539..8c51e58c8e 100644
--- a/examples/todomvc/.github/agents/pwt-planner.agent.md
+++ b/examples/todomvc/.github/agents/playwright-test-planner.agent.md
@@ -1,5 +1,5 @@
---
-name: pwt-planner
+name: playwright-test-planner
description: Use this agent when you need to create comprehensive test plan for
a web application or website
tools:
diff --git a/examples/todomvc/.github/prompts/pwt-coverage.prompt.md b/examples/todomvc/.github/prompts/playwright-test-coverage.prompt.md
similarity index 84%
rename from examples/todomvc/.github/prompts/pwt-coverage.prompt.md
rename to examples/todomvc/.github/prompts/playwright-test-coverage.prompt.md
index 7fd4491384..7852aa803a 100644
--- a/examples/todomvc/.github/prompts/pwt-coverage.prompt.md
+++ b/examples/todomvc/.github/prompts/playwright-test-coverage.prompt.md
@@ -8,7 +8,7 @@ Parameters:
- Seed file (optional): the seed file to use, defaults to `tests/seed.spec.ts`
- Test plan file (optional): the test plan file to write, under `specs/` folder.
-1. Call #pwt-planner subagent with prompt:
+1. Call #playwright-test-planner subagent with prompt:
<plan>
<task-text><!-- the task --></task-text>
@@ -16,7 +16,7 @@ Parameters:
<plan-file><!-- path to test plan file to generate --></plan-file>
</plan>
-2. For each test case from the test plan file (1.1, 1.2, ...), one after another, not in parallel, call #pwt-generator subagent with prompt:
+2. For each test case from the test plan file (1.1, 1.2, ...), one after another, not in parallel, call #playwright-test-generator subagent with prompt:
<generate>
<test-suite><!-- Verbatim name of the test spec group w/o ordinal like "Multiplication tests" --></test-suite>
@@ -26,6 +26,6 @@ Parameters:
<body><!-- Test case content including steps and expectations --></body>
</generate>
-3. Call #pwt-healer subagent with prompt:
+3. Call #playwright-test-healer subagent with prompt:
<heal>Run all tests and fix the failing ones one after another.</heal>
diff --git a/packages/playwright/src/agents/pwt-generate.prompt.md b/examples/todomvc/.github/prompts/playwright-test-generate.prompt.md
similarity index 81%
rename from packages/playwright/src/agents/pwt-generate.prompt.md
rename to examples/todomvc/.github/prompts/playwright-test-generate.prompt.md
index b92662678c..335e9fd8ad 100644
--- a/packages/playwright/src/agents/pwt-generate.prompt.md
+++ b/examples/todomvc/.github/prompts/playwright-test-generate.prompt.md
@@ -1,5 +1,5 @@
---
-agent: pwt-generator
+agent: playwright-test-generator
description: Generate test plan
---
diff --git a/examples/todomvc/.claude/prompts/pwt-heal.md b/examples/todomvc/.github/prompts/playwright-test-heal.prompt.md
similarity index 71%
rename from examples/todomvc/.claude/prompts/pwt-heal.md
rename to examples/todomvc/.github/prompts/playwright-test-heal.prompt.md
index 2fb1bc63ce..f1ca0c67f4 100644
--- a/examples/todomvc/.claude/prompts/pwt-heal.md
+++ b/examples/todomvc/.github/prompts/playwright-test-heal.prompt.md
@@ -1,5 +1,5 @@
---
-agent: pwt-healer
+agent: playwright-test-healer
description: Fix tests
---
diff --git a/examples/todomvc/.github/prompts/pwt-plan.prompt.md b/examples/todomvc/.github/prompts/playwright-test-plan.prompt.md
similarity index 84%
rename from examples/todomvc/.github/prompts/pwt-plan.prompt.md
rename to examples/todomvc/.github/prompts/playwright-test-plan.prompt.md
index 32452abcd5..1c1f3a1871 100644
--- a/examples/todomvc/.github/prompts/pwt-plan.prompt.md
+++ b/examples/todomvc/.github/prompts/playwright-test-plan.prompt.md
@@ -1,5 +1,5 @@
---
-agent: pwt-planner
+agent: playwright-test-planner
description: Create test plan
---
diff --git a/examples/todomvc/prompts/README.md b/examples/todomvc/prompts/README.md
deleted file mode 100644
index 2457872099..0000000000
--- a/examples/todomvc/prompts/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# Prompts
-
-This is a directory for useful prompts.
diff --git a/packages/playwright/src/agents/generateAgents.ts b/packages/playwright/src/agents/generateAgents.ts
index 6271fe9f0e..5184c6a9cd 100644
--- a/packages/playwright/src/agents/generateAgents.ts
+++ b/packages/playwright/src/agents/generateAgents.ts
@@ -118,10 +118,6 @@ export class ClaudeGenerator {
for (const agent of agents)
await writeFile(`.claude/agents/${agent.header.name}.md`, ClaudeGenerator.agentSpec(agent), '🤖', 'agent definition');
- await deleteFile(`.claude/agents/playwright-test-planner.md`, 'legacy planner agent');
- await deleteFile(`.claude/agents/playwright-test-generator.md`, 'legacy generator agent');
- await deleteFile(`.claude/agents/playwright-test-healer.md`, 'legacy healer agent');
-
await writeFile('.mcp.json', JSON.stringify({
mcpServers: {
'playwright-test': {
@@ -180,10 +176,6 @@ export class OpencodeGenerator {
await writeFile(`.opencode/prompts/${agent.header.name}.md`, prompt.join('\n'), '🤖', 'agent definition');
}
- await deleteFile(`.opencode/prompts/playwright-test-planner.md`, 'legacy planner agent');
- await deleteFile(`.opencode/prompts/playwright-test-generator.md`, 'legacy generator agent');
- await deleteFile(`.opencode/prompts/playwright-test-healer.md`, 'legacy healer agent');
-
await writeFile('opencode.json', OpencodeGenerator.configuration(agents), '🔧', 'opencode configuration');
initRepoDone();
diff --git a/packages/playwright/src/agents/pwt-coverage.prompt.md b/packages/playwright/src/agents/playwright-test-coverage.prompt.md
similarity index 84%
rename from packages/playwright/src/agents/pwt-coverage.prompt.md
rename to packages/playwright/src/agents/playwright-test-coverage.prompt.md
index b207d398d5..4845192042 100644
--- a/packages/playwright/src/agents/pwt-coverage.prompt.md
+++ b/packages/playwright/src/agents/playwright-test-coverage.prompt.md
@@ -8,7 +8,7 @@ Parameters:
- Seed file (optional): the seed file to use, defaults to `${seedFile}`
- Test plan file (optional): the test plan file to write, under `specs/` folder.
-1. Call #pwt-planner subagent with prompt:
+1. Call #playwright-test-planner subagent with prompt:
<plan>
<task-text><!-- the task --></task-text>
@@ -16,7 +16,7 @@ Parameters:
<plan-file><!-- path to test plan file to generate --></plan-file>
</plan>
-2. For each test case from the test plan file (1.1, 1.2, ...), one after another, not in parallel, call #pwt-generator subagent with prompt:
+2. For each test case from the test plan file (1.1, 1.2, ...), one after another, not in parallel, call #playwright-test-generator subagent with prompt:
<generate>
<test-suite><!-- Verbatim name of the test spec group w/o ordinal like "Multiplication tests" --></test-suite>
@@ -26,6 +26,6 @@ Parameters:
<body><!-- Test case content including steps and expectations --></body>
</generate>
-3. Call #pwt-healer subagent with prompt:
+3. Call #playwright-test-healer subagent with prompt:
<heal>Run all tests and fix the failing ones one after another.</heal>
diff --git a/examples/todomvc/.github/prompts/pwt-generate.prompt.md b/packages/playwright/src/agents/playwright-test-generate.prompt.md
similarity index 81%
rename from examples/todomvc/.github/prompts/pwt-generate.prompt.md
rename to packages/playwright/src/agents/playwright-test-generate.prompt.md
index b92662678c..335e9fd8ad 100644
--- a/examples/todomvc/.github/prompts/pwt-generate.prompt.md
+++ b/packages/playwright/src/agents/playwright-test-generate.prompt.md
@@ -1,5 +1,5 @@
---
-agent: pwt-generator
+agent: playwright-test-generator
description: Generate test plan
---
diff --git a/packages/playwright/src/agents/pwt-generator.agent.md b/packages/playwright/src/agents/playwright-test-generator.agent.md
similarity index 99%
rename from packages/playwright/src/agents/pwt-generator.agent.md
rename to packages/playwright/src/agents/playwright-test-generator.agent.md
index 4956063a10..b5b49d04ba 100644
--- a/packages/playwright/src/agents/pwt-generator.agent.md
+++ b/packages/playwright/src/agents/playwright-test-generator.agent.md
@@ -1,5 +1,5 @@
---
-name: pwt-generator
+name: playwright-test-generator
description: Use this agent when you need to create automated browser tests using Playwright
model: sonnet
color: blue
diff --git a/examples/todomvc/.github/prompts/pwt-heal.prompt.md b/packages/playwright/src/agents/playwright-test-heal.prompt.md
similarity index 71%
rename from examples/todomvc/.github/prompts/pwt-heal.prompt.md
rename to packages/playwright/src/agents/playwright-test-heal.prompt.md
index 2fb1bc63ce..f1ca0c67f4 100644
--- a/examples/todomvc/.github/prompts/pwt-heal.prompt.md
+++ b/packages/playwright/src/agents/playwright-test-heal.prompt.md
@@ -1,5 +1,5 @@
---
-agent: pwt-healer
+agent: playwright-test-healer
description: Fix tests
---
diff --git a/packages/playwright/src/agents/pwt-healer.agent.md b/packages/playwright/src/agents/playwright-test-healer.agent.md
similarity index 98%
rename from packages/playwright/src/agents/pwt-healer.agent.md
rename to packages/playwright/src/agents/playwright-test-healer.agent.md
index dd1b3a103b..97acadceae 100644
--- a/packages/playwright/src/agents/pwt-healer.agent.md
+++ b/packages/playwright/src/agents/playwright-test-healer.agent.md
@@ -1,5 +1,5 @@
---
-name: pwt-healer
+name: playwright-test-healer
description: Use this agent when you need to debug and fix failing Playwright tests
model: sonnet
color: red
diff --git a/packages/playwright/src/agents/pwt-plan.prompt.md b/packages/playwright/src/agents/playwright-test-plan.prompt.md
similarity index 84%
rename from packages/playwright/src/agents/pwt-plan.prompt.md
rename to packages/playwright/src/agents/playwright-test-plan.prompt.md
index 5fa1a6ad29..18e1c90028 100644
--- a/packages/playwright/src/agents/pwt-plan.prompt.md
+++ b/packages/playwright/src/agents/playwright-test-plan.prompt.md
@@ -1,5 +1,5 @@
---
-agent: pwt-planner
+agent: playwright-test-planner
description: Create test plan
---
diff --git a/packages/playwright/src/agents/pwt-planner.agent.md b/packages/playwright/src/agents/playwright-test-planner.agent.md
similarity index 99%
rename from packages/playwright/src/agents/pwt-planner.agent.md
rename to packages/playwright/src/agents/playwright-test-planner.agent.md
index 08a2231b98..f74ccfdccd 100644
--- a/packages/playwright/src/agents/pwt-planner.agent.md
+++ b/packages/playwright/src/agents/playwright-test-planner.agent.md
@@ -1,5 +1,5 @@
---
-name: pwt-planner
+name: playwright-test-planner
description: Use this agent when you need to create comprehensive test plan for a web application or website
model: sonnet
color: green