devtools-instrumentation

devtools-instrumentation is a skill for Claude Code, Codex from TanStack/devtools. It costs 64 tokens per session (2,840 once invoked), scanned A, original, MIT.

A guide for adding carefully chosen diagnostic events to a software library. These events report important points such as middleware, state changes, lifecycle stages and errors to developer tools.

In plain words
What is it for?
Use it to identify useful instrumentation points, add shared event fields, reduce duplicate events and protect production code from unnecessary reporting.
Why use it?
It makes internal behaviour easier to inspect while limiting noisy or repetitive event data.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to identify useful instrumentation points, add shared event fields, reduce duplicate events and protect production code from unnecessary reporting.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tanstack/devtools/devtools-instrumentation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add TanStack/devtools --skill devtools-instrumentation
Clone the repo
git clone --depth 1 https://github.com/TanStack/devtools

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for devtools-instrumentation

README.md
[![agentmods](https://agentmods.dev/badge/skills/tanstack/devtools/devtools-instrumentation/github.svg)](https://agentmods.dev/skills/tanstack/devtools/devtools-instrumentation)
Your own site
<a href="https://agentmods.dev/skills/tanstack/devtools/devtools-instrumentation"><img src="https://agentmods.dev/badge/skills/tanstack/devtools/devtools-instrumentation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for devtools-instrumentation

Your own site · 80×15
<a href="https://agentmods.dev/skills/tanstack/devtools/devtools-instrumentation"><img src="https://agentmods.dev/badge/skills/tanstack/devtools/devtools-instrumentation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,840 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.02840
Opus 5.5 $0.00026 $0.01136
Sonnet 5.5 $0.00013 $0.00568
Haiku 4.5 $0.00006 $0.00284

Measured 1mo ago against content hash 0a01c2c54e6d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

devtools-instrumentation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/event-bus-client/skills/devtools-instrumentation/SKILL.md · 424 lines

How it starts

The opening of the file, as written. The whole thing — 424 lines — stays where its author put it; the contents beside it link to each section on GitHub.

devtools-instrumentation

Prerequisite: Read the devtools-event-client skill first for EventClient creation, event maps, and emit()/on() API.

Strategic placement of emit() calls inside a library to send high-value diagnostic data to TanStack Devtools panels. Maximum insight with minimum noise.

Key Insight

The event bus transparently bridges server/client and cross-tab boundaries. emit() on the server arrives on the client via WebSocket/SSE. emit() in one tab reaches other tabs via BroadcastChannel. No transport code needed -- just emit at the right place.

For prototyping, throw in many events. For production, consolidate down to the fewest events that carry the most information.

Where to Instrument

Emit at architecture boundaries, not inside implementation details:

  1. Middleware/interceptor entry and exit -- wrap the chain, not each middleware
  2. State transitions -- when state moves between logical phases (idle -> loading -> success/error)
  3. Lifecycle hooks -- mount, unmount, connect, disconnect, ready
  4. Error boundaries -- caught exceptions, retries, fallbacks
  5. User-initiated actions processed -- after fully applied, not before

Do NOT emit from: internal utility functions, loop iterations, getter/setter accesses, intermediate computation steps.

Core Patterns

1. Middleware/Interceptor Instrumentation

Wrap the pipeline at the boundary, not each middleware individually.

import { EventClient } from '@tanstack/devtools-event-client'

type RouterEvents = {
  'request-processed': {
    id: string
    method: string
    path: string
    duration: number
    middlewareChain: Array<{ name: string; durationMs: number }>
    status: number
    error?: string
  }
}

class RouterDevtoolsClient extends EventClient<RouterEvents> {
  constructor() {
    super({
      pluginId: 'my-router',
      enabled: process.env.NODE_ENV !== 'production',
    })
  }
}

export const routerDevtools = new RouterDevtoolsClient()

Read the full file on GitHub · 424 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 424 lines · 64 tokens per session scan A 0a01c2c54e6d

Subscribe to this mod's changes

devtools-instrumentation is a skill published in the GitHub repository TanStack/devtools (506 stars, last pushed today), licensed MIT. It adds 64 tokens to every session and 2,840 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

vite-browser-core-debug

Core troubleshooting workflow for Vue/React/Svelte Vite apps using vite-browser. Use this for first-pass debugging when the user reports broken UI behavior, wrong component state, router/store confusion, or a vague "page is broken" symptom and the dominant failure mode is not yet known.

MapleCity1314/vite-browser · 62 tokens

migrate-oxlint

Guide for migrating a project from ESLint to Oxlint. Use when asked to migrate, convert, or switch a JavaScript/TypeScript project's linter from ESLint to Oxlint.

oxc-project/oxc · 44 tokens

react-doctor

Use when finishing a feature, fixing a bug, before committing React code, or when the user types /doctor, asks to scan, triage, or clean up React diagnostics. Covers lint, accessibility, bundle size, architecture. Includes a regression check and a full local-triage workflow that fetches the canonical playbook.

compozy/compozy · 70 tokens

d3k

Use when the user asks to use d3k, run/dev/test/debug a web project with d3k, or reproduce a browser issue. Own the runtime: reuse or background-start d3k non-interactively, wait for readiness, use its project-stable managed Chrome profile, and inspect unified browser/server evidence.

vercel-labs/dev3000 · 68 tokens

dev-fix

Unified developer workflow for fixing bugs. Analyzes issue-tracker context, cross-checks docs/code, proposes a solution, implements the fix, verifies locally, and delivers a PR/MR.

HoangNguyen0403/agent-skills-standard · 43 tokens

incident-hotfix

Mitigate a production incident or urgent regression first, then route to root-cause remediation and a postmortem.

HoangNguyen0403/agent-skills-standard · 27 tokens