Skip to content

Biswadipgoj/biswodip / .agents/skills/ui-ux-pro-max

ui-ux-pro-max

Unverified

UI/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.

FileKindSize
SKILL.mdskill md15.6 KB
data/app-interface.csvother10.8 KB
data/catalog-summary.jsonconfig2.3 KB
data/charts.csvother22.8 KB
data/colors.csvother37.1 KB
data/data-provenance.jsonconfig35.8 KB
data/google-font-licenses.jsonconfig423.0 KB
data/google-fonts.csvother729.7 KB
data/icons.csvother56.6 KB
data/landing.csvother24.9 KB
data/motion.csvother14.3 KB
data/phosphor-icons-upstream.jsonconfig804.6 KB
data/products.csvother73.9 KB
data/react-performance.csvother14.7 KB
data/stacks/angular.csvother19.4 KB
data/stacks/astro.csvother14.2 KB
data/stacks/avalonia.csvother26.7 KB
data/stacks/flutter.csvother13.9 KB
data/stacks/html-tailwind.csvother16.2 KB
data/stacks/javafx.csvother32.8 KB
data/stacks/jetpack-compose.csvother12.0 KB
data/stacks/laravel.csvother19.7 KB
data/stacks/nextjs.csvother18.2 KB
data/stacks/nuxt-ui.csvother23.5 KB
data/stacks/nuxtjs.csvother22.5 KB
data/stacks/react-native.csvother13.7 KB
data/stacks/react.csvother18.6 KB
data/stacks/shadcn.csvother22.6 KB
data/stacks/svelte.csvother14.7 KB
data/stacks/swiftui.csvother15.0 KB
data/stacks/threejs.csvother45.0 KB
data/stacks/uno.csvother29.4 KB
data/stacks/uwp.csvother24.1 KB
data/stacks/vue.csvother12.5 KB
data/stacks/winui.csvother27.2 KB
data/stacks/wpf.csvother23.6 KB
data/styles.csvother146.0 KB
data/typography.csvother48.8 KB
data/ui-reasoning.csvother75.5 KB
data/ux-guidelines.csvother26.9 KB
references/pro-rules.mdmarkdown10.7 KB
references/quick-reference.mdmarkdown24.0 KB
scripts/core.pyscript40.3 KB
scripts/design_system.pyscript69.3 KB
scripts/reasoning_contract.pyscript5.7 KB
scripts/search.pyscript9.2 KB
scripts/tests/fixtures/catalogs/google-api.jsonconfig1.1 KB
scripts/tests/fixtures/catalogs/google-catalog.jsonconfig1.7 KB
scripts/tests/fixtures/catalogs/google-existing.csvother480 B
scripts/tests/fixtures/catalogs/google-metadata.jsonconfig328 B
scripts/tests/fixtures/catalogs/google-overrides.jsonconfig97 B
scripts/tests/fixtures/catalogs/icons-curated.csvother495 B
scripts/tests/fixtures/catalogs/phosphor-core.jsonconfig571 B
scripts/tests/fixtures/catalogs/phosphor-package.jsonconfig370 B
scripts/tests/fixtures/catalogs/phosphor-react-exports.jsonconfig87 B
scripts/tests/fixtures/catalogs/phosphor-react-package.jsonconfig81 B
scripts/tests/fixtures/relevance-baseline.jsonconfig87.3 KB
scripts/tests/fixtures/relevance-cases.jsonconfig35.9 KB
scripts/tests/fixtures/relevance-thresholds.jsonconfig5.0 KB
scripts/tests/test_catalog_refresh.pyscript19.0 KB
scripts/tests/test_catalog_summary_line_endings.pyscript2.9 KB
scripts/tests/test_core.pyscript16.3 KB
scripts/tests/test_core_data_quality.pyscript8.7 KB
scripts/tests/test_data_contracts.pyscript19.1 KB
scripts/tests/test_design_system_mode.pyscript7.5 KB
scripts/tests/test_design_system_stack.pyscript2.2 KB
scripts/tests/test_native_desktop_stack_freshness.pyscript8.0 KB
scripts/tests/test_relevance_evaluator.pyscript8.2 KB
scripts/tests/test_skill_script_paths.pyscript4.2 KB
scripts/tests/test_style_taxonomy.pyscript7.3 KB
scripts/tests/test_text_layout_resilience.pyscript5.7 KB
scripts/tests/test_web_stack_freshness.pyscript7.5 KB
scripts/validate_data.pyscript51.0 KB

scripts/tests/test_style_taxonomy.py

View on GitHub
#!/usr/bin/env python3
"""Regression tests for the public style taxonomy and search contract."""

import csv
import json
import statistics
import sys
import unittest
from pathlib import Path

SCRIPTS_DIR = Path(__file__).resolve().parent.parent
DATA_DIR = SCRIPTS_DIR.parent / "data"
sys.path.insert(0, str(SCRIPTS_DIR))

from core import search  # noqa: E402
from design_system import _style_is_dark_primary  # noqa: E402


def read_rows(name):
    with (DATA_DIR / name).open(encoding="utf-8", newline="") as handle:
        return list(csv.DictReader(handle))


