一键导入
observability
Structured logging, distributed tracing, and alerting for AI systems and traditional services. You can't fix what you can't see.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Structured logging, distributed tracing, and alerting for AI systems and traditional services. You can't fix what you can't see.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Automated quality gates from commit to production. Every merge to main is potentially shippable. No manual steps in the deployment path.
Document decisions, not just implementations. ADRs for architectural choices, inline docs for non-obvious code, and runbooks for operational knowledge.
Graceful degradation and meaningful error messages. Errors are first-class citizens, not afterthoughts. Every error path is designed, not discovered.
Test real system boundaries, not mocks of mocks. Integration tests verify that components work together, not that they work in isolation.
Converts unstructured meeting notes into structured, assigned, time-bounded action items. Never leave a meeting without knowing who does what by when.
Safe, behavior-preserving code transformation backed by tests. Refactor with evidence, not instinct.
| name | observability |
| description | Structured logging, distributed tracing, and alerting for AI systems and traditional services. You can't fix what you can't see. |
| category | harden |
| applies-to | ["claude","gemini","cursor","copilot","any"] |
| version | 1.0.0 |
Observability is the ability to understand the internal state of a system from its external outputs. For AI systems this is especially critical: agents make decisions that are hard to interpret without detailed telemetry.
The three pillars: Logs (what happened), Traces (how long and where), Metrics (aggregate health).
timestamp, level, service, traceId, message, context.ERROR: Something failed that requires immediate attentionWARN: Something unexpected happened but the system recoveredINFO: Normal significant events (requests received, jobs completed)DEBUG: Detailed diagnostic information (off in production by default)Verify: Logs are structured JSON. No secrets in logs. AI interactions logged.
traceId generated at the entry point.traceId is propagated through all downstream calls (HTTP headers, message queues, agent calls).Verify: You can trace a single request across all services/agents in a single view.
Verify: RED metrics are tracked for every service. AI-specific metrics tracked for AI systems.
Verify: Every alert has a runbook. On-call rotation defined.
| Excuse | Rebuttal |
|---|---|
| "We'll add monitoring after launch" | You'll be fighting fires blind. Add it before. |
| "Console.log is enough" | In production, console.log is noise. Structured logs with context are signals. |
| "The AI model handles it internally" | Model internals are a black box. You must observe the inputs and outputs. |