[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DVC62M2MH3F313RCJ0K1RP":3,"skill-same:01M7DVC62M2MH3F313RCJ0K1RP":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7DVC62M2MH3F313RCJ0K1RP","mk-playwright-cli",null,"Session-persistent browser automation via Playwright CLI: form filling, screenshots, data extraction, multi-step flows. NOT for autonomous flows (mk:agent-browser) or .spec.ts E2E code (mk:qa-manual).","ngocsangyem\u002FMeowKit","ngocsangyem","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F33769536?v=4","01M6J3FSMJAG9PVQEGRT7AQ9J2","Sang Nguyen","01M6J3FSRTJG0MNP6NV71639RM",16,"MIT","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-playwright-cli\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: \"mk-playwright-cli\"\ndescription: \"Session-persistent browser automation via Playwright CLI: form filling, screenshots, data extraction, multi-step flows. NOT for autonomous flows (mk:agent-browser) or .spec.ts E2E code (mk:qa-manual).\"\n---\n\n# Browser Automation with playwright-cli\n\n> **Use playwright-cli when:** DOM interaction, navigation, data extraction, or generating reusable `.spec.ts` E2E test code.\n> **Use `mk:agent-browser` instead when:** session persistence (auth flows, MFA, cookie import) is required.\n\n## Quick Start\n\n```bash\nplaywright-cli open https:\u002F\u002Fplaywright.dev\nplaywright-cli snapshot                  # Get element refs (e1, e2, ...)\nplaywright-cli click e15\nplaywright-cli type \"page.click\"\nplaywright-cli press Enter\nplaywright-cli screenshot\nplaywright-cli close\n```\n\n## Core Workflow\n\n1. `open \u003Curl>` — navigate to page\n2. `snapshot` — get accessibility tree with element refs (`e1`, `e2`, ...)\n3. Interact using refs: `click`, `fill`, `type`, `select`, `check`\n4. Re-snapshot after navigation or DOM changes\n5. `close` when done\n\n```bash\nplaywright-cli open https:\u002F\u002Fexample.com\u002Fform\nplaywright-cli snapshot\nplaywright-cli fill e1 \"user@example.com\"\nplaywright-cli fill e2 \"password123\"\nplaywright-cli click e3\nplaywright-cli snapshot\nplaywright-cli close\n```\n\n## Most-Used Commands\n\n```bash\n# Navigation\nplaywright-cli goto \u003Curl>\nplaywright-cli go-back \u002F go-forward \u002F reload\n\n# Interaction\nplaywright-cli click e3\nplaywright-cli fill e5 \"text\"         # Clear and type\nplaywright-cli type \"text\"            # Type at current focus\nplaywright-cli press Enter\nplaywright-cli select e9 \"option-value\"\nplaywright-cli check e12 \u002F uncheck e12\n\n# Snapshot & capture\nplaywright-cli snapshot\nplaywright-cli snapshot --filename=after-click.yaml\nplaywright-cli screenshot\nplaywright-cli screenshot --filename=page.png\nplaywright-cli pdf --filename=page.pdf\n\n# Auth state\nplaywright-cli state-save auth.json\nplaywright-cli state-load auth.json\n```\n\nFull command listing: [references\u002Fcommand-reference.md](references\u002Fcommand-reference.md)\n\n## Snapshots\n\nAfter each command, playwright-cli writes a snapshot YAML of the current browser state.\nUse `--filename=` when the artifact is a workflow result; omit for auto-timestamped files.\n\n```\n.playwright-cli\u002Fpage-2026-02-14T19-22-42-679Z.yml\n```\n\n## Sessions\n\n```bash\nplaywright-cli -s=mysession open example.com --persistent\nplaywright-cli -s=mysession click e6\nplaywright-cli -s=mysession close\nplaywright-cli list          # List all active sessions\nplaywright-cli close-all     # Close all browsers\nplaywright-cli kill-all      # Force kill stale processes\n```\n\nNamed sessions run isolated contexts (separate cookies, storage, history).\nFull session patterns: [references\u002Fsession-management.md](references\u002Fsession-management.md)\n\n## Storage & Network\n\n```bash\n# Cookies \u002F localStorage \u002F sessionStorage\nplaywright-cli cookie-list \u002F cookie-set \u002F cookie-delete \u002F cookie-clear\nplaywright-cli localstorage-get theme \u002F localstorage-set theme dark\n\n# Request mocking\nplaywright-cli route \"**\u002F*.jpg\" --status=404\nplaywright-cli route \"https:\u002F\u002Fapi.example.com\u002F**\" --body='{\"mock\": true}'\nplaywright-cli unroute\n```\n\n## DevTools & Debugging\n\n```bash\nplaywright-cli console             # View console output\nplaywright-cli network             # View network requests\nplaywright-cli tracing-start \u002F tracing-stop\nplaywright-cli video-start \u002F playwright-cli video-stop video.webm\nplaywright-cli run-code \"async page => await page.context().grantPermissions(['geolocation'])\"\n```\n\n## Setup\n\nRequires Playwright MCP server. Configure in `.mcp.json`:\n```json\n{ \"playwright\": { \"command\": \"npx\", \"args\": [\"@playwright\u002Fmcp@latest\"] } }\n```\nCopy from `.mcp.json.example` if not configured.\nIf global binary unavailable: `npx playwright-cli \u003Ccommand>`\n\n## Gotchas\n\n- **Flaky selectors on SPAs**: `data-testid` changes between renders → prefer role-based selectors (`getByRole`) over CSS selectors\n- **Auth state not persisting between tests**: each test starts with fresh context → use `state-save` \u002F `state-load` to persist auth cookies across runs\n\n## References\n\n| Reference | When to Use |\n| --- | --- |\n| [references\u002Fcommand-reference.md](references\u002Fcommand-reference.md) | Full command listing (core, tabs, storage, network, DevTools, open params) |\n| [references\u002Fsession-management.md](references\u002Fsession-management.md) | Named sessions, concurrent scraping, persistent profiles, cleanup |\n| [references\u002Frequest-mocking.md](references\u002Frequest-mocking.md) | Request mocking patterns |\n| [references\u002Fstorage-state.md](references\u002Fstorage-state.md) | Storage state (cookies, localStorage) |\n| [references\u002Ftest-generation.md](references\u002Ftest-generation.md) | Test generation |\n| [references\u002Ftracing.md](references\u002Ftracing.md) | Tracing |\n| [references\u002Fvideo-recording.md](references\u002Fvideo-recording.md) | Video recording |\n| [references\u002Frunning-code.md](references\u002Frunning-code.md) | Running Playwright code |","# Browser Automation with playwright-cli\n\n> **Use playwright-cli when:** DOM interaction, navigation, data extraction, or generating reusable `.spec.ts` E2E test code.\n> **Use `mk:agent-browser` instead when:** session persistence (auth flows, MFA, cookie import) is required.\n\n## Quick Start\n\n```bash\nplaywright-cli open https:\u002F\u002Fplaywright.dev\nplaywright-cli snapshot                  # Get element refs (e1, e2, ...)\nplaywright-cli click e15\nplaywright-cli type \"page.click\"\nplaywright-cli press Enter\nplaywright-cli screenshot\nplaywright-cli close\n```\n\n## Core Workflow\n\n1. `open \u003Curl>` — navigate to page\n2. `snapshot` — get accessibility tree with element refs (`e1`, `e2`, ...)\n3. Interact using refs: `click`, `fill`, `type`, `select`, `check`\n4. Re-snapshot after navigation or DOM changes\n5. `close` when done\n\n```bash\nplaywright-cli open https:\u002F\u002Fexample.com\u002Fform\nplaywright-cli snapshot\nplaywright-cli fill e1 \"user@example.com\"\nplaywright-cli fill e2 \"password123\"\nplaywright-cli click e3\nplaywright-cli snapshot\nplaywright-cli close\n```\n\n## Most-Used Commands\n\n```bash\n# Navigation\nplaywright-cli goto \u003Curl>\nplaywright-cli go-back \u002F go-forward \u002F reload\n\n# Interaction\nplaywright-cli click e3\nplaywright-cli fill e5 \"text\"         # Clear and type\nplaywright-cli type \"text\"            # Type at current focus\nplaywright-cli press Enter\nplaywright-cli select e9 \"option-value\"\nplaywright-cli check e12 \u002F uncheck e12\n\n# Snapshot & capture\nplaywright-cli snapshot\nplaywright-cli snapshot --filename=after-click.yaml\nplaywright-cli screenshot\nplaywright-cli screenshot --filename=page.png\nplaywright-cli pdf --filename=page.pdf\n\n# Auth state\nplaywright-cli state-save auth.json\nplaywright-cli state-load auth.json\n```\n\nFull command listing: [references\u002Fcommand-reference.md](references\u002Fcommand-reference.md)\n\n## Snapshots\n\nAfter each command, playwright-cli writes a snapshot YAML of the current browser state.\nUse `--filename=` when the artifact is a workflow result; omit for auto-timestamped files.\n\n```\n.playwright-cli\u002Fpage-2026-02-14T19-22-42-679Z.yml\n```\n\n## Sessions\n\n```bash\nplaywright-cli -s=mysession open example.com --persistent\nplaywright-cli -s=mysession click e6\nplaywright-cli -s=mysession close\nplaywright-cli list          # List all active sessions\nplaywright-cli close-all     # Close all browsers\nplaywright-cli kill-all      # Force kill stale processes\n```\n\nNamed sessions run isolated contexts (separate cookies, storage, history).\nFull session patterns: [references\u002Fsession-management.md](references\u002Fsession-management.md)\n\n## Storage & Network\n\n```bash\n# Cookies \u002F localStorage \u002F sessionStorage\nplaywright-cli cookie-list \u002F cookie-set \u002F cookie-delete \u002F cookie-clear\nplaywright-cli localstorage-get theme \u002F localstorage-set theme dark\n\n# Request mocking\nplaywright-cli route \"**\u002F*.jpg\" --status=404\nplaywright-cli route \"https:\u002F\u002Fapi.example.com\u002F**\" --body='{\"mock\": true}'\nplaywright-cli unroute\n```\n\n## DevTools & Debugging\n\n```bash\nplaywright-cli console             # View console output\nplaywright-cli network             # View network requests\nplaywright-cli tracing-start \u002F tracing-stop\nplaywright-cli video-start \u002F playwright-cli video-stop video.webm\nplaywright-cli run-code \"async page => await page.context().grantPermissions(['geolocation'])\"\n```\n\n## Setup\n\nRequires Playwright MCP server. Configure in `.mcp.json`:\n```json\n{ \"playwright\": { \"command\": \"npx\", \"args\": [\"@playwright\u002Fmcp@latest\"] } }\n```\nCopy from `.mcp.json.example` if not configured.\nIf global binary unavailable: `npx playwright-cli \u003Ccommand>`\n\n## Gotchas\n\n- **Flaky selectors on SPAs**: `data-testid` changes between renders → prefer role-based selectors (`getByRole`) over CSS selectors\n- **Auth state not persisting between tests**: each test starts with fresh context → use `state-save` \u002F `state-load` to persist auth cookies across runs\n\n## References\n\n| Reference | When to Use |\n| --- | --- |\n| [references\u002Fcommand-reference.md](references\u002Fcommand-reference.md) | Full command listing (core, tabs, storage, network, DevTools, open params) |\n| [references\u002Fsession-management.md](references\u002Fsession-management.md) | Named sessions, concurrent scraping, persistent profiles, cleanup |\n| [references\u002Frequest-mocking.md](references\u002Frequest-mocking.md) | Request mocking patterns |\n| [references\u002Fstorage-state.md](references\u002Fstorage-state.md) | Storage state (cookies, localStorage) |\n| [references\u002Ftest-generation.md](references\u002Ftest-generation.md) | Test generation |\n| [references\u002Ftracing.md](references\u002Ftracing.md) | Tracing |\n| [references\u002Fvideo-recording.md](references\u002Fvideo-recording.md) | Video recording |\n| [references\u002Frunning-code.md](references\u002Frunning-code.md) | Running Playwright code |",{"name":5,"description":7},"main","c7ff0a9e672de2c0590b03f6459385c2d7a63c1a","kit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-playwright-cli",3,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit","https:\u002F\u002Fdocs.meowkit.dev\u002F","https:\u002F\u002Fgithub.com\u002Fngocsangyem","Keep moving forward","2026-11-15 03:54:21",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add ngocsangyem\u002FMeowKit --skill mk-playwright-cli",{"tool":39,"command":40},"bunx","bunx skills add ngocsangyem\u002FMeowKit --skill mk-playwright-cli",{"tool":42,"command":43},"pnpm","pnpm dlx skills add ngocsangyem\u002FMeowKit --skill mk-playwright-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-playwright-cli\u002FSKILL.md",true,[47,53,57,61,65,69,73,77],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fcommand-reference.md","REFERENCE","参考文档",3784,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-playwright-cli\u002Freferences\u002Fcommand-reference.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Frequest-mocking.md",2182,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-playwright-cli\u002Freferences\u002Frequest-mocking.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Frunning-code.md",5715,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-playwright-cli\u002Freferences\u002Frunning-code.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fsession-management.md",4778,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-playwright-cli\u002Freferences\u002Fsession-management.md",{"path":66,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fstorage-state.md",6790,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-playwright-cli\u002Freferences\u002Fstorage-state.md",{"path":70,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Ftest-generation.md",2411,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-playwright-cli\u002Freferences\u002Ftest-generation.md",{"path":74,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Ftracing.md",4163,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-playwright-cli\u002Freferences\u002Ftracing.md",{"path":78,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fvideo-recording.md",1060,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-playwright-cli\u002Freferences\u002Fvideo-recording.md",[82,89,96,103,110,117],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7DVHF481B4J41T4855KGM50","mk-worktree","Manages git worktrees for parallel agent isolation: creates parallel\u002F{name}-{timestamp} branches, merges with conflict detection. NOT for user feature branches (use git worktree directly).","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-worktree\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7DVHAWVKDKPB1EA3F1NC4JC","mk-workflow-orchestrator","Auto-invoked 7-phase workflow for complex-feature intent; fasttrack mode for pre-approved specs. NOT for explicit single tasks (mk:cook), green-field builds (mk:autobuild), or simple fixes (mk:fix).","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-workflow-orchestrator\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7DVH6SYBHWW00TRZXCC56JW","mk-web-to-markdown","Fetch a URL and return clean markdown, for arbitrary external pages (blog, RFC, GitHub issue, vendor doc) not covered by mk:docs-finder. Static-only by default; opt-in JS rendering available.","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-web-to-markdown\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M7DVH3HGW47BX3PEF30JV6EJ","mk-vulnerability-scanner","Vulnerability analysis: OWASP Top 10, current threat landscape, supply chain security, attack surface mapping, risk prioritization. Use for security audits. NOT for STRIDE\u002FCSO infra audits (mk:cso).","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-vulnerability-scanner\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M7DVGZBKMB9WDFH9MFMA99FV","mk-vue","Vue 3 authoring\u002Freview: components, composables, reactivity, Pinia, Pinia Colada, file routing, forms. Composition API + script setup. Auto-activates on .vue files. Deep review: mk:vue-best-practices.","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-vue\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":19},"01M7DVGSE12AA1M7599HB8HRCT","mk-vue-testing-best-practices","Vue 3 testing best-practices review: Vitest + Vue Test Utils for components, composables, Pinia, Router, async\u002FSuspense, forms, a11y, plus Playwright E2E strategy. Advisory only.","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-vue-testing-best-practices\u002FSKILL.md",[],[]]