observability-and-instrumentation
Skill1 starsChanged 11 days agoMITView on GitHub
Instrument code so production behavior is visible: structured logging, metrics, tracing, alerting. Use when shipping features that need evidence. Do NOT use for local development.
We split this skill into the rules it gives an agent
7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 42 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
After an incident postmortem (filling observability gaps discovered during analysis)
- Distinctive: line 29
Before a public launch or major feature release (ensuring launch readiness)
- Distinctive: line 44
Every production log entry should be a structured event (JSON), not a free-text line.
- Distinctive: line 50
Never log secrets, PII, or full request bodies
- Distinctive: line 95
Every alert must have a runbook.
- Distinctive: line 100
No correlation ID — logs that cannot be linked to a specific request.
- Distinctive: line 103
No runbook — an alert with no documented response is noise.
“Common” is measured: kept by at least 6 in 10 of the 42 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Observability and Instrumentation
Make production behavior visible and diagnosable.
Complementary to shipping-and-launch. Where shipping handles deployment and rollback, observability handles the ongoing production lifecycle: knowing what your system is doing, detecting when it's wrong, and having the data to diagnose it.
Sources: Google SRE Workbook (sre.google/workbook/monitoring) — defines monitoring data types, RED method, and alert severity. OpenTelemetry Specification (opentelemetry.io/docs/specs/semconv) — semantic conventions for metrics, logs, and traces. OpenTelemetry Span Metrics Connector (opentelemetry.io/docs/collector/registry) — RED metrics from trace spans. SRE Prodcast (sre.google/prodcast) — three pillars of observability.
When to Use
- Adding logging, metrics, tracing, or alerting
- Shipping features that run in production
- Production issues reported but you can't tell what happened
- Setting up monitoring dashboards
- After an incident postmortem (filling observability gaps discovered during analysis)
- Before a public launch or major feature release (ensuring launch readiness)
Output Contract
| Artifact | Format | Location | Quality Criteria |
| Instrumented source code + monitoring config | Source code changes (any language) + config files (YAML, JSON) | Existing source tree + monitoring/ or otel/ | JSON structured logs with correlation IDs on every entry, RED metrics (rate/errors/duration) per service, USE metrics (utilization/saturation/errors) per resource, distributed tracing on every external call with OpenTelemetry span attributes, symptom-based alerts with documented runbooks, no secrets or PII in log output, monitoring configuration treated as code |
When NOT to Use
- Deployment or rollback planning (use shipping-and-launch)
- Pre-production work
Structured Logging
Every production log entry should be a structured event (JSON), not a free-text line. Structured logs are machine-parseable, searchable, and carry context (request ID, user ID, latency) that free-text cannot.
Rules:
- Log in JSON format
- Include correlation ID on every entry
- Log levels: DEBUG, INFO, WARN, ERROR, FATAL
- Never log secrets, PII, or full request bodies
See guides/STRUCTURED-LOGGING.md for format templates and correlation ID patterns.
Metrics — RED Method
For every service, instrument three metrics per the Google SRE RED method:
| Metric | What It Measures |
| Rate | Requests per second |
| Errors | Failed requests per second |
| Duration | Latency distribution (histogram) |
Metrics — USE Method
For every resource (CPU, memory, disk, network), instrument per the USE method:
| Metric | What It Measures |
| Utilization | Percent of time resource is busy |
| Saturation | Queue depth or pressure |
| Errors | Error count |
RED is for services. USE is for resources. Both are needed.
See guides/METRICS-AND-TRACING.md for metric naming conventions per OpenTelemetry semantic conventions.
Distributed Tracing
Traces follow a request across service boundaries. Every trace has a Trace ID, spans, and span context. Trace every external call (HTTP, database, queue, cache). Without tracing, you cannot diagnose latency in distributed systems.
See guides/METRICS-AND-TRACING.md for span attributes per OpenTelemetry semantic conventions.
Alerting
Symptom-based alerts, not cause-based. Alert on what users experience (latency, errors), not on internal details (CPU at 80%). Per Google SRE:
| Level | Meaning | Response Time |
| P0 | Service down or data loss | Immediately |
| P1 | Severe degradation | Within 1 hour |
| P2 | Partial degradation | Within 1 day |
| P3 | Minor issue | Next sprint |
Every alert must have a runbook. Without a documented response, the alert will be ignored.
Anti-Patterns
- Log spam — logging every line of execution instead of at boundaries.
- No correlation ID — logs that cannot be linked to a specific request.
- Dashboard-only monitoring — a dashboard without alerts means nobody watches it.
- Cause-based alerting — alerting on CPU instead of latency.
- No runbook — an alert with no documented response is noise.
Verification
- Every service has RED metrics
- Every resource has USE metrics
- Logs are structured (JSON) with correlation IDs
- External calls have distributed tracing instrumentation
- Alerts are symptom-based with documented runbooks
- No secrets or PII in log output
Other versions46 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 46
- addyosmani/agent-skills★ 112ksame name
- ollaya-dev/ollaya★ 1.4ksame name
- rizqinrr/viserys-agent★ 556same name
- songjiun10-collab/Senior-thinking-skills★ 87same name
- vinvcn/addyosmani-agent-skills-zh★ 46same name
- jmxt3/gitscape.ai★ 33same name
- jaskirat1616/grok-skills★ 22same name
- afonsoft/skills★ 14same name
- HK-hub/AgentSkills★ 6same name
- Marvellbrazil/my-agentic-skills★ 4same name
36 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use constraint-driven-development, marketing-ideas and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MrCipherSmithSkillconstraint-driven-development
Use when a project needs a persistent, measurable quality bar — starting a project without documented standards, 'set up constraints', or when coverage/perf/a11y thresholds get re-debated per-PR. Produces CONSTRAINTS.md with enforceable numbers, ratchets, and a guard against silent weakening. NOT for throwaway prototypes or a one-off CI setup.
Also in 14 projects that use this
silvainfmSkillmarketing-ideas
When the user needs marketing ideas, inspiration, or strategies for their SaaS or software product. Also use when the user asks for 'marketing ideas,' 'growth ideas,' 'how to market,' 'marketing strategies,' 'marketing tactics,' 'ways to promote,' or 'ideas to grow.' This skill provides 140 proven marketing approaches organized by category.
Also in 3 projects that use this
CloudflareSkillreceiving-code-review
Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation
Also in 4 projects that use this
OpenAISkillrequesting-code-review
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
Also in 4 projects that use this
GoogleSkillimprove-codebase-architecture
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
Also in 6 projects that use this
OpenAISkillbrainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
Also in 5 projects that use this
- +3 more from openai
In this repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/CLAUDE.mdCLAUDE.md
- adapt-skillSkill
- api-and-interface-designSkill
- architecture-analysisSkill
- audit-skillSkill
- backend-api-masterySkill
- browser-testing-with-devtoolsSkill
- ci-cd-and-automationSkill
- clarify-skillSkill
- cli-toolsSkill
- code-review-and-qualitySkill
- code-simplificationSkill
- context-engineeringSkill
- critique-skillSkill
- customize-opencodeSkill
- debugging-and-error-recoverySkill
- debugging-three-strikesSkill
- delight-skillSkill
- deprecation-and-migrationSkill
- dev-environment-auditSkill
- documentation-and-adrsSkill
- doubt-driven-developmentSkill
- engineering-fundamentalsSkill
- frontend-desktopSkill
- frontend-mobileSkill
- frontend-pwaSkill
- frontend-ui-engineeringSkill
- frontend-webSkill
- fullstack-shippingSkill
- gateSkill
- git-init-and-versioningSkill
- git-workflow-and-versioningSkill
- hard-skillSkill
- idea-refineSkill
- incremental-implementationSkill
- industrial-brutalist-uiSkill
- interview-meSkill
- minimalist-uiSkill
- multi-agent-orchestrationSkill
- optimize-skillSkill
- output-skillSkill
- performance-optimizationSkill
- planning-and-task-breakdownSkill
- polish-skillSkill
- project-health-checkSkill
- project-metricsSkill
- redesign-skillSkill
- security-and-hardeningSkill
- self-improvementSkill
- shipping-and-launchSkill
- skill-creatorSkill
- skill-improverSkill
- soft-premium-uiSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- test-driven-developmentSkill
- typeset-skillSkill
- user-onboardingSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

