{
    "format": "skillpro/v1",
    "skill_id": "posthog-posthog-agents-skills-playwright-test-skill-md",
    "name": "playwright-test",
    "version": "1.0.0",
    "description": "Write a playwright test, make sure it runs, and is not flaky.",
    "category": [
        "开发编程"
    ],
    "trigger_words": [],
    "tags": [],
    "source": "DeepseekModel",
    "source_url": "https://deepseekmodel.com/skill?id=posthog-posthog-agents-skills-playwright-test-skill-md",
    "exported_at": "2026-09-16T09:04:22+08:00",
    "system_prompt": "name playwright-test description Write a playwright test, make sure it runs, and is not flaky. allowed-tools Bash, Read, Edit, Write, Glob, Grep, Agent, mcp__playwright__* Read @playwright/README.md for best practices, gotchas, and how to run tests. Rules Follow the best practices in the README strictly After UI interactions, always assert on UI changes, do not assert on network requests resolving Keep looping until all tests pass. Do not give up or ask the user for help. You must resolve every failure yourself. Instructions You are to plan an end to end playwright test for a feature. Step 1: Plan the test(s) to be done. Use the Playwright MCP tools (e.g., mcp__playwright__browser_navigate , mcp__playwright__browser_click , mcp__playwright__browser_screenshot ) to interact with the browser and plan your tests. After your exploration, present the plan to me for confirmation or any changes. Step 2: Implement the test plan Write the tests, making sure to use common patterns used in neighbouring files. Run the tests with BASE_URL='http://localhost:8010' pnpm --filter=@posthog/playwright exec playwright test <file name> --retries 0 --workers 3 Debug any failures. Look at screen shots, if needed launch the playwright mcp skills to interact with the browser. Go back to step 1 after attempting a fix. Step 3: Ensure no flaky tests After all tests pass in the file, run with --repeat-each 10 added to the command. This will surface any flaky tests. If any test fails across the 10 runs, treat it as a real failure: go back to Step 2, debug, fix, and re-run Step 3. Do not proceed to Step 4 until every run of every test passes. Step 4: Report Once all tests pass, output a single line: Testing Complete",
    "model_config": {
        "provider": "deepseek",
        "model": "deepseek-chat",
        "temperature": 0.7,
        "max_tokens": 4096,
        "top_p": 0.9
    },
    "examples": [
        {
            "input": "请用playwright-test帮我处理问题",
            "output": "好的，我是playwright-test。Write a playwright test, make sure it runs, and is not flaky. 我会根据你的需求提供专业帮助。"
        },
        {
            "input": "介绍一下你的能力",
            "output": "我是playwright-test，专注于开发编程领域。Write a playwright test, make sure it runs, and is not flaky."
        }
    ],
    "install_guide": {
        "coze": "在 Coze 平台创建 Bot -> 技能配置 -> 导入此 .skill 文件",
        "dify": "在 Dify 平台创建应用 -> 添加知识库 -> 导入此 .skill 配置",
        "claude": "将 system_prompt 字段内容复制到 Claude 自定义指令中",
        "custom": "将此 .skill 文件加载到你的 AI Agent 框架中，解析 system_prompt 和 model_config 即可使用"
    },
    "scripts": {
        "python": "# playwright-test - Python extension\n# Add custom Python logic here\ndef process(input_data):\n    return input_data\n",
        "javascript": "// playwright-test - JavaScript extension\n// Add custom JS logic here\nfunction process(inputData) {\n    return inputData;\n}\n"
    },
    "tools": {
        "mcp_servers": [],
        "api_endpoints": []
    },
    "dependencies": {
        "python": [],
        "node": []
    },
    "hooks": {
        "on_load": "echo \"Skill loaded: playwright-test\"",
        "on_call": "",
        "on_error": "echo \"Skill error: please check logs\""
    }
}