Skip to content

Instantly share code, notes, and snippets.

View jwmatthews's full-sized avatar

John Matthews jwmatthews

View GitHub Profile

Screenshot Visual Regression Skill - Implementation Complete ✓

Installation Location

The skill has been successfully installed at:

~/.claude/skills/screenshot-visual-regression/

What Was Implemented

Claude Skill: Visual Regression Testing for Web Applications

Overview

Create a reusable Claude skill that discovers important pages in web applications, captures screenshots before/after code changes, and generates visual comparison reports. Works in headless environments and requires zero modifications to target applications.

Skill Capabilities

The skill will support three main commands:

  1. /screenshot discover - Analyze codebase to find main pages/routes

Konveyor GitHub Label Audit Summary

Audit Date: January 28, 2026 Organization: konveyor


Executive Summary

This audit analyzed GitHub labels across the Konveyor organization to identify inconsistencies, redundancies, and opportunities for standardization. The findings reveal significant label fragmentation that can be addressed through a structured consolidation strategy based on open source best practices.

{
"project": "PatternFly Migration Rule Analysis",
"branchName": "ralph/patternfly-rule-analysis",
"description": "Validate AI-generated Konveyor migration rules for PatternFly 5→6, research official guidance, analyze all rules, and produce actionable cleanup recommendations with automation scripts",
"userStories": [
{
"id": "US-001",
"title": "Fetch and structure official upgrade documentation",
"description": "As a rule analyst, I need comprehensive guidance from the official PatternFly upgrade docs so I can validate migration rules against authoritative sources.",
"acceptanceCriteria": [

PatternFly v6 Codemod Coverage Analysis

Overview

This document compares the official PatternFly v6 codemods (97 rules analyzed) with the existing YAML rule files to identify coverage gaps and opportunities.

Official Codemods: 97 rules from https://github.com/patternfly/pf-codemods YAML Rules: 50+ rule files in this repository


####################
### EXAMPLE FILE ###
####################
# Do NOT edit this file unless adding new env variables
# Instead, copy it, remove the .example extension and provide your custom values
# For git password please use your generated git token, not a clear text password
VSCODE_EXECUTABLE_PATH='/Applications/Visual Studio Code.app/Contents/MacOS/Electron'

PatternFly Migration Tool Comparison: JavaScript/TypeScript/JSX Only

Analysis Date: 2026-01-19

Scope: This comparison excludes all CSS-related issues (CSS class renames, CSS token updates, CSS file changes) and focuses exclusively on JavaScript, TypeScript, and JSX component changes.

Executive Summary

  • Total JS/TS/JSX Issues Detected: 81
  • Issues Found by pf-codemods: 56

PatternFly Codemods - Complete Understanding Guide

📋 Executive Summary

pf-codemods is an automated code transformation system (codemod suite) that helps developers migrate their applications between major versions of PatternFly's React component library (v3→v4, v4→v5, v5→v6).

Think of it as: An intelligent "find and replace on steroids" that understands React/JSX code structure and safely updates component props, imports, class names, and CSS variables when PatternFly releases breaking changes.


@jwmatthews
jwmatthews / gist:394c34ac7280b1f0f21f4f487f86e80e
Last active January 20, 2026 16:01
2026 Jan 19 - Running pf-codemods
/Users/jmatthews/scratch/2026/01_19_patternfly_5_to_6/todds_app/patternfly-migration-workshop/src/App.tsx
48:9 error The values for the `align` property on ToolbarGroup have been updated from "alignLeft" and "alignRight" to "alignStart" and "alignEnd", respectively @patternfly/pf-codemods/toolbar-update-align-values
48:9 error The spacer property has been removed from ToolbarGroup. We recommend instead using our new gap, columnGap, or rowGap properties @patternfly/pf-codemods/toolbar-replaced-spacer-spaceItems
48:9 error The `icon-button-group` variant of ToolbarGroup has been renamed to `action-group-plain` @patternfly/pf-codemods/toolbarGroup-updated-variant
65:7 error The structure of Masthead has been updated, Masthe
@jwmatthews
jwmatthews / gist:c53816176821bede57b3ce3ffbaeb731
Created January 16, 2026 15:44
Catastrophic Backtracking in Regex Pattern
## Performance Issue: Catastrophic Backtracking in Regex Pattern
* Seen in * https://github.com/konveyor/editor-extensions/issues/1182
### Problem
The current regex pattern is experiencing severe performance degradation (minutes to hours) when processing large minified files (~10MB):
```perl
perl -ne 'if (/import[\s\S]*ToolbarChipGroupContent[\s\S]*from[\s\S]*['\'']@patternfly\/react-core['\'']/) { print "$ARGV:$.\n" } close ARGV if eof;'
```