agentleFS
jaydubya818jaydubya818/MissionControl/skills/observability-and-instrumentation/SKILL.md

observability-and-instrumentation

Skill1 starsChanged 9 months agoMITView on GitHub

Add or review logs, metrics, traces, and actionable alerts.

61 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use accessibility-engineering, constraint-driven-development and 10 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.
  • steven123397Skill

    accessibility-engineering

    Audits existing interfaces for WCAG 2.2 AA conformance and remediates the violations found. Use when auditing a page or component for accessibility, running axe-core or pa11y, triaging a11y violations, or checking screen reader and contrast issues before shipping.

    Also in 4 projects that use this

  • MrCipherSmithSkill

    constraint-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 23 projects that use this

  • LLl0k0laDSkill

    using-agent-skills

    Use when starting a session or when you need to discover which skill applies to the current task. This is the meta-skill that governs how all other skills are discovered and invoked.

    Also in 39 projects that use this

  • LLl0k0laDSkill

    shipping-and-launch

    Use when preparing to deploy to production. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.

    Also in 49 projects that use this

  • seikaikyoSkill

    doubt-driven-development

    對非平凡決策啟動新鮮 context 對抗審查(找碴不背書),在修正還便宜的時候抓出錯誤方向。適用:高風險改動(production、資安敏感邏輯、不可逆操作)、不熟的程式碼、要宣稱「這樣是安全的 / 可行的」之前。機械性操作與一行修改不適用。

    Also in 45 projects that use this

  • HK-hubSkill

    source-driven-development

    Grounds every implementation decision in official documentation. Use when you want authoritative, source-cited code free from outdated patterns. Use when building with any framework or library where correctness matters.

    Also in 35 projects that use this

  • +6 more from LLl0k0laD

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 57 edited versions we read keep these.

  • 4

    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
  1. Distinctive:

    Start with the operational question: what would an on-call engineer need to distinguish success, failure, delay, and unknown outcomes?

    line 17
  2. Distinctive:

    Use metrics for rate, errors, and duration.

    line 47
  3. Distinctive:

    Check actual exporter series growth under representative inputs.

    line 52
  4. Distinctive:

    Check that redaction works and dimensions stay bounded.

    line 72

“Common” is measured: kept by at least 6 in 10 of the 57 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Observability and instrumentation

Start with the operational question: what would an on-call engineer need to distinguish success, failure, delay, and unknown outcomes? Add signals for those questions using the existing telemetry stack. Do not install a new backend or instrument every function by default.

Choose signals deliberately

NeedSignal
Explain one operationStructured event with stable fields and bounded context.
Detect aggregate regressionsCounter or histogram with bounded label sets.
Locate delay across boundariesTrace spans with propagated context.
Reconstruct a sensitive business actionAccess-controlled audit record with the required retention.

Operational logs are not a financial ledger or a substitute for durable audit records. Sampling and dropped exports can make them incomplete.

Instrument the boundaries

  1. Give requests and background runs correlation identifiers. Validate and bound untrusted incoming identifiers or generate internal ones. Preserve context across asynchronous jobs and retries without treating caller-supplied context as authority or proof of identity.
  2. Record the actual entry point, operation, outcome, duration, and classified error where useful. Distinguish scheduler, manual invocation, and replay. Name attempts separately from the overall business operation so retries do not inflate success totals or hide duplicate effects.
  3. Allowlist fields. Redact credentials, cookies, tokens, payment details, and unnecessary personal data at emission and export. Do not log entire bodies, raw query strings, or exception objects without inspecting their content.
  4. Use metrics for rate, errors, and duration; add utilization or backlog for constrained resources. Use histograms for latency distributions and inspect tail behavior. Counts and averages may supplement distributions.
  5. Bound label cardinality: route templates, status classes, and known providers are suitable; request IDs, user IDs, raw URLs, and exception text are not. Check actual exporter series growth under representative inputs.
  6. Trace the expensive or failure-prone boundaries. Use the installed SDK's current initialization and context-propagation requirements. Choose sampling and retention with cost and diagnostic coverage in mind; a sampled-out trace does not prove an operation never ran.

Alert on actionable symptoms

Tie each alert to user impact or an explicit service objective, with an owner, time window, minimum traffic where relevant, and a runbook. Include data freshness or missing-telemetry signals so a broken exporter does not appear healthy. Avoid inventing a universal failure percentage or observation window.

Draft alert rules locally when asked. Sending a test page, enabling monitoring, changing retention, or creating recurring work requires the task's authority.

Verify the telemetry

Exercise success, failure, retry, and timeout paths in an authorized test environment. Read back emitted events, metric changes, and connected spans. Check that redaction works and dimensions stay bounded. Simulate exporter loss without letting diagnostics block the product indefinitely; durable audit requirements may need a separate, fail-closed policy.

Show the operational questions and evidence that the signals answer them. Report instrumentation that exists but has not been observed in its collector.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.