add-observability

Add leveled structured logging to integration boundaries for later debugging.

121|2|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/AgentSystemLabs/core --skill add-observability-agentsystemlabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-observability
Source: https://github.com/AgentSystemLabs/core/tree/main/plugins/agentsystem-core/skills/add-observability
Command: npx skills add https://github.com/AgentSystemLabs/core --skill add-observability-agentsystemlabs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents “it failed but we have no proof” debugging by instrumenting integration boundaries so failures produce structured, greppable logs and typed error evidence.

Core Features & Use Cases

  • Logger discovery and safe conformity: Detects an existing project logger and conforms to its API, or offers a zero-dependency console-based fallback (optionally pino if approved).
  • Boundary-focused instrumentation: Enumerates outbound/inbound HTTP, IPC, spawn/exec, env injection, file writes, queues, hooks, MCP tool calls, and replaces silent-failure patterns with logged catches while preserving behavior.
  • Trail verification for /fix-bug: Ensures log locations and stable event names exist and verifies at least one instrumented boundary actually emits before declaring completion.
  • Use Case: After shipping a feature (or applying a targeted change), add observability to the exact dispatch/receive sites (routes, webhook handlers, queue workers, spawned processes) so future failures can be diagnosed from logs rather than speculation.

Quick Start

Ask the agent to add logging and structured observability to the integration boundaries for the feature you are working on, and verify that at least one boundary emits the expected event logs that /fix-bug can grep.

Frequently Asked Questions about add-observability

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add structured logging to integration boundaries for silent failures?

To add structured logging to integration boundaries, enumerate outbound and inbound sites like HTTP routes, webhook handlers, spawned processes, and MCP tool calls, replacing silent catches with leveled, typed log events that preserve existing swallow semantics.

What is boundary instrumentation for production observability?

Boundary instrumentation for production observability is the practice of adding leveled, structured logging to control and data transfer points where modules interact via HTTP, IPC, queues, or file writes, ensuring failures emit greppable evidence for debugging.

How do I add observability without breaking existing error swallowing semantics?

You add observability without breaking error swallowing semantics by applying guarded instrumentation that logs the caught error at the boundary while strictly preserving the original catch behavior of the silent failure block.

Does this observability approach work with my existing project logger or do I need pino?

The observability approach works with your existing project logger by discovering and conforming to its API, or it offers a zero-dependency console-based fallback, using pino optionally only if explicitly approved.

How do I verify structured logging actually emits at runtime after instrumenting boundaries?

You verify structured logging actually emits at runtime by confirming the instrumented paths and stable event names exist, then triggering the boundary to ensure at least one path produces the expected event logs before completing the task.

When do I need to instrument boundaries for spawned processes and env injection?

You need to instrument boundaries for spawned processes and env injection when control or data leaves the module silently, preventing future debugging speculation by ensuring failures in child process execution or environment variable injection produce structured log evidence.