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_native_desktop_stack_freshness.py

View on GitHub
#!/usr/bin/env python3
"""Freshness and migration contracts for native, desktop, and 3D stacks."""

import csv
import sys
import unittest
from pathlib import Path
from urllib.parse import urlsplit

SCRIPTS_DIR = Path(__file__).resolve().parents[1]
if str(SCRIPTS_DIR) not in sys.path:
    sys.path.insert(0, str(SCRIPTS_DIR))

from core import (DATA_DIR, STACK_CONFIG, STACK_CURRENT_APPLICABILITY,
                  search_stack)  # noqa: E402
from validate_data import STACK_OFFICIAL_HOSTS  # noqa: E402

STACKS = {
    "react-native", "flutter", "swiftui", "jetpack-compose", "avalonia",
    "uwp", "winui", "wpf", "uno", "javafx", "threejs", "laravel",
}


def _rows(stack):
    path = DATA_DIR / STACK_CONFIG[stack]["file"]
    with path.open(encoding="utf-8", newline="") as handle:
        return list(csv.DictReader(handle))


class TestNativeDesktopStackFreshness(unittest.TestCase):
    def test_rows_have_final_freshness_metadata(self):
        for stack in STACKS:
            for row in _rows(stack):
                with self.subTest(stack=stack, row=row["No"]):
                    expected = "deprecated" if stack == "uwp" else "active"
                    self.assertEqual(row["Status"], expected)
                    self.assertTrue(row["Applies To"].startswith(
                        STACK_CURRENT_APPLICABILITY[stack]))
                    self.assertRegex(row["Verified At"], r"^\d{4}-\d{2}-\d{2}$")
                    self.assertEqual("legacy" in row["Applies To"], stack == "uwp")

    def test_high_impact_rows_use_official_sources(self):
        for stack in STACKS:
            for row in _rows(stack):
                if row["Severity"] not in {"Critical", "High"}:
                    continue
                with self.subTest(stack=stack, row=row["No"]):
                    parsed = urlsplit(row["Docs URL"])
                    self.assertEqual(parsed.scheme, "https")
                    self.assertIn(parsed.hostname, STACK_OFFICIAL_HOSTS[stack])

    def test_current_mobile_contracts(self):
        cases = {
            ("react-native", "Hermes bundled default engine"): "hermes",
            ("flutter", "predictive back result callback"): "onpopinvokedwithresult",
            ("flutter", "accessible nonlinear text scaling"): "textscaler",
            ("swiftui", "multicolumn navigation sidebar detail"): "navigationsplitview",
        }
        for (stack, query), expected in cases.items():
            with self.subTest(stack=stack):
                result = search_stack(query, stack, max_results=1)
                self.assertEqual(result["count"], 1)
                recommended = " ".join(
                    result["results"][0][field]
                    for field in ("Guideline", "Do", "Code Good")
                ).casefold()
                self.assertIn(expected, recommended)

    def test_windows_current_and_maintenance_lanes_are_visible(self):
        current = search_stack("new Windows desktop app Windows App SDK", "winui")
        legacy = search_stack("UWP maintenance x:Bind migration", "uwp")
        self.assertGreater(current["count"], 0)
        self.assertGreater(legacy["count"], 0)
        self.assertEqual({row["Status"] for row in current["results"]}, {"active"})
        self.assertEqual({row["Status"] for row in legacy["results"]}, {"deprecated"})
        self.assertTrue(any("winui" in " ".join(row.values()).casefold()
                            for row in legacy["results"]))
        successor = search_stack(
            "which Windows UI framework should a brand new app choose instead of legacy UWP",
            "uwp", max_results=1,
        )
        self.assertEqual("Prefer WinUI 3 for new projects", successor["results"][0]["Guideline"])

    def test_old_version_without_curated_rows_abstains(self):
        cases = {
            "react-native": "React Native 0.75 Hermes",
            "flutter": "Flutter SDK 3.22 back navigation",
            "swiftui": "iOS 15 SwiftUI navigation",
            "avalonia": "Avalonia UI v11 storage picker",
            "winui": "WinUI SDK 2 desktop app",
            "javafx": "JavaFX SDK 21 table view",
            "threejs": "Three.js r128 OrbitControls",
            "laravel": "Laravel 12 validation",
        }
        for stack, query in cases.items():
            with self.subTest(stack=stack):
                self.assertEqual(search_stack(query, stack)["count"], 0)

    def test_migration_intent_returns_current_replacements(self):
        cases = {
            "flutter": "replace deprecated WillPopScope with current Flutter API",
            "react-native": "upgrade legacy Hermes configuration",
            "threejs": "replace deprecated outputEncoding with current color space",
        }
        for stack, query in cases.items():
            with self.subTest(stack=stack):
                result = search_stack(query, stack)
                self.assertGreater(result["count"], 0)
                self.assertEqual({row["Status"] for row in result["results"]}, {"active"})

        versioned_cases = {
            "react-native": "upgrade React Native 0.75 to React Native 0.86 Hermes",
            "flutter": "upgrade Flutter 3.22 to Flutter 3.44 predictive back",
            "threejs": "upgrade Three.js r128 to r185 outputColorSpace",
        }
        for stack, query in versioned_cases.items():
            with self.subTest(stack=stack, query=query):
                result = search_stack(query, stack)
                self.assertGreater(result["count"], 0)
                self.assertEqual({row["Status"] for row in result["results"]}, {"active"})

    def test_standalone_current_and_deprecated_identifiers_resolve_replacement(self):
        cases = {
            ("flutter", "onPopInvokedWithResult"): "PopScope",
            ("flutter", "TextScaler"): "large fonts",
            ("threejs", "outputColorSpace"): "Color Space",
            ("threejs", "outputEncoding"): "Color Space",
        }
        for (stack, query), guideline in cases.items():
            with self.subTest(stack=stack, query=query):
                result = search_stack(query, stack, max_results=1)
                self.assertEqual(result["count"], 1)
                self.assertIn(guideline.casefold(), result["results"][0]["Guideline"].casefold())

    def test_current_threejs_uses_supported_module_and_color_apis(self):
        cases = {
            "Three.js current OrbitControls addon import": "three/addons/",
            "Three.js current renderer color space": "outputcolorspace",
        }
        for query, expected in cases.items():
            with self.subTest(query=query):
                result = search_stack(query, "threejs", max_results=1)
                self.assertEqual(result["count"], 1)
                recommended = " ".join(
                    result["results"][0][field]
                    for field in ("Guideline", "Do", "Code Good")
                ).casefold()
                self.assertIn(expected, recommended)

    def test_deprecated_symbols_are_not_recommended_by_current_rows(self):
        forbidden = {
            "react-native": ("hermes_enabled",),
            "flutter": ("willpopscope", "onpopinvoked:", "textscalefactor"),
            "swiftui": ("navigationview", "presentationmode"),
            "winui": ("dispatcher.runasync", "system.windows"),
            "uno": ("system.windows", 'requestedtheme="default"'),
            "javafx": ("fxpermission", "javadoc/21"),
            "threejs": (
                "r128", "three.orbitcontrols", "outputencoding",
                "three.srgbencoding", "examples/js/controls",
            ),
        }
        for stack, tokens in forbidden.items():
            for row in _rows(stack):
                if row["Status"] != "active":
                    continue
                recommended = " ".join(
                    row[field] for field in ("Guideline", "Do", "Code Good")
                ).casefold()
                for token in tokens:
                    with self.subTest(stack=stack, row=row["No"], token=token):
                        self.assertNotIn(token, recommended)


if __name__ == "__main__":
    unittest.main()
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