walkeros-create-cmp-so…
A CMP source is a specialized walkerOS source that listens to a consent management platform's events and translates consent…
Destinations receive processed events from the collector and deliver them to third-party tools (analytics, marketing, data warehouses).
Claude Code
$ npx -y skills add elbwalker/walkerOS --skill walkeros-understanding-destinations --agent claude-code
Codex
$ npx skills add elbwalker/walkerOS --skill walkeros-understanding-destinations -a codex -y
Cursor
$ npx skills add elbwalker/walkerOS --skill walkeros-understanding-destinations -a cursor -y
Gemini CLI
$ npx skills add elbwalker/walkerOS --skill walkeros-understanding-destinations -a gemini-cli -y
GitHub Copilot
$ npx skills add elbwalker/walkerOS --skill walkeros-understanding-destinations -a github-copilot -y
OpenCode
$ npx skills add elbwalker/walkerOS --skill walkeros-understanding-destinations -a opencode -y
Windsurf
$ npx skills add elbwalker/walkerOS --skill walkeros-understanding-destinations -a windsurf -y
name: walkeros-understanding-destinations description: Use when working with walkerOS destinations, understanding the destination interface, or learning about env pattern and configuration. Covers interface, lifecycle, env mocking, and paths.
Destinations receive processed events from the collector and deliver them to third-party tools (analytics, marketing, data warehouses).
**Core principle:** Destinations transform and deliver. They don't capture or process: that's sources and collector.
See [packages/core/src/types/destination.ts](../../packages/core/src/types/destination.ts) for canonical interface.
| Method | Purpose | Required | | --------------------------- | -------------------------- | ------------ | | `init(context)` | Load scripts, authenticate | Optional | | `push(event, context)` | Transform and send event | **Required** | | `pushBatch(batch, context)` | Batch processing | Optional | | `destroy(context)` | Cleanup on shutdown | Optional | | `config` | Settings, mapping, consent | **Required** |
`destroy?: DestroyFn`: optional cleanup method. Called during `command('shutdown')`. Use to close DB connections, flush buffers, or release SDK clients. Receives `{ id, config, env, logger }`.
Destinations use dependency injection via `env` for external APIs. This enables testing without mocking.
// Destination defines its env type
export interface Env extends DestinationWeb.Env {
window: {
gtag: Gtag.Gtag;
dataLayer: unknown[];
};
}
// Destination uses env, not globals
async function push(event, context) {
const { env } = context;
env.window.gtag('event', mappedName, mappedData);
}**REQUIRED SKILL:** See [testing-strategy](../walkeros-testing-strategy/SKILL.md) for full testing patterns.
import { mockEnv } from '@walkeros/core';
import { examples } from '../dev';
const calls: Array<{ path: string[]; args: unknown[] }> = [];
const testEnv = mockEnv(examples.env.push, (path, args) => {
calls.push({ path, args });
});
await destination.push(event, { ...context, env: testEnv });
expect(calls).toContainEqual({
path: ['window', 'gtag'],
args: ['event', 'purchase', expect.any(Object)],
});The env pattern is also the interception seam for simulation: `walkeros push --simulate` and the conformance kit record the calls a destination makes on the paths its `examples.env.simulation` names. A destination that reaches its vendor through `env` is recorded; one that reaches a global directly, bypassing `env`, is not. This is one more reason to route every external call through `env`.
Rules that keep the seam intact:
client, writer) is taken from `env` when present and created only otherwise (`env?.BigQuery ?? BigQuery`). Every key the mock env declares must be read as `env.<key>` in `src`.
`call:PubSub.topic.publishMessage`, `call:JSONWriter.appendRows`), not a constructor. The one recorder is `recordEnv` in `@walkeros/core`; it navigates constructors, factories and Promises, and records only the leaf.
`init`, so a client built in `init` is recorded.
TikTok, Snapchat, Pinterest, Bing, Reddit, Criteo, X, Data Manager, Piwik PRO) expose `ip` and `userAgent` settings (`Mapping.Value | false`), defaulting to `['ingest.ip', 'event.user.ip']` and `['ingest.userAgent', 'event.user.userAgent']`, resolved with `getMappingValue(createMappingRoot(ingest, event), setting, { collector })`. `false` disables, an explicit mapped vendor field wins, each package carries its own few lines (no shared helper). Data Manager fills them by default only when an entry of `settings.destinations` is `GOOGLE_ADS`; a Google Analytics-only step sends neither unless `ip` or `userAgent` is set or the field is mapped. Matomo, an analytics server destination, fills neither (ruling analytics-destinations-no-ip-autofill): Matomo has `ip` and `userAgent` settings without a default, and its `init` refuses `ip` without `credentials.token`, since Matomo rejects `cip` without a token.
config: {
settings: { /* destination-specific */ },
mapping: { /* event transformation rules */ },
data: { /* global data mapping */ },
consent: { /* required consent states */ },
policy: { /* processing rules */ },
queue: boolean, // when added later, receive the run's earlier events (default true)
timeout: number, // delivery timeout in ms (default 10000)
queueMax: number, // consent-queued events cap (default 1000)
dlqMax: number, // dead-letter queue cap (default 100)
}Each destination keeps two internal buffers: `queuePush` (consent-denied events) and `dlq` (failed pushes). Both are size-bounded with FIFO drop-oldest eviction. Defaults: `queueMax: 1000`, `dlqMax: 100`. Set either on a destination's config to override per destination. Operators read drop counts from `collector.status.dropped[stepId('destination', id)]?.queue` (consent-denied evictions) and `?.dlq` (DLQ evictions). Build the key with `stepId()` from `@walkeros/core`. Point-in-time sizes stay on `collector.status.destinations[id].queuePushSize` / `dlqSize`.
`queuePush` drains back into the destination once consent allows delivery. The DLQ is never replayed: an event that reaches it is gone once it is evicted.
`config.timeout` bounds one delivery. A `push` or `pushBatch` that has not settled within it is
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.
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,…