Token导航 LogoToken导航

Agent Skill · 前端设计

halcon-skill(哈尔康技能)

halcon-skill 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

halcon-skill 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 7,853。

总安装 336周安装 14GitHub Stars 8下载 112核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:halcon-skill(哈尔康技能)
来源仓库:https://github.com/bertram-eu/halcon-skill
仓库路径:skills/halcon-skill
安装命令:
npx skills add https://github.com/bertram-eu/halcon-skill --skill HALCON-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/bertram-eu/halcon-skill --skill HALCON-skill

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

提供前端组件设计与样式实现的参考方案与技术细节。适用于 Vue、React 等框架下的 UI 模块开发与视觉还原任务。包含布局策略、动效实现和响应式适配等典型问题解决方法。建议结合具体项目设计系统与构建工具链进行集成验证。halcon-skill 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/halcon-skill

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/bertram-eu/halcon-skill --skill HALCON-skill;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

halcon-skill 怎么安装?

在终端执行 npx skills add https://github.com/bertram-eu/halcon-skill --skill HALCON-skill。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

halcon-skill 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

halcon-skill 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

halcon-skill 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

halcon-skill 用的人多吗?

公开数据是累计安装 336 次,近一周安装 14 次,下载 112 次,GitHub 8 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

halcon-skill 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
halcon-skill

哈尔康技能 · 本页

3368需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

HALCON Vision Script Authoring Skill

Use this skill to produce production-grade HALCON vision scripts in either format:

  • HDevelop (.hdev) — XML-based, run with hrun
  • HDevelopEVO (.hscript) — plain-text, run with hscriptengine

Both share the same HALCON operators, data model, and control flow. The differences are in file format, procedure syntax, and import mechanism.

Target format

Ask the user which format they need if unclear. Default to .hdev unless the user mentions HDevelopEVO, HScript, .hscript, or hscriptengine.

Required scope

  • Generate and edit only HALCON script artifacts unless the user explicitly asks otherwise:

- HDevelop: .hdev (scripts), .hdvp (single procedure), .hdpl (procedure library) - HDevelopEVO: .hscript (scripts, procedures, and libraries — all use the same extension)

  • Prefer deterministic, testable logic with explicit parameters and clear pass/fail outputs.

Testing

Check if an images folder is provided. This folder should contain images for testing/implemention and might be sorted into different classes (ok/nok, io/nio, training/test/validation). The images might further be annotated by a json or yaml file. If so, use the included content appropriately. Output images from test or implementations runs should be written in the result folder by default. Keep a text file with the output of hrun or hscriptengine for each image here as well.

Reference files

Local references in references/:

  1. references/hdev_format_reference.md — .hdev XML schema (all tags, attributes, <interface> declarations, <docu> blocks), .hdvp/.hdpl procedure formats.
  2. references/hscript_format_reference.md — .hscript plain-text format, procedure syntax (proc/endproc, public), from... import * mechanism, and differences from .hdev.
  3. references/hrun_reference.md — hrun CLI help, usage patterns, and authoring guidelines for headless .hdev execution.
  4. references/hscriptengine_reference.md — hscriptengine CLI help, usage patterns, authoring guidelines, and comparison with hrun.

HALCONROOT documentation (available at HALCONROOT/doc/):

  • Operator reference: doc/html/reference/operators/ — 2,637 HTML pages with full operator signatures, parameter descriptions, and examples. Use for operator-level details when the local references are insufficient.
  • PDF manuals: doc/pdf/manuals/ — hdevelop_users_guide.pdf, programmers_guide.pdf, quick_guide.pdf, parallel_programming.pdf, etc.
  • Solution guides: doc/pdf/solution_guide/ — application-focused guides for matching, measuring, 3D vision, classification, data codes, and image acquisition.

Authoring workflow

  1. Convert user requirements into a pipeline with explicit phases:

- input/acquisition - ROI/domain restriction - preprocessing - core detection/measurement/matching - decision and reporting

  1. Choose operators from the detailed operator reference and keep parameters valid by construction.
  2. Always investigate at least three different implementation approaches and compare their pros and cons before settling on a final solution. If you are unsure which one is the absolute best and most stable solution, ask the user for clarification or preferences.
  3. Tunable parameters should always be procedure parameters with sensbile defaults and a clear parameter range. In main() put all tunable parameters in a single block at the top for easy access and documentation.
  4. Encapsulate repeated logic into local or external procedures.
  5. Use dev_ operators for visualization and debugging. Use multiple windows if multiple different visualizations are required. Prefer dev_set_part() over cropping for visualization. Only write annotated images in main().
  6. Add robust error handling (try/catch or return-code handling) when runtime failures are plausible.
  7. Add parallelization (par_start/par_join) only for independent tasks and isolated outputs.
  8. Keep output semantics explicit (ok/nok, scores, measured values, reasons).
  9. main() is to be treated as a unit test. All parameters and input images set here should be global variables so they can be easily overridden when running with hrun (-D) or hscriptengine (--input).
  10. The core image processing logic that should be used in production needs to be a separate procedure with at least an iconic Image input parameter and boolean JobPass output parameter.
  11. There should not be any code accessing input sources (cameras) or external communication (network, industrial communication, file I/O) unless the user explicitly asks for it.
  12. Ensure the code can run headless via hrun (for .hdev) or hscriptengine (for .hscript). This means: no stop() anywhere, no dev_open_dialog, no interactive operators. Use try/catch around visualization code so it degrades gracefully when no display is available.

Coding rules

  • Use idiomatic HDevelop syntax (:=, tuples, vectors, dictionaries, if/for/while/switch).
  • Keep procedure names, procedure parameters and variable names task-specific and stable.
  • Avoid hidden global state unless required for interoperability.
  • Reuse expensive handles/models (measure, metrology, matching, data code) when processing many images.
  • For metric output, use calibrated transforms instead of pixel approximations.
  • Never use stop() anywhere in the script. stop() halts execution and waits for user input in HDevelop, which makes the script hang indefinitely when run headless via hrun or hscriptengine. For error cases, use return () to exit a procedure or throw to propagate an error — never stop().
  • Document every procedure — including main() — and all procedure parameters. These descriptions are visible in the HDevelop/HDevelopEVO GUI and are essential for usability. Specifically:

- For .hdev: every <procedure> (including main) must include a <docu> block. The <docu> block must contain: - <abstract> — detailed description of what the procedure does - <short> — one-line summary - <parameters> — a <parameter> for each interface parameter (empty <parameters/> for main if it has no interface) - <example> — a usage example showing how to call the procedure with realistic parameters - Where appropriate, also include: - <attention> — important notes the user must be aware of (e.g., required preprocessing, dependency on other procedures, constraints on input data) - <warning> — things that can go wrong or produce unexpected results (e.g., deprecated features, performance pitfalls, precision limits) - <references> — academic papers, documentation links, or standards that the algorithm is based on - <complexity> — computational complexity or performance characteristics - Multi-language rule: HDevelop only displays text matching the active GUI language. Every text element (<abstract>, <short>, <description>, <attention>, <warning>, <example>, <references>, <complexity>) must be provided in three variants: 1. Without lang attribute — language-independent fallback, shown when no matching language copy exists 2. With lang="en_US" — English copy 3. With lang="de_DE" — German copy - If the user's locale is known and differs from en_US/de_DE, add a fourth copy with the user's lang tag (e.g., lang="ja_JP", lang="zh_CN"). - This three-copy pattern is how HALCON's own built-in procedures work (see HALCONROOT/procedures/general/). Without the fallback and German copies, descriptions appear empty when the GUI is set to German. - Also include <keywords> (with lang="en_US" and lang="de_DE"), <chapters> (with lang="en_US" and lang="de_DE"), <see_also>, <alternatives>, <predecessor>, <successor> where applicable. - Per-parameter documentation must include <default_type>, <default_value>, <sem_type>, <type_list>, and <values> where applicable — these drive the HDevelop GUI's parameter widgets and tooltips. - For .hscript: document each procedure (including the main program section) and each parameter with // comments above or next to the proc signature, stating purpose, type, value range, units, and defaults. Provide documentation in both English and German where practical.

  • Document and explain all code.

Response contract

