A2A agent protocol interoperability, Agent Cards, and MCP bridging / Protokol agen A2A, Agent Cards, dan integrasi MCP.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for LLM observability in production — token cost tracking, hallucination rate monitoring, latency analysis, prompt/completion logging, model comparison dashboards, and AI-specific tracing (Langfuse, Helicone, Lunary, OpenTelemetry GenAI) / Panduan ahli observabilitas LLM di produksi — pelacakan biaya token, pemantauan tingkat halusinasi, analisis latensi, logging prompt/completion, dashboard perbandingan model, dan tracing khusus AI.
日本語の概要は準備中です。原文の説明を表示しています。
実行スコア 未検証
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
<a name="english"></a>
brainstorming (AI & LLM Integration matrix row) and zero-to-prod-orchestrator (Phase 7 - Monitoring & Production Telemetry) to provide observability for AI applications.data-telemetry-expert — Extend OpenTelemetry instrumentation with LLM-specific spans and metrics.llm-finops-router — Feed real-time cost data to the FinOps router for dynamic model selection.kv-cache-prefix-optimizer — Monitor cache hit rates to detect prefix cache invalidation.logging-error-tracking-expert — Integrate LLM traces with Sentry error tracking and Pino structured logs.ai-safety-governance-expert — Log and audit AI outputs for compliance with safety policies.adaptive-model-cascade — Feed model latency and error statistics to dynamic model cascading routers.session-memory-manager — Store AI session traces and token usage checkpoints.Production observability framework for LLM-powered applications. Addresses the biggest blind spot in 2026 AI applications: teams deploy AI features to production with zero visibility into token costs, hallucination rates, latency distributions, cache hit ratios, or user satisfaction scores. This skill provides the instrumentation patterns, tool integrations, and dashboard architectures to make LLM behavior fully observable.
Activate this skill when:
| Layer | Tool | Purpose |
|---|---|---|
| Tracing | Langfuse / Helicone / Lunary | End-to-end trace of LLM calls, including prompt, completion, tokens, latency, and metadata |
| Cost Tracking | Helicone / LiteLLM Proxy / Custom | Real-time token cost aggregation by model, feature, user, and tenant |
| Quality Metrics | Langfuse Scores / Custom Evals | Hallucination rate, factuality score, user satisfaction (thumbs up/down) |
| Alerting | Grafana / PagerDuty / Custom | Cost anomaly alerts, latency SLA breaches, error rate spikes |
| Logs | OpenTelemetry + Axiom/Datadog | Structured logs with prompt/completion pairs for debugging |
export interface LLMCallMetrics {
traceId: string;
spanId: string;
timestamp: string;
// Model & Provider
model: string;
provider: 'openai' | 'anthropic' | 'google' | 'custom';
// Token Economics
promptTokens: number;
completionTokens: number;
cachedTokens: number;
totalCost: number;
cacheHitRate: number;
// Latency
timeToFirstToken: number;
totalLatency: number;
tokensPerSecond: number;
// Quality Signals
userFeedback?: 'positive' | 'negative' | null;
hallucinationDetected?: boolean;
toolCallSuccess?: boolean;
retryCount: number;
// Context
feature: string;
userId?: string;
tenantId?: string;
sessionId: string;
}
import { Langfuse } from 'langfuse';
const langfuse = new Langfuse({
publicKey: process.env.LANGFUSE_PUBLIC_KEY!,
secretKey: process.env.LANGFUSE_SECRET_KEY!,
baseUrl: process.env.LANGFUSE_BASE_URL,
});
export function traceLLMCall<T>(
featureName: string,
userId: string,
fn: (trace: ReturnType<typeof langfuse.trace>) => Promise<T>
): Promise<T> {
const trace = langfuse.trace({
name: featureName,
userId,
metadata: { environment: process.env.NODE_ENV },
});
return fn(trace).finally(() => langfuse.flush());
}
// Usage in API route:
export async function handleChatRequest(req: Request) {
const { message, userId } = await req.json();
return traceLLMCall('chat-assistant', userId, async (trace) => {
const generation = trace.generation({
name: 'chat-completion',
model: 'gemini-4-pro',
input: message,
});
const response = await callLLM(message);
generation.end({
output: response.text,
usage: {
promptTokens: response.usage.promptTokens,
completionTokens: response.usage.completionTokens,
totalTokens: response.usage.totalTokens,
},
});
return new Response(JSON.stringify({ text: response.text }));
});
}
export interface CostAlert {
type: 'daily_budget_exceeded' | 'cost_per_call_spike' | 'cache_hit_drop';
severity: 'warning' | 'critical';
currentValue: number;
threshold: number;
message: string;
}
export function detectCostAnomalies(
metrics: LLMCallMetrics[],
dailyBudget: number,
expectedCacheHitRate: number
): CostAlert[] {
const alerts: CostAlert[] = [];
const dailyCost = metrics.reduce((sum, m) => sum + m.totalCost, 0);
if (dailyCost > dailyBudget) {
alerts.push({
type: 'daily_budget_exceeded',
severity: 'critical',
currentValue: dailyCost,
threshold: dailyBudget,
message: `Daily AI cost $${dailyCost.toFixed(2)} exceeds budget $${dailyBudget.toFixed(2)}`,
});
}
const avgCacheHit = metrics.reduce((sum, m) => sum + m.cacheHitRate, 0) / metrics.length;
if (avgCacheHit < expectedCacheHitRate * 0.7) {
alerts.push({
type: 'cache_hit_drop',
severity: 'warning',
currentValue: avgCacheHit,
threshold: expectedCacheHitRate,
message: `Cache hit rate dropped to ${(avgCacheHit * 100).toFixed(1)}% (expected ${(expectedCacheHitRate * 100).toFixed(1)}%)`,
});
}
return alerts;
}
┌──────────────────────────────────────────────────────┐
│ AI OPERATIONS DASHBOARD │
├──────────────┬───────────────┬────────────────────────┤
│ COST CENTER │ QUALITY │ PERFORMANCE │
├──────────────┼───────────────┼────────────────────────┤
│ Daily spend │ Hallucination │ P50/P95/P99 latency │
│ by model │ rate (24h) │ by model │
│ │ │ │
│ Cost per │ User feedback │ Tokens/second │
│ feature │ ratio (+/-) │ throughput │
│ │ │ │
│ Cache hit │ Tool call │ Time-to-first-token │
│ rate trend │ success rate │ distribution │
│ │ │ │
│ Token volume │ Retry rate │ Error rate by │
│ by tenant │ by feature │ provider │
└──────────────┴───────────────┴────────────────────────┘
| Anti-Pattern | Consequence | Remedy |
|---|---|---|
| No observability in production AI features | Zero visibility into costs, quality, or failures | Instrument every LLM call with Langfuse/Helicone |
| Logging full prompts without PII filtering | GDPR/PDPA violation from stored user data | Apply PII scrubbing before logging |
| No cost alerting | Surprise $10k+ monthly bills | Set daily budget alerts with automatic circuit breakers |
| Tracking only latency, ignoring quality | Low-latency but high-hallucination responses | Track factuality scores alongside latency |
<a name="bahasa-indonesia"></a>
brainstorming (baris "AI & LLM Integration" pada Matriks Orkestrasi) dan zero-to-prod-orchestrator (Fase 7 - Pemantauan & Telemetri Produksi) untuk menyediakan observabilitas aplikasi AI.data-telemetry-expert — Memperluas instrumentasi OpenTelemetry dengan span dan metrik khusus LLM.llm-finops-router — Mengirim data biaya real-time ke router FinOps untuk pemilihan model dinamis.kv-cache-prefix-optimizer — Memantau cache hit rate untuk mendeteksi invalidasi prefix cache.logging-error-tracking-expert — Mengintegrasikan trace LLM dengan pelacakan error Sentry dan log Pino.ai-safety-governance-expert — Mencatat dan mengaudit output AI untuk kepatuhan kebijakan keamanan.adaptive-model-cascade — Menyalurkan statistik latensi dan error model ke router cascade model.session-memory-manager — Menyimpan trace sesi AI dan checkpoint penggunaan token.Kerangka observabilitas produksi untuk aplikasi berbasis LLM. Mengatasi blind spot terbesar di aplikasi AI 2026: tim men-deploy fitur AI ke produksi tanpa visibilitas terhadap biaya token, tingkat halusinasi, distribusi latensi, rasio cache hit, atau skor kepuasan pengguna.
Aktifkan skill ini ketika:
Setiap panggilan LLM harus mencatat: traceId, model, provider, token (prompt/completion/cached), biaya total, cache hit rate, TTFT, latensi total, feedback pengguna, deteksi halusinasi, dan konteks fitur/user/tenant.
Gunakan Langfuse untuk tracing end-to-end setiap panggilan LLM, termasuk input prompt, output completion, penggunaan token, dan latensi.
Implementasikan alert otomatis untuk: anggaran harian terlampaui, lonjakan biaya per-panggilan, dan penurunan cache hit rate.
まだレビューはありません。使ってみた感想をお寄せください。
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
A2A agent protocol interoperability, Agent Cards, and MCP bridging / Protokol agen A2A, Agent Cards, dan integrasi MCP.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.
日本語の概要は準備中です。原文の説明を表示しています。
Web accessibility testing with axe-core, Playwright, and WCAG 2.2 / Pengujian aksesibilitas web axe-core, Playwright, dan WCAG 2.2.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for intelligent model cascading and routing — complexity-scored task routing from Flash/Haiku to Sonnet/Opus/Astra, dynamic escalation with quality gates, 40-60% token cost reduction while maintaining output quality / Panduan ahli untuk kaskade dan routing model cerdas — routing tugas berbasis skor kompleksitas dari Flash/Haiku ke Sonnet/Opus/Astra, eskalasi dinamis dengan gerbang kualitas, pengurangan biaya token 40-60% dengan kualitas output terjaga.
日本語の概要は準備中です。原文の説明を表示しています。
Model cascading & complexity-scored routing (Grok, Gemini, Claude) / Routing kaskade model & scoring kompleksitas (Grok, Gemini, Claude).
日本語の概要は準備中です。原文の説明を表示しています。
Affective computing, emotion AI, and multimodal sentiment analysis / Komputasi afektif, AI emosional, dan analisis sentimen multimodal.
日本語の概要は準備中です。原文の説明を表示しています。