用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/NVIDIA-Omniverse/omniverse-labs --skill usdc-value-decoder命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | usdc-value-decoder |
| description | Use this skill when implementing or verifying USDC Crate value representation decoding. |
| metadata | {"author":"NVIDIA"} |
Use this skill when implementing or verifying USDC Crate value representation decoding.
Binarycontracts/value.schema.jsondocs/usdc-spec-errata.md — pinned interpretations where the AOUSD prose is
ambiguous or diverges from real .usdc content. In particular: the
Array / Inlined / Compressed flag bits live in the high bits of byte 7 of
the 8-byte LE value-representation word (masks 0x80 / 0x40 / 0x20); a
decoder must not also accept the low-bit layout as a fallback.Pinned commit: 6b4f01f2d6d46b01507481524eb516b4ef358c31
This skill converts low-level Crate value representations into the existing
canonical value shape used by contracts/value.schema.json.
It depends on usdc-binary-format for byte and buffer decoding, on
usd-tokens for token identity, on usd-foundational-values for canonical
value shapes, on usd-paths for namespace path strings, and on
usd-listops-authored for listOp boundaries.
It may use decoded Crate token, string, and path tables supplied by
usdc-spec-parser, but it must not own Crate section traversal or document
spec storage.
Production-family obligations are factored into:
contracts/usdc-productions/crate-value-representations.contract.json — wire
format of the 8-byte value-representation word and the type tablecontracts/usdc-productions/attribute-spec-mapping.contract.json — shared
ownership of TimeSamples (type 46), VariantSelectionMap (type 45), and
LayerOffsetVector (type 49) decoding, called out as
co_owners: ["usdc-value-decoder"] in that contractcontracts/usdc-productions/parser-diagnostics-mapping.contract.json —
mapping of value-level diagnostics (MalformedUsdcValueRepresentation →
TypeMismatch, UnsupportedUsdcFeature → UnsupportedFeature) at the
layer-open dispatch boundarycontracts/document-model-productions/attribute-spec.contract.json — the
format-neutral value-shape rules for TimeSamples (native time→FieldValue
map; no string-keyed JSON), Spline (native Spline record; no Python dict
payloads), default-vs-typeName agreement, and value-block sentinel semanticsDefer byte-level bounds, endian, bootstrap, TOC, compression, and integer-array
decoding to usdc-binary-format.
Defer section-to-document mapping and spec creation to usdc-spec-parser.
Defer storage to usd-document-model through usdc-spec-parser.
Do not call USDA text lexers, USDA value parsers, or USDA spec parsers.
Do not implement composition, value resolution, schema fallback, clips, package opening, or USDC writing.
goldens/unit/usdc-value-decoder/value-decoder.json)int, float, double, and double3 values used by attributesPathListOp valuestoken[] array sourced from token indices
in TOKENS (not inlined)Each obligation references the format-neutral value-shape rule in
contracts/document-model-productions/attribute-spec.contract.json plus the
USDC-specific mapping in
contracts/usdc-productions/attribute-spec-mapping.contract.json:
attribute-spec.contract.json#fields.timeSamples. None-valued
samples (Crate ValueBlock type 51) decode to value-block sentinels.
Exercised by goldens/integration/usdc-single-layer/attribute-time-samples.json
(pending Phase D fixture).goldens/integration/usdc-single-layer/variant-specs.json
(pending Phase D fixture).layer-spec.contract.json#fields.subLayerOffsets. Exercised by
goldens/integration/usdc-single-layer/layer-metadata.json (pending Phase D).targetPaths and attribute connectionPaths;
format-neutral rule lives in
common-metadata.contract.json#listop_subfields.UnsupportedUsdcFeature (which reduces to UnsupportedFeature at dump
boundary per parser-diagnostics-mapping.contract.json).default field on an
attribute spec, the value-representation type id must match the attribute's
typeName per the type-id table in
attribute-spec-mapping.contract.json#storage_mapping.default_field_type_table_reference.
Mismatch emits MalformedUsdcValueRepresentation, which reduces to
TypeMismatch.0x80 / 0x40 / 0x20) per
crate-value-representations.contract.json#flags and
docs/usdc-spec-errata.md#1. Accepting the low-bit layout (0x01/0x02/0x04)
as a fallback is a contract violation.UnsupportedUsdcFeature diagnostic for value types introduced
at Crate 0.10.0 or later (Splines, Relocates, PathExpression) when
encountered under a lower minor; placeholder JSON is a contract violationusdc_parser.cpp and usdc_value_decoder_adapter.cpp; a
parser-internal duplicate decoder is a contract violation enforced by the
no_inline_value_decoder_in_parser lint rule in
contracts/lint/usdc-single-layer.lint.jsonThe value-decoder unit must satisfy
contracts/performance/usdc.performance.json. Value representations are read
as a single 8-byte little-endian word and dispatched in O(1) on type and
flags. Offset-backed scalar and array values are returned as non-owning views
into the opened resource byte view until canonicalization runs.