mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-08-28 05:27:41 +00:00
Replace install_playwright command node with Playwright MCP server
The Playwright MCP server provides a browser_install tool, so we can drop the separate command node and let the agent install the browser via MCP instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
5883b71efd
commit
1263637211
3 changed files with 14 additions and 9 deletions
|
|
@ -1,14 +1,14 @@
|
|||
Your task is to verify that the develop-web-game skill is properly set up.
|
||||
|
||||
1. Call the `use_skill` tool with skill_name "develop-web-game" to load the skill instructions.
|
||||
2. Read the skill instructions and identify the asset file paths referenced in them.
|
||||
3. Verify the following files exist and are readable:
|
||||
1. Call the `browser_install` Playwright MCP tool to ensure the browser is installed.
|
||||
2. Call the `use_skill` tool with skill_name "develop-web-game" to load the skill instructions.
|
||||
3. Read the skill instructions and identify the asset file paths referenced in them.
|
||||
4. Verify the following files exist and are readable:
|
||||
- `skills/develop-web-game/scripts/web_game_playwright_client.js`
|
||||
- `skills/develop-web-game/references/action_payloads.json`
|
||||
- `skills/develop-web-game/SKILL.md`
|
||||
4. Read the contents of `action_payloads.json` and confirm it contains valid JSON with a "steps" array.
|
||||
5. Read the first 10 lines of `web_game_playwright_client.js` and confirm it imports playwright.
|
||||
6. Verify that `npx playwright --version` works (playwright should be available after the install step).
|
||||
5. Read the contents of `action_payloads.json` and confirm it contains valid JSON with a "steps" array.
|
||||
6. Read the first 10 lines of `web_game_playwright_client.js` and confirm it imports playwright.
|
||||
7. Write a summary report to `output/skill-verification.md` with the results.
|
||||
|
||||
Report success or failure for each check.
|
||||
|
|
|
|||
|
|
@ -8,9 +8,7 @@ digraph WebGameDemo {
|
|||
start [shape=Mdiamond, label="Start"]
|
||||
exit [shape=Msquare, label="Exit"]
|
||||
|
||||
install_playwright [label="Install Playwright", shape=parallelogram, script="npx playwright install --with-deps chromium 2>&1 || true"]
|
||||
|
||||
verify_skill [label="Verify Skill Setup", prompt="@verify-prompt.md"]
|
||||
|
||||
start -> install_playwright -> verify_skill -> exit
|
||||
start -> verify_skill -> exit
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,3 +19,10 @@ name = "daytona-medium"
|
|||
|
||||
[assets]
|
||||
include = ["output/**"]
|
||||
|
||||
[mcp_servers.playwright]
|
||||
type = "sandbox"
|
||||
command = ["npx", "@playwright/mcp@latest", "--port", "3100", "--headless", "--browser", "chromium"]
|
||||
port = 3100
|
||||
startup_timeout_secs = 60
|
||||
tool_timeout_secs = 120
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue