Skip to main content

What It Does

The Moda Claude Code skill teaches AI assistants how to correctly integrate Moda’s LLM observability SDK into any TypeScript or Python project. Instead of guessing at configuration, the AI detects your project stack and applies the right integration pattern automatically. The skill handles:
  • Detecting your framework and LLM provider
  • Installing the correct SDK (moda-ai for both npm and PyPI)
  • Placing init() at the right entry point for your framework
  • Choosing the correct conversation ID strategy
  • Adding flush() in cleanup hooks
  • Configuring Vercel AI SDK telemetry

Prerequisites

Installation

The skill files are available in the Moda GitHub repository. You can install them per-project or globally.

Usage

Once installed, the skill activates automatically when you ask Claude Code to:
  • “Add Moda observability to this project”
  • “Integrate LLM analytics”
  • “Set up conversation tracking for my AI calls”
  • “Add tracing for OpenAI/Anthropic calls”
You can also invoke it directly:

What It Handles

Framework Detection

The skill inspects your project files to detect:

Conversation Threading

The skill automatically chooses the right conversation ID strategy:
Agent frameworks like LangChain, CrewAI, and AutoGPT require explicit conversation IDs. The automatic fallback does NOT work because each agent iteration constructs different messages.

Correct Placement

The skill knows where to place initialization for each framework:

Supported Frameworks

TypeScript / Node.js

  • Next.js (App Router + Vercel AI SDK)
  • Express
  • Generic Node.js scripts
  • Vercel AI SDK
  • OpenAI SDK
  • Anthropic SDK

Python

  • FastAPI
  • Flask
  • LangChain
  • CrewAI
  • Generic Python scripts
  • OpenAI SDK
  • Anthropic SDK

Example Session

Here’s what happens when you ask Claude Code to integrate Moda into a Next.js project:

Python SDK Reference

Full Python SDK documentation

Node.js SDK Reference

Full TypeScript/Node.js SDK documentation

Vercel AI SDK

Vercel AI SDK integration guide

Quick Start

Get started with Moda in 5 minutes