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.
curl -O https://raw.githubusercontent.com/mengps/HuskarUI/master/CLAUDE.mdgit clone --depth 1 https://github.com/mengps/HuskarUIWrote 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.
[](https://agentmods.dev/instructions/mengps/huskarui/claude-md)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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_sourcesglobimports/*.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 私有头可用时编译。
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.
- 20d ago First seen · 77 lines · 1,706 tokens per session scan A 119c929a4e66
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.
HuskarUI CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| HuskarUI CLAUDE.mdmengps/HuskarUI | Instructions file | 606 | 5d ago | MIT | A | 1,706 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |