본문으로 건너뛰기
cccskills
무료GitHub에 공개

schema-mapper

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(4)

  • SKILL.md2.4 KB
  • assets/schema_mapping_template.md2.2 KB
  • references/schema_mapping_patterns.md2.4 KB
  • scripts/schema_compare.py6.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Schema Mapper

When to use

  • Integrating a new data source and need to map its fields to the existing data model
  • Designing an ETL or dbt transformation and need to document the logic
  • Auditing what happened to a field during a migration
  • Onboarding a new analyst who needs to understand where columns come from
  • Preparing a data catalog entry that requires lineage at the column level

Process

  1. Collect the source schema — list every column name, data type, nullable flag, and a brief description. Pull from INFORMATION_SCHEMA, a data dictionary, or the source API documentation.
  2. Collect the target schema — same structure for the destination table or model. If the target doesn't exist yet, draft it based on the analytical requirements.
  3. Map source columns to target columns — for each target column, identify the source column(s) that feed it. Record direct mappings (rename only) and derived mappings (calculation, type cast, lookup join). Use scripts/schema_compare.py to automate direct-name matches.
  4. Document transformation rules — for each derived mapping, write the exact transformation (e.g., CAST(amount_cents AS FLOAT) / 100.0, COALESCE(first_name, email)).
  5. Flag gaps — identify target columns with no source (need to be created or defaulted) and source columns with no target (dropped or deferred). Record a decision for each.
  6. Produce the mapping document — complete assets/schema_mapping_template.md with the full column inventory and share for review before implementation.

Inputs the skill needs

  • Source schema: table name, column names, data types, and descriptions
  • Target schema: same, or the analytical requirements that define it
  • Any existing transformation logic (SQL, dbt models, Python code)
  • Business rules that govern how values should be transformed or defaulted
  • Stakeholder who can resolve ambiguous fields

Output

  • scripts/schema_compare.py — compares two schemas and finds direct-name matches and type mismatches
  • assets/schema_mapping_template.md — completed column-by-column mapping with transformation rules, gaps, and decisions
  • Optional: transformation SQL or dbt YAML generated from the mapping

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Rigorous A/B test statistical analysis. Use when analyzing experiment results, calculating statistical significance, checking for sample ratio mismatch, or validating test design before launch.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nimrodfisher/data-analytics-skills4812026년 9월 25일 업데이트

Track and document analytical assumptions and decisions. Use when making analytical choices, documenting trade-offs, ensuring transparency, or creating audit trails for analytical work.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nimrodfisher/data-analytics-skills4812026년 9월 25일 업데이트

Structured, reproducible analysis documentation. Use when documenting analysis findings, creating analysis notebooks, ensuring reproducibility, or building analysis archives for future reference.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nimrodfisher/data-analytics-skills4812026년 9월 25일 업데이트

Structure analysis approach before starting work. Use when receiving new analysis requests, breaking down complex questions into steps, or planning iterative analysis workflows.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nimrodfisher/data-analytics-skills4812026년 9월 25일 업데이트

Pre-delivery quality assurance for analysis work. Use when reviewing analysis before sharing with stakeholders, checking for completeness, validating assumptions, or ensuring clarity of recommendations.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nimrodfisher/data-analytics-skills4812026년 9월 25일 업데이트

Post-analysis learning and process improvement. Use when completing major analysis projects, documenting lessons learned, or improving team analytical practices.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nimrodfisher/data-analytics-skills4812026년 9월 25일 업데이트

nimrodfisher의 스킬 모두 보기

이 스킬의 문제 신고