Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/commandcodeai-playwright-skill
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, testing, productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/playwright-skill
What's inside
- Skill name
playwright-skill- Description
- Complete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use when user wants to test websites, automate browser interactions, validate web functionality, or perform any browser-based testing.
- License
- MIT
- Instructions
- 450 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (5)
- API_REFERENCE.md
- SKILL.md
- helpers.js · lib/
- package.json
- run.js
SKILL.md (first lines)
**IMPORTANT - Path Resolution:**
This skill can be installed in different locations (plugin system, manual installation, global, or project-specific). Before executing any commands, determine the skill directory based on where you loaded this SKILL.md file, and use that path in all commands below. Replace `$SKILL_DIR` with the actual discovered path.
Common installation paths:
- Plugin system: `~/.claude/plugins/marketplaces/playwright-skill/skills/playwright-skill`
- Manual global: `~/.claude/skills/playwright-skill`
- Project-specific: `<project>/.claude/skills/playwright-skill`
# Playwright Browser Automation
General-purpose browser automation skill. I'll write custom Playwright code for any automation task you request and execute it via the universal executor.
**CRITICAL WORKFLOW - Follow these steps in order:**
1. **Auto-detect dev servers** - For localhost testing, ALWAYS run server detection FIRST:
```bash
cd $SKILL_DIR && node -e "require('./lib/helpers').detectDevServers().then(servers => console.log(JSON.stringify(servers)))"
```
- If **1 server found**: Use it automatically, inform user
- If **multiple servers found**: Ask user which one to test
- If **no servers found**: Ask for URL or offer to help start dev server
2. **Write scripts to /tmp** - NEVER write test files to skill directory; always use `/tmp/playwright-test-*.js`
3. **Use visible browser by default** - Always use `headless: false` unless user specifically requests headless mode
4. **Parameterize URLs** - Always make URLs configurable via environment variable or constant at top of script
## How It Works
1. You describe what you want to test/automate
2. I auto-detect running dev servers (or ask for URL if testing external site)
3. I write custom Playwright code in `/tmp/playwright-test-*.js` (won't clutter your project)
4. I execute it via: `cd $SKILL_DIR && node run.js /tmp/playwright-test-*.js`
5. Results displayed in real-time, browser window visible for debugging
6. Test files auto-cleaned from /tmp by your OS
## Setup (First Time)
```bash
cd $SKILL_DIR
npm run setup
```
This installs Playwright and Chromium browser. Only needed once.
## Execution Pattern
**Step 1: Detect dev servers (for localhost testing)**
```bash
cd $SKILL_DIR && node -e "require('./lib/helpers').detectDevServers().then(s => console.log(JSON.stringify(s)))"
```
**Step 2: Write test script to /tmp with URL parameter**
```javascript
// /tmp/playwright-test-page.js
const { chromium } = require('playwright');
// Parameterized URL (detected or user-provided)
const TARGET_URL = 'http://localhost:3001'; // <-- Auto-detected or from user
(async () => {
const browser = await chromium.launch({ headless: false });
const page = await browser.newPage();
await page.goto(TARGET_URL);
console.log('Page loaded:', await page.title());
await page.screenshot({ path: '/tmp/screenshot.png', fullPage: true });
console.log('📸 Screenshot saved to /tmp/screenshot.png');
await browser.close();
})();
```
**Step 3: Execute from skill directory**
```bash
cd $SKILL_DIR && node run.js /tmp/playwright-test-page.js
```
## Common Patterns
### Test a Page (Multiple Viewports)
```javascript
// /tmp/playwright-test-responsive.js
const { chromium } = require('playwright');
const TARGET_URL = 'http://localhost:3001'; // Auto-detected
(async () => {
const browser = await chromium.launch({ headless: false, slowMo: 100 });
const page = await browser.newPage();
// Desktop test
await page.setViewportSize({ width: 1920, height: 1080 });
await page.goto(TARGET_URL);
console.log('Desktop - Title:', await page.title());
await page.screenshot({ path: '/tmp/desktop.png', fullPage: true });
// Mobile test
await page.setViewportSize({ width: 375, height: 667 });
await page.screenshot({ path: '/tmp/mobile.png', fullPage: true });
await browser.close();
})();
```
### Test Login Flow
```javascript
// /tmp/playwright-test-login.js
const { chromium } = require('playwright');From CommandCodeAI/agent-skills, MIT.
More from CommandCodeAI/agent-skills
- 0.609score
building-ai-agent-on-cloudflare
CommandCodeAI
Builds AI agents on Cloudflare using the Agents SDK with state management, real-time WebSockets, scheduled tasks, tool integration, and chat capabilities.
SkillDFreshness: D★ 137Claude Code +9 - 0.606score
aws-cost-operations
CommandCodeAI
This skill provides AWS cost optimization, monitoring, and operational best practices with integrated MCP servers for billing analysis, cost estimation…
SkillDFreshness: D★ 137Claude Code +9 - 0.605score
building-mcp-server-on-cloudflare
CommandCodeAI
Builds remote MCP (Model Context Protocol) servers on Cloudflare Workers with tools, OAuth authentication, and production deployment.
SkillDFreshness: D★ 137Claude Code +9 - 0.604score
aws-agentic-ai
CommandCodeAI
AWS Bedrock AgentCore comprehensive expert for deploying and managing all AgentCore services.
SkillDFreshness: D★ 137Claude Code +9 - 0.522score
video-downloader
CommandCodeAI
Downloads videos from YouTube and other platforms for offline viewing, editing, or archival.
SkillDFreshness: D★ 137Claude Code +9 - 0.522score
invoice-organizer
CommandCodeAI
Automatically organizes invoices and receipts for tax preparation by reading messy files, extracting key information, renaming them consistently, and sorting…
SkillDFreshness: D★ 137Claude Code +9 - 0.522score
raffle-winner-picker
CommandCodeAI
Picks random winners from lists, spreadsheets, or Google Sheets for giveaways, raffles, and contests.
SkillDFreshness: D★ 137Claude Code +9 - 0.519score
welcome-me
commandcodeai
Greet user with a specific message when they say they're new or ask for a welcome message.
SkillDFreshness: D★ 137Claude Code +9 - 0.505score
mcp-builder
CommandCodeAI
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools.
SkillDFreshness: D★ 137Claude Code +9 - 0.500score
canvas-design
CommandCodeAI
Create beautiful visual art in .png and .pdf documents using design philosophy.
SkillDFreshness: D★ 137Claude Code +9 - 0.500score
brand-guidelines
CommandCodeAI
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel.
SkillDFreshness: D★ 137Claude Code +9 - 0.499score
requesting-code-review
CommandCodeAI
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
SkillDFreshness: D★ 137Claude Code +9
Signals
- Stars
- 137
- Forks
- 42
- Open issues
- 4
- Last commit (this folder)
- Dec 24, 2025 (10 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/CommandCodeAI/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from CommandCodeAI
- 0.663score
command-code
CommandCodeAI
Terminal coding agent that learns from accept, reject and edit decisions through its taste model.
AgentAFreshness: A★ 4.2K - 0.609score
building-ai-agent-on-cloudflare
CommandCodeAI
Builds AI agents on Cloudflare using the Agents SDK with state management, real-time WebSockets, scheduled tasks, tool integration, and chat capabilities.
SkillDFreshness: D★ 137Claude Code +9 - 0.606score
aws-cost-operations
CommandCodeAI
This skill provides AWS cost optimization, monitoring, and operational best practices with integrated MCP servers for billing analysis, cost estimation…
SkillDFreshness: D★ 137Claude Code +9 - 0.605score
building-mcp-server-on-cloudflare
CommandCodeAI
Builds remote MCP (Model Context Protocol) servers on Cloudflare Workers with tools, OAuth authentication, and production deployment.
SkillDFreshness: D★ 137Claude Code +9 - 0.604score
aws-agentic-ai
CommandCodeAI
AWS Bedrock AgentCore comprehensive expert for deploying and managing all AgentCore services.
SkillDFreshness: D★ 137Claude Code +9 - 0.522score
raffle-winner-picker
CommandCodeAI
Picks random winners from lists, spreadsheets, or Google Sheets for giveaways, raffles, and contests.
SkillDFreshness: D★ 137Claude Code +9
Cite this page
playwright-skill. Agent Mart. https://agentmart.dev/skills/commandcodeai-playwright-skill (last updated 2026-10-24)