HuskarUI: Instructions file for Claude Code

CLAUDE.md

HuskarUI CLAUDE.md is an instructions file for Claude Code from mengps/HuskarUI. It costs 1,706 tokens per session, scanned A, original, MIT.

A repository instruction file for HuskarUI, a Qt Quick/QML component library with a demo application and C++ support code. It documents the project's structure, prerequisites, build commands, installation behavior, and verification guidance.

In plain words
What is it for?
Use it when building, installing, or verifying HuskarUI, especially when configuring Qt, CMake, Ninja, Visual Studio, submodules, or the Gallery demo. It also explains where QML and C++ components live.
Why use it?
Contributors unfamiliar with the repository could build the wrong target, miss its Git submodules, or use incompatible Qt and compiler settings. These instructions provide the project's local rules and commands.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is mengps/HuskarUI's own configuration. It tells Claude Code how to work on HuskarUI itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything HuskarUI configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mengps/HuskarUI. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mengps/HuskarUI/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/mengps/HuskarUI

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for HuskarUI CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mengps/huskarui/claude-md/github.svg)](https://agentmods.dev/instructions/mengps/huskarui/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/mengps/huskarui/claude-md"><img src="https://agentmods.dev/badge/instructions/mengps/huskarui/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for HuskarUI CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mengps/huskarui/claude-md"><img src="https://agentmods.dev/badge/instructions/mengps/huskarui/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,706 This file is loaded in full into every session.
When invoked 1,706 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01706 $0.01706
Opus 5.5 $0.00682 $0.00682
Sonnet 5.5 $0.00341 $0.00341
Haiku 4.5 $0.00171 $0.00171

Measured 20d ago against content hash 119c929a4e66, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

HuskarUI CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

项目概况

HuskarUI 是一套参考 Ant Design 的 Qt Quick/QML 组件库(MIT),要求 Qt >= 6.7(CMake 最低查找 6.5,README 与 CI 以 6.7+ 为准)。仓库同时包含组件库与 Gallery 演示/文档程序。

  • src/ → QML 模块 HuskarUI.Basic:src/imports/*.qml 是全部 Hus* 组件;src/cpp/ 是 C++ 支撑库与 QML 单例(HusTheme、HusApp、HusApi、HusRouter、HusThemeFunctions)。
  • src_impl/ → QML 模块 HuskarUI.Impl:HusWindowAgent,基于 qwindowkit 的无边框窗口实现。
  • 3rdparty/ 下有两个 git submodule:qwindowkit、QR-Code-generator。

构建

先确保子模块已拉取:git clone --recursive,已有仓库执行 git submodule update --init --recursive。

Ninja(CI 同款):

cmake -DCMAKE_PREFIX_PATH=<QT_DIR> -G Ninja -B build -S .
cmake --build build --config Release --target all install --parallel

Visual Studio generator 则把构建目标换成 ALL_BUILD INSTALL。Windows 上使用 Ninja 需要在 MSVC 开发者环境(vcvars64)中运行。

  • 安装默认写入 Qt SDK(INSTALL_HUSKARUI_IN_DEFAULT_LOCATION=ON)。改安装位置:-DINSTALL_HUSKARUI_IN_DEFAULT_LOCATION=OFF -DHUSKARUI_INSTALL_DIRECTORY=<dir>。
  • Gallery 可执行文件输出到 bin/<BuildType>/;运行前需已 install,或保证 HuskarUIBasic.dll / HuskarUIImpl.dll 在 PATH 中。
  • 常用选项:BUILD_HUSKARUI_GALLERY(默认 ON)、BUILD_HUSKARUI_STATIC_LIBRARY(默认 OFF)、BUILD_HUSKARUI_ON_DESKTOP_PLATFORM。
  • 版本号在根 CMakeLists.txt 的 HUSKARUI_VERSION_MAJOR/MINOR/PATCH/TWEAK。

验证

  • 仓库没有自动化测试(tests/ 为空),也没有 clang-format / qmllint 配置。CI(.github/workflows/)只做构建,覆盖 Windows MSVC、Linux GCC、macOS Clang 及多个 Qt 版本。
  • 修改后至少要构建通过。UI 改动应运行 Gallery 验证,或用 .agents/skills/qmlpreviewer 的 qmlscene 截图流程单独预览 QML 文件。

架构

组件与 C++ 注册

  • 组件文件为 src/imports/*.qml,优先继承 QtQuick.Templates(如 T.Button)。CMake 通过 hus_get_dir_sources glob imports/*.qml,新增 QML 文件无需改 src/CMakeLists.txt(但需重新运行一次 CMake 配置才会被 glob 到);如需在 Qt Designer 中显示,再补 src/designer/huskaruibasic.metainfo。
  • C++ 类型通过 QML_ELEMENT / QML_SINGLETON + QML_NAMED_ELEMENT 注册,导出宏为 HUSKARUI_EXPORT(静态库构建时为空)。
  • Qt 版本条件编译集中在 src/CMakeLists.txt:Qt >= 6.10 使用私有模块;QQuickDoubleSpinBox 仅在 Qt < 6.11 且存在私有头时编译;TreeModel 仅在 LabsQmlModels 私有头可用时编译。

Read the full file on GitHub · 77 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 20d ago First seen · 77 lines · 1,706 tokens per session scan A 119c929a4e66

Subscribe to this mod's changes

HuskarUI CLAUDE.md is an instructions file published in the GitHub repository mengps/HuskarUI (606 stars, last pushed 5d ago), licensed MIT. It adds 1,706 tokens to every session, about $0.0068 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-18.

Related

HuskarUI CLAUDE.md compared with instructions from other repositories

HuskarUI CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
HuskarUI CLAUDE.mdmengps/HuskarUIInstructions file6065d agoMITA1,706Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode