Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

web-validation

БесплатноБез исполняемых скриптовНе проверен

Comprehensive web page validation with authentication, screenshot capture, mobile testing, and enhanced error detection

bejranondaот bejranonda★ 28 звёзд на GitHub19 установок в других каталогах

Об этом скилле

Web Validation Skill

Overview

This skill provides comprehensive methodology for validating web applications, detecting JavaScript errors, monitoring browser console output, capturing screenshots, and testing across mobile and desktop viewports with authentication support.

Key Capabilities:

  • Automated JavaScript error detection with categorization
  • Browser console log capture (errors, warnings, info)
  • Network request monitoring and failure detection
  • Performance metrics collection
  • Authentication support for protected pages (NEW)
  • Screenshot capture for mobile and desktop (NEW)
  • React hydration error detection (#185) (NEW)
  • Multi-viewport testing (14 device presets) (NEW)
  • HTML/CSS validation
  • Automated testing with headless browsers

When to Apply This Skill

Use this skill when:

  • Validating web-based dashboards (e.g., dashboard.py)
  • Detecting JavaScript syntax errors automatically
  • Monitoring console output without manual browser inspection
  • Testing web applications before deployment
  • Debugging web page issues
  • Ensuring cross-browser compatibility
  • Validating after code changes to web components
  • Testing authenticated/protected pages
  • Capturing visual evidence for debugging
  • Testing responsive design across devices
  • Detecting React hydration mismatches

Authentication Support (NEW)

Form-Based Authentication

Validate protected pages by automatically logging in:

from lib.web_page_validator import WebPageValidator, AuthConfig

auth = AuthConfig(
    login_url="http://localhost:3000/auth/signin",
    email="[email protected]",
    password="TestPass123!",
    email_selector='input[type="email"]',
    password_selector='input[type="password"]',
    submit_selector='button[type="submit"]',
    post_login_wait=2.0
)

with WebPageValidator(auth_config=auth) as validator:
    validator.authenticate()
    result = validator.validate_url('http://localhost:3000/dashboard')

Environment Variables

Credentials can be set via environment variables for CI/CD:

export TEST_EMAIL="[email protected]"
export TEST_PASSWORD="TestPass123!"

Multi-Page Authentication Flow

# Validate public and protected pages in one session
results = validator.validate_pages_with_auth(
    public_pages=[
        ("http://localhost:3000/", "Home"),
        ("http://localhost:3000/auth/signin", "Sign In"),
    ],
    protected_pages=[
        ("http://localhost:3000/dashboard", "Dashboard"),
        ("http://localhost:3000/settings", "Settings"),
    ]
)

Screenshot Capture (NEW)

Automatic Screenshots

Capture screenshots on validation for visual evidence:

from lib.web_page_validator import WebPageValidator, ScreenshotConfig, ViewportConfig

screenshot_config = ScreenshotConfig(
    enabled=True,
    output_directory=".claude/screenshots",
    capture_on_error=True,
    capture_on_success=False,
    full_page=False
)

with WebPageValidator(screenshot_config=screenshot_config) as validator:
    result = validator.validate_url('http://localhost:3000')
    for ss in result.screenshots:
        print(f"Screenshot: {ss.file_path}")

Multi-Viewport Screenshots

Capture screenshots across multiple devices:

python ${CLAUDE_PLUGIN_ROOT}/lib/web_page_validator.py http://localhost:3000 --viewport all --screenshot

Screenshot Naming Convention

Files are named: {page_name}_{viewport}_{timestamp}.png

  • home_desktop_20251204_143022.png
  • dashboard_mobile_20251204_143025.png

Mobile and Responsive Testing (NEW)

Available Device Presets

Viewport Width Height Type Device
desktop 1920 1080 Desktop Full HD
desktop_small 1280 720 Desktop HD
mobile 375 812 Mobile iPhone X/12/13
mobile_small 320 568 Mobile iPhone SE
tablet 768 1024 Tablet iPad
ipad_pro 1024 1366 Tablet iPad Pro 12.9
android_pixel 393 851 Mobile Pixel 5
android_samsung 360 800 Mobile Galaxy S21
android_tablet 800 1280 Tablet Android Tablet

Mobile-First Testing

from lib.web_page_validator import WebPageValidator, ViewportConfig

# Test on mobile viewport
validator = WebPageValidator(default_viewport=ViewportConfig.mobile())
result = validator.validate_url('http://localhost:3000')

# Test all viewports
results = validator.validate_all_viewports('http://localhost:3000')

CLI Mobile Testing

# Mobile viewport
python ${CLAUDE_PLUGIN_ROOT}/lib/web_page_validator.py http://localhost:3000 --viewport mobile

# Tablet viewport
python ${CLAUDE_PLUGIN_ROOT}/lib/web_page_validator.py http://localhost:3000 --viewport tablet

# All viewports
python ${CLAUDE_PLUGIN_ROOT}/lib/web_page_validator.py http://localhost:3000 --viewport all

# Custom dimensions
python ${CLAUDE_PLUGIN_ROOT}/lib/web_page_validator.py http://localhost:3000 --viewport-width
Полный SKILL.md на GitHub

Установить web-validation в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл web-validation?

Comprehensive web page validation with authentication, screenshot capture, mobile testing, and enhanced error detection

Как установить скилл web-validation?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл web-validation запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить web-validation с