Agent skill
e2e-testing
Playwright end-to-end testing for ScreenGraph using .env-driven configuration. Use when validating full user flows, running regression suites, or inspecting UI behavior with Cursor browser tools.
Install this agent skill to your Project
npx add-skill https://github.com/nirukk52/ScreenGraph/tree/main/.claude-skills/e2e-testing_skill
SKILL.md
ScreenGraph E2E Testing Skill
Mission
Provide consistent, deterministic coverage of the ScreenGraph UI by coupling Playwright automation with the shared .env configuration. This skill summarizes the workflow and defers deep scripts, policies, and RCA playbooks to references/.
When to Use
- Validating the run flow from landing page ➜ run timeline ➜ screenshot gallery
- Reproducing UI regressions before releasing backend/front-end changes
- Maintaining smoke tests enforced by the pre-push hook
- Capturing artifacts (screenshots, console logs) for tickets and handoffs
Automation Loop
- Prepare environment – Ensure backend, frontend, Appium/device, and
.envvalues are ready (seereferences/automated-tests.md). - Execute Playwright suites – Run headed/headless/CI modes using the prescribed commands. Respect the 60s timeout budget.
- Investigate failures – Use helpers in
lib/playwright-helpers.ts, console/network logs, and backend logs to locate the root cause. - Escalate diagnostics – Fall back to Cursor Browser tools (
references/browser-tools.md) or the regression playbook for complex incidents. - Document – Attach screenshots, logs, and RCA notes in Graphiti or the relevant ticket.
Quick Command Set
# Headed for visual debugging
bun run test:e2e:headed
# Headless CI-parity run
bun run test:e2e:ci
# Playwright UI mode
bun run test:e2e:ui
Quality Gates
.envvalues (package name, Appium URL, APK path) sourced before running tests- Total Playwright test time per spec ≤ 60 seconds (budget defined in references)
- Failures include screenshot + console output attachments
- Regressions traced back to backend/frontend root cause with notes in Graphiti
- Run-flow assertions confirm both timeline events and visible screenshot gallery output
Reference Library
references/automated-tests.md– Quick start commands, configuration, timeout policy, and pre-push integrationreferences/manual-workflow.md– Running ad-hoc Playwright scripts from scratch directories and capturing artifactsreferences/browser-tools.md– Automating interactive debugging with Cursor’s @Browser toolreferences/regression-playbook.md– BUG-010 case study and systematic RCA stepsreferences/troubleshooting.md– Fast-fail signals, Appium/device checks, cleanup routines
Related Skills
frontend-development_skill– Source of truth for Svelte/Skeleton patterns the tests exercisebackend-development_skill– Ensures backend flows are stable before they enter E2E coveragefrontend-debugging_skill– Use after tests fail to diagnose rune or SSR issues in the UI
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
before-task
Comprehensive discovery before starting any spec or major task. Searches Graphiti, recommends vibe/MCPs, surfaces patterns.
slack-gif-creator
Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like "make me a GIF for Slack of X doing Y".
skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
after-task
Mandatory knowledge capture after completing work. Documents solution in Graphiti and tracks effectiveness for system improvement.
canvas-design
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.
internal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).
Didn't find tool you were looking for?