[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7166WSBXNS0T6S9GEQ40143":3,"skill-same:01M7166WSBXNS0T6S9GEQ40143":74},{"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":26,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":14,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":53,"install":54,"resources":67},"01M7166WSBXNS0T6S9GEQ40143","go-playwright",null,"Expert capability for robust, stealthy, and efficient browser automation using Playwright Go.","sapsapshen\u002Fai-memory-router","sapsapshen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F20347959?v=4","01M6XDQEF1DP50DKF37H81J3J5","shenmian","01M6XDQEJPE41Y3DT2763X8ZJN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fgo-playwright\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[27,28,29,30,31,32,33,34,35,36,37,38,39,40],"go","playwright","go playwright","browser automation","safe","github","automation","browser","https","expert","community","for","capability","2026","2026-11-10 10:12:30",false,"---\nname: go-playwright\ndescription: \"Expert capability for robust, stealthy, and efficient browser automation using Playwright Go.\"\nrisk: safe\nsource: \"https:\u002F\u002Fgithub.com\u002Fplaywright-community\u002Fplaywright-go\"\ndate_added: \"2026-02-27\"\n---\n\n# Playwright Go Automation Expert\n\n## Overview\nThis skill provides a comprehensive framework for writing high-performance, production-grade browser automation scripts using `github.com\u002Fplaywright-community\u002Fplaywright-go`. It enforces architectural best practices (contexts over instances), robust error handling, structured logging (Zap), and advanced human-emulation techniques to bypass anti-bot systems.\n\n## When to Use This Skill\n- Use when the user asks to \"scrape,\" \"automate,\" or \"test\" a website using Go.\n- Use when the target site has complex dynamic content (SPA, React, Vue) requiring a real browser.\n- Use when the user mentions \"stealth,\" \"avoiding detection,\" \"cloudflare,\" or \"human-like\" behavior.\n- Use when debugging existing Playwright scripts.\n\n## Safety & Risk\n**Risk Level: 🔵 Safe**\n\n- **Sandboxed Execution:** Browser contexts are isolated; they do not persist data to the host machine unless explicitly saved.\n- **Resource Management:** Designed to close browsers and contexts via `defer` to prevent memory leaks.\n- **No External State-Change:** Default behavior is read-only (scraping\u002Ftesting) unless the script is explicitly designed to submit forms or modify data.\n\n## Limitations\n- **Environment Dependencies:** Requires Playwright drivers and browsers to be installed (`go run github.com\u002Fplaywright-community\u002Fplaywright-go\u002Fcmd\u002Fplaywright@latest install --with-deps`).\n- **Resource Intensity:** Launching full browser instances (even headless) consumes significant RAM\u002FCPU. Use single-browser\u002Fmulti-context architecture.\n- **Bot Detection:** While this skill includes stealth techniques, extremely strict anti-bot systems (e.g., rigorous Cloudflare settings) may still detect automation.\n- **CAPTCHAs:** Does not include built-in CAPTCHA solving capabilities.\n\n## Strategic Implementation Guidelines\n\n### 1. Architecture: Contexts vs. Browsers\n**CRITICAL:** Never launch a new `Browser` instance for every task.\n- **Pattern:** Launch the `Browser` *once* (singleton). Create a new `BrowserContext` for each distinct session or task.\n- **Why:** Contexts are lightweight and created in milliseconds. Browsers take seconds to launch.\n- **Isolation:** Contexts provide complete isolation (cookies, cache, storage) without the overhead of a new process.\n\n### 2. Logging & Observability\n- **Library:** Use `go.uber.org\u002Fzap` exclusively.\n- **Rule:** Do not use `fmt.Println`.\n- **Modes:**\n  - **Dev:** `zap.NewDevelopment()` (Console friendly)\n  - **Prod:** `zap.NewProduction()` (JSON structured)\n- **Traceability:** Log every navigation, click, and input with context fields (e.g., `logger.Info(\"clicking button\", zap.String(\"selector\", sel))`).\n\n### 3. Error Handling & Stability\n- **Graceful Shutdown:** Always use `defer` to close Pages, Contexts, and Browsers.\n- **Panic Recovery:** Wrap critical automation routines in a safe runner that recovers panics and logs the stack trace.\n- **Timeouts:** Never rely on default timeouts. Set explicit timeouts (e.g., `playwright.PageClickOptions{Timeout: playwright.Float(5000)}`).\n\n### 4. Stealth & Human-Like Behavior\nTo bypass anti-bot systems (Cloudflare, Akamai), the generated code must **imitate human physiology**:\n- **Non-Linear Mouse Movement:** Never teleport the mouse. Implement a helper that moves the mouse along a Bezier curve with random jitter.\n- **Input Latency:** never use `Fill()`. Use `Type()` with random delays between keystrokes (50ms–200ms).\n- **Viewport Randomization:** Randomize the viewport size slightly (e.g., 1920x1080 ± 15px) to avoid fingerprinting.\n- **Behavioral Noise:** Randomly scroll, focus\u002Funfocus the window, or hover over irrelevant elements (\"idling\") during long waits.\n- **User-Agent:** Rotate User-Agents for every new Context.\n\n### 5. Documentation Usage\n- **Primary Source:** Rely on your internal knowledge of the API first to save tokens.\n- **Fallback:** Refer to the official docs [playwright-go documentation](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fplaywright-community\u002Fplaywright-go#section-documentation) ONLY if:\n  - You encounter an unknown error.\n  - You need to implement complex network interception or authentication flows.\n  - The API has changed significantly.\n\n## Resources\n- `resources\u002Fimplementation-playbook.md` for detailed code examples and implementation patterns.\n\n### Summary Checklist for Agent\n - Is Debug Mode on? -> `Headless=false`, `SlowMo=100+`.\n - Is it a new user identity? -> `NewContext`, apply new Proxy, rotate `User-Agent`.\n - Is the action critical? -> Wrap in `SafeAction` with Zap logging.\n - Is the target guarded (Cloudflare\u002FAkamai)? -> Enable `HumanType`, `BezierMouse`, and Stealth Scripts.\n","# Playwright Go Automation Expert\n\n## Overview\nThis skill provides a comprehensive framework for writing high-performance, production-grade browser automation scripts using `github.com\u002Fplaywright-community\u002Fplaywright-go`. It enforces architectural best practices (contexts over instances), robust error handling, structured logging (Zap), and advanced human-emulation techniques to bypass anti-bot systems.\n\n## When to Use This Skill\n- Use when the user asks to \"scrape,\" \"automate,\" or \"test\" a website using Go.\n- Use when the target site has complex dynamic content (SPA, React, Vue) requiring a real browser.\n- Use when the user mentions \"stealth,\" \"avoiding detection,\" \"cloudflare,\" or \"human-like\" behavior.\n- Use when debugging existing Playwright scripts.\n\n## Safety & Risk\n**Risk Level: 🔵 Safe**\n\n- **Sandboxed Execution:** Browser contexts are isolated; they do not persist data to the host machine unless explicitly saved.\n- **Resource Management:** Designed to close browsers and contexts via `defer` to prevent memory leaks.\n- **No External State-Change:** Default behavior is read-only (scraping\u002Ftesting) unless the script is explicitly designed to submit forms or modify data.\n\n## Limitations\n- **Environment Dependencies:** Requires Playwright drivers and browsers to be installed (`go run github.com\u002Fplaywright-community\u002Fplaywright-go\u002Fcmd\u002Fplaywright@latest install --with-deps`).\n- **Resource Intensity:** Launching full browser instances (even headless) consumes significant RAM\u002FCPU. Use single-browser\u002Fmulti-context architecture.\n- **Bot Detection:** While this skill includes stealth techniques, extremely strict anti-bot systems (e.g., rigorous Cloudflare settings) may still detect automation.\n- **CAPTCHAs:** Does not include built-in CAPTCHA solving capabilities.\n\n## Strategic Implementation Guidelines\n\n### 1. Architecture: Contexts vs. Browsers\n**CRITICAL:** Never launch a new `Browser` instance for every task.\n- **Pattern:** Launch the `Browser` *once* (singleton). Create a new `BrowserContext` for each distinct session or task.\n- **Why:** Contexts are lightweight and created in milliseconds. Browsers take seconds to launch.\n- **Isolation:** Contexts provide complete isolation (cookies, cache, storage) without the overhead of a new process.\n\n### 2. Logging & Observability\n- **Library:** Use `go.uber.org\u002Fzap` exclusively.\n- **Rule:** Do not use `fmt.Println`.\n- **Modes:**\n  - **Dev:** `zap.NewDevelopment()` (Console friendly)\n  - **Prod:** `zap.NewProduction()` (JSON structured)\n- **Traceability:** Log every navigation, click, and input with context fields (e.g., `logger.Info(\"clicking button\", zap.String(\"selector\", sel))`).\n\n### 3. Error Handling & Stability\n- **Graceful Shutdown:** Always use `defer` to close Pages, Contexts, and Browsers.\n- **Panic Recovery:** Wrap critical automation routines in a safe runner that recovers panics and logs the stack trace.\n- **Timeouts:** Never rely on default timeouts. Set explicit timeouts (e.g., `playwright.PageClickOptions{Timeout: playwright.Float(5000)}`).\n\n### 4. Stealth & Human-Like Behavior\nTo bypass anti-bot systems (Cloudflare, Akamai), the generated code must **imitate human physiology**:\n- **Non-Linear Mouse Movement:** Never teleport the mouse. Implement a helper that moves the mouse along a Bezier curve with random jitter.\n- **Input Latency:** never use `Fill()`. Use `Type()` with random delays between keystrokes (50ms–200ms).\n- **Viewport Randomization:** Randomize the viewport size slightly (e.g., 1920x1080 ± 15px) to avoid fingerprinting.\n- **Behavioral Noise:** Randomly scroll, focus\u002Funfocus the window, or hover over irrelevant elements (\"idling\") during long waits.\n- **User-Agent:** Rotate User-Agents for every new Context.\n\n### 5. Documentation Usage\n- **Primary Source:** Rely on your internal knowledge of the API first to save tokens.\n- **Fallback:** Refer to the official docs [playwright-go documentation](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fplaywright-community\u002Fplaywright-go#section-documentation) ONLY if:\n  - You encounter an unknown error.\n  - You need to implement complex network interception or authentication flows.\n  - The API has changed significantly.\n\n## Resources\n- `resources\u002Fimplementation-playbook.md` for detailed code examples and implementation patterns.\n\n### Summary Checklist for Agent\n - Is Debug Mode on? -> `Headless=false`, `SlowMo=100+`.\n - Is it a new user identity? -> `NewContext`, apply new Proxy, rotate `User-Agent`.\n - Is the action critical? -> Wrap in `SafeAction` with Zap logging.\n - Is the target guarded (Cloudflare\u002FAkamai)? -> Enable `HumanType`, `BezierMouse`, and Stealth Scripts.\n",{"name":5,"risk":31,"source":46,"date_added":47,"description":7},"https:\u002F\u002Fgithub.com\u002Fplaywright-community\u002Fplaywright-go","2026-02-27","main","7a38d8e7073e61c16eda85681cb32fb68a8657a5","skills-store\u002Fcursor\u002Fgo-playwright","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router","https:\u002F\u002Fgithub.com\u002Fsapsapshen","2026-04-14 21:12:12",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add sapsapshen\u002Fai-memory-router --skill go-playwright",{"tool":60,"command":61},"bunx","bunx skills add sapsapshen\u002Fai-memory-router --skill go-playwright",{"tool":63,"command":64},"pnpm","pnpm dlx skills add sapsapshen\u002Fai-memory-router --skill go-playwright","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fgo-playwright\u002FSKILL.md",true,[68],{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"resources\u002Fimplementation-playbook.md","REFERENCE","参考文档",3203,"https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fgo-playwright\u002Fresources\u002Fimplementation-playbook.md",[75,85,92,100,106,114],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":80,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":84},"01M72R8PZX1ABFHJGTYPA4CAF1","webapp-testing","To test local web applications, write native Python Playwright scripts.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fwebapp-testing\u002FSKILL.md",[],[],"2026-11-10 22:39:42",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":84},"01M72QG37MMZNDY7X7GXPAK5W6","python-packaging","Comprehensive guide to creating, structuring, and distributing Python packages using modern packaging tools, pyproject.toml, and publishing to PyPI.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fpython-packaging\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":84},"01M72NXR0QMP9G46TW6A2DH59C","canvas-design","These are instructions for creating design philosophies - aesthetic movements that are then EXPRESSED VISUALLY. Output only .md files, .pdf files, and .png files.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fcanvas-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fcanvas-design\u002FSKILL.md",[],[],{"skillNo":101,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":102,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":84},"01M72N55TK3EEQ4QK4AWDC2KZS","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":110,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":84},"01M72MTWC150CFAP4Y5GSNKF80","slack-gif-creator","A toolkit providing utilities and knowledge for creating animated GIFs optimized for Slack.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fslack-gif-creator\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":118,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":84},"01M72KPT3VVNSP88MNAY466TZT","frontend-design","You are a frontend designer-engineer, not a layout generator.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Ffrontend-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Ffrontend-design\u002FSKILL.md",[],[]]