moose-basics
Moose Basics
A MooseStack project is a declarative TypeScript/Python project that gets translated into a running analytics stack: HTTP ingest → Redpanda → ClickHouse → aggregation views → HTTP egress APIs. moose dev runs that stack locally and hot-reloads when you edit app/.
The sections below are independent — jump to whichever is relevant.
Golden rules — apply always
- Use
moose ls(or themcp__moose-dev__get_infra_mapMCP tool) as the source of truth for URLs and table names. Never curl or query a guessed path. After every edit toapp/index.ts, runmoose ls. If your route/table isn't listed, the TS compile failed — check logs (rule 3), don't keep poking. - Use the explicit
OlapTable+Stream+IngestApitrio. Do NOT useIngestPipeline— it's deprecated and will misbehave. If it appears in scaffolded comments or your training memory, ignore it. - Use the
mcp__moose-dev__get_logsMCP tool to diagnose errors. It takes alevelfilter (ERROR/WARN/INFO) and asearchregex so you can jump straight to compile failures, schema conflicts, or ingest errors instead oftail-ing rawmoose.log. Call it first when ingest returns errors, tables are missing, or a hot-reload seems stuck. Only fall back togrep -iE 'error|failed|cannot' moose.logif the MCP tool is unavailable.
1. What moose dev is doing
When you run moose dev --dockerless inside a scaffolded project, Moose starts (and supervises) a local stack as native host processes:
| Component | Port | Role |
More from 514-labs/agent-skills
clickhouse-best-practices-ts-py
Use when designing, implementing, reviewing, or optimizing MooseStack data models, ClickHouse schemas, queries, indexes, materialized views, or ingestion configs — including during greenfield authoring when schema-design or performance choices need guidance. When invoked, pick the 1-2 rules directly relevant to the immediate decision and apply them inline while you continue to write code. Do NOT pause to read six rule files and emit a "Rules Checked / Findings" audit template unless the user explicitly asks for a formal review or audit.
19514-cli
>
5514-debug
>
4514-perf-optimize
>
4moosestack-clickhouse-best-practices
MUST USE when reviewing MooseStack data models, ClickHouse schemas, queries, or configurations. Contains 28 rules with MooseStack TypeScript/Python examples. Always read relevant rule files and cite specific rules in responses.
3514-production-rollout-plan
>
1