[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74F60BMMFG91E1P8EH5FAE7":3,"skill-same:01M74F60BMMFG91E1P8EH5FAE7":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M74F60BMMFG91E1P8EH5FAE7","observability-instrument",null,"Add OpenTelemetry spans with user_id and tenant_id in baggage to any new code path that handles requests, runs agents, or performs billable operations. Use whenever creating a new API endpoint, background job, agent invocation, or external API call. Inline PII redaction at the span exporter is mandatory before any production deploy.","MILTONADINA\u002FDevOPs","MILTONADINA","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F106546372?v=4","01M74F3R2PP4Z04DQMMBHSQAT1","Milton Adina","01M74F3R3CHTKPXJV4RP7RR3W8",0,"MIT","https:\u002F\u002Fgithub.com\u002FMILTONADINA\u002FDevOPs\u002Fblob\u002Fmain\u002Fskills\u002Funiversal\u002Fdevops\u002Fobservability-instrument\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: observability-instrument\ndescription: Add OpenTelemetry spans with user_id and tenant_id in baggage to any new code path that handles requests, runs agents, or performs billable operations. Use whenever creating a new API endpoint, background job, agent invocation, or external API call. Inline PII redaction at the span exporter is mandatory before any production deploy.\n---\n\n# Observability Instrument\n\n> OpenTelemetry, OpenInference semantic conventions, baggage for per-tenant\n> attribution, PII redaction inline. Production-grade from day one.\n\n**Tradeoff:** Every new code path needs instrumentation. Worth it: full tracing\ncatches more agent quality regressions before users see them.\n\n---\n\n## Why baggage matters\n\nBaggage propagates `user_id` and `tenant_id` through the trace context. Every\nspan automatically inherits them through the call tree. Teams that try to\npropagate identity through ad-hoc argument passing always lose it at the first\ntool boundary.\n\nDecision: add baggage in week one. Costs two days. Buys per-tenant cost\nattribution forever.\n\n---\n\n## Setup (TypeScript \u002F Node)\n\n```typescript\n\u002F\u002F otel-setup.ts\nimport { NodeSDK } from '@opentelemetry\u002Fsdk-node';\nimport { OTLPTraceExporter } from '@opentelemetry\u002Fexporter-trace-otlp-http';\nimport { getNodeAutoInstrumentations } from '@opentelemetry\u002Fauto-instrumentations-node';\nimport { propagation, ROOT_CONTEXT } from '@opentelemetry\u002Fapi';\nimport { W3CBaggagePropagator, W3CTraceContextPropagator, CompositePropagator } from '@opentelemetry\u002Fcore';\nimport { resourceFromAttributes } from '@opentelemetry\u002Fresources';\nimport { SemanticResourceAttributes } from '@opentelemetry\u002Fsemantic-conventions';\nimport { piiRedactingExporter } from '.\u002Fpii-redaction.js';\n\npropagation.setGlobalPropagator(new CompositePropagator({\n  propagators: [new W3CTraceContextPropagator(), new W3CBaggagePropagator()],\n}));\n\nconst sdk = new NodeSDK({\n  resource: resourceFromAttributes({\n    [SemanticResourceAttributes.SERVICE_NAME]: 'auth-service',\n    [SemanticResourceAttributes.SERVICE_VERSION]: process.env.GIT_SHA,\n    [SemanticResourceAttributes.DEPLOYMENT_ENVIRONMENT]: process.env.ENV,\n  }),\n  traceExporter: piiRedactingExporter(new OTLPTraceExporter({\n    url: process.env.OTEL_EXPORTER_OTLP_ENDPOINT,\n  })),\n  instrumentations: [getNodeAutoInstrumentations()],\n});\nsdk.start();\n```\n\n---\n\n## Adding baggage\n\nAt the request entry point:\n\n```typescript\nimport { context, propagation } from '@opentelemetry\u002Fapi';\n\napp.use(async (req, res, next) => {\n  const baggage = propagation.createBaggage({\n    'user.id': { value: req.user?.id ?? 'anonymous' },\n    'tenant.id': { value: req.tenant?.id ?? 'unknown' },\n    'session.id': { value: req.session?.id ?? 'none' },\n  });\n  const ctx = propagation.setBaggage(context.active(), baggage);\n  context.with(ctx, () => next());\n});\n```\n\nFrom this point on, every child span (HTTP call, DB query, agent invocation,\nexternal API) inherits user.id and tenant.id automatically.\n\n---\n\n## OpenInference for LLM calls\n\nUse the OpenInference semantic conventions so you can swap observability\nbackends (Langfuse, Laminar, Arize Phoenix) without re-instrumenting:\n\n```typescript\nimport { OpenAI } from 'openai';\nimport { OpenAIInstrumentation } from '@arizeai\u002Fopeninference-instrumentation-openai';\n\u002F\u002F or @arizeai\u002Fopeninference-instrumentation-anthropic for Anthropic\n\nregisterInstrumentations({ instrumentations: [new OpenAIInstrumentation()] });\n```\n\nThis adds spans like:\n- `llm.provider`: anthropic\n- `llm.model`: claude-sonnet-4-6\n- `llm.input_messages.0.role`: user\n- `llm.input_messages.0.content`: (redacted)\n- `llm.token_count.prompt`: 1234\n- `llm.token_count.completion`: 567\n- `llm.cost_usd`: 0.0122\n\n---\n\n## PII redaction (mandatory)\n\nPII never reaches the observability backend. Implement an inline-redacting\nexporter at `observability\u002Fpii-redaction.ts`:\n\n```typescript\nexport function piiRedactingExporter(baseExporter) {\n  return {\n    export(spans, cb) {\n      const redacted = spans.map(span => ({\n        ...span,\n        attributes: redactObject(span.attributes),\n        events: span.events?.map(e => ({ ...e, attributes: redactObject(e.attributes) })),\n      }));\n      return baseExporter.export(redacted, cb);\n    },\n    shutdown() { return baseExporter.shutdown(); },\n  };\n}\n\nfunction redactObject(obj) {\n  \u002F\u002F Use a library: presidio-analyzer (Python), node-deidentify, or roll your own\n  \u002F\u002F with regex for: emails, phone numbers, SSN, CC, JWT, OAuth tokens\n  const out = {};\n  for (const [k, v] of Object.entries(obj ?? {})) {\n    out[k] = typeof v === 'string' ? redactString(v) : v;\n  }\n  return out;\n}\n```\n\n---\n\n## Backends supported\n\n| Backend | Best for | Self-hosted? |\n|---------|----------|--------------|\n| Langfuse | Prompt-centric, evals, datasets | yes (Postgres+ClickHouse) |\n| Laminar | Long-running agents, replay, transcript view | yes |\n| Arize Phoenix | Evaluation-heavy teams | yes |\n| LangSmith | LangChain\u002FLangGraph stacks | cloud only |\n| Honeycomb | General APM with LLM extensions | cloud |\n\nAll four open-source options accept OTel via OTLP — set the\n`OTEL_EXPORTER_OTLP_ENDPOINT` env var.\n\n---\n\n**This skill is working when:** every production span has user.id and tenant.id\nin baggage, and every LLM call has token_count + cost_usd attributes. The intended\nrecord is `governance\u002Ftelemetry\u002Finstrumentation-coverage.jsonl`. Nothing writes it yet, so check by hand.\n","# Observability Instrument\n\n> OpenTelemetry, OpenInference semantic conventions, baggage for per-tenant\n> attribution, PII redaction inline. Production-grade from day one.\n\n**Tradeoff:** Every new code path needs instrumentation. Worth it: full tracing\ncatches more agent quality regressions before users see them.\n\n---\n\n## Why baggage matters\n\nBaggage propagates `user_id` and `tenant_id` through the trace context. Every\nspan automatically inherits them through the call tree. Teams that try to\npropagate identity through ad-hoc argument passing always lose it at the first\ntool boundary.\n\nDecision: add baggage in week one. Costs two days. Buys per-tenant cost\nattribution forever.\n\n---\n\n## Setup (TypeScript \u002F Node)\n\n```typescript\n\u002F\u002F otel-setup.ts\nimport { NodeSDK } from '@opentelemetry\u002Fsdk-node';\nimport { OTLPTraceExporter } from '@opentelemetry\u002Fexporter-trace-otlp-http';\nimport { getNodeAutoInstrumentations } from '@opentelemetry\u002Fauto-instrumentations-node';\nimport { propagation, ROOT_CONTEXT } from '@opentelemetry\u002Fapi';\nimport { W3CBaggagePropagator, W3CTraceContextPropagator, CompositePropagator } from '@opentelemetry\u002Fcore';\nimport { resourceFromAttributes } from '@opentelemetry\u002Fresources';\nimport { SemanticResourceAttributes } from '@opentelemetry\u002Fsemantic-conventions';\nimport { piiRedactingExporter } from '.\u002Fpii-redaction.js';\n\npropagation.setGlobalPropagator(new CompositePropagator({\n  propagators: [new W3CTraceContextPropagator(), new W3CBaggagePropagator()],\n}));\n\nconst sdk = new NodeSDK({\n  resource: resourceFromAttributes({\n    [SemanticResourceAttributes.SERVICE_NAME]: 'auth-service',\n    [SemanticResourceAttributes.SERVICE_VERSION]: process.env.GIT_SHA,\n    [SemanticResourceAttributes.DEPLOYMENT_ENVIRONMENT]: process.env.ENV,\n  }),\n  traceExporter: piiRedactingExporter(new OTLPTraceExporter({\n    url: process.env.OTEL_EXPORTER_OTLP_ENDPOINT,\n  })),\n  instrumentations: [getNodeAutoInstrumentations()],\n});\nsdk.start();\n```\n\n---\n\n## Adding baggage\n\nAt the request entry point:\n\n```typescript\nimport { context, propagation } from '@opentelemetry\u002Fapi';\n\napp.use(async (req, res, next) => {\n  const baggage = propagation.createBaggage({\n    'user.id': { value: req.user?.id ?? 'anonymous' },\n    'tenant.id': { value: req.tenant?.id ?? 'unknown' },\n    'session.id': { value: req.session?.id ?? 'none' },\n  });\n  const ctx = propagation.setBaggage(context.active(), baggage);\n  context.with(ctx, () => next());\n});\n```\n\nFrom this point on, every child span (HTTP call, DB query, agent invocation,\nexternal API) inherits user.id and tenant.id automatically.\n\n---\n\n## OpenInference for LLM calls\n\nUse the OpenInference semantic conventions so you can swap observability\nbackends (Langfuse, Laminar, Arize Phoenix) without re-instrumenting:\n\n```typescript\nimport { OpenAI } from 'openai';\nimport { OpenAIInstrumentation } from '@arizeai\u002Fopeninference-instrumentation-openai';\n\u002F\u002F or @arizeai\u002Fopeninference-instrumentation-anthropic for Anthropic\n\nregisterInstrumentations({ instrumentations: [new OpenAIInstrumentation()] });\n```\n\nThis adds spans like:\n- `llm.provider`: anthropic\n- `llm.model`: claude-sonnet-4-6\n- `llm.input_messages.0.role`: user\n- `llm.input_messages.0.content`: (redacted)\n- `llm.token_count.prompt`: 1234\n- `llm.token_count.completion`: 567\n- `llm.cost_usd`: 0.0122\n\n---\n\n## PII redaction (mandatory)\n\nPII never reaches the observability backend. Implement an inline-redacting\nexporter at `observability\u002Fpii-redaction.ts`:\n\n```typescript\nexport function piiRedactingExporter(baseExporter) {\n  return {\n    export(spans, cb) {\n      const redacted = spans.map(span => ({\n        ...span,\n        attributes: redactObject(span.attributes),\n        events: span.events?.map(e => ({ ...e, attributes: redactObject(e.attributes) })),\n      }));\n      return baseExporter.export(redacted, cb);\n    },\n    shutdown() { return baseExporter.shutdown(); },\n  };\n}\n\nfunction redactObject(obj) {\n  \u002F\u002F Use a library: presidio-analyzer (Python), node-deidentify, or roll your own\n  \u002F\u002F with regex for: emails, phone numbers, SSN, CC, JWT, OAuth tokens\n  const out = {};\n  for (const [k, v] of Object.entries(obj ?? {})) {\n    out[k] = typeof v === 'string' ? redactString(v) : v;\n  }\n  return out;\n}\n```\n\n---\n\n## Backends supported\n\n| Backend | Best for | Self-hosted? |\n|---------|----------|--------------|\n| Langfuse | Prompt-centric, evals, datasets | yes (Postgres+ClickHouse) |\n| Laminar | Long-running agents, replay, transcript view | yes |\n| Arize Phoenix | Evaluation-heavy teams | yes |\n| LangSmith | LangChain\u002FLangGraph stacks | cloud only |\n| Honeycomb | General APM with LLM extensions | cloud |\n\nAll four open-source options accept OTel via OTLP — set the\n`OTEL_EXPORTER_OTLP_ENDPOINT` env var.\n\n---\n\n**This skill is working when:** every production span has user.id and tenant.id\nin baggage, and every LLM call has token_count + cost_usd attributes. The intended\nrecord is `governance\u002Ftelemetry\u002Finstrumentation-coverage.jsonl`. Nothing writes it yet, so check by hand.\n",{"name":5,"description":7},"main","5a590e92c8f62b54c96a6928215ac2145b671e03","skills\u002Funiversal\u002Fdevops\u002Fobservability-instrument","https:\u002F\u002Fgithub.com\u002FMILTONADINA\u002FDevOPs","https:\u002F\u002Fgithub.com\u002FMILTONADINA","https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fmiltonadina","CS\u002FCybersecurity SWE & former Epidemiologist. Building secure, test-driven full-stack & mobile apps (TS\u002FReact\u002FNode, Java\u002FSpring, Flutter).","2026-11-14 20:03:36",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add MILTONADINA\u002FDevOPs --skill observability-instrument",{"tool":38,"command":39},"bunx","bunx skills add MILTONADINA\u002FDevOPs --skill observability-instrument",{"tool":41,"command":42},"pnpm","pnpm dlx skills add MILTONADINA\u002FDevOPs --skill observability-instrument","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMILTONADINA\u002FDevOPs\u002Fblob\u002Fmain\u002Fskills\u002Funiversal\u002Fdevops\u002Fobservability-instrument\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"SKILL.md.bundle","OTHER","其他",9559,"https:\u002F\u002Fgithub.com\u002FMILTONADINA\u002FDevOPs\u002Fblob\u002Fmain\u002Fskills\u002Funiversal\u002Fdevops\u002Fobservability-instrument\u002FSKILL.md.bundle",[53,60,67,74,79,86],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M74F7F3HN6J7CSFHBVQAE9S5","karpathy-guidelines","Behavioral guidelines that reduce common LLM coding mistakes. Apply whenever writing, modifying, or reviewing code. Don't assume requirements, don't overcomplicate, don't refactor unrelated code, and define success criteria before implementing. Use this skill on every non-trivial coding task to avoid bloat, silent assumptions, and completion-bias.","https:\u002F\u002Fgithub.com\u002FMILTONADINA\u002FDevOPs\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fsecurity\u002Fmodified-skill\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M74F7D60N9FRWWWHCGZMMB41","unsigned-missing-sig-fixture","Test fixture (F.09) — SKILL.md without an accompanying .sig file. Default install rejects with exit 2; --allow-unsigned --rationale=\"...\" proceeds.","https:\u002F\u002Fgithub.com\u002FMILTONADINA\u002FDevOPs\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Finstall\u002Fsource-skills\u002Funsigned-missing-sig\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M74F7BKGX67Q606QPKZV7TQV","unsigned-mismatched-sig-fixture","Test fixture (F.09) — SKILL.md whose accompanying .sig signs different content. NFR-F3 hash check catches this even with --allow-unsigned.","https:\u002F\u002Fgithub.com\u002FMILTONADINA\u002FDevOPs\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Finstall\u002Fsource-skills\u002Funsigned-mismatched-sig\u002FSKILL.md",[],[],{"skillNo":75,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M74F793BYMX98EQC5XP4CDZK","https:\u002F\u002Fgithub.com\u002FMILTONADINA\u002FDevOPs\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Finstall\u002Fsource-skills\u002Fsigned\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M74F7481EBD7G5471ZC4S9YB","webhook-idempotency","Defend against double-processing of webhook events across every provider (Stripe, GitHub, Slack, Twilio, SendGrid). Idempotency-key pattern + replay-window enforcement + dedupe-storage strategy. Triggers on any webhook handler authoring (route matching \u002Fwebhook(s)?\u002F, Stripe-Signature \u002F X-Hub-Signature-256 header references). Defense against OWASP ASI02 (Tool Misuse) -- a replayed webhook that re-triggers a destructive tool is the canonical control-flow-level replay attack. Universal across providers; stack-specific signature verification lives in stack-specific skills.","https:\u002F\u002Fgithub.com\u002FMILTONADINA\u002FDevOPs\u002Fblob\u002Fmain\u002Fskills\u002Funiversal\u002Fsecurity\u002Fwebhook-idempotency\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M74F71Q6JKRFJ66G5T98KE8H","semgrep-scan","Run Semgrep static analysis to detect insecure code patterns - SQL injection, XSS, path traversal, weak crypto, broken auth, OWASP Top 10 issues. Use on every file change touching security-sensitive code and as part of the tiered security gate. Complements gitleaks (which catches secrets) by catching insecure logic.","https:\u002F\u002Fgithub.com\u002FMILTONADINA\u002FDevOPs\u002Fblob\u002Fmain\u002Fskills\u002Funiversal\u002Fsecurity\u002Fsemgrep-scan\u002FSKILL.md",[],[]]