UI Verification Before Commit

VerifiedSafe

Builds project assets, starts a local server, and prompts the user to verify the UI visually before committing. Helps catch UI regressions before they are committed. Used when changes affect templates, components, styles, or other observable UI behavior.

Sby Skills Guide Bot
TestingIntermediate
606/2/2026
Claude Code
#verify-ui#visual-approval#templ#tailwind-css#go

Recommended for

Our review

This skill builds static assets, starts the server, and requests visual approval before committing observable UI changes.

Strengths

  • Integrates visual verification into the commit workflow.
  • Automates build and migration steps.
  • Reduces risk of deploying unverified UI changes.
  • Works with Go projects using Templ and Tailwind CSS.

Limitations

  • Requires the server to be accessible locally on port 8080.
  • Depends on human approval, which can slow down the process.
  • Does not cover automated testing (e.g., UI tests).
When to use it

Use this skill before every commit that modifies observable UI behavior (components, templates, styles, migrations).

When not to use it

Do not use for purely backend changes or when no visual impact exists, nor when human verification is unavailable (e.g., CI/CD).

Security analysis

Safe
Quality score90/100

The skill runs local build commands and a local development server; no destructive, exfiltrating, or obfuscated actions. User is prompted before database migrations. It is safe for its intended use.

No concerns found

Examples

Verify UI before commit
I have changes to the homepage template and some CSS. Please verify the UI before I commit.
Build and check UI
Run the verify-ui workflow for my current changes.

name: verify-ui description: Build assets, run server, and get visual approval before committing observable changes.

When to use

  • Before committing any changes that affect observable UI behavior
  • This includes: templates, components, styles, handlers, models surfaced in UI, migrations
  • When CLAUDE.md or /commit skill directs you here

Prerequisites

  • Changes to verify should already be implemented (not staged/committed yet)

Workflow

  1. Build static assets:

    • Run templ generate to regenerate templ files
    • Run make css to rebuild Tailwind CSS
    • Report any errors and stop if build fails
  2. Database migrations (if applicable):

    • Check for pending migrations: make migrate-status
    • If pending, ask user before running: make migrate
    • Skip if no database changes
  3. Start server:

    • Run go run ./cmd/tfo-webapp in background
    • Wait for server to be ready (check output for listening message)
    • Report the URL (typically http://localhost:8080)
  4. Request visual inspection:

    • Tell user: "Server running at http://localhost:8080 - please verify the UI"
    • Use AskUserQuestion to get approval:
      • "Does the UI look correct?"
      • Options: "Yes, looks good" / "No, needs changes"
  5. Handle response:

    • If approved: Stop server, report ready to commit
    • If not approved: Stop server, ask what needs to change, do NOT proceed to commit
  6. Cleanup:

    • Always stop the background server when done

Output

  • Commands run and their outcomes
  • Server URL for inspection
  • User's verification decision
  • Clear next step (proceed to commit or fix issues)
Related skills