/walkeros:walkeros-understanding-developmentfrom walkeros
Guides contributors to walkerOS on build/test/lint workflow, XP principles, folder structure, and package conventions. Read before writing code or when unsure about project standards.
Ships in walkeros. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
walkerOS follows extreme programming principles with strict conventions. Read this skill before writing any code.
Core principle: DRY, KISS, YAGNI. Test first. Verify before claiming complete.
| Command | Purpose |
|---|---|
npm install | Install all dependencies |
npm run dev | Watch mode for all packages |
npm run build | Build all packages |
npm run format | Prettier formatting |
Verification cheatsheet:
npm run verify:touched -- <pkg>origin/main):
npm run verify:affected| Principle | In Practice |
|---|---|
| DRY | Use @walkeros/core utilities, don't reimplement |
| KISS | Minimal code to solve the problem |
| YAGNI | Only implement what's requested |
| TDD | Test first, watch it fail, then implement |
No any | Never use any in production code (tests are exception) |
packages/
├── core/ # Platform-agnostic types, utilities, schemas
├── collector/ # Central event processing engine
├── config/ # Shared config (eslint, jest, tsconfig, tsup)
├── cli/ # walkeros CLI (validate, bundle, push, setup)
├── runner/ # Runs prebuilt flow bundles
├── mcps/ # MCP servers (mcp, source-browser)
├── transformers/ # Neutral transformers: validate, ga4, demo
├── web/
│ ├── core/ # Web-specific utilities
│ ├── sources/ # browser, dataLayer, session, cmps/
│ └── destinations/ # gtag, meta, api, piwikpro, plausible, ...
└── server/
├── core/ # Server-specific utilities
├── sources/ # express, fetch, aws, gcp
├── destinations/ # aws, gcp, meta, ...
├── transformers/ # bot, fingerprint, file
└── stores/ # fs, s3, gcs, sheets
apps/
├── walkerjs/ # Zero-config browser file for GTM
├── quickstart/ # Code examples (source of truth for patterns)
├── explorer/ # React components for the docs and exploration
├── cli/ # The walkeros npm package (CLI entry)
├── storybook-addon/ # walkerOS Storybook addon
├── scripts/ # Repository scripts (docs and skills checks)
└── demos/ # Demo applications
Always import from @walkeros/core:
// Types
import type { WalkerOS } from '@walkeros/core';
// Utilities
import {
getEvent,
createEvent, // Event creation
getMappingEvent,
getMappingValue, // Transformations
isString,
isObject,
isDefined, // Type checking
assign,
clone, // Object operations
tryCatch,
tryCatchAsync, // Error handling
} from '@walkeros/core';
Config package for shared tooling:
@walkeros/config/eslint@walkeros/config/jest@walkeros/config/tsconfig/{base,web,node}.json@walkeros/config/tsupCore component configs live in two places:
packages/core/src/types/{destination,source,transformer,store,collector}.tspackages/core/src/schemas/{destination,source,transformer,store,collector}.tsBoth are hand-written and mirror each other. TS stays authoritative because
Zod's inferencer collapses recursive types (Routes, MatchExpression,
Value) to unknown. Zod drives runtime validation, JSON Schema emission, and
website Configuration reference tables.
When adding, renaming, or removing a Config field, update BOTH files. A
compile-time drift guard at
packages/core/src/schemas/__tests__/config-drift.test-d.ts fails tsc if the
key sets diverge. The guard checks keys only; value types may differ (recursion,
generic slots). Run npm run verify:touched -- core to verify.
Top-level boundaries in the collector (createPush in push.ts,
createCommand in command.ts) wrap their inner pipeline in tryCatchAsync.
The onError callback MUST do two things:
collector.status.failed.An empty onError is a defect: it swallows the exception, returns
{ ok: false } silently, and leaves the operator blind. Use
packages/collector/src/push.ts and packages/collector/src/command.ts as the
canonical pattern.
Two categories of caught error:
condition in push.ts, source factory / init / queueOn flush in
source.ts, transformer init in transformer.ts, destination init in
destination.ts): log AND status.failed++.condition / fn /
validate, on subscriptions in on.ts): log only. status.failed stays a
pipeline-health signal; user-code visibility goes via logs.For invariant violations or operator-initiated aborts that must crash the host
process, throw FatalError (exported from @walkeros/core). FatalError
bypasses every boundary catch in both categories so a supervisor can terminate
cleanly. Standard Error is absorbed, logged, and (for category 1) counted.
The log message verb identifies the site: 'mapping condition failed',
'source factory failed', 'transformer init failed', 'on callback failed',
etc. Operators grep for the verb. No kind field is required except in on.ts,
where seven sites share one verb and disambiguate via a typed kind field on
the structured payload.
Every package is one platform: web, server, or neutral (usable on both, like
@walkeros/core and @walkeros/collector). Neutral code ships inside walker.js
and runs on a server too, so it uses neither platform's APIs.
walkerOS.platform in its
package.json: ["web"], ["server"], or both for neutral. Every other
package and published app is in the declared table of
packages/config/scripts/check-platform.mjs. A package declared nowhere fails
the check.base.json is neutral (lib: es2020), web.json adds dom,
node.json is es2022. All set types to node and jest, so no other
@types package can bring the DOM back in. A package tsconfig may add only an
allowlisted ambient vendor type (gtag.js, facebook-pixel).Buffer, process, fs, node:*). Server: Node, no browser globals.
Neutral: neither, and no globalThis, no jsdom import and no
/// <reference lib or types> in any file, tests included. ESLint holds these
lines where TypeScript cannot: @walkeros/config/eslint/web, /node (its
nodePlatform block) and /neutral.cause argument of new Error) fail typecheck, so
errors assign cause themselves.@walkeros/core (a port), web-core
implements it, and the web caller passes it in explicitly. Example:
Flow.StepPage (page from @walkeros/web-core/dev). Node-only code of core
lives in @walkeros/core/node.npm run check:platform from the walkerOS root fails for any drift
in a preset, lib, types, eslint config or declaration. CI runs it on every
run, outside the turbo cache.REQUIRED SKILL: Use testing-strategy for detailed testing patterns.
Quick reference:
env pattern for mocking (not Jest mocks)dev.ts for examplesSource Files:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
walkerOS, project-conventions, extreme-programming, monorepo
22 skills in this plugin
/walkeros-create-cmp-sourceUse when creating a new walkerOS CMP (consent management platform) source. Structured fill-in-the-blanks workflow that turns any CMP's consent API into a walkerOS source package. Covers CookieFirst, Usercentrics, CookiePro/OneTrust patterns and generalizes to any CMP./walkeros-create-destinationUse when creating a new walkerOS destination to send events to a vendor or API (GA4/gtag, Meta/Facebook Pixel, Mixpanel, Amplitude, a custom HTTP API, Measurement Protocol), web or server-side. Example-driven workflow: research the vendor SDK and define step examples before implementing the destination interface, env pattern, and mappings./walkeros-create-sourceUse when creating a new walkerOS source to capture events (browser source, dataLayer interception, server/HTTP source, webhook receiver, event capture), web or server-side. Example-driven workflow: research the input format and define step examples before implementing the push interface, createTrigger, and env pattern./walkeros-create-transformerUse 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./walkeros-debuggingUse when walkerOS events aren't reaching destinations, debugging event flow, or troubleshooting mapping issues. Covers common problems and debugging strategies./walkeros-mapping-configurationUse when configuring walkerOS event mappings for specific use cases. Provides recipes for GA4, Meta, custom APIs, and common transformation patterns.npx claudepluginhub elbwalker/walkeros --plugin walkerosOther plugins' skills for the same job