From e0b95ba29715bdb12bf8bd9bd779ca878b542014 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Mon, 2 Feb 2026 09:55:39 -0500 Subject: [PATCH] Add project guidelines verification script Created comprehensive verification script to check codebase against PROJECT_GUIDELINES.md Features: - Checks for custom CSS (TailwindCSS requirement) - Detects JavaScript files that should be TypeScript - Verifies no secrets committed (.env, credentials.json) - Validates code compiles (go build) - Finds local binaries (should use container builds) - Quick checks with clear pass/fail/warning output Usage: make verify-guidelines ./scripts/verify-quick.sh Current codebase status: - 12 templates with custom CSS (need Tailwind conversion) - 2 .js files in web/static/ (need TypeScript conversion) - 1 binary file (./bookhoard) This addresses the trust issue: AI now has a tool to prove guideline compliance --- Makefile | 5 + scripts/README.md | 56 +++++++ scripts/verify-guidelines.sh | 285 +++++++++++++++++++++++++++++++++++ scripts/verify-quick.sh | 74 +++++++++ 4 files changed, 420 insertions(+) create mode 100644 scripts/README.md create mode 100755 scripts/verify-guidelines.sh create mode 100755 scripts/verify-quick.sh diff --git a/Makefile b/Makefile index 8358066..ec6e91e 100644 --- a/Makefile +++ b/Makefile @@ -57,3 +57,8 @@ test-env-up: # Stop test environment test-env-down: podman compose down -v + +# Verify project guidelines compliance +verify-guidelines: + @echo "Running project guidelines verification..." + @./scripts/verify-quick.sh diff --git a/scripts/README.md b/scripts/README.md new file mode 100644 index 0000000..30597c9 --- /dev/null +++ b/scripts/README.md @@ -0,0 +1,56 @@ +# Project Guidelines Verification + +## Quick Start + +Run the quick verification script: +```bash +make verify-guidelines +# or +./scripts/verify-quick.sh +``` + +## What It Checks + +1. **Custom CSS**: Detects `