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

View on GitHub
#!/usr/bin/env python3
"""Freshness and generation-isolation contracts for web stack guidance."""

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, WEB_STACKS, search_stack  # noqa: E402
from validate_data import STACK_OFFICIAL_HOSTS  # noqa: E402

CURRENT_APPLICABILITY = {
    "react": "react 19.2.x",
    "nextjs": "nextjs 16.2",
    "vue": "vue 3.5.x",
    "svelte": "svelte 5",
    "astro": "astro 7.1.6",
    "angular": "angular 22.x",
    "html-tailwind": "html-tailwind 4.3",
    "shadcn": "shadcn cli 4",
    "nuxtjs": "nuxtjs 4.5",
    "nuxt-ui": "nuxt-ui 4.10",
}


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 TestWebStackFreshness(unittest.TestCase):
    def test_web_rows_have_explicit_freshness_metadata(self):
        for stack in WEB_STACKS:
            for row in _rows(stack):
                with self.subTest(stack=stack, row=row["No"]):
                    self.assertIn(row["Status"], {"active", "deprecated"})
                    self.assertTrue(row["Applies To"].startswith(stack))
                    self.assertRegex(row["Verified At"], r"^\d{4}-\d{2}-\d{2}$")
                    self.assertEqual(
                        "legacy" in row["Applies To"].casefold(),
                        row["Status"] == "deprecated",
                    )

    def test_high_impact_rows_use_official_sources(self):
        for stack in WEB_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_active_rows_use_the_verified_current_applicability(self):
        for stack, applicability in CURRENT_APPLICABILITY.items():
            for row in _rows(stack):
                if row["Status"] != "active":
                    continue
                with self.subTest(stack=stack, row=row["No"]):
                    self.assertTrue(row["Applies To"].startswith(applicability))

    def test_svelte_current_and_legacy_queries_do_not_mix_generations(self):
        current = search_stack("Svelte state props and events", "svelte")
        legacy = search_stack("Svelte 4 legacy props and events", "svelte")
        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(all("legacy" in row["Applies To"] for row in legacy["results"]))

    def test_explicit_old_major_uses_only_curated_legacy_rows(self):
        cases = {
            "nextjs": "Next.js 15 middleware auth matcher",
            "html-tailwind": "Tailwind 3 JIT content configuration",
            "nuxtjs": "Nuxt 3 app config runtime config migration",
        }
        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"]}, {"deprecated"}
                )

    def test_current_major_migration_query_stays_on_current_guidance(self):
        result = search_stack("Next.js 16 migration to proxy", "nextjs")
        self.assertGreater(result["count"], 0)
        self.assertEqual({row["Status"] for row in result["results"]}, {"active"})

    def test_shadcn_named_base_excludes_incompatible_composition_apis(self):
        result = search_stack("shadcn Base UI asChild composition", "shadcn")
        self.assertGreater(result["count"], 0)
        self.assertEqual(result["results"][0]["Guideline"],
                         "Use render for Base UI composition")
        self.assertTrue(all("base=radix" not in row["Applies To"]
                            for row in result["results"]))

    def test_common_old_major_syntaxes_select_legacy_guidance(self):
        cases = {
            "svelte": "svelte@4 props events",
            "nextjs": "Next.js (v15) middleware",
            "html-tailwind": "tailwindcss@3 JIT",
            "nuxtjs": "nuxt@3 app config",
        }
        for stack, query in 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"]}, {"deprecated"}
                )

    def test_old_major_without_curated_legacy_guidance_abstains(self):
        result = search_stack("Astro 5 content collections", "astro")
        self.assertEqual(result["count"], 0)
        self.assertEqual(result["results"], [])

    def test_current_high_drift_queries_return_current_contracts(self):
        cases = {
            ("nextjs", "Next.js 16 request interception proxy"): "proxy",
            ("html-tailwind", "Tailwind 4 CSS-first source detection"): "source",
            ("react", "React Effect Event latest values inside an Effect"): "effect event",
        }
        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)
                row = result["results"][0]
                self.assertEqual(row["Status"], "active")
                self.assertIn(expected, row["Guideline"].casefold())

    def test_stack_without_curated_legacy_rows_keeps_nonlegacy_fallback(self):
        result = search_stack(
            "which Windows UI framework should a new app choose instead of legacy UWP",
            "uwp",
        )
        self.assertGreater(result["count"], 0)

    def test_stale_apis_are_not_recommended_by_active_rows(self):
        forbidden = {
            "svelte": ("$: ", "export let ", "on:click", "createeventdispatcher"),
            "nextjs": ("middleware.ts", "function middleware", "skipmiddleware"),
            "html-tailwind": (
                "content: [", "mode: 'jit'", "@tailwindcss/aspect-ratio",
                "tailwindcss-container-queries",
            ),
            "nuxt-ui": ("#cell-status", "sortable: true", "v-model:content"),
            "astro": (
                "output: 'hybrid'", "viewtransitions", "@astrojs/tailwind",
                "astro add prefetch",
            ),
        }
        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)

        self.assertNotIn(
            "fetch(url {", _rows("nextjs")[12]["Code Good"].casefold()
        )
        self.assertNotIn("catch(e) {}", _rows("react")[39]["Code Good"].casefold())


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