Skip to content

The design language that makes your AI harness better at design.

JavaScript

Fix audit dimension numbering

Paul Bakause885c9415c15
diff --git a/skill/reference/audit.md b/skill/reference/audit.md
index cb3483b73..11f035a44 100644
--- a/skill/reference/audit.md
+++ b/skill/reference/audit.md
@@ -69,8 +69,8 @@ Run the bundled detector and verify each finding in context. Look for repeated i
|---|-----------|-------|-------------|
| 1 | Accessibility | ? | [most critical a11y issue or "--"] |
| 2 | Performance | ? | |
-| 3 | Responsive Design | ? | |
-| 4 | Theming | ? | |
+| 3 | Theming | ? | |
+| 4 | Responsive Design | ? | |
| 5 | Implementation Integrity | ? | |
| **Total** | | **??/20** | **[Rating band]** |
diff --git a/tests/skill-reference.test.mjs b/tests/skill-reference.test.mjs
index 83a3704fb..d5d69e380 100644
--- a/tests/skill-reference.test.mjs
+++ b/tests/skill-reference.test.mjs
@@ -111,6 +111,22 @@ describe('skill reference authoring contracts', () => {
assert.match(edgeCases, /clear the dragging state and release capture/);
assert.match(verifyHardening, /\*\*Interrupted gestures\*\*/);
});
+
+ it('keeps audit score-table dimensions aligned with their numbered sections', () => {
+ for (const filename of ['audit.md', 'audit.native.md']) {
+ const audit = readFileSync(join(ROOT, `skill/reference/${filename}`), 'utf-8').replace(/\r\n?/g, '\n');
+ const sections = [...audit.matchAll(/^### ([1-5])\. (.+?)(?: \([^\n]+\))?$/gm)].map((match) => [
+ match[1],
+ match[2],
+ ]);
+ const scores = [...audit.matchAll(/^\| ([1-5]) \| ([^|]+?) \|/gm)].map((match) => [
+ match[1],
+ match[2].trim(),
+ ]);
+
+ assert.deepEqual(scores, sections, filename);
+ }
+ });
});
describe('mode rule files', () => {