Skip to content

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

chore: keep skills scoped to playwright-cli for now (#39119)

Pavel Feldman2d3c97ae7bac
diff --git a/packages/playwright/src/mcp/terminal/program.ts b/packages/playwright/src/mcp/terminal/program.ts
index 88428051e5..e43443a41c 100644
--- a/packages/playwright/src/mcp/terminal/program.ts
+++ b/packages/playwright/src/mcp/terminal/program.ts
@@ -567,7 +567,7 @@ export async function program(packageLocation: string) {
async function installSkills() {
const skillSourceDir = path.join(__dirname, '../../skill');
- const skillDestDir = path.join(process.cwd(), '.claude', 'skills', 'playwright');
+ const skillDestDir = path.join(process.cwd(), '.claude', 'skills', 'playwright-cli');
if (!fs.existsSync(skillSourceDir)) {
console.error('Skills source directory not found:', skillSourceDir);
diff --git a/tests/mcp/cli-misc.spec.ts b/tests/mcp/cli-misc.spec.ts
index 36fbd0d354..47c38b54c2 100644
--- a/tests/mcp/cli-misc.spec.ts
+++ b/tests/mcp/cli-misc.spec.ts
@@ -49,12 +49,12 @@ test('install', async ({ cli, server, mcpBrowser }) => {
test('install-skills', async ({ cli }, testInfo) => {
const { output } = await cli('install-skills');
- expect(output).toContain(`Skills installed to .claude${path.sep}skills${path.sep}playwright`);
+ expect(output).toContain(`Skills installed to .claude${path.sep}skills${path.sep}playwright-cli`);
- const skillFile = testInfo.outputPath('.claude', 'skills', 'playwright', 'SKILL.md');
+ const skillFile = testInfo.outputPath('.claude', 'skills', 'playwright-cli', 'SKILL.md');
expect(fs.existsSync(skillFile)).toBe(true);
- const referencesDir = testInfo.outputPath('.claude', 'skills', 'playwright', 'references');
+ const referencesDir = testInfo.outputPath('.claude', 'skills', 'playwright-cli', 'references');
const references = await fs.promises.readdir(referencesDir);
expect(references.length).toBeGreaterThan(0);
});