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
- 01Inspects theme definitions
- 02Searches theme usage in UI code
- 03Finds hardcoded color values
- 04Checks foreground-background contrast
- 05Reviews consistency across variants
Use cases
- 01Finding missing theme color fields
- 02Locating unused theme values
- 03Replacing hardcoded UI colors
- 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-auditAfter installing, type/theme-auditin Claude Code to confirm it loaded.
Details
From the project READMETheme 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:
- Missing colour fields that UI code expects
- Unused theme values that can be removed
- Hardcoded colours in UI code that should use theme fields
- Contrast issues between foreground and background colours
- Inconsistencies between different theme variants
Comments
Markdown supported