AGENT SKILL

replit-observability

Set up comprehensive observability for Replit integrations with metrics, traces, and alerts. Use when implementing monitoring for Replit operations, setting up dashboards, or configuring alerting for Replit integration health. Trigger with phrases like "replit monitoring", "replit metrics", "replit observability", "monitor replit", "replit alerts", "replit tracing".

License 许可
MIT
最近更新
2026-05-26
Stars
★ 0
Forks
0

01 前言 Front Matter

name
replit-observability
author
Jeremy Longshore <jeremy@intentsolutions.io>
license
MIT
version
1.0.0
description
Set up comprehensive observability for Replit integrations with metrics, traces, and alerts. Use when implementing monitoring for Replit operations, setting up dashboards, or configuring alerting for Replit integration health. Trigger with phrases like "replit monitoring", "replit metrics", "replit observability", "monitor replit", "replit alerts", "replit tracing".
allowed-tools
Read, Write, Edit
compatible-with
claude-code, codex, openclaw

03 SKILL.md 正文

Replit Observability

Overview

Monitor Replit deployment health, development environment uptime, and AI feature usage across your team.

Prerequisites

  • Replit Teams for Business or Enterprise plan
  • Deployments active on Replit
  • External monitoring for deployment health checks

Instructions

Step 1: Monitor Deployment Health

set -euo pipefail
# Check deployment status via Replit API
curl "https://replit.com/api/v1/teams/TEAM_ID/deployments" \
  -H "Authorization: Bearer $REPLIT_API_KEY" | \
  jq '.[] | {repl_name, deployment_url, status, last_deployed, uptime_pct}'

Step 2: Set Up External Health Checks

// replit-health-monitor.ts - Ping deployed apps for uptime
async function checkDeploymentHealth(deploymentUrl: string) {
  const start = performance.now();
  try {
    const res = await fetch(`${deploymentUrl}/health`, { signal: AbortSignal.timeout(5000) });  # 5000: 5 seconds in ms
    const latency = performance.now() - start;
    emitHistogram('replit_deployment_latency_ms', latency, { url: deploymentUrl });
    emitGauge('replit_deployment_up', res.ok ? 1 : 0, { url: deploymentUrl });
  } catch {
    emitGauge('replit_deployment_up', 0, { url: deploymentUrl });
  }
}

// Check every 60 seconds
const deployments = ['https://app1.repl.co', 'https://app2.repl.co'];
setInterval(() => deployments.forEach(checkDeploymentHealth), 60_000);

Step 3: Track Resource Consumption

set -euo pipefail
# Monitor compute usage across team Repls
curl "https://replit.com/api/v1/teams/TEAM_ID/usage" \
  -H "Authorization: Bearer $REPLIT_API_KEY" | \
  jq '.usage[] | {repl_name, cpu_hours, memory_gb_hours, egress_gb, cost_usd}'

Step 4: Alert on Issues

groups:
  - name: replit
    rules:
      - alert: ReplitDeploymentDown
        expr: replit_deployment_up == 0
        for: 5m
        annotations: { summary: "Replit deployment {{ $labels.url }} is down" }
      - alert: ReplitColdStartSlow
        expr: histogram_quantile(0.95, rate(replit_deployment_latency_ms_bucket[10m])) > 10000  # 10000: 10 seconds in ms
        annotations: { summary: "Replit deployment cold start P95 exceeds 10 seconds" }
      - alert: ReplitHighComputeCost
        expr: increase(replit_compute_cost_usd[24h]) > 50
        annotations: { summary: "Replit daily compute cost exceeds $50" }

Step 5: Dashboard Panels

Track: deployment uptime by app, response latency (cold start detection), CPU/memory usage by Repl, AI feature adoption per developer (completions accepted), daily compute cost, and team member activity (active Repls per user). Cold start spikes indicate the deployment needs an always-on tier.

Error Handling

Issue Cause Solution
Deployment cold starts Low traffic, Repl sleeping Upgrade to always-on deployment or add health ping
High egress costs Large file serving from Repl Move static assets to CDN
Environment boot slow Heavy dependencies in replit.nix Trim nix packages, use lighter base
AI features not working Ghostwriter disabled for team Enable in Team Settings > AI Features

Examples

Basic usage: Apply replit observability to a standard project setup with default configuration options.

Advanced scenario: Customize replit observability for production environments with multiple constraints and team-specific requirements.

Output

  • Configuration files or code changes applied to the project
  • Validation report confirming correct implementation
  • Summary of changes made and their rationale

Resources

  • Official monitoring documentation
  • Community best practices and patterns
  • Related skills in this plugin pack

04 同仓库更多 Skills

SamuelChien
SamuelChien/mega-skills-collection

zustand-store-ts

Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state/action separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zustand-store-creator

Zustand Store Creator - Auto-activating skill for Frontend Development. Triggers on: zustand store creator, zustand store creator Part of the Frontend Development skill category.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zero-trust-config-helper

Zero Trust Config Helper - Auto-activating skill for Security Advanced. Triggers on: zero trust config helper, zero trust config helper Part of the Security Advanced skill category.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zapier-integration-helper

Zapier Integration Helper - Auto-activating skill for Business Automation. Triggers on: zapier integration helper, zapier integration helper Part of the Business Automation skill category.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zai-cli

Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP. Use when user needs image/video analysis, OCR, UI-to-code conversion, error diagnosis, real-time web search, web page to markdown extraction, or GitHub code exploration. Trigger with phrases like "analyze this image", "search the web for", "read this page", "explore this repo", or "use zai". Requires Z_AI_API_KEY.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

yt-research

Research competitor YouTube channels, niches, and trending topics for your content strategy. Use this skill whenever the user says "research channels", "analyze competitors", "find trending topics", "niche analysis", "competitive research", "what are other creators doing", "scrape YouTube channels", or wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.

★ 0