rudder-code-first-instrumentation SKILL.md skillA

rudder-code-first-instrumentation from rudderlabs/rudder-agent-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add rudderlabs/rudder-agent-skills/rudder-code-first-instrumentation@git:20261027.dca7fe1

Pins git:20261027.dca7fe1 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
rudderlabs/rudder-agent-skills
Path
plugins/rudder-core/skills/rudder-code-first-instrumentation/SKILL.md
Versions recorded
3
Latest version
git:20261027.dca7fe1, committed Oct 27, 2026
First version recorded
May 22, 2026
Size
13,138 bytes
Repository stars
19
License
MIT

Derives tracking plans from existing codebase types and structures. Use when instrumenting an existing product that wasn't well-instrumented or restructuring existing tracking.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Code-First Instrumentation

This skill guides instrumentation planning for **existing products** where you derive tracking plans from the codebase's existing types and structures.

## When to Use This Skill

| Scenario | Use This Skill? |
|----------|-----------------|
| Existing product needs instrumentation | Yes |
| Codebase has domain types (enums, interfaces) you want to track | Yes |
| Restructuring messy existing tracking | Yes |
| Building new feature, events not yet defined | No — use `rudder-design-first-instrumentation` |
| LLM chat, AI agent or MCP server usage | No — use `rudder-ai-events-setup` (standard AI events via the AI SDKs) |

## Why Code-First?

When a product already exists, the code contains valuable type information:

- **Enums** define valid values (billing plans, user roles, feature types)
- **Interfaces** define object shapes (product, user, workspace)
- **Domain models** define relationships and constraints

Deriving tracking plans from code types:
- Eliminates translation/mapping layers
- Ensures warehouse data matches code semantics
- Enables compile-time validation of instrumentation
- Keeps tracking plan in sync with product evolution
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add rudderlabs/rudder-agent-skills/rudder-code-first-instrumentation@sha256:b74e9571f5a784dc

The line at the top of this page pins the label git:20261027.dca7fe1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_nv6kz5ctytyvafbn.svg)](https://markdownregistry.com/a/art_nv6kz5ctytyvafbn)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between May 22, 2026 and Oct 27, 2026, about one every 79 days.

versioncommittedcommitsizeaudit
git:20261027.dca7fe1 latest2026-10-27 dca7fe1 13,138 BA view · diff
git:20261027.bb53b9e2026-10-27 bb53b9e 13,020 BA view · diff
git:20260522.3efd7032026-05-22 3efd703 12,692 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (13138 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

rudderlabs/rudder-agent-skills · 19 stars · license MIT · pushed 2026-11-06 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_nv6kz5ctytyvafbn
GET https://markdownregistry.com/api/v1/resolve?ref=rudderlabs/rudder-agent-skills/rudder-code-first-instrumentation
GET https://markdownregistry.com/api/v1/blob/b74e9571f5a784dcdffe635dacb6c554e43213e7edc3d4ff7e6ac86f49724651

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from rudderlabs/rudder-agent-skills

rudder-ai-events-instrument SKILL.md skill
rudderlabs/rudder-agent-skills · plugins/rudder-ai-events/skills/rudder-ai-events-instrument/SKILL.md · Adds RudderStack AI events code from an approved ai-events.md plan: installs @rudderstack/ai, rudderstack-ai or…
git:20261102.3a898b2 · audit B · 19 stars
rudder-ai-events-setup SKILL.md skill
rudderlabs/rudder-agent-skills · plugins/rudder-ai-events/skills/rudder-ai-events-setup/SKILL.md · Onboards an app to RudderStack AI events, including moving existing RudderStack LLM, chat or agent events to them…
git:20261102.3a898b2 · audit B · 19 stars
rudder-ai-events-verify SKILL.md skill
rudderlabs/rudder-agent-skills · plugins/rudder-ai-events/skills/rudder-ai-events-verify/SKILL.md · Verifies RudderStack AI events locally and checks a move from existing RudderStack events: validates captures against…
git:20261102.3a898b2 · audit B · 19 stars
rudder-cli-setup SKILL.md skill
rudderlabs/rudder-agent-skills · plugins/rudder-cli/skills/rudder-cli-setup/SKILL.md · Installs and authenticates rudder-cli. Use when installing rudder-cli, setting up rudder cli, rudder-cli command not…
git:20261027.36f6950 · audit A · 19 stars
rudder-cli-workflow SKILL.md skill
rudderlabs/rudder-agent-skills · plugins/rudder-cli/skills/rudder-cli-workflow/SKILL.md · Validates, previews, and applies RudderStack resource changes via YAML specs. Use when iterating on RudderStack…
git:20261027.bb53b9e · audit F · 19 stars
rudder-import-and-evolve SKILL.md skill
rudderlabs/rudder-agent-skills · plugins/rudder-cli/skills/rudder-import-and-evolve/SKILL.md · Imports existing RudderStack workspace resources into YAML files for git-based management. Use when importing existing…
git:20261027.bb53b9e · audit A · 19 stars
rudder-transformations SKILL.md skill
rudderlabs/rudder-agent-skills · plugins/rudder-cli/skills/rudder-transformations/SKILL.md · Creates and manages RudderStack transformations and libraries with local testing. Use when creating, editing, or…
git:20261027.bb53b9e · audit A · 19 stars
rudder-typer-workflow SKILL.md skill
rudderlabs/rudder-agent-skills · plugins/rudder-cli/skills/rudder-typer-workflow/SKILL.md · Generates type-safe SDKs (Swift/Kotlin) from tracking plans with compile-time validation. Use when generating type-safe…
git:20260622.dea2d03 · audit A · 19 stars
rudder-data-catalog SKILL.md skill
rudderlabs/rudder-agent-skills · plugins/rudder-core/skills/rudder-data-catalog/SKILL.md · Creates and manages events, properties, categories, and custom types for instrumentation schemas. Use when creating or…
git:20260622.dea2d03 · audit A · 19 stars
rudder-data-graphs SKILL.md skill
rudderlabs/rudder-agent-skills · plugins/rudder-core/skills/rudder-data-graphs/SKILL.md · Produces Data Graph YAML from RETL sources for Audiences. Use when designing Data Graphs, mapping RETL to…
git:20260622.dea2d03 · audit A · 19 stars
rudder-design-first-instrumentation SKILL.md skill
rudderlabs/rudder-agent-skills · plugins/rudder-core/skills/rudder-design-first-instrumentation/SKILL.md · Plans instrumentation for new features starting from product requirements before code exists. Use when building new…
git:20261027.dca7fe1 · audit A · 19 stars
rudder-destination-debugging SKILL.md skill
rudderlabs/rudder-agent-skills · plugins/rudder-core/skills/rudder-destination-debugging/SKILL.md · Diagnoses why events are failing, dropping, or not arriving at a destination. Use when events are missing from a…
git:20261026.5fd4015 · audit A · 19 stars

Every file in rudderlabs/rudder-agent-skills

Browse by kind, by grade A, or by owner.