walkeros-understanding-development
Skill348 starsChanged 5 years agoMITView on GitHub
walkerOS follows extreme programming principles with strict conventions. This skill is your foundation before writing any code. Core principle: DRY, KISS, YAGNI. Test first. Verify before claiming complete. Verification cheatsheet: - While iterating (L1, touched package): npm run verify:touched -- <pkg> - At plan completion (L2, affected since origin/main): npm run verify:affected See /workspaces/developer/AGENT.md rule 11 for the full doctrine. Always import from @walkeros/core: Config package for shared tooling: Core component configs live in two places: - TS interface: packages/core/src/types/{destination,source,transformer,store,collector}.ts…
In this repository22 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- walkeros-create-cmp-sourceSkill
- walkeros-create-destinationSkill
- walkeros-create-sourceSkill
- walkeros-create-transformerSkill
- walkeros-debuggingSkill
- walkeros-mapping-configurationSkill
- walkeros-mcp-actionsSkill
- walkeros-testing-strategySkill
- walkeros-understanding-destinationsSkill
- walkeros-understanding-eventsSkill
- walkeros-understanding-flowSkill
- walkeros-understanding-mappingSkill
- walkeros-understanding-sourcesSkill
- walkeros-understanding-storesSkill
- walkeros-understanding-transformersSkill
- walkeros-using-cliSkill
- walkeros-using-loggerSkill
- walkeros-using-step-examplesSkill
- walkeros-using-store-cacheSkill
- walkeros-using-transformer-ga4Skill
- walkeros-writing-documentationSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 113
When adding, renaming, or removing a Config field, update BOTH files.
- Very specific: line 157
REQUIRED SKILL: Use testing-strategy for detailed testing patterns.
- Very specific: line 161
Use env pattern for mocking (not Jest mocks)
- Very specific: line 162
Import from dev.ts for examples
- Distinctive: line 163
Test first, watch it fail
- Distinctive: line 164
Verify before claiming complete
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Understanding walkerOS Development
Overview
walkerOS follows extreme programming principles with strict conventions. This skill is your foundation before writing any code.
Core principle: DRY, KISS, YAGNI. Test first. Verify before claiming complete.
Commands
| 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:
- While iterating (L1, touched package):
npm run verify:touched -- <pkg> - At plan completion (L2, affected since
origin/main):npm run verify:affected
See /workspaces/developer/AGENT.md rule 11 for the full doctrine.
XP Principles (Non-Negotiable)
| 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) |
Folder Structure
packages/
├── core/ # Platform-agnostic types, utilities, schemas
├── collector/ # Central event processing engine
├── config/ # Shared config (eslint, jest, tsconfig, tsup)
├── web/
│ ├── core/ # Web-specific utilities
│ ├── sources/ # browser, dataLayer
│ └── destinations/ # gtag, meta, api, piwikpro, plausible
└── server/
├── core/ # Server-specific utilities
├── sources/ # gcp
└── destinations/ # aws, gcp, meta
apps/
├── walkerjs/ # Zero-config browser file for GTM
├── quickstart/ # Code examples (source of truth for patterns)
└── demos/ # Demo applicationsCore Package Usage
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:
- ESLint config:
@walkeros/config/eslint - Jest config:
@walkeros/config/jest - TSConfig:
@walkeros/config/tsconfig - Tsup config:
@walkeros/config/tsup
Editing core Config types
Core component configs live in two places:
- TS interface:
packages/core/src/types/{destination,source,transformer,store,collector}.ts - Zod schema:
packages/core/src/schemas/{destination,source,transformer,store,collector}.ts
Both 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.
Error visibility contract
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:
- log a structured error via
collector.logger.error(message, { ... })with enough context to reproduce (event/ingest for push, command/data for command), - increment
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:
- Internal walkerOS pipeline failures (push, command, mapping outer wrap in
mapping.ts, source factory / init / queueOn flush insource.ts, transformer init intransformer.ts, destination init indestination.ts): log ANDstatus.failed++. - User-supplied callbacks (mapping
condition/fn/validate,onsubscriptions inon.ts): log only.status.failedstays 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.
Testing
REQUIRED SKILL: Use testing-strategy for detailed testing patterns.
Quick reference:
- Use
envpattern for mocking (not Jest mocks) - Import from
dev.tsfor examples - Test first, watch it fail
- Verify before claiming complete
Related Skills
- walkeros-testing-strategy - Testing patterns and env mocking
Source Files:
- packages/core/ - Core utilities
- packages/config/ - Shared configuration
- apps/quickstart/ - Validated examples
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

