一键导入
hive-mapping
Schema mappings for auto-syncing embedded documents
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Schema mappings for auto-syncing embedded documents
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | hive-mapping |
| description | Schema mappings for auto-syncing embedded documents |
| globs | ["src/autoMap/schemaMappings.json"] |
| alwaysApply | false |
Auto-sync embedded references when source documents change.
Location: /src/autoMap/schemaMappings.json
user: { _id, fullName })schemaMappings.json{
"tasks": {
"user": {
"schema": "users"
},
"project": {
"schema": "projects"
}
}
}
Means: In tasks collection, fields user and project reference users and projects collections.
Schema with embedded reference:
// tasks.schema.js
project: z
.object({
_id: z.string(),
name: z.coerce.string().nullable().optional(),
logoUrl: z.coerce.string().nullable().optional(),
})
.nullable()
.optional(),
Mapping config:
{
"tasks": {
"project": {
"schema": "projects"
}
}
}
Result: When project's name or logoUrl changes, all tasks with that project update automatically.
schemaMappings.json:{
"yourResource": {
"fieldName": {
"schema": "sourceSchema"
}
}
}
updated eventHive framework structure and conventions. Apply when working with this codebase.
How to create external services in Hive framework
How authentication works in Hive framework
Database operations in Hive framework
How to create API endpoints in Hive framework
How to create event handlers in Hive framework