Skip to main content
skill CX Codex

ax-add-ingest-stage — Claude Code skill: what it does, how to install

Guides the addition of SurrealDB tables and pipeline ingest stages in the ax repository. Keeps changes aligned with strict CI verification gates.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add Necmttn/ax --skill ax-add-ingest-stage -a claude-code
Open on GitHub

What ax-add-ingest-stage does

This skill enforces project-specific conventions when updating the ax graph codebase. When you declare a SurrealDB table, the skill guides adding DEFINE TABLE ... SCHEMAFULL into packages/schema/src/schema.surql, serializing nested payloads to JSON strings, and updating SCHEMA_TABLES. A missed registration breaks CI immediately. Running bun install inside your worktree is mandatory so schema packages resolve locally instead of pointing to main-tree symlinks.

For ingest steps, the skill outlines co-locating StageDef with stage code and appending keys to apps/axctl/src/ingest/stage/registry.ts. You also need to increment stage counts in effect-cli.test.ts and sort entries under --derive-only. Stage execution must sit inside Effect.catchCause to prevent individual errors from aborting the pipeline. It also covers Effect v4 beta patterns, such as using Schema.Literals instead of collapsed literals.

What it helps with

  • add a new SurrealDB table to the schema without breaking mirror tests
  • register ingest stages in the central axctl registry
  • update CLI test expectations for the --derive-only option
  • keep documentation in sync across llms.txt and cli.md for new subcommands

Example prompts for the agent

  • Add a new SurrealDB user_sessions table to packages/schema/src/schema.surql and register it
  • Create a new derive-metrics ingest stage in axctl and update the stage registry
  • Document the new axctl subcommands so they pass check-cli-reference CI gates

How to install ax-add-ingest-stage

1Skills CLI (Vercel)

npx skills add Necmttn/ax --skill ax-add-ingest-stage -a claude-code

2Manually: put the files in place

~/.claude/skills/ax-add-ingest-stage/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/ax-add-ingest-stage/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about ax-add-ingest-stage

How do I install ax-add-ingest-stage in Claude Code?

Run npx skills add Necmttn/ax --skill ax-add-ingest-stage -a claude-code in your terminal.

What does ax-add-ingest-stage do?

It guides engineers through registering database tables and ingest stages in the ax codebase. The rules guarantee that required mirror tests and CI checks pass.

Why must ingest stage logic be wrapped in Effect.catchCause?

Wrapping stage execution in Effect.catchCause produces zero-row stats on failure. This prevents an error in an individual stage from halting the broader ingest run.

Similar skills

All skills for Data and databases →

From the same set11

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor