Biswadipgoj/biswodip / .agents/skills/ui-ux-pro-max
ui-ux-pro-max
UnverifiedUI/UX design intelligence for web, mobile, and desktop. This skill should be used when designing, building, reviewing, or fixing interfaces, including pages, components, design systems, accessibility, interaction, responsive layout, typography, color, charts, and stack-specific UI implementation. Searchable local data: 79 searchable styles (50 active), 192 product palettes and reasoning profiles, 74 font pairings, 119 UX guidelines, 105 icons, 17 GSAP presets, 25 chart types, and 22 stacks.
scripts/tests/test_catalog_summary_line_endings.py
View on GitHub#!/usr/bin/env python3
"""The catalog snapshot must not depend on the checkout's line endings.
Regression test for bd19ab9 (#462), where catalog-summary.json was regenerated
on a CRLF checkout. Every recorded sha256 was the CRLF hash of the source file,
so `verify:data` failed on every LF platform, including CI.
"""
import hashlib
import importlib.util
import json
import shutil
import tempfile
import unittest
from pathlib import Path
REPO = next(
parent for parent in Path(__file__).resolve().parents
if (parent / "scripts" / "generate-catalog-summary.py").is_file()
)
DATA = REPO / "src/ui-ux-pro-max/data"
SNAPSHOT_FILES = (
"google-fonts.csv",
"google-font-licenses.json",
"icons.csv",
"phosphor-icons-upstream.json",
)
def _load_generator():
path = REPO / "scripts" / "generate-catalog-summary.py"
spec = importlib.util.spec_from_file_location("generate_catalog_summary", path)
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
return module
class CatalogSummaryLineEndingsTest(unittest.TestCase):
def test_digest_is_identical_for_lf_and_crlf(self):
digest = _load_generator().digest
with tempfile.TemporaryDirectory() as tmp:
lf = Path(tmp) / "lf.csv"
crlf = Path(tmp) / "crlf.csv"
lf.write_bytes(b"id,name\n1,alpha\n2,beta\n")
crlf.write_bytes(b"id,name\r\n1,alpha\r\n2,beta\r\n")
self.assertEqual(
digest(lf), digest(crlf),
"snapshot hashes must not change with the checkout's line endings",
)
def test_committed_snapshot_matches_normalized_sources(self):
summary = json.loads((DATA / "catalog-summary.json").read_text(encoding="utf-8"))
for name in SNAPSHOT_FILES:
expected = hashlib.sha256(
(DATA / name).read_bytes().replace(b"\r\n", b"\n")
).hexdigest()
self.assertEqual(
summary["snapshots"][name]["sha256"], expected,
f"{name}: committed snapshot hash does not match the LF-normalized source",
)
def test_crlf_checkout_produces_the_committed_hashes(self):
"""Simulate a Windows checkout: the recorded hashes must still validate."""
digest = _load_generator().digest
summary = json.loads((DATA / "catalog-summary.json").read_text(encoding="utf-8"))
with tempfile.TemporaryDirectory() as tmp:
for name in SNAPSHOT_FILES:
crlf_copy = Path(tmp) / name
raw = (DATA / name).read_bytes().replace(b"\r\n", b"\n")
crlf_copy.write_bytes(raw.replace(b"\n", b"\r\n"))
self.assertEqual(
digest(crlf_copy), summary["snapshots"][name]["sha256"],
f"{name}: a CRLF checkout would record a different hash",
)
if __name__ == "__main__":
unittest.main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |