install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/development/hive-mapping" ~/.claude/skills/diegosouzapw-awesome-omni-skill-hive-mapping && rm -rf "$T"
manifest:
skills/development/hive-mapping/SKILL.mdsource content
Schema Mappings
Auto-sync embedded references when source documents change.
Location:
/src/autoMap/schemaMappings.json
How It Works
- You embed document references in schemas (e.g.,
)user: { _id, fullName } - You register the mapping in
schemaMappings.json - When source document updates, all referencing documents sync automatically
Config Format
{ "tasks": { "user": { "schema": "users" }, "project": { "schema": "projects" } } }
Means: In
tasks collection, fields user and project reference users and projects collections.
Example
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.
Adding New Mapping
- Define embedded reference in schema (include fields to sync)
- Add entry to
:schemaMappings.json
{ "yourResource": { "fieldName": { "schema": "sourceSchema" } } }
Rules
- Only fields defined in the embedded object shape are synced
- Works for both single references and arrays
- Changes sync on source document
eventupdated