Skip to content
Data
Skill

/walkeros-create-transformer

Before starting, read these skills:

From plugin
walkeros
35122 skills

Claude Code

$ npx -y skills add elbwalker/walkerOS --skill walkeros-create-transformer --agent claude-code

SKILL.md

walkeros-create-transformer.SKILL.md
name: walkeros-create-transformer
description:
  Use when creating a new walkerOS transformer to modify events in the pipeline
  (validate, enrich, or redact) at a before/next chain position. Example-driven
  workflow for the transformer interface, return values, and chaining.

Create a New Transformer

Prerequisites

Before starting, read these skills:

  • [understanding-flow](../walkeros-understanding-flow/SKILL.md) - How

transformers fit in architecture

  • [understanding-transformers](../walkeros-understanding-transformers/SKILL.md) -

Transformer interface

  • [understanding-events](../walkeros-understanding-events/SKILL.md) - Event

structure

  • [testing-strategy](../walkeros-testing-strategy/SKILL.md) - How to test
  • [writing-documentation](../walkeros-writing-documentation/SKILL.md) -

Documentation standards (for Phase 7)

Transformer Categories

| Category | Purpose | Example | | ------------ | ----------------------------- | ---------------------------- | | **Validate** | Check event structure/content | JSON Schema, required fields | | **Enrich** | Add data to events | Server timestamps, geo data | | **Redact** | Remove/mask sensitive data | Strip PII, anonymize IPs |

Process Overview

1. Research     → Understand use case (validate/enrich/redact)
2. Examples     → Create event before/after examples FIRST
3. Scaffold     → Copy template, configure package.json
4. Convention   → Add walkerOS.json metadata and buildDev
5. Implement    → Build transformer with TDD
6. Test         → Verify against example transformations
7. Document     → Write README

Supporting Files

This skill includes reference files you can copy:

  • **[templates/validation/](templates/validation/)** - Complete redact

transformer template

  • [index.ts](templates/validation/index.ts) - Implementation with context

pattern

  • [types.ts](templates/validation/types.ts) - Type definitions
  • [schemas.ts](templates/validation/schemas.ts) - Zod settings schema
  • [index.test.ts](templates/validation/index.test.ts) - Test suite with

helpers, one test per step example

  • [conformance.test.ts](templates/validation/conformance.test.ts) - The

conformance kit on a real collector

  • **[examples/](examples/)** - The template's examples: `step.ts`, `events.ts`

(which its unit tests read) and `config.ts` (sample configs)

Copy them into a package as Phase 3 lays it out: `index.ts` to `src/transformer.ts`, `types.ts` to `src/types.ts`, `schemas.ts` to `src/schemas/index.ts`, `index.test.ts` to `src/__tests__/stepExamples.test.ts`, `conformance.test.ts` to `src/__tests__/` and `examples/` to `src/examples/`.

---

Phase 1: Research

**Goal:** Understand what the transformer needs to do.

1.1 Define Use Case

  • [ ] **Category**: Validate, Enrich, or Redact?
  • [ ] **Input**: What events will this process?
  • [ ] **Output**: What should change? What should be blocked?
  • [ ] **Configuration**: What settings does user need?

1.2 Check Existing Patterns

# Reference implementation
ls packages/server/transformers/fingerprint/

# Transformer types
cat packages/core/src/types/transformer.ts

Gate: Research Complete

  • [ ] Category identified (validate/enrich/redact)
  • [ ] Input/output transformation defined
  • [ ] Configuration options listed

---

Phase 2: Create Examples (BEFORE Implementation)

**Goal:** Define event transformations in `dev` entry FIRST.

2.1 Scaffold Directory Structure

mkdir -p packages/server/transformers/[name]/src/{examples,schemas}

2.2 Step Examples

Write one step example per case in `src/examples/step.ts`: events that pass through (modified or not), the expected output after processing, and events that are blocked (for validators). Each export is one `Flow.StepExample`:

// examples/step.ts
import type { Flow } from '@walkeros/core';

export const orderPasses: Flow.StepExample = {
  title: 'Order passes',
  description: 'An order event passes through unchanged.',
  in: { name: 'order complete', data: { id: 'ORD-123' } },
  out: [
    ['return', { event: { name: 'order complete', data: { id: 'ORD-123' } } }],
  ],
};

export const debugFiltered: Flow.StepExample = {
  public: false,
  description: 'A debug event is dropped.',
  in: { name: 'debug test', data: { message: 'noise' } },
  out: [['return', false]], // the transformer drops this event
};

`in` is a walkerOS event; `out` is the `['return', value]` effect: the result the transformer returns (`{ event }`), or `false` for an event it drops. A failure example sets `outcome` instead (see Phase 6). Set `title` + `description` for public examples; mark test-only fixtures with `public: false`. `src/examples/index.ts` exports them with `export * as step from './step';`. See [using-step-examples](../walkeros-using-step-examples/SKILL.md) for the Three Type Zones.

2.3 Export via dev.ts

export * as schemas from './schemas';
export * as examples from './examples';

Gate: Examples Valid

  • [ ] All example files compile (`npm run build`)
  • [ ] Can trace: input event → expected output for each example

---

Phase 3: Scaffold

**Template transformer:** `packages/server/transformers/fingerprint/` (a server transformer). A platform-neutral transformer lives in `packages/transformers/` (for example `validate`, `ga4`).

cp -r packages/server/transformers/fingerprint packages/server/transformers/[name]
cd packages/server/transformers/[name]

# Update package.json: name, description, repository.directory

**Directory structure:**

packages/server/transformers/[name]/
├── src/
│   ├── index.ts           # Main export
│   ├── transformer.ts     # Transformer implementation
│   ├── types.ts           # Settings, Types interfaces
│   ├── dev.ts             # Exports schemas and examples
│   ├── examples/
│   │   ├── index.ts       # export * as st
Read more
@elbwalker
Ships withwalkeros

From browser to BigQuery and ad platforms - warehouse-native, and ready for AI agents via MCP.

Stars on GitHub

Momentum

stars in total
351
Star history of elbwalker/walkerOS on GitHub, a chart by star-history.com

Other skills on walkeros.

walkeros-create-source

walkeros-create-source

Use when creating a new walkerOS source to capture events (browser source, dataLayer interception, server/HTTP source, webhook…

@elbwalker@elbwalkerInstall Skill
walkeros-mcp-actions

walkeros-mcp-actions

You are an AI agent running inside a **code-execution host**, not issuing tool calls one at a time through the model. Examples:

@elbwalker@elbwalkerInstall Skill

More skills from other plugins.

paddleocr-doc-parsing

paddleocr-doc-parsing

Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as…

paddleocr2mo93k
@paddlepaddle@paddlepaddleInstall Skill
context-loader
Auto-invoked

context-loader

Search memories from earlier Pi sessions in this repository. Use it when earlier work may already explain the code, error,…

mem02w69k
@mem0ai@mem0aiInstall Skill
analyzing-ai-citations

analyzing-ai-citations

Answer AI citation and answer engine optimization (AEO) questions in PostHog: whether AI answer engines (ChatGPT, Claude, and an…

posthog3w41k
@posthog@posthogInstall Skill

Questions about walkeros-create-transformer.

Which coding agents can use walkeros-create-transformer?
walkeros-create-transformer installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.