class TestStyleTaxonomy(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        cls.styles = read_rows("styles.csv")
        cls.by_id = {row["Style ID"]: row for row in cls.styles}

    def test_curated_state_distribution_is_explicit(self):
        counts = {
            status: sum(row["Status"] == status for row in self.styles)
            for status in ("active", "supplemental", "deprecated")
        }
        self.assertEqual(
            {"active": 50, "supplemental": 29, "deprecated": 9}, counts
        )

    def test_every_style_name_and_alias_has_a_deterministic_destination(self):
        for row in self.styles:
            queries = [row["Style Category"]]
            queries.extend(alias for alias in row["Aliases"].split("|") if alias)
            for query in queries:
                with self.subTest(style=row["Style ID"], query=query):
                    result = search(query, max_results=1)
                    if (row["Status"] == "deprecated"
                            and row["Replacement Domain"] == "landing"):
                        self.assertEqual(0, result["count"])
                        self.assertEqual(
                            {
                                "domain": row["Replacement Domain"],
                                "id": row["Replacement ID"],
                            },
                            result.get("redirect"),
                        )
                    else:
                        expected_id = (
                            row["Replacement ID"]
                            if row["Status"] == "deprecated"
                            else row["Style ID"]
                        )
                        self.assertEqual(expected_id, result["results"][0]["Style ID"])

    def test_deprecated_rows_never_appear_in_generic_results(self):
        for query in ("modern interface", "marketing page", "trust design"):
            with self.subTest(query=query):
                result = search(query, domain="style", max_results=20)
                self.assertLessEqual(
                    {row["Status"] for row in result["results"]}, {"active"}
                )

    def test_style_arbitration_does_not_steal_product_intent(self):
        result = search("design a financial dashboard for my bank", max_results=1)
        self.assertEqual("product", result["domain"])

    def test_family_variants_and_mobile_intent_remain_distinct(self):
        expected_parents = {
            "gradient-mesh-aurora-evolved": "aurora-ui",
            "swiss-modernism-2-0": "minimalism-and-swiss-style",
            "neumorphism-mobile": "neumorphism",
            "claymorphism-mobile": "claymorphism",
            "spectrum-2": "spectrum-design-system",
        }
        for style_id, parent_id in expected_parents.items():
            with self.subTest(style=style_id):
                row = self.by_id[style_id]
                self.assertEqual(parent_id, row["Parent Style ID"])
                self.assertIn(row["Status"], {"supplemental", "deprecated"})

        self.assertEqual("style", self.by_id["bento-grids"]["Replacement Domain"])
        self.assertEqual(
            "bento-box-grid", self.by_id["bento-grids"]["Replacement ID"]
        )

        self.assertEqual(
            "neumorphism-mobile",
            search("Neumorphism (Mobile)", "style", 1)["results"][0]["Style ID"],
        )
        self.assertEqual(
            "claymorphism-mobile",
            search("Claymorphism (Mobile)", "style", 1)["results"][0]["Style ID"],
        )
        self.assertEqual(
            "material-you-md3-mobile",
            search("M3 Expressive", "style", 1)["results"][0]["Style ID"],
        )
        self.assertEqual(
            "neumorphism-mobile",
            search("mobile neumorphism UI", "style", 1)["results"][0]["Style ID"],
        )
        self.assertEqual(
            "claymorphism-mobile",
            search("mobile app with claymorphism", "style", 1)["results"][0]["Style ID"],
        )
        self.assertEqual(
            "spectrum-2",
            search("design system for Spectrum 2", "style", 1)["results"][0]["Style ID"],
        )

    def test_claim_fields_use_controlled_non_guarantee_language(self):
        allowed_performance = {"cost:low", "cost:moderate", "cost:high"}
        allowed_accessibility = {"risk:low", "risk:conditional", "risk:high"}
        allowed_mode = {"supported", "conditional", "not-recommended"}
        for row in self.styles:
            with self.subTest(style=row["Style ID"]):
                self.assertIn(row["Performance"].split("|", 1)[0], allowed_performance)
                self.assertIn(row["Accessibility"].split("|", 1)[0], allowed_accessibility)
                self.assertIn(row["Light Mode ✓"], allowed_mode)
                self.assertIn(row["Dark Mode ✓"], allowed_mode)
                self.assertIn(row["Preferred Mode"], {"auto", "light", "dark"})
                claim_text = " ".join(row.values())
                self.assertNotRegex(claim_text, r"(?i)\bWCAG\s+A{2,3}\+?\b")
                self.assertNotRegex(
                    claim_text,
                    r"(?i)\bWCAG\b.{0,40}\b(?:compliant|compliance)\b",
                )
                self.assertNotRegex(row["Framework Compatibility"], r"\d+/10")

        self.assertTrue(_style_is_dark_primary(self.by_id["dark-mode-oled"]))
        self.assertFalse(
            _style_is_dark_primary(self.by_id["minimalism-and-swiss-style"])
        )

    def test_searchable_prompt_lengths_are_balanced(self):
        lengths_by_type = {}
        for row in self.styles:
            length = len(row["AI Prompt Keywords"].split())
            self.assertLessEqual(length, 40, row["Style ID"])
            lengths_by_type.setdefault(row["Type"], []).append(length)
        general_median = statistics.median(lengths_by_type["General"])
        mobile_median = statistics.median(lengths_by_type["Mobile"])
        self.assertLessEqual(mobile_median, general_median * 1.6)

    def test_new_rows_have_first_party_provenance(self):
        payload = json.loads(
            (DATA_DIR / "data-provenance.json").read_text(encoding="utf-8")
        )
        records = {
            record["entityId"]: record
            for record in payload["records"]
            if record["entityKind"] == "style"
        }
        new_rows = [row for row in self.styles if int(row["No"]) > 85]
        self.assertGreaterEqual(len(new_rows), 4)
        for row in new_rows:
            with self.subTest(style=row["Style ID"]):
                record = records[row["Style ID"]]
                self.assertTrue(record["sources"])
                self.assertTrue(
                    any(source["type"] == "official" for source in record["sources"])
                )


if __name__ == "__main__":
    unittest.main(verbosity=2)
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: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall