Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

halcon-skill哈尔康技能

Agent Skill

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

总安装

336

周安装

14

GitHub Stars

8

下载量

112
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

提供前端组件设计与样式实现的参考方案与技术细节。

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

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.mdhrun CLI help, usage patterns, and authoring guidelines for headless .hdev execution.
  4. references/hscriptengine_reference.mdhscriptengine 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.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

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