Provides a framework for instrumenting live services with logs, metrics, and alerting.
Install
mkdir -p .claude/skills/ops && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12486" && unzip -o skill.zip -d .claude/skills/ops && rm skill.zipInstalls to .claude/skills/ops
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Post-deploy observability for production services — structured logging, RED metrics + Prometheus, Grafana dashboards, SLO-based alerting. Use when setting up monitoring or instrumenting a live service. Trigger on "add logging", "metrics", "dashboard", "alerting", "observability", "monitor this service".Key capabilities
- →Auto-detect observability context from project files
- →Provide guidance on structured logging setup
- →Offer patterns for RED metrics and Prometheus instrumentation
- →Guide configuration of Grafana dashboards
- →Explain SLO-based alerting policies
How it works
The skill determines the observability context from project files or explicit user input, then provides progressive guidance on structured logging, RED metrics, dashboards, and alerting.
Inputs & outputs
When to use ops
- →Setup monitoring
- →Add service logging
- →Configure alerts
About this skill
Ops — Post-Deploy Observability
Unified observability guidance for production services. Auto-detects context from project files or accepts explicit mode.
Usage
/ops # Auto-detect from project signals
/ops logging # Explicit: structured logging setup
/ops metrics # Explicit: RED metrics + Prometheus instrumentation
/ops dashboard # Explicit: Grafana/DataDog/CloudWatch dashboards
/ops alerting # Explicit: SLO-based alerting policy
/ops overview # Cross-mode sequencing guide
Workflow
Step 1: Determine Context
Parse $ARGUMENTS for explicit mode. If no arguments, run context detector:
DETECTED=$(bash "$HOME/.claude/skills/ops/lib/context-detector.sh")
Step 2: Show Relevant Guidance
Based on detected or explicit mode, use progressive disclosure:
Level 1 — Summary (default, ~20 lines): Read and present the summary template for the detected mode. This is the entry point.
Level 2 — Patterns (on request, ~60-80 lines): When the user asks for more detail, "show me patterns", code examples, or "Don't/Do/Best" style guidance, read the patterns template.
Level 3 — Full SOP (future): Not yet available. If the user asks for a complete reference, offer to dive into patterns and answer specific questions.
Step 3: Handle Multiple Contexts
If context-detector returns multiple modes (e.g., "logging,metrics"):
- Show summary for each detected mode
- Ask: "Which area do you want to dive deeper into?"
Step 4: No Context Detected
If detection returns "none" and no explicit mode was given:
- Read and show
templates/overview.md - Let the user choose which mode to start with
Template Locations
Summary Templates (~20 lines each — L1 default)
| Mode | File |
|---|---|
logging | ~/.claude/skills/ops/templates/logging/summary.md |
metrics | ~/.claude/skills/ops/templates/metrics/summary.md |
dashboard | ~/.claude/skills/ops/templates/dashboard/summary.md |
alerting | ~/.claude/skills/ops/templates/alerting/summary.md |
Patterns Templates (~60-80 lines each — L2 on request)
| Mode | File |
|---|---|
logging | ~/.claude/skills/ops/templates/logging/patterns.md |
metrics | ~/.claude/skills/ops/templates/metrics/patterns.md |
dashboard | ~/.claude/skills/ops/templates/dashboard/patterns.md |
alerting | ~/.claude/skills/ops/templates/alerting/patterns.md |
Reference Templates
| Mode | File |
|---|---|
overview | ~/.claude/skills/ops/templates/overview.md |
Progressive Disclosure Rules
- Always start at L1 — never dump 300+ lines unprompted
- Read templates on demand — use the Read tool to load templates, don't memorize content
- User drives depth — "show patterns", "show me the code", "how do I set up X" triggers L2
- Cross-reference, don't duplicate — if user asks about PII scrubbing in logging, cite
/security operationsrather than reproducing the PIIScrubber code here
Relationship to Other Skills
/security operations: Covers secrets management, deployment security, incident response./opscovers observability implementation. They complement each other — run both for a new service./infrastructure-setup: Sets up the base stack (Docker, DB, API layer)./opsadds the observability layer on top./implementation: After implementing a feature, consider/ops metricsto add domain-specific counters.
Examples
Auto-detected metrics context (prometheus.yml found):
→ context-detector returns "metrics" → Read and show
templates/metrics/summary.md→ User: "show me how to add custom counters" → Read and showtemplates/metrics/patterns.md
Explicit logging request:
User:
/ops logging→ Read and showtemplates/logging/summary.md
No context, overview:
User:
/ops→ context-detector returns "none" → Read and showtemplates/overview.md
Cross-reference on PII:
User asks about PII in logging patterns → Cite
/security operationsfor the PIIScrubber implementation → Do NOT reproduce the full class here
When not to use it
- →When the user asks for a complete reference without specific questions
- →When the context detector returns 'none' and no explicit mode is given
- →When the user asks about PII scrubbing in logging patterns without citing `/security operations`
Limitations
- →Always starts at Level 1 summary
- →Reads templates on demand
- →User drives depth of information
How it compares
This skill offers structured, context-aware guidance on observability setup with progressive disclosure, which is more targeted and less overwhelming than a full manual reference.
Compared to similar skills
ops side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| ops (this skill) | 0 | 2mo | Review | Intermediate |
| observability-engineer | 12 | 4mo | No flags | Advanced |
| devops-troubleshooter | 1 | 4mo | No flags | Advanced |
| observability-monitoring-monitor-setup | 1 | 4mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by matteocervelli
View all by matteocervelli →You might also like
observability-engineer
sickn33
Build production-ready monitoring, logging, and tracing systems. Implements comprehensive observability strategies, SLI/SLO management, and incident response workflows. Use PROACTIVELY for monitoring infrastructure, performance optimization, or production reliability.
devops-troubleshooter
sickn33
Expert DevOps troubleshooter specializing in rapid incident response, advanced debugging, and modern observability. Masters log analysis, distributed tracing, Kubernetes debugging, performance optimization, and root cause analysis. Handles production outages, system reliability, and preventive monitoring. Use PROACTIVELY for debugging, incident response, or system troubleshooting.
observability-monitoring-monitor-setup
sickn33
You are a monitoring and observability expert specializing in implementing comprehensive monitoring solutions. Set up metrics collection, distributed tracing, log aggregation, and create insightful da
Logging and Monitoring for Agentic Workflows
Hack23
Comprehensive observability patterns for GitHub Agentic Workflows including structured logging, metrics collection, alerting strategies, debugging techniques, and production monitoring best practices for autonomous agent systems.
observability-setup
spideynolove
Set up metrics, logs, and traces for a service. Use when a mid-level developer needs basic observability coverage.
service-mesh-observability
wshobson
Implement comprehensive observability for service meshes including distributed tracing, metrics, and visualization. Use when setting up mesh monitoring, debugging latency issues, or implementing SLOs for service communication.