Transformation Logic Generator

Transformation Logic Generator is a skill for Claude Code from MarioDeFelipe/sap-datasphere-plugin-for-claude-cowork. It costs 47 tokens per session (4,357 once invoked), scanned A, original, MIT.

A guide for creating and checking SQLScript or Python transformations in SAP Datasphere, a cloud platform for combining and analyzing business data.

In plain words
What is it for?
Use it for data cleaning, deduplication, reshaping tables, date conversion, incremental loading, and tracking changes to records over time.
Why use it?
It helps avoid incorrect transformations, data-type errors, slow processing, and mistakes in incremental loads or historical data tracking.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the datasphere plugin — 18 skills, 1 MCP server shipped together

Good fit Use it for data cleaning, deduplication, reshaping tables, date conversion, incremental loading, and tracking changes to records over time.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mariodefelipe/sap-datasphere-plugin-for-claude-cowork/datasphere-transformation-logic
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MarioDeFelipe/sap-datasphere-plugin-for-claude-cowork --skill datasphere-transformation-logic
Clone the repo
git clone --depth 1 https://github.com/MarioDeFelipe/sap-datasphere-plugin-for-claude-cowork

Made for: Claude Code.

Or install datasphere, the plugin that ships this one along with the rest of its 18 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Transformation Logic Generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/mariodefelipe/sap-datasphere-plugin-for-claude-cowork/datasphere-transformation-logic/github.svg)](https://agentmods.dev/skills/mariodefelipe/sap-datasphere-plugin-for-claude-cowork/datasphere-transformation-logic)
Your own site
<a href="https://agentmods.dev/skills/mariodefelipe/sap-datasphere-plugin-for-claude-cowork/datasphere-transformation-logic"><img src="https://agentmods.dev/badge/skills/mariodefelipe/sap-datasphere-plugin-for-claude-cowork/datasphere-transformation-logic/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Transformation Logic Generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/mariodefelipe/sap-datasphere-plugin-for-claude-cowork/datasphere-transformation-logic"><img src="https://agentmods.dev/badge/skills/mariodefelipe/sap-datasphere-plugin-for-claude-cowork/datasphere-transformation-logic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,357 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.04357
Opus 5 $0.00023 $0.02178
Sonnet 5 $0.00009 $0.00871
Haiku 4.5 $0.00005 $0.00436

Measured 11d ago against content hash 5b7dd825f0ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

Transformation Logic Generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/datasphere-transformation-logic/SKILL.md · 708 lines

How it starts

The opening of the file, as written. The whole thing — 708 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Transformation Logic Generator

Overview

This skill helps you design, write, and validate transformation logic for SAP Datasphere. Whether you're building a Transformation Flow with SQLScript or a Data Flow with Python operators, this skill provides patterns, best practices, and diagnostic tools to ensure your transformations are correct, performant, and maintainable.

When to Use This Skill

  • Designing transformations from scratch: Deciding which tool and language to use
  • Handling delta logic: Implementing incremental loads with watermarks
  • Slowly Changing Dimensions (SCD Type 2): Tracking history of dimension changes
  • Complex data cleansing: Deduplication, pivoting, date/time normalization
  • Performance optimization: Dealing with large datasets or slow execution
  • Troubleshooting transformation failures: SQL errors, type mismatches, operator crashes
  • Data type mapping: Converting between source and target systems
  • Error handling: Adding logging and validation to transformations

SQLScript vs Python: Choosing Your Tool

Use SQLScript for Transformation Flows When:

  • Working with structured, tabular data from relational sources
  • Needing high performance for large volumes (1M+ rows)
  • Implementing delta loads with watermark patterns
  • Performing set-based operations (MERGE, aggregations, window functions)
  • Operating in the SAP HANA native database
  • Team expertise is SQL-focused

Use Python for Data Flows When:

  • Requiring complex business logic that's hard to express in SQL
  • Integrating with ML libraries (scikit-learn, pandas, numpy)
  • Handling unstructured data (text, JSON, images)
  • Needing pandas-like data manipulation
  • Working with multiple input sources in flexible ways
  • Team expertise is Python-focused

SQLScript Transformations for Transformation Flows

Delta Handling with Watermarks

Watermarks track the last extracted value to enable incremental loads. Common watermark types:

-- Timestamp watermark pattern
PROCEDURE TF_LOAD_CUSTOMER_DELTA (
    IN iv_last_watermark TIMESTAMP
)
LANGUAGE SQLSCRIPT
AS
BEGIN
    -- Get current watermark (typically max of changed timestamp)
    DECLARE v_current_watermark TIMESTAMP = CURRENT_TIMESTAMP();

    -- Load only changed records
    UPSERT TARGET_CUSTOMER
    SELECT
        CUSTOMER_ID,
        CUSTOMER_NAME,
        REVENUE,
        UPDATED_AT,
        'ACTIVE' AS RECORD_STATUS
    FROM SOURCE_CUSTOMER
    WHERE UPDATED_AT > :iv_last_watermark
        AND UPDATED_AT <= :v_current_watermark;

    -- Update watermark in control table
    UPSERT WATERMARK_CONTROL
    VALUES ('CUSTOMER', :v_current_watermark);
END;

Read the full file on GitHub · 708 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 708 lines · 47 tokens per session scan A 5b7dd825f0ae

Subscribe to this mod's changes

Transformation Logic Generator is a skill published in the GitHub repository MarioDeFelipe/sap-datasphere-plugin-for-claude-cowork (25 stars, last pushed 4mo ago), licensed MIT. It adds 47 tokens to every session and 4,357 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

pinecone

Managed vector DB for production RAG and search.

NousResearch/hermes-agent · 13 tokens

embeddings

Vector embeddings with HNSW indexing, sql.js persistence, and hyperbolic support. 75x faster with agentic-flow integration. Use when: semantic search, pattern matching, similarity queries, knowledge retrieval. Skip when: exact text matching, simple lookups, no semantic understanding needed.

ruvnet/ruflo · 62 tokens

data-engineer

Build scalable data pipelines, modern data warehouses, and real-time streaming architectures. Implements Apache Spark, dbt, Airflow, and cloud-native data platforms.

davila7/claude-code-templates · 35 tokens

graphjin-env

Use when setting up a training or evaluation loop against a GraphJin agent environment — running the container, reading /health, driving episodes hosted or step-by-step or with your own agent over MCP, splitting train from eval, exporting trajectories, and deciding whether two rewards can be compared.

dosco/graphjin · 61 tokens

ingesting-into-data-lake

Import data into the AWS data lake from S3 files, local uploads, JDBC databases (Oracle, SQL Server, PostgreSQL, MySQL, RDS, Aurora), Amazon Redshift, Snowflake, BigQuery, DynamoDB, or existing Glue catalog tables (migration). Default target is S3 Tables; standard Iceberg on a general purpose bucket is supported where…

aws/agent-toolkit-for-aws · 228 tokens

similarity-search-patterns

Implement efficient similarity search with vector databases. Use when building semantic search, implementing nearest neighbor queries, or optimizing retrieval performance.

foryourhealth111-pixel/Vibe-Skills · 30 tokens