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.
mdr add rudderlabs/rudder-agent-skills/rudder-code-first-instrumentation@git:20261027.dca7fe1Pins 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
mdr add rudderlabs/rudder-agent-skills/rudder-code-first-instrumentation@sha256:b74e9571f5a784dcThe 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.
[](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.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261027.dca7fe1 latest | 2026-10-27 | dca7fe1 | 13,138 B | A | view · diff |
| git:20261027.bb53b9e | 2026-10-27 | bb53b9e | 13,020 B | A | view · diff |
| git:20260522.3efd703 | 2026-05-22 | 3efd703 | 12,692 B | A | view |
Audit of the latest version
- 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
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.