verify-ui

Compare Playwright screenshots and analyze Pencil layouts for UI changes.

1|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/matteobortolazzo/cenci --skill verify-ui-matteobortolazzo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: verify-ui
Source: https://github.com/matteobortolazzo/cenci/tree/main/flow/skills/verify-ui
Command: npx skills add https://github.com/matteobortolazzo/cenci --skill verify-ui-matteobortolazzo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the challenge of ensuring that frontend changes do not introduce visual regressions, layout breaks, or clipping issues that standard unit tests often miss.

Core Features & Use Cases

  • Visual Regression Testing: Leverages Playwright to capture and compare screenshots of UI components.
  • Layout Inspection: Uses Pencil to detect clipping, overflow, and misalignment issues in design layouts.
  • Use Case: When implementing a new navigation bar, use this skill to verify that the component renders correctly across different states and does not overlap with existing content.

Quick Start

Run the verify-ui skill to perform a visual layout check and screenshot comparison on the current frontend changes.

Frequently Asked Questions about verify-ui

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate visual regression testing for frontend changes?

Automated visual regression testing captures and compares Playwright screenshots of UI components to detect visual changes. This skill applies Pencil layout analysis to identify clipping, overflow, or misalignment issues that standard unit tests often miss before PR approval.

What is visual layout inspection and when do I need it for UI development?

Visual layout inspection is the process of detecting clipping, overflow, and misalignment in design layouts. You need it when implementing new UI components, such as a navigation bar, to ensure they render correctly across different states and do not overlap existing content.

Can I use Playwright and Pencil to detect UI clipping and overflow issues?

Yes, you can use Playwright and Pencil together to detect UI clipping and overflow issues. Playwright handles browser-based rendering to capture screenshots, while Pencil validates the design-to-code layout to ensure visual consistency and layout integrity.

How do I run a visual layout check on my current frontend changes?

To run a visual layout check, execute the visual verification process on your current frontend changes. The skill performs automated screenshot comparison and Pencil layout validation to verify that your components render correctly without introducing visual regressions.

Does visual regression testing catch layout breaks that unit tests miss?

Visual regression testing catches layout breaks, clipping issues, and visual regressions that standard unit tests miss. By leveraging Playwright screenshots and Pencil layout analysis, it ensures visual consistency and layout integrity are maintained throughout frontend development workflows.

What is the best way to verify UI integrity before a pull request?

The best way to verify UI integrity before a pull request is combining Playwright screenshot comparison with Pencil layout validation. This automated visual verification ensures no visual regressions or misalignment issues are introduced, maintaining visual consistency for PR approval.