Gamma ObservabilitySAFE
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
Overview
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
4f83675ca38aOBSERVED · 2026-10-08Host compatibility
What the documentation claims. We have not run a compatibility test.
| Host | Status | Notes |
|---|---|---|
| claude-code | mentioned |
What it tells the agent
The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.
--- name: gamma-observability description: 'Implement comprehensive observability for Gamma integrations. Use when setting up monitoring, logging, tracing, or building dashboards for Gamma API usage. Trigger with phrases like "gamma monitoring", "gamma logging", "gamma metrics", "gamma observability", "gamma dashboard". ' allowed-tools: Read, Write, Edit version: 1.13.0 license: MIT author: Jeremy Longshore <[email protected]> tags: - saas - gamma - api - monitoring - observability compatibility: Designed for Claude Code --- # Gamma Observability ## Output Publish a monitoring receipt with metric definitions, alert/dashboards, threshold test, owner, and review date. Logs and alerts must exclude private content, viewer identities, and tokens. ## Examples Send a fictional event through staging, confirm dashboards show only aggregate outcomes and an opaque ID, and trigger a controlled alert with no presentation content in the payload. ## Overview Implement monitoring, logging, and health checks for Gamma API integrations. Since Gamma does not expose rate limit headers or internal metrics, observability is built around your API call patterns, latency, error rates, credit consumption, and generation success rates. ## Prerequisites - Working Gamma integration (see `gamma-sdk-patterns`) - Monitoring stack (Prometheus/Grafana, Datadog, or CloudWatch) - Logging infrastructure ## Instructions ### Step 1: Instrumented Client ```typescript // src/observability/gamma-metrics.ts interface GammaMetrics { requests: number; errors: number; generations: number; completions: number; failures: number; totalCredits: number; totalLatencyMs: number; errorsByStatus: Record<number, number>; } const metrics: GammaMetrics = { requests: 0, errors: 0, generations: 0, completions: 0, failures: 0, totalCredits: 0, totalLatencyMs: 0, errorsByStatus: {}, }; export function createInstrumentedClient(apiKey: string) { const base = "https://public-api.gamma.app/v1.0"; const headers = { "X-API-KEY": apiKey, "Content-Type": "application/json" }; async function instrumentedRequest(method: string, path: string, body?: unknown) { metrics.requests++; const start = Date.now(); try { const res = await fetch(`${base}${path}`, { method, headers, body: body ? JSON.stringify(body) : undefined, }); metrics.totalLatencyMs += Date.now() - start; if (!res.ok) { metrics.errors++; metrics.errorsByStatus[res.status] = (metrics.errorsByStatus[res.status] || 0) + 1; throw new Error(`Gamma ${res.status}: ${await res.text()}`); } return res.json(); } catch (err) { if (!metrics.errorsByStatus[0]) metrics.errorsByStatus[0] = 0; metrics.totalLatencyMs += Date.now() - start; throw err; } } return { generate: async (body: any) => { metrics.generations++; return instrumentedRequest("POST", "/generations", body); }, poll: (id: string) => instrumentedRequest("GET", `/generations/${id}`), listThemes: () => instrumentedRequest("GET", "/themes"), listFolders: () => instrumentedRequest("GET", "/folders"), // Record completion metrics recordCompletion: (creditsUsed: number) => { metrics.completions++; metrics.totalCredits += creditsUsed; }, recordFailure: () => { metrics.failures++; }, }; } export function getMetrics() { return { ...metrics, avgLatencyMs: metrics.requests > 0 ? Math.round(metrics.totalLatencyMs / metrics.requests) : 0, errorRate: metrics.requests > 0 ? (metrics.errors / metrics.requests * 100).toFixed(2) + "%" : "0%", completionRate: metrics.generations > 0 ? (metrics.completions / metrics.generations * 100).toFixed(1) + "%" : "N/A", avgCreditsPerGeneration: metrics.completions > 0 ? Math.round(metrics.totalCredits / metrics.completions) : 0, }; } ``` ### Step 2: Structured Logging ```typescript // src/observability/logger.ts function logGammaEvent(event: string, data: Record<string, any>) { console.log(JSON.stringify({ timestamp: new Date().toISOString(), service: "gamma", event, ...data, // Never log: apiKey, raw content (may contain PII) })); } // Usage logGammaEvent("generation.started", { generationId: "gen_abc123", outputFormat: "presentation", contentLength: 500, }); logGammaEvent("generation.completed", { generationId: "gen_abc123", creditsUsed: 42, latencyMs: 15000, }); logGammaEvent("generation.failed", { generationId: "gen_abc123", error: "Generation failed after 180s", }); ``` ### Step 3: Health Check Endpoint ```typescript // src/api/health.ts async function checkGammaHealth() { const start = Date.now(); try { const res = await fetch("https://public-api.gamma.app/v1.0/themes", { headers: { "X-API-KEY": process.env.GAMMA_API_KEY! }, }); const latencyMs = Date.now() - start; if (!res.ok) { return { status: "unhealthy", latencyMs, error: `HTTP ${res.status}` }; } if (latencyMs > 5000) { return { status: "degraded", latencyMs, message: "High latency" }; } return { status: "healthy", latencyMs }; } catch (err: any) { return { status: "unhealthy", latencyMs: Date.now() - start, error: err.message }; } } app.get("/health/gamma", async (req, res) => { const health = await checkGammaHealth(); res.status(health.status === "unhealthy" ? 503 : 200).json(health); }); ``` ### Step 4: Prometheus Metrics Endpoint ```typescript // src/api/metrics.ts app.get("/metrics/gamma", (req, res) => { const m = getMetrics(); res.type("text/plain").send(` # HELP gamma_requests_total Total API requests # TYPE gamma_requests_total counter gamma_requests_total ${m.requests} # HELP gamma_errors_total Total API errors # TYPE gamma_errors_total counter gamma_errors_total ${m.errors} # HELP gamma_generations_total Total generations started # TYPE gam
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (0)
No findings outside the package's declared scope.
Gates applied: no_behavioural_pass.
4f83675ca38afull audit observations/trust-audit/skill/jeremylongshore__gamma-observability.json · Report an issue / request a re-scanAudit history
Every audit this skill has had.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 4f83675ca38a | SAFE | B | 89 | first audit |
Questions
What does the Gamma Observability skill do?
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
Is Gamma Observability safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Gamma Observability access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
Which assistants does Gamma Observability work with?
Its documentation mentions claude-code. That is what the text claims, not a compatibility test we ran.
How current is this page?
The grade is for one exact copy of the source (4f83675ca38a), read on 2026-10-08. The repository is watched, and a new audit runs when it changes — this is the first audit.