跳到正文
cccskills
免费在 GitHub 公开

native-addons

Work on Node3D C++ addons, addon-tools bindings, binding.gyp/common.gypi, install.js, ts/native.ts, native handles, lifetime safety, and native verification.

中文简介正在准备中。当前显示原文说明。

node-3d/node-3d星标 67(GitHub 67 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(2)

  • SKILL.md2.4 KB
  • agents/openai.yaml185 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Native Addons

Owns

Native addon source/binding contracts and package-native plumbing.

Workflow

  1. Identify the affected standalone package and inspect C++ exports before changing TypeScript native types.
  2. Keep ts/native.ts a narrow, precise adapter over the binary surface.
  3. Validate external inputs, lengths, pointer/handle semantics, ownership, and destroyed-object async paths.
  4. Preserve standalone build/install behavior; do not introduce root-only paths.
  5. For standalone native consumer validation, install with normal npm ci so dependency postinstall hooks provide their binary artifacts. Reserve --ignore-scripts for metadata-only work that will not build, load, or run native code. Never invoke a dependency installer from the consumer directory: its lifecycle working directory is part of its binary-path contract.
  6. Run the focused native/build/type/test checks that match the changed layer.
  7. If public native behavior changes, ensure Contract Gate is YES and synchronize wrapper tests/docs/examples as needed.

On ELF platforms, link redistributable shared libraries through linker search directories and logical -l names. Do not pass a slash-containing build or SDK path for a runtime .so dependency unless that dependency has a verified portable DT_SONAME. Keep colocated runtime libraries discoverable through $ORIGIN and validate the packed package from an isolated consumer job.

Binding Boundary Policy

Follow docs/adr/0015-native-addon-cpp-binding-organization.md for every non-trivial native addon. bindings.cpp is the mount table only; place API wrappers, callback bridges, state, and resource behavior in thematically named files. Prefer the matching addon-tools argument and return macro for ordinary JS arity/type conversion. Add custom checks only for an upstream constraint, memory/ownership safety, or an explicitly documented Node3D contract; do not duplicate macro checks or add speculative abstraction at the binding boundary.

Load References

Load .agents/references/native-addons.md for package shape, binding organization, GYP/install conventions, or pointer/lifetime rules.

Add $publishing only for package/pack/install release state, not for ordinary native implementation work.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

ci

免费

Maintain Node3D GitHub Actions, reusable CI patterns, install modes, matrices, native/GPU/platform limits, lint/test/build jobs, and validation semantics.

中文简介正在准备中。当前显示原文说明。

node-3d/node-3d672026年10月15日 更新

compute

免费

Work on CUDA, OpenCL, GLSL compute, GL/CUDA or GL/OpenCL interop, GPU data ownership, kernels, argument packing, and compute-driven rendering.

中文简介正在准备中。当前显示原文说明。

node-3d/node-3d672026年10月15日 更新

core

免费

Work on @node-3d/core browser-like runtime, Document/Window/canvas behavior, WebGL/Three.js compatibility, globals, context and resource behavior.

中文简介正在准备中。当前显示原文说明。

node-3d/node-3d672026年10月15日 更新

deps

免费

Work on Node3D deps-* packages, third-party binaries/headers, getPaths/bin/include contracts, redistribution, provenance, and binary layout consumers.

中文简介正在准备中。当前显示原文说明。

node-3d/node-3d672026年10月15日 更新

docs

免费

Write and maintain Node3D package READMEs, API text, usage snippets, package roles, platform/install notes, and source-backed consumer documentation.

中文简介正在准备中。当前显示原文说明。

node-3d/node-3d672026年10月15日 更新

examples

免费

Create, review, or maintain Node3D runnable examples, consumer-style package imports, feature demos, vendor adaptations, assets, and example validation.

中文简介正在准备中。当前显示原文说明。

node-3d/node-3d672026年10月15日 更新

查看 node-3d 的全部技能

报告此技能的问题