本文へ移動
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(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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 のスキルをすべて見る

このスキルの問題を報告する