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/reasoning_contract.py

View on GitHub
#!/usr/bin/env python3
"""Closed, non-executable grammar for design-system decision rules."""

import json
import re

CONDITION_SIGNALS = {
    "if_booking": ("booking", "appointment", "calendar"),
    "if_boutique": ("boutique",),
    "if_casual": ("casual", "playful"),
    "if_checkout": ("checkout", "payment", "purchase"),
    "if_children": ("child", "children", "kids"),
    "if_collaboration": ("collaboration", "multiplayer", "co-edit"),
    "if_competitive": ("competitive", "leaderboard"),
    "if_content_focused": ("content", "article", "reading", "documentation"),
    "if_conversion_focused": ("conversion", "sales", "signup", "purchase"),
    "if_creative_field": ("creative", "artist", "portfolio"),
    "if_crop_focused": ("crop", "farm", "agriculture"),
    "if_dashboard": ("dashboard", "operations", "monitoring"),
    "if_data_heavy": ("data heavy", "data-heavy", "analytics", "large dataset"),
    "if_delivery": ("delivery", "courier", "shipping"),
    "if_discovery_focused": ("discover", "discovery", "browse", "directory"),
    "if_engagement_metric": ("engagement", "retention", "contribution"),
    "if_experience_focused": ("experience", "immersive", "journey"),
    "if_gamification": ("gamification", "badges", "streak"),
    "if_health": ("health", "medical", "patient"),
    "if_hero_needed": ("hero", "showcase", "launch"),
    "if_large_dataset": ("large dataset", "thousands", "millions"),
    "if_light_mode_needed": ("light mode", "light theme"),
    "if_low_performance": ("low performance", "low-end", "slow device"),
    "if_luxury": ("luxury", "premium", "high-end"),
    "if_medication": ("medication", "medicine", "prescription"),
    "if_meditation": ("meditation", "breathing", "mindfulness"),
    "if_minimal_portfolio": ("minimal portfolio", "simple portfolio"),
    "if_mobile": ("mobile", "phone", "tablet", "ios", "android"),
    "if_personalized": ("personalized", "personalised", "recommendation"),
    "if_pre_launch": ("pre-launch", "prelaunch", "coming soon", "waitlist"),
    "if_salary_focused": ("salary", "compensation", "pay range"),
    "if_team_collaboration": ("team collaboration", "team workspace"),
    "if_trust_needed": ("trust", "secure", "verified", "authority"),
    "if_ux_focused": ("ux", "usability", "accessibility", "accessible"),
    "if_video_ready": ("video ready", "product video", "demo video"),
}

ALLOWED_CONDITIONS = {"must_have", *CONDITION_SIGNALS}
ACTION_PREFIXES = {"constraint", "style", "pattern", "mode"}
TOKEN_ACTION_PREFIXES = {"constraint", "style"}
TOKEN_RE = re.compile(r"^[a-z0-9]+(?:-[a-z0-9]+)*$")
CONDITION_PATTERNS = {
    condition: tuple(
        re.compile(r"(?<!\w)" + re.escape(signal) + r"(?!\w)")
        for signal in signals
    )
    for condition, signals in CONDITION_SIGNALS.items()
}


def _object_without_duplicates(pairs):
    result = {}
    for key, value in pairs:
        if key in result:
            raise ValueError("duplicate decision-rule key: {}".format(key))
        result[key] = value
    return result


def parse_decision_rules(raw):
    """Parse the canonical condition -> action-array representation."""
    try:
        rules = json.loads(raw or "{}", object_pairs_hook=_object_without_duplicates)
    except json.JSONDecodeError as error:
        raise ValueError("invalid decision-rule JSON: {}".format(error)) from error
    if not isinstance(rules, dict):
        raise ValueError("decision rules must be a JSON object")
    for condition, actions in rules.items():
        if condition not in ALLOWED_CONDITIONS:
            raise ValueError("unknown decision-rule condition: {}".format(condition))
        if not isinstance(actions, list) or not actions:
            raise ValueError("{} must map to a non-empty action array".format(condition))
        for action in actions:
            _validate_action(action)
        if len(actions) != len(set(actions)):
            raise ValueError("{} contains duplicate actions".format(condition))
    return rules


def _validate_action(action):
    if not isinstance(action, str) or ":" not in action:
        raise ValueError("action must use a known prefix: {}".format(action))
    prefix, value = action.split(":", 1)
    if prefix not in ACTION_PREFIXES:
        raise ValueError("unknown decision-rule action: {}".format(action))
    if prefix in TOKEN_ACTION_PREFIXES and not TOKEN_RE.fullmatch(value):
        raise ValueError("invalid {} action value: {}".format(prefix, value))
    if prefix == "pattern" and not value.strip():
        raise ValueError("pattern action must name a pattern")
    if prefix == "mode" and value not in {"dark", "light"}:
        raise ValueError("mode action must be dark or light")


def apply_decision_rules(rules, query):
    """Return deterministic mutations and an audit trail; never execute data."""
    normalized = str(query or "").casefold()
    result = {"activated": [], "style_ids": [], "constraints": [],
              "pattern": None, "mode": None}
    for condition, actions in rules.items():
        active = condition == "must_have" or any(
            pattern.search(normalized)
            for pattern in CONDITION_PATTERNS.get(condition, ()))
        if not active:
            continue
        result["activated"].append({"condition": condition, "actions": list(actions)})
        for action in actions:
            prefix, value = action.split(":", 1)
            if prefix == "style" and value not in result["style_ids"]:
                result["style_ids"].append(value)
            elif prefix == "constraint" and value not in result["constraints"]:
                result["constraints"].append(value)
            elif prefix == "pattern":
                result["pattern"] = value
            elif prefix == "mode":
                result["mode"] = value
    return result
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