diff --git a/.claude/skills/critique/scripts/detect-antipatterns.mjs b/.claude/skills/critique/scripts/detect-antipatterns.mjs
index 202b5ec37..5e7d91c65 100644
--- a/.claude/skills/critique/scripts/detect-antipatterns.mjs
+++ b/.claude/skills/critique/scripts/detect-antipatterns.mjs
@@ -480,9 +480,10 @@ async function detectUrl(url) {
}
// Read the browser detection script — reuse it instead of reimplementing
+ // The generated browser script lives alongside this file after build
const browserScriptPath = path.resolve(
path.dirname(new URL(import.meta.url).pathname),
- '..', '..', '..', '..', 'public', 'js', 'detect-antipatterns-browser.js'
+ 'detect-antipatterns-browser.js'
);
let browserScript;
try {
diff --git a/public/antipattern-examples/bad-contrast.html b/public/antipattern-examples/bad-contrast.html
index c77c9d83e..65548336b 100644
--- a/public/antipattern-examples/bad-contrast.html
+++ b/public/antipattern-examples/bad-contrast.html
@@ -202,6 +202,6 @@
-
+