walkeros-create-cmp-so…
A CMP source is a specialized walkerOS source that listens to a consent management platform's events and translates consent…
Before starting, read these skills:
Claude Code
$ npx -y skills add elbwalker/walkerOS --skill walkeros-create-transformer --agent claude-code
Codex
$ npx skills add elbwalker/walkerOS --skill walkeros-create-transformer -a codex -y
Cursor
$ npx skills add elbwalker/walkerOS --skill walkeros-create-transformer -a cursor -y
Gemini CLI
$ npx skills add elbwalker/walkerOS --skill walkeros-create-transformer -a gemini-cli -y
GitHub Copilot
$ npx skills add elbwalker/walkerOS --skill walkeros-create-transformer -a github-copilot -y
OpenCode
$ npx skills add elbwalker/walkerOS --skill walkeros-create-transformer -a opencode -y
Windsurf
$ npx skills add elbwalker/walkerOS --skill walkeros-create-transformer -a windsurf -y
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.
Before starting, read these skills:
transformers fit in architecture
Transformer interface
structure
Documentation standards (for Phase 7)
| 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 |
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
This skill includes reference files you can copy:
transformer template
pattern
helpers, one test per step example
conformance kit on a real collector
(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/`.
---
**Goal:** Understand what the transformer needs to do.
# Reference implementation ls packages/server/transformers/fingerprint/ # Transformer types cat packages/core/src/types/transformer.ts
---
**Goal:** Define event transformations in `dev` entry FIRST.
mkdir -p packages/server/transformers/[name]/src/{examples,schemas}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.
export * as schemas from './schemas'; export * as examples from './examples';
---
**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
From browser to BigQuery and ad platforms - warehouse-native, and ready for AI agents via MCP.
A CMP source is a specialized walkerOS source that listens to a consent management platform's events and translates consent…
Use when creating a new walkerOS destination to send events to a vendor or API (GA4/gtag, Meta/Facebook Pixel, Mixpanel,…
Use when creating a new walkerOS source to capture events (browser source, dataLayer interception, server/HTTP source, webhook…
| Symptom | Likely Cause | Check | | ---------------------------------- | ---------------------------- |…
Read [understanding-mapping](../walkeros-understanding-mapping/SKILL.md) first for core concepts.
You are an AI agent running inside a **code-execution host**, not issuing tool calls one at a time through the model. Examples:
Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as…
Estimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using validated atom maps,…