Install
$ agentstack add skill-tomzx-agents-create-observability ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ● Network access Used
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Create Observability
Defines how a feature's production health will be monitored by identifying log statements, service metrics, distributed traces, and alerts before implementation begins.
Without this step, features ship blind: outages go undetected, root causes take hours to find, and on-call engineers lack runbooks.
Prerequisites
- Apply the shared SDLC conventions in
skills/sdlc/references/shared.md. - If no argument is provided, locate the feature directory under
.sdlc/features/whose frontmatterissuefield references$ISSUE_NUMBER. .sdlc/features/N-/specification.md(must have passed review with findings verdictapproved), or a specification document provided in context or as a file path ($1).sdlc/features/N-/telemetry.md(optional, if a telemetry plan was produced): align observability with business metrics already defined.sdlc/features/N-/requirements.md(optional, for cross-referencing NFRs like latency and availability targets)
Steps
- Read the specification, telemetry plan (if present), and requirements.
- Identify the critical paths and failure modes from the specification.
- For each critical path, determine what log entries are needed for debugging.
- Define service-level metrics (counters, histograms, gauges) that reflect system health.
- Identify where distributed traces should be emitted for cross-service flows.
- Define health checks and readiness probes for new services or endpoints.
- Specify alerts with clear conditions, severity, and runbook links.
- Determine observability infrastructure requirements (existing vs. new instrumentation).
- Write the output to
.sdlc/features/N-/observability.md.
Output Format
Use the template at skills/sdlc/templates/features/observability.md (copied to .sdlc/templates/features/observability.md by /initialize-sdlc-directory; use the project's customized copy if present). Write the result to the artifact path named in the steps above.
Logging Guidance
- Use structured logging (JSON or key-value) so logs are queryable.
- Log at the boundary of the system (incoming requests, outgoing calls to external services, state transitions).
- Include a
correlation_idortrace_idon every log entry to enable cross-service debugging. - Avoid logging sensitive data (PII, secrets, tokens).
- Log levels:
DEBUG(development only),INFO(normal operations),WARN(degraded but recoverable),ERROR(unexpected failure requiring attention).
Metrics Guidance
Common metric types for features:
- Request rate: Number of requests per second to new endpoints.
- Error rate: Percentage of requests resulting in errors (4xx/5xx).
- Latency: Histogram of request durations (p50, p95, p99).
- Queue depth: Number of items pending processing (for async features).
- Resource utilization: CPU, memory, connections consumed by the feature.
- Business metrics: Counts tied to domain events (orders placed, files uploaded).
Every metric should answer: "If this number changes unexpectedly, what action do I take?" If no action exists, the metric is noise.
Alert Guidance
Good alerts are:
- Actionable: Every alert triggers a human response. If nobody acts, remove the alert.
- Specific: The condition clearly identifies what is wrong, not just "something is slow."
- Timely: Fires fast enough to mitigate impact, but with a
forduration to avoid flapping. - Sized correctly: Critical alerts wake someone up; Warning alerts appear in dashboards; Info alerts are logged.
Every alert must have a runbook: a short list of steps to diagnose and resolve.
Tracing Guidance
Add spans at service boundaries and for expensive operations (DB queries, external API calls, large computations). Record attributes that help narrow down the issue: user ID, request ID, operation type, resource identifier.
Outcome
If $OUTCOME_YAML is set, emit verdict: approved there per skills/sdlc/references/shared.md, If the artifact could not be produced, omit the file.
Example Usage
Scenario 1: REST API endpoint Specification defines POST /orders. Metrics: orders_request_total (counter), orders_request_duration_seconds (histogram), orders_error_total (counter by status code). Logging: INFO on order created (with orderid, userid), WARN on validation failure, ERROR on DB write failure. Alert: fire Critical if error rate > 5% for 5 minutes. Runbook: check DB connectivity, check upstream service. SLO: 99.9% availability, p99 latency < 500ms.
Scenario 2: Background job Specification defines a nightly data export. Metrics: export_jobs_total (counter), export_duration_seconds (histogram), export_records_processed (counter). Logging: INFO on job start/complete (with jobid, recordcount), WARN on partial failure, ERROR on full failure. Tracing: root span for the job, child spans for each batch. Alert: fire Warning if job duration exceeds 2x normal, Critical if job fails 2 consecutive runs.
Scenario 3: WebSocket connection Specification defines a real-time notification feed. Metrics: ws_connections_active (gauge), ws_messages_sent_total (counter), ws_connection_duration_seconds (histogram). Logging: INFO on connect/disconnect (with user_id), WARN on reconnect storm, ERROR on message delivery failure. Health check: readiness probe that verifies the WebSocket server can accept connections.
Completion Checklist
Before handing off to review, confirm:
- [ ] Each alert is actionable, severity-tagged, and links a runbook
- [ ] SLO/error-budget targets referenced from requirements where applicable
Self-check the draft against the [review-observability checklist](../review-observability/SKILL.md) and fix what you can, so review finds less to flag.
Next Step
Run /review-observability to audit the observability plan for completeness, actionability, and consistency before moving on. Once approved, continue with /create-plan.
Useful Commands Reference
No CLI commands required. This skill operates on document content provided in context.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: tomzx
- Source: tomzx/agents
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.