pn-observability

pn-observability is a skill for Cursor from perniemann/pnCore. It costs 46 tokens per session (1,676 once invoked), scanned A, original, MIT.

A guide to seeing what a running service is doing through logs, traces, metrics, error tracking, health checks, and alerts.

In plain words
What is it for?
Use it when adding OpenTelemetry, structured logs, Sentry, Datadog or Grafana monitoring, health endpoints, or service-level targets.
Why use it?
It makes production failures and slow requests easier to locate by showing what happened, where a request travelled, and how often problems occur.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

Part of the pn-core plugin — 133 skills, 19 commands, 9 agents, 1 MCP server shipped together

Good fit Use it when adding OpenTelemetry, structured logs, Sentry, Datadog or Grafana monitoring, health endpoints, or service-level targets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/perniemann/pncore/pn-observability
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 perniemann/pnCore --skill pn-observability
Clone the repo
git clone --depth 1 https://github.com/perniemann/pnCore

Made for: Cursor.

Or install pn-core, the plugin that ships this one along with the rest of its 133 skills, 19 commands, 9 agents, 1 MCP server.

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 pn-observability

README.md
[![agentmods](https://agentmods.dev/badge/skills/perniemann/pncore/pn-observability/github.svg)](https://agentmods.dev/skills/perniemann/pncore/pn-observability)
Your own site
<a href="https://agentmods.dev/skills/perniemann/pncore/pn-observability"><img src="https://agentmods.dev/badge/skills/perniemann/pncore/pn-observability/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 pn-observability

Your own site · 80×15
<a href="https://agentmods.dev/skills/perniemann/pncore/pn-observability"><img src="https://agentmods.dev/badge/skills/perniemann/pncore/pn-observability.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,676 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.
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.00046 $0.01676
Opus 5 $0.00023 $0.00838
Sonnet 5 $0.00009 $0.00335
Haiku 4.5 $0.00005 $0.00168

Measured 5d ago against content hash 0fafc9987995, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

pn-observability 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 5d 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/pn-core-mcp/content/skills/backend/pn-observability/SKILL.md · 192 lines

How it starts

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

Observability

When to use

  • Instrumenting a new service with traces, metrics, and structured logs
  • Adding Sentry for error tracking and performance monitoring
  • Setting up OpenTelemetry with a collector (Datadog, Grafana Tempo, OTLP)
  • Implementing health-check endpoints (/health, /ready)
  • Defining SLOs and alert thresholds
  • Diagnosing a performance regression or production incident

Three pillars

Pillar What it answers Tools
Logs What happened? Pino, Winston → Datadog Logs, CloudWatch, Loki
Traces Why did it happen? (request flow) OpenTelemetry → Datadog APM, Jaeger, Grafana Tempo
Metrics How often? How fast? prom-client, OTel metrics → Prometheus/Datadog/Grafana

Structured logging with Pino

import pino from "pino";

export const logger = pino({
  level: process.env.LOG_LEVEL ?? "info",
  // pretty-print in dev, JSON in prod
  transport: process.env.NODE_ENV === "development"
    ? { target: "pino-pretty", options: { colorize: true } }
    : undefined,
  redact: ["req.headers.authorization", "body.password", "body.token"],
  base: { service: "api", version: process.env.APP_VERSION },
});

// Usage — always log structured fields, not interpolated strings
logger.info({ userId, orderId }, "Order placed");
logger.error({ err, requestId }, "Payment failed");

// Request logger middleware (Fastify auto-logs; Express manual)
app.use((req, res, next) => {
  req.log = logger.child({ requestId: req.headers["x-request-id"] });
  req.log.info({ method: req.method, url: req.url }, "Request received");
  next();
});

Rules:

  • Log as JSON in production — log aggregators parse JSON, not strings.
  • Always include requestId / traceId in every log line for correlation.
  • Redact sensitive fields — never log tokens, passwords, or full PII.
  • Use log levels correctly: debug for dev details, info for business events, warn for degraded state, error for failures.

OpenTelemetry

Read the full file on GitHub · 192 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. 5d ago First seen · 192 lines · 46 tokens per session scan A 0fafc9987995

Subscribe to this mod's changes

pn-observability is a skill published in the GitHub repository perniemann/pnCore (0 stars, last pushed 3d ago), licensed MIT. It adds 46 tokens to every session and 1,676 once invoked, about $0.0002 per session on Opus 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-09-03.

Related

Other skills, from other repositories