All skills
nimrodfisher avatar

/schema-mapper

@fcb0454

Document column-level mappings between source and target schemas. Use when integrating data from multiple systems, designing ETL transformations, or documenting how raw fields become analytical assets.

Use this Skill: https://skilld.dev/gh/nimrodfisher/data-analytics-skills/schema-mapper

This session only. Nothing lands on disk.

assetsschema_mapping_template.md

≈560 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Schema Mapping Document

Project: [project or migration name] Source system: [system name / table] Target system: [system name / table] Analyst: [name] Date: [YYYY-MM-DD] Version: [1.0]


Overview

Purpose of mapping: [Why this mapping is being created — migration, integration, new data model] Total source columns: [n] Total target columns: [n] Direct matches: [n] Requiring transformation: [n] Target columns with no source: [n]


Column mapping

Source column Source type Target column Target type Transformation Notes
source.col_a VARCHAR target.col_a VARCHAR Direct —
source.col_b INTEGER target.amount_usd DECIMAL col_b / 100.0 Convert cents to dollars
source.first_name + last_name VARCHAR target.full_name VARCHAR CONCAT(first_name, ' ', last_name) —
source.col_c TIMESTAMP target.event_date DATE DATE(col_c) Time component dropped
— — target.created_at TIMESTAMP CURRENT_TIMESTAMP System-generated on insert
source.legacy_flag BOOLEAN (dropped) — Not included in target Deprecated

Unmapped target columns (need derivation or default)

Target column Type Derivation plan Owner Status
[column] [type] [how to populate] [owner] [open/resolved]

Type mismatch summary

Column Source type Target type Required CAST Risk
[column] [type] [type] CAST(col AS target_type) [truncation / precision loss / format error]

Validation rules

Target column Rule Test query
[column] NOT NULL SELECT COUNT(*) FROM target WHERE col IS NULL
[column] Value in accepted set SELECT DISTINCT col FROM target WHERE col NOT IN ('a','b','c')
[column] Referential integrity SELECT * FROM target t LEFT JOIN dim d ON t.fk = d.pk WHERE d.pk IS NULL

Sign-off

Role Name Date Status
Source data owner
Target schema owner
Engineering lead
Analytics reviewer

Template: schema_mapping_template.md

Source: SKILL.md on GitHub

No alerts6d4 checks · Risk SAFE
  • Gen Agent Trust Hub6d

    The skill is a database schema mapping tool that requires database credentials and processes schema metadata to generate documentation. It presents a standard surface for indirect prompt injection and involves handling sensitive credentials.

  • Socket6d

    No alerts

  • Snyk6d

    Risk: LOW · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at fcb0454. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 5 days ago.

Activeupdated 5 months ago

README badge

README badge for nimrodfisher/data-analytics-skills/schema-mapper