sonance-brand-mcp 1.3.98 → 1.3.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1342,63 +1342,89 @@ Output format:
1342
1342
  The "search" field must match the file EXACTLY (copy-paste from the code provided).`;
1343
1343
 
1344
1344
  /**
1345
- * DESIGN REASONING PROMPT
1346
- * Forces the LLM through a structured analysis before making design changes.
1347
- * This prevents over-engineering and ensures thoughtful, targeted modifications.
1345
+ * DESIGNER ANALYSIS PROTOCOL
1346
+ * Forces the LLM to analyze the UI like a senior designer before making changes.
1347
+ * Identifies specific visual problems, maps them to code, then makes targeted fixes.
1348
1348
  */
1349
1349
  const DESIGN_REASONING_PROMPT = `
1350
1350
  ═══════════════════════════════════════════════════════════════════════════════
1351
- DESIGN REASONING PROTOCOL (Follow BEFORE generating patches)
1351
+ DESIGNER ANALYSIS PROTOCOL
1352
1352
  ═══════════════════════════════════════════════════════════════════════════════
1353
1353
 
1354
- STEP 1 - VISUAL ANALYSIS:
1355
- Before making any changes, analyze the current UI in the screenshot:
1356
- What type of component is this? (form wizard, modal, card, data table, sidebar, etc.)
1357
- What is currently working well that should be PRESERVED?
1358
- • What specific visual issues exist? (inconsistent spacing, unclear hierarchy, alignment problems, clutter)
1359
-
1360
- STEP 2 - MINIMAL CHANGE PLAN:
1361
- Identify the MINIMUM changes needed to address the user's request:
1362
- What 1-3 targeted fixes would solve the issue?
1363
- What should you explicitly NOT change?
1364
- • Will these changes break existing functionality or visual balance?
1365
-
1366
- STEP 3 - GUARDRAILS CHECK:
1367
- Before implementing, verify you are following these rules:
1368
- Am I preserving the existing layout structure? (flex stays flex, grid stays grid)
1369
- Am I keeping the existing color palette unless specifically asked to change it?
1370
- • Am I making incremental improvements, NOT a complete restructure?
1371
- Am I keeping the same visual hierarchy and element positions?
1372
-
1373
- STEP 4 - IMPLEMENT:
1374
- Only now generate patches for the targeted changes from Step 2.
1375
- Each patch should be small and focused - prefer multiple small patches over one large rewrite.
1354
+ You are a senior UI/UX designer reviewing this component. Before generating any code changes, you MUST complete this analysis:
1355
+
1356
+ STEP 1 - VISUAL AUDIT (analyze the screenshot)
1357
+ Examine the UI and identify specific issues in these categories:
1358
+
1359
+ • HIERARCHY: Is there a clear visual focus? Are elements competing for attention?
1360
+ - Look for: competing headings, unclear primary actions, visual clutter
1361
+
1362
+ SPACING: Are related elements grouped? Is there awkward empty space?
1363
+ - Look for: disconnected labels/values, uneven gaps, cramped or overly spread content
1364
+
1365
+ • ALIGNMENT: Do elements align naturally? Are there visual disconnects?
1366
+ - Look for: misaligned text, floating elements, broken visual flow
1367
+
1368
+ FEEDBACK: Are progress indicators, states, and actions clear?
1369
+ - Look for: weak progress visualization, unclear states, orphaned status indicators
1370
+
1371
+ GROUPING: Are related items visually connected? Do containers make sense?
1372
+ - Look for: related content that appears separate, missing visual boundaries
1373
+
1374
+ List each problem you find with a specific description.
1375
+
1376
+ STEP 2 - CODE MAPPING
1377
+ For each problem identified in Step 1, find the EXACT code in the file that causes it:
1378
+
1379
+ Example format:
1380
+ - Problem: "Badge disconnected from its label"
1381
+ - Code: Line 45 shows \`<Badge className="absolute right-0">\` positioned separately from label at Line 42
1382
+ - Fix needed: Move Badge inside the same flex container as the label
1383
+
1384
+ Do this for EACH problem you identified.
1385
+
1386
+ STEP 3 - PRIORITIZED FIXES
1387
+ Rank your fixes by visual impact. Address the most impactful issues first.
1388
+ Each fix should:
1389
+ • Target a specific identified problem from Step 1
1390
+ • Reference the exact code location from Step 2
1391
+ • Make focused changes that fix THAT specific problem
1392
+
1393
+ STEP 4 - GENERATE PATCHES
1394
+ Now generate patches that implement your fixes.
1395
+ • Each patch should be traceable to a specific problem from Step 1
1396
+ • Multiple small patches are better than one large rewrite
1397
+ • Every change must have a clear reason tied to your analysis
1376
1398
  `;
1377
1399
 
1378
1400
  /**
1379
- * DESIGN GUARDRAILS
1380
- * Explicit constraints to prevent the LLM from over-engineering design changes.
1401
+ * DESIGN DECISION RULES
1402
+ * Informed decision rules that allow fixing real problems while preventing unnecessary rewrites.
1381
1403
  */
1382
1404
  const DESIGN_GUARDRAILS = `
1383
1405
  ═══════════════════════════════════════════════════════════════════════════════
1384
- DESIGN GUARDRAILS (MUST FOLLOW)
1406
+ DESIGN DECISION RULES
1385
1407
  ═══════════════════════════════════════════════════════════════════════════════
1386
1408
 
1387
- DO NOT:
1388
- Convert layout systems (do NOT change flex to grid or vice versa)
1389
- Restructure component hierarchy unless explicitly asked
1390
- Change color schemes unless specifically requested
1391
- Move elements to different positions unless asked
1392
- Rewrite entire sections - make targeted changes only
1393
- Add new wrapper elements or change semantic structure
1394
-
1395
- DO:
1396
- Focus on spacing, padding, and margins for "cleaner" requests
1397
- Improve typography (font size, weight, line-height) for readability
1398
- Fix alignment issues within the existing structure
1399
- Adjust visual hierarchy through subtle styling, not restructuring
1400
- Make the smallest change that addresses the user's request
1401
- • Preserve what is already working well
1409
+ ALLOWED when fixing identified problems:
1410
+ Adjust spacing, padding, margins to fix grouping issues
1411
+ Reposition elements to improve visual hierarchy (move badge next to its label, etc.)
1412
+ Add containers/wrappers to group related content that appears disconnected
1413
+ Change flex direction or alignment to fix layout issues
1414
+ Adjust typography for better hierarchy (size, weight, line-height)
1415
+ Improve progress indicators or status displays for clarity
1416
+
1417
+ STILL AVOID:
1418
+ Complete rewrites when targeted fixes would work
1419
+ Changing functionality or interactive behavior
1420
+ Removing content or features the user didn't ask to remove
1421
+ Changing color schemes unless specifically identified as a problem
1422
+ Making changes that aren't traceable to a specific visual problem you identified
1423
+
1424
+ ═══════════════════════════════════════════════════════════════════════════════
1425
+ PRINCIPLE: Every change must trace back to a specific visual problem you identified in Step 1.
1426
+ If you can't explain WHY a change fixes a specific problem, don't make that change.
1427
+ ═══════════════════════════════════════════════════════════════════════════════
1402
1428
  `;
1403
1429
 
1404
1430
  /**
@@ -1338,63 +1338,89 @@ Output format:
1338
1338
  The "search" field must match the file EXACTLY (copy-paste from the code provided).`;
1339
1339
 
1340
1340
  /**
1341
- * DESIGN REASONING PROMPT
1342
- * Forces the LLM through a structured analysis before making design changes.
1343
- * This prevents over-engineering and ensures thoughtful, targeted modifications.
1341
+ * DESIGNER ANALYSIS PROTOCOL
1342
+ * Forces the LLM to analyze the UI like a senior designer before making changes.
1343
+ * Identifies specific visual problems, maps them to code, then makes targeted fixes.
1344
1344
  */
