Preface¶
After features go live, on-call engineers often have to piece together fragmented logs or replay code after the fact to reconstruct what happened. If observability (logs, metrics, traces, alerts) is disconnected from feature development, the first user-reported issue turns into “archaeology” rather than data inspection.
Below we introduce the ObservabilityAndInstrumentation skill on SkillHub (slug @user_3c6cb52e/observability-and-instrumentation-sh-k1xmdy, version 1.0.0). It bakes the principle of “define what on-call needs to ask first, then choose signals, then implement instrumentation and acceptance” into SKILL.md, so that agents like Cursor, Claude Code, or Codex can follow the same steps during related tasks rather than reinventing best practices each time.
What Is This¶
ObservabilityAndInstrumentation is a community-sourced (community) Agent Skill published by user_3c6cb52e. On SkillHub it is categorized under it-ops-security, tagged with requires_api_key=false, and needs no API key. The package uses the universal SKILL.md format and declares support for multiple platforms—Claude Code, Codex, Hermes Agent, OpenClaw, QClaw, WorkBuddy, etc. (platform: multi-platform)—under an MIT license.
The SkillHub listing description matches the package’s internal description, both summarizing an instrumentation-focused skill. For exact capabilities, refer to the body of SKILL.md (available after installation from the official download URL).
Core Features¶
After installing from the SkillHub registry and reviewing the package’s SKILL.md, the skill primarily guides agents through the following work (all are documented capabilities, not runtime services):
-
Define scope boundaries: Applies to features about to go to production, new services/endpoints/background jobs/external integrations, alert-rule reviews, and PRs that involve I/O, retries, queues, or cross-service calls. It explicitly does not target live incident troubleshooting (use skills like
debugging-and-error-recovery), performance profiling, or day-of-launch checklists. -
Define “normal” before instrumentation: Requires first writing 2–4 questions an on-call engineer would ask, then selecting one or more signals—logs, metrics, or traces—for each question. The document maps “metrics for whether something is abnormal, traces for where, logs for why.”
-
Structured logging: Stable event names, JSON fields, consistent log-level semantics; mandatory correlation ID (
requestId/x-request-id); no secrets, tokens, or unmasked PII. -
Metrics (RED / USE): RED (Rate, Errors, Duration) for endpoints and external dependencies; USE for resources. Emphasizes histograms and p95/p99, and restricts label cardinality (prohibits user IDs, raw URLs, error text, etc., as labels).
-
Distributed tracing: OpenTelemetry-first (with Node SDK and auto-instrumentation examples), propagates context across asynchronous boundaries, and explains sampling strategies.
-
Alerting: Alert on user-perceivable symptoms rather than purely resource causes; every alert must be actionable, have a runbook, specify thresholds and duration, and distinguish page-level vs. ticket-level severities.
-
Acceptance checklist: The document ends with checklist items (mapping on-call questions to signals, structured logs, RED metrics, end-to-end traces, alert testing, locating injected faults in staging using telemetry alone, etc.).
The package mentions a reference file references/observability-checklist.md; in the current 1.0.0 build from SkillHub, only SKILL.md and _meta.json are present—the referenced file is not included, so rely on the main document.
Installation and Activation¶
For the official SkillHub installation instructions, see skillhub.cn/install/skillhub.md. The page keywords also instruct installing observability-and-instrumentation-sh-k1xmdy according to that document.
1. Install the SkillHub CLI (if not yet installed)¶
command -v skillhub && skillhub --version
If not installed, run (full install with default skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
CLI only:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
2. Install this skill into your agent’s skills directory¶
You must pass --dir pointing to the skills directory recognized by your client; otherwise the default ./skills/ may not be loaded.
skillhub install observability-and-instrumentation-sh-k1xmdy --dir <your-skills-directory>
Common paths (from the official install doc):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or a project-level.agents/skills/
After installation, the CLI fetches the package from https://api.skillhub.cn/api/v1/download?slug=observability-and-instrumentation-sh-k1xmdy and extracts it into the specified directory. Whether you need to restart the client to load the new skill depends on your agent; the official install page warns that incorrect directories will cause skills to be ignored.
The SkillHub skill page also provides a “send the prompt to your AI to install this skill” option, which lets an agent complete the installation per platform instructions during a conversation.
Typical Usage¶
Once enabled, in tasks such as “add telemetry to a new feature,” “review a PR with insufficient observability,” or “design alerts,” you can reference the skill name directly or have the agent read the installed SKILL.md. The following two examples reproduce ideas from the package.
Write the on-call questions first, then choose signals (pre-instrumentation template):
FEATURE: checkout payment retry
QUESTIONS ON-CALL WILL ASK:
1. What fraction of payments succeed on first attempt vs after retry?
2. When a payment fails permanently, why? (provider error? timeout? validation?)
3. Is the payment provider slower than usual?
→ Every signal below must help answer one of these.
Structured logs and correlation ID (Express middleware fragment, recommended in the document):
app.use((req, res, next) => {
req.id = req.headers['x-request-id'] ?? crypto.randomUUID();
req.log = logger.child({ requestId: req.id });
res.setHeader('x-request-id', req.id);
next();
});
OpenTelemetry bootstrap (the document requires importing before any other module):
import { NodeSDK } from '@opentelemetry/sdk-node';
import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
const sdk = new NodeSDK({
serviceName: 'checkout-service',
instrumentations: [getNodeAutoInstrumentations()],
});
sdk.start();
Following these steps, the agent should apply the RED/USE guidelines, alert-on-symptoms principle, and verification checklist from the skill to output concrete change proposals or PR review comments, rather than just adding console.log statements.
Use Cases and Notes¶
Who it’s for: Backend/platform developers who need to add observability before release, and teams that want agents to apply consistent instrumentation standards during code review or feature work.
Platform and dependencies: The skill itself does not call external APIs (requires_api_key=false). The TypeScript, Prometheus prom-client, and OpenTelemetry examples in the document should be aligned with your stack; other languages should follow the same principles (structured logs, correlation IDs, RED/USE, low-cardinality labels).
Relationship to other skills: The document references debugging-and-error-recovery, performance-optimization, shipping-and-launch, and security-and-hardening; these packages are not installed automatically and must be installed separately from SkillHub.
Metadata discrepancy: SkillHub lists the category as it-ops-security, while the package’s front-matter category is “developer tools.” Use whichever the registry you access displays.
Community data (SkillHub page, fetched 2026-10-21): Rating 100000, 1091 downloads, and an on-page install counter showing 0; local CLI actions determine actual install counts.
Wrap-up¶
ObservabilityAndInstrumentation turns observability from “add logs after the fact” into an executable agent workflow: questions first, then signals, then logs/metrics/traces/alerts, and finally acceptance via a checklist. To find IT-ops and security skills on SkillHub, use the slug @user_3c6cb52e/observability-and-instrumentation-sh-k1xmdy.
- SkillHub page: https://www.skillhub.cn/skills/user_3c6cb52e/observability-and-instrumentation-sh-k1xmdy
- API entry: https://api.skillhub.cn/user_3c6cb52e/observability-and-instrumentation-sh-k1xmdy
- Install guide: https://skillhub.cn/install/skillhub.md