Transform Builder
БесплатноБез исполняемых скриптовНе проверенDesign ETL transformation rules for field mapping, data cleansing, and format conversion to move data from source to destination systems with different data…
от TheLobbi★ 22 звезды на GitHubОб этом скилле
Transform Builder
Produce a complete ETL transformation specification for a data migration. Every source-to-destination field transformation is explicitly defined with input format, transformation logic, output format, and test cases. This document is used by the migration developer to implement the transformation pipeline.
Transformation Catalog Overview
List all transformations in the migration by type:
| Transformation Type | Count | Complexity |
|---|---|---|
| Direct copy (with type conversion) | N | Low |
| Lookup / code translation | N | Low-Medium |
| String operations | N | Low |
| Date format conversion | N | Low |
| Numeric conversion | N | Low |
| Conditional / derived | N | Medium |
| Multi-field derivation | N | Medium-High |
| Null handling | N | Low |
Transformation Type Library
DIRECT — Copy with Type Conversion
No transformation logic beyond data type conversion.
Pattern:
Source: [FieldName] ([SourceType])
Destination: [FieldName] ([DestType])
Transform: Cast [SourceType] to [DestType]
Examples:
Source: ClientID (int) → Destination: ExternalId (string)
Transform: ExternalId = ClientID.ToString()
Test: 10042 → "10042"
Source: PremiumAmount (decimal 18,2) → Destination: WrittenPremium (decimal 18,4)
Transform: Cast decimal to higher precision — no rounding needed
Test: 1250.00 → 1250.0000
LOOKUP — Code Translation
Translate a source code to a destination value using a lookup table.
Lookup table format:
Transformation: StatusCode → PolicyStatus
| Source Value | Destination Value | Notes |
|-------------|------------------|-------|
| A | Active | |
| C | Cancelled | |
| X | Expired | |
| P | Pending | |
| E | Active | Endorsed = Active + separate endorsement record |
| R | Cancelled | Rescinded treated as cancelled |
| null | Pending | Null status defaults to Pending; log occurrence |
| (other) | [REJECT] | Unknown code — reject record, log source value |
Implementation:
const STATUS_LOOKUP: Record<string, string | null> = {
'A': 'Active',
'C': 'Cancelled',
'X': 'Expired',
'P': 'Pending',
'E': 'Active',
'R': 'Cancelled',
};
function translateStatus(sourceCode: string | null): string {
if (sourceCode === null) {
logger.warn('Null status code — defaulting to Pending');
return 'Pending';
}
const result = STATUS_LOOKUP[sourceCode];
if (result === undefined) {
throw new TransformationError(
`Unknown status code: "${sourceCode}"`,
'UNKNOWN_CODE',
{ field: 'StatusCode', value: sourceCode }
);
}
return result;
}
Test cases:
| Input | Expected Output | Notes |
|---|---|---|
| "A" | "Active" | Happy path |
| "C" | "Cancelled" | Happy path |
| "E" | "Active" | Endorsed = Active |
| "R" | "Cancelled" | Rescinded = Cancelled |
| null | "Pending" | Null default |
| "" | [REJECT — UNKNOWN_CODE] | Empty string is not a known code |
| "Z" | [REJECT — UNKNOWN_CODE] | Unknown code |
| "a" (lowercase) | [REJECT] | Case-sensitive — or add .toUpperCase() if source has mixed case |
STRING — String Operations
Text manipulation transformations.
Trim whitespace (apply to ALL text fields):
function trim(value: string | null): string | null {
return value?.trim() ?? null;
}
// Apply at the start of every string field transformation
Name normalization (Title Case):
function toTitleCase(name: string | null): string | null {
if (!name) return null;
return name.trim()
.toLowerCase()
.split(' ')
.map(word => word.charAt(0).toUpperCase() + word.slice(1))
.join(' ');
}
// Test: "MARTINEZ ELENA" → "Martinez Elena"
// Test: " smith " → "Smith"
// Test: null → null
Concatenation (full name from parts):
function buildFullName(lastName: string | null, firstName: string | null): string | null {
const last = lastName?.trim();
const first = firstName?.trim();
if (!last && !first) return null;
if (!last) return first ?? null;
if (!first) return last;
return `${last}, ${first}`;
}
// Test: ("Martinez", "Elena") → "Martinez, Elena"
// Test: ("Smith", null) → "Smith"
// Test: (null, null) → null
String truncation:
function truncate(value: string | null, maxLength: number, fieldName: string): string | null {
if (!value) return null;
if (value.length > maxLength) {
migrationLog.warn(`Field truncated: ${fieldName}`, {
originalLength: value.length,
truncatedTo: maxLength
});
return value.substring(0, maxLength);
}
return value;
}
DATE — Date Format Conversion
Normalize all dates to ISO 8601 format (YYYY-MM-DD for dates, YYYY-MM-DDTHH:mm:ssZ for datetimes).
Multi-format date parser (handles mixed format source data):
const DATE_FORMATS = [
'MM/DD/YYYY', // US format: 01/15/2026
'M/D/YYYY', // US short: 1/15/2026
'YYYY-MM-DD', // ISO 8601:
Установить Transform Builder в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepBashWriteFAQ
Что делает скилл Transform Builder?
Design ETL transformation rules for field mapping, data cleansing, and format conversion to move data from source to destination systems with different data structures.
Как установить скилл Transform Builder?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Transform Builder запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic