Use when automating browsers, testing pages, taking screenshots, checking UI, verifying login flows, or testing responsive behavior
Automate browser testing and UI verification with Playwright. Triggers when you need to test pages, take screenshots, check login flows, or verify responsive behavior.
/plugin marketplace add TechNickAI/ai-coding-config/plugin install ai-coding-config@ai-coding-configThis skill inherits all available tools. When active, it can use any tool Claude has access to.
API_REFERENCE.mdpackage.jsonrun.jsnode $SKILL_DIR/run.js /tmp/playwright-task.js
For inline code (variables are auto-injected, see below):
node $SKILL_DIR/run.js "const b = await chromium.launch(); const p = await b.newPage(); await p.goto('http://localhost:3000'); console.log(await p.title()); await b.close();"
$SKILL_DIR is where you loaded this file from. </execution>
<headless-vs-headed> Default: headless (invisible, less intrusive).Use { headless: false } when user wants to see the browser. You know when that is.
</headless-vs-headed>
BASE_URL - from PLAYWRIGHT_BASE_URL env varCI_ARGS - browser args for CI (['--no-sandbox', '--disable-setuid-sandbox'])EXTRA_HEADERS - from PW_HEADER_NAME/VALUE or PW_EXTRA_HEADERSchromium, firefox, webkit, devices - from playwrightExample:
node $SKILL_DIR/run.js "
const browser = await chromium.launch({ args: CI_ARGS });
const page = await browser.newPage();
await page.goto(BASE_URL || 'http://localhost:3000');
console.log(await page.title());
await browser.close();
"
</injected-variables>
<auto-install>
run.js auto-installs Playwright on first use. No manual setup needed.
</auto-install>
<advanced-patterns>
For network mocking, auth persistence, multi-tab, downloads, video, traces:
[API_REFERENCE.md](API_REFERENCE.md)
</advanced-patterns>This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.