Instrument Observability logo

Instrument Observability

Community
etr
instrument-observability

Instrument a change with structured logging, RED metrics, trace spans, and symptom-based alerts - use while building the change, not after an incident proves it was unobservable

Overview

Publisheretr
Repositorygroundwork
Skill nameinstrument-observability
Stars
45
Forks
4
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by etr on GitHub. Read the source before you install it.

Installation

Install the Instrument Observability AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/etr/groundwork/tree/main/skills/instrument-observability
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/etr/groundwork.git /tmp/groundwork
mkdir -p .claude/skills
cp -r /tmp/groundwork/skills/instrument-observability .claude/skills/instrument-observability
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Instrument Observability in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Instrument Observability on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Instrument Observability is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Instrument Observability

Overview

Observability is added with the code that needs it, not bolted on after an outage. Shift Left: the cheapest time to make a change observable is while you still hold its context — what can fail, what "normal" looks like, which boundary the latency lives behind.

Core principle: A change you cannot observe in production is a change you cannot operate. Logs, metrics, traces, and alerts are part of "done," not a follow-up ticket.

When to Use

  • Adding or changing a service boundary, request handler, job, or external call
  • Code paths that can fail partially, retry, time out, or degrade
  • Any change whose health you would want to confirm during a [[staged-rollout]]

Skip only for changes with no runtime behavior (docs, pure refactors with identical I/O, config-only edits).

Process

Apply each layer to the change.

  1. Structured logging. Emit machine-parseable events (key-value / JSON), not interpolated prose. Attach the correlation/trace id and the dimensions you'd filter on (tenant, route, outcome). Log decisions and failures, not control flow.
  2. RED metrics. For every request-serving surface, instrument the three:
    • Rate — requests per second handled
    • Errors — failed requests per second (and the error class)
    • Duration — latency distribution (histogram, so you get p50/p95/p99 — never a single mean)
  3. Trace spans. Wrap each external boundary (DB query, RPC, queue, third-party API) in a span that propagates context. Spans turn "the request was slow" into "the request was slow here."
  4. Symptom-based alerts. Alert on user-visible symptoms (error rate breached, latency SLO burning), not on causes (CPU high, pod restarted). Causes generate noise; symptoms generate pages worth waking for. Each alert names the symptom and points at the dashboard/runbook.

Rationalizations

ExcuseReality
"I'll add metrics once it's in prod"The first incident is the worst time to discover you're blind. Shift Left.
"The mean latency is fine"A mean hides the p99 tail where users actually hurt. Use a histogram.
"There are already logs"Unstructured logs you can't query are not observability. Structure them.
"I'll alert on CPU and disk"Cause-based alerts page you for non-problems and miss real ones. Alert on symptoms.
"Tracing is a separate project"One span around each boundary is minutes of work and the only thing that localizes latency.

Red Flags

  • Latency reported as a single average instead of a distribution
  • Alerts wired to CPU, memory, or restart counts rather than user-visible symptoms
  • log.info("processing " + thing) style string interpolation instead of structured fields
  • An external call (DB, API, queue) with no span around it
  • "We'll add observability after launch" in the plan

Verification

Cite concrete evidence — names and locations, not intentions:

  • Structured log events added at decision/failure points, carrying the correlation id (name the events)
  • Rate, Error, and Duration metrics emitted for each request surface; Duration is a histogram (name the metrics)
  • A trace span wraps every external boundary the change touches (name the spans)
  • At least one symptom-based alert defined against an SLO, pointing at a dashboard/runbook (name the alert)

Frequently asked questions

What does the Instrument Observability AI skill do?

Instrument a change with structured logging, RED metrics, trace spans, and symptom-based alerts - use while building the change, not after an incident proves it was unobservable

Why use Instrument Observability on TypingMind?

Because you install it once and use it with any model. Instrument Observability is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Instrument Observability in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/etr/groundwork/tree/main/skills/instrument-observability. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Instrument Observability?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Instrument Observability?

As many as you like. As long as a model supports skills, you can use Instrument Observability with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Instrument Observability AI skill free?

Yes. It is published on GitHub by etr under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