一键导入
unacy-docs
Documentation site for unacy Use when: You need a type-safe, composable unit conversion graph for a domain. The....
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Documentation site for unacy Use when: You need a type-safe, composable unit conversion graph for a domain. The....
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| description | Documentation site for unacy Use when: You need a type-safe, composable unit conversion graph for a domain. The.... |
| name | unacy-docs |
Documentation site for unacy
Use this skill when:
createRegistryParser with minimal boilerplate. → use createParserWithSchemaTypedMetadata<EnumType>.type field. → use validateEnumdetectMetadataKindDo NOT use when:
createRegistry)Parser<T> instead, throwing ParseError on failure. (createParserWithSchema)API surface: 11 functions, 5 classes, 24 types
3 configuration interfaces — see references/config.md for details.
Key functions: createRegistry (Create a new, empty converter registry), createParserWithSchema (Create a Parser<WithFormat<T, F>> backed by a Zod-compatible schema), validateEnum (Validate that a runtime value is a valid TypeScript enum object), validateClass (Validate that a runtime value is a valid class constructor), validateRecordSchema (Validate that a runtime value is a valid record schema), validateTupleSchema (Validate that a runtime value is a valid tuple schema), isEnumMetadata (Type guard: returns true when meta), isClassMetadata(Type guard: returnstruewhenmeta), isRecordMetadata (Type guard: returns true when meta), isTupleMetadata(Type guard: returnstruewhenmeta), detectMetadataKind (Detect the kind of a metadata object by inspecting its type field)
Key classes: UnacyError (Base error class for all unacy errors), CycleError (Error thrown when a cycle is detected during BFS path-finding), MaxDepthError (Error thrown when BFS path-finding exceeds the maximum conversion depth), ConversionError (Error thrown when a conversion cannot be performed), ParseError (Error thrown when parsing a string into a format-tagged value fails)
40 exports total — see references/ for full API.
Load these on demand — do NOT read all at once:
references/functions.md for full signatures, parameters, and return typesreferences/classes.md for properties, methods, and inheritancereferences/types.mdreferences/config.md for all settings and defaults