1345
1345
  const DESIGN_REASONING_PROMPT = `
1346
1346
  ═══════════════════════════════════════════════════════════════════════════════
1347
- DESIGN REASONING PROTOCOL (Follow BEFORE generating patches)
1347
+ DESIGNER ANALYSIS PROTOCOL
1348
1348
  ═══════════════════════════════════════════════════════════════════════════════
1349
1349
 
1350
- STEP 1 - VISUAL ANALYSIS:
1351
- Before making any changes, analyze the current UI in the screenshot:
1352
- What type of component is this? (form wizard, modal, card, data table, sidebar, etc.)
1353
- What is currently working well that should be PRESERVED?
1354
- • What specific visual issues exist? (inconsistent spacing, unclear hierarchy, alignment problems, clutter)
1355
-
1356
- STEP 2 - MINIMAL CHANGE PLAN:
1357
- Identify the MINIMUM changes needed to address the user's request:
1358
- What 1-3 targeted fixes would solve the issue?
1359
- What should you explicitly NOT change?
1360
- • Will these changes break existing functionality or visual balance?
1361
-
1362
- STEP 3 - GUARDRAILS CHECK:
1363
- Before implementing, verify you are following these rules:
1364
- Am I preserving the existing layout structure? (flex stays flex, grid stays grid)
1365
- Am I keeping the existing color palette unless specifically asked to change it?
1366
- • Am I making incremental improvements, NOT a complete restructure?
1367
- Am I keeping the same visual hierarchy and element positions?
1368
-
1369
- STEP 4 - IMPLEMENT:
1370
- Only now generate patches for the targeted changes from Step 2.
1371
- Each patch should be small and focused - prefer multiple small patches over one large rewrite.
1350
+ You are a senior UI/UX designer reviewing this component. Before generating any code changes, you MUST complete this analysis:
1351
+
1352
+ STEP 1 - VISUAL AUDIT (analyze the screenshot)
1353
+ Examine the UI and identify specific issues in these categories:
1354
+
1355
+ • HIERARCHY: Is there a clear visual focus? Are elements competing for attention?
1356
+ - Look for: competing headings, unclear primary actions, visual clutter
1357
+
1358
+ SPACING: Are related elements grouped? Is there awkward empty space?
1359
+ - Look for: disconnected labels/values, uneven gaps, cramped or overly spread content
1360
+
1361
+ • ALIGNMENT: Do elements align naturally? Are there visual disconnects?
1362
+ - Look for: misaligned text, floating elements, broken visual flow
1363
+
1364
+ FEEDBACK: Are progress indicators, states, and actions clear?
1365
+ - Look for: weak progress visualization, unclear states, orphaned status indicators
1366
+
1367
+ GROUPING: Are related items visually connected? Do containers make sense?
1368
+ - Look for: related content that appears separate, missing visual boundaries
1369
+
1370
+ List each problem you find with a specific description.
1371
+
1372
+ STEP 2 - CODE MAPPING
1373
+ For each problem identified in Step 1, find the EXACT code in the file that causes it:
1374
+
1375
+ Example format:
1376
+ - Problem: "Badge disconnected from its label"
1377
+ - Code: Line 45 shows \`<Badge className="absolute right-0">\` positioned separately from label at Line 42
1378
+ - Fix needed: Move Badge inside the same flex container as the label
1379
+
1380
+ Do this for EACH problem you identified.
1381
+
1382
+ STEP 3 - PRIORITIZED FIXES
1383
+ Rank your fixes by visual impact. Address the most impactful issues first.
1384
+ Each fix should:
1385
+ • Target a specific identified problem from Step 1
1386
+ • Reference the exact code location from Step 2
1387
+ • Make focused changes that fix THAT specific problem
1388
+
1389
+ STEP 4 - GENERATE PATCHES
1390
+ Now generate patches that implement your fixes.
1391
+ • Each patch should be traceable to a specific problem from Step 1
1392
+ • Multiple small patches are better than one large rewrite
1393
+ • Every change must have a clear reason tied to your analysis
1372
1394
  `;
1373
1395
 
1374
1396
  /**
1375
- * DESIGN GUARDRAILS
1376
- * Explicit constraints to prevent the LLM from over-engineering design changes.
1397
+ * DESIGN DECISION RULES
1398
+ * Informed decision rules that allow fixing real problems while preventing unnecessary rewrites.
1377
1399
  */
1378
1400
  const DESIGN_GUARDRAILS = `
1379
1401
  ═══════════════════════════════════════════════════════════════════════════════
1380
- DESIGN GUARDRAILS (MUST FOLLOW)
1402
+ DESIGN DECISION RULES
1381
1403
  ═══════════════════════════════════════════════════════════════════════════════
1382
1404
 
1383
- DO NOT:
1384
- Convert layout systems (do NOT change flex to grid or vice versa)
1385
- Restructure component hierarchy unless explicitly asked
1386
- Change color schemes unless specifically requested
1387
- Move elements to different positions unless asked
1388
- Rewrite entire sections - make targeted changes only
1389
- Add new wrapper elements or change semantic structure
1390
-
1391
- DO:
1392
- Focus on spacing, padding, and margins for "cleaner" requests
1393
- Improve typography (font size, weight, line-height) for readability
1394
- Fix alignment issues within the existing structure
1395
- Adjust visual hierarchy through subtle styling, not restructuring
1396
- Make the smallest change that addresses the user's request
1397
- • Preserve what is already working well
1405
+ ALLOWED when fixing identified problems:
1406
+ Adjust spacing, padding, margins to fix grouping issues
1407
+ Reposition elements to improve visual hierarchy (move badge next to its label, etc.)
1408
+ Add containers/wrappers to group related content that appears disconnected
1409
+ Change flex direction or alignment to fix layout issues
1410
+ Adjust typography for better hierarchy (size, weight, line-height)
1411
+ Improve progress indicators or status displays for clarity
1412
+
1413
+ STILL AVOID:
1414
+ Complete rewrites when targeted fixes would work
1415
+ Changing functionality or interactive behavior
1416
+ Removing content or features the user didn't ask to remove
1417
+ Changing color schemes unless specifically identified as a problem
1418
+ Making changes that aren't traceable to a specific visual problem you identified
1419
+
1420
+ ═══════════════════════════════════════════════════════════════════════════════
1421
+ PRINCIPLE: Every change must trace back to a specific visual problem you identified in Step 1.
1422
+ If you can't explain WHY a change fixes a specific problem, don't make that change.
1423
+ ═══════════════════════════════════════════════════════════════════════════════
1398
1424
  `;
1399
1425
 
1400
1426
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonance-brand-mcp",
3
- "version": "1.3.98",
3
+ "version": "1.3.99",
4
4
  "description": "MCP Server for Sonance Brand Guidelines and Component Library - gives Claude instant access to brand colors, typography, and UI components.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",