huskarui

2
0
Source

Expert on HuskarUI components. Queries metadata for documentation and examples. Works with or without Python.

Install

mkdir -p .claude/skills/huskarui && curl -L -o skill.zip "https://mcp.directory/api/skills/download/3604" && unzip -o skill.zip -d .claude/skills/huskarui && rm skill.zip

Installs to .claude/skills/huskarui

About this skill

HuskarUI Expert

This skill provides comprehensive knowledge about the HuskarUI library by querying guide.metainfo.json. Note that guide.metainfo.json and the helper script query_metainfo.py are typically located in ai_tools/HuskarUIExpert/, but they may also be found in the same directory as this SKILL file.

Capabilities

  1. Component Lookup: Get detailed documentation, properties, and code examples.
  2. Search: Find components by keywords.
  3. Listing: List all available components.

Usage Strategy

CRITICAL: The metadata file guide.metainfo.json is large (~500KB). DO NOT try to read the whole file at once.

Method 1: Python Tool (Preferred)

Use this method if the environment supports Python.

Lookup/Search:

# Note: Adjust paths if the tool files are located elsewhere
python ai_tools/HuskarUIExpert/query_metainfo.py ai_tools/HuskarUIExpert/guide.metainfo.json <ComponentName_or_Keyword>

List All:

# Note: Adjust paths if the tool files are located elsewhere
python ai_tools/HuskarUIExpert/query_metainfo.py ai_tools/HuskarUIExpert/guide.metainfo.json list

Method 2: Manual Fallback (No Python)

Use this method if python command fails or is not available.

1. Locate Component: Use grep to find the line number of the component definition.

# Note: Adjust paths if guide.metainfo.json is located elsewhere
grep -n "\"name\": \"<ComponentName>\"" ai_tools/HuskarUIExpert/guide.metainfo.json

2. Read Content: Use the Read tool with offset (the line number found above) and limit (e.g., 200 lines) to extract the component's JSON object. Note: Do not read from line 1 unless necessary.

3. Search (Manual):

grep -i "<keyword>" ai_tools/HuskarUIExpert/guide.metainfo.json

Advanced: Source Code Verification

If the documentation in guide.metainfo.json is unclear or if you suspect it might be outdated/incomplete:

  1. Look for the "sources" field in the component's metadata (retrieved via Method 1 or 2).
  2. Read the actual source file (e.g., src/imports/HusAvatar.qml) using the Read tool.
  3. Verify properties, signals, and implementation details directly from the code to minimize errors.

Coding Guidelines

QML Style Guide

Based on project conventions (e.g., src/imports/HusAvatar.qml):

  1. Imports:

    • Order: QtQuick -> QtQuick.* -> HuskarUI.Basic.
    • Use import QtQuick.Templates as T when inheriting from templates.
  2. Naming:

    • Components: PascalCase (e.g., HusButton).
    • Properties/Functions: camelCase (e.g., iconSource, calcBestSize).
    • Private Members: Prefix with double underscore (e.g., __iconImpl, __bg).
    • IDs: camelCase, descriptive (e.g., control, titleText).
  3. Formatting:

    • Indentation: 4 spaces.
    • Quotes: Single quotes 'string' preferred for properties.
    • Braces: Egyptian style (opening brace on the same line).
  4. Structure:

    • id first.
    • Property declarations.
    • implicitWidth / implicitHeight.
    • Visual properties (font, color).
    • Child objects / Components.
  5. Best Practices:

    • Performance:
      • Use Loader for conditional complex sub-components to improve performance.
      • Avoid binding loops (circular dependencies in property bindings).
    • JavaScript:
      • Use let or const instead of var to avoid scope hoisting issues.
      • Use strict equality === and !== instead of == and !=.
      • Avoid global variables; encapsulate logic in stateless JavaScript libraries (.js/.mjs files) imported as stateless modules .pragma library.
      • Use arrow functions () => {} for short callbacks to preserve lexical this (if supported by the Qt version).
      • Prefer Qt.binding(function() { ... }) when imperatively assigning bindings.

C++ Style Guide

Based on .clang-format:

  • Style: LLVM-based.
  • Standard: C++17 or newer.
  • Indentation: 4 spaces.
  • Pointer Alignment: Right (Type *ptr).
  • Column Limit: 100 characters.
  • Access Modifiers: Indented by -4 spaces (align with class definition).

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

643969

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

591705

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

318399

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

340397

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

452339

fastapi-templates

wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

304231

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.