When delivering .hdev or .hscript solutions:

  • Provide complete executable snippets, not partial pseudocode.
  • State critical assumptions (image type, calibration availability, expected object polarity, lighting stability).
  • Name the key operators chosen and why.
  • Surface parameter ranges that are likely to need tuning.
  • When generating .hscript: use from... import * for external procedures, proc/endproc for procedure definitions, and // or * for comments.

Environment variables

HALCONROOT

Points to the HALCON installation directory. Contains the core runtime, libraries, documentation, and built-in procedures.

Key subdirectories:

PathContents
bin/HALCON binaries including hrun, hscriptengine, hdevelop, and runtime DLLs
HDevelopEVO/HDevelopEVO IDE application (hdevelopevo.exe)
procedures/general/~52 built-in reusable procedures (.hdvp/.hdpl) — display helpers (disp_message, dev_open_window_fit_image), camera utilities, deep learning helpers, etc.
procedures/dl/Deep learning procedures — dataset handling, preprocessing, training, evaluation, visualization
procedures/templates/Procedure templates for custom extensions
doc/pdf/manuals/PDF manuals — hdevelop_users_guide.pdf, programmers_guide.pdf, quick_guide.pdf, parallel_programming.pdf, etc.
doc/pdf/reference/reference_hdevelop.pdf — full operator reference
doc/pdf/solution_guide/Solution guides for matching, measuring, 3D vision, classification, data codes, image acquisition
doc/html/HTML documentation with searchable operator docs
help/Operator index files (.idx, .key, .ref) used by HDevelop help system
examples/hdevelop/Same as HALCONEXAMPLES/hdevelop/ (may be symlinked or duplicated)
images/Sample images used by examples and documentation
calib/Calibration data files
ocr/Pre-trained OCR font files
dl/Pre-trained deep learning models
lut/Look-up tables for visualization

HALCONEXAMPLES

Points to the HALCON examples directory. Contains runnable sample scripts across all HALCON domains in both formats.

Key subdirectories:

PathContents
hdevelop/941 HDevelop .hdev example scripts organized by topic
hdevelopevo/800 HDevelopEVO .hscript example scripts — same topics plus DeepCounting/ and Runtime/ categories, with a bundled procedures/ directory
solution_guide/Examples accompanying the solution guide PDFs, organized by topic (basics/, matching/, 3d_vision/, classification/, 1d_measuring/, 2d_measuring/, image_acquisition/)
images/~108 image files and ~107 image subdirectories used by the example scripts
python/, c/, cpp/, c#/, vb.net/Language-specific integration examples
hdevengine/, hscriptengine/Engine integration examples (C++ and HScript)

Example categories (shared across hdevelop/ and hdevelopevo/): 1D-Measuring, 2D-Metrology, 3D-Matching, 3D-Object-Model, 3D-Reconstruction, Applications, Calibration, Classification, Control, Deep-Learning, Develop, File, Filters, Graphics, Identification, Image, ImageSource, Inspection, Manuals, Matching, Matrix, Morphology, OCR, Object, Regions, Segmentation, System, Tools, Transformations, Tuple, XLD

HDevelopEVO-only categories: DeepCounting/, Runtime/ (performance benchmarks)

Notable top-level scripts:

  • hdevelop/explore_halcon.hdev — showcase of HALCON capabilities across many domains
  • hdevelop/halcon_basic_concepts.hdev / hdevelopevo/halcon_basic_concepts.hscript — introduction to fundamental HALCON concepts
  • hdevelopevo/code_snippets.hscript — IDE snippet templates for HDevelopEVO

Output style

  • Prefer one clear main procedure plus small helpers.
  • Group parameter block at top.
  • Keep visualization optional and non-blocking for runtime mode.
  • Keep decision logic explicit and auditable.
  • For .hscript: use public proc for procedures intended to be imported, proc for file-local helpers. Use from './path' import * for external procedure imports.
  • For .hdev: procedures are embedded as XML <procedure> elements with typed <interface> declarations.

平台分布

Codex

33.25%
按下载量换算37

Claude

30.36%
按下载量换算34

Cursor

18%
按下载量换算20

Gemini CLI

8.74%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills