mcpField
T
theme-audit

theme-audit

github.com/chmouelTesting & quality31345 installsUpdated today
Repository

About theme-audit

A codebase audit skill for examining theme definitions and their use in a Go UI. It checks expected and unused theme values, hardcoded colors, contrast, and consistency across theme variants.

Key features

  1. 01Inspects theme definitions
  2. 02Searches theme usage in UI code
  3. 03Finds hardcoded color values
  4. 04Checks foreground-background contrast
  5. 05Reviews consistency across variants

Use cases

  1. 01Finding missing theme color fields
  2. 02Locating unused theme values
  3. 03Replacing hardcoded UI colors
  4. 04Comparing theme variants for consistency

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/chmouel/lazyworktree --skill theme-audit

After installing, type/theme-auditin Claude Code to confirm it loaded.

Details

From the project README

Theme Audit

Audit theme definitions and usage across the codebase.

Theme definitions

!cat internal/theme/theme.go | head -200

Theme usage in UI

!grep -r "theme\." internal/app/ --include="*.go" | head -50

Potential hardcoded colours

!grep -rE "(lipgloss\.(Color|AdaptiveColor)\(|#[0-9a-fA-F]{6})" internal/app/ --include="*.go" | head -30


Audit themes for:

  1. Missing colour fields that UI code expects
  2. Unused theme values that can be removed
  3. Hardcoded colours in UI code that should use theme fields
  4. Contrast issues between foreground and background colours
  5. Inconsistencies between different theme variants

Comments

Markdown supported