Monitorのロゴ

Monitor

コミュニティ
kazdenc
monitor

Set up monitoring with error tracking, alerts, dashboards, and SLOs for production applications. Use when user says "set up monitoring", "add error tracking", "create alerts", "observability", "SLOs", "health checks", "how do I know if it's broken", or needs production visibility.

Add to TypingMind

概要

公開者kazdenc
リポジトリbuilder-skills
スキル名monitor
スター
46
フォーク
5
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    kazdencがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Monitor」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/kazdenc/builder-skills/tree/main/.claude/skills/dev/deploy/monitor
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kazdenc/builder-skills.git /tmp/builder-skills
mkdir -p .claude/skills
cp -r /tmp/builder-skills/.claude/skills/dev/deploy/monitor .claude/skills/monitor
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでMonitorを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にMonitorを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Monitorは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Production Monitoring Setup

Set up monitoring for a production application. If a target is provided, scope recommendations to that service or feature. Cover all four pillars, then configure health checks, alerts, SLOs, and dashboards.

The Four Pillars

Monitor all four. Missing any one creates a blind spot.

1. Errors

Track unhandled exceptions, failed API calls, and client-side errors. Don't wait for users to report them.

What to captureHow
Unhandled exceptions (server)Global error handler reports to error tracking service. Include stack trace and request context.
Unhandled exceptions (client)window.onerror and onunhandledrejection wired to error tracking.
Failed API callsLog 4xx and 5xx responses with request path, status, and duration.
Client-side errorsReact error boundaries catch render failures. Report with component tree.

Tool examples: Sentry (full stack, source maps, release tracking), LogRocket (session replay + error context).

2. Performance

Measure response times and user experience. Use percentiles, not averages.

MetricTargetHow to measure
API response time (p50)< 200msServer-side timing middleware.
API response time (p95)< 500msSame middleware, track percentile distribution.
API response time (p99)< 1000msSame middleware. If p99 spikes, investigate outlier queries.
Largest Contentful Paint< 2.5sReal User Monitoring (RUM) or Lighthouse CI.
First Input Delay< 100msRUM.
Cumulative Layout Shift< 0.1RUM or Lighthouse CI.

Tool examples: Vercel Analytics (zero-config for Next.js), Speedlify (self-hosted Lighthouse tracking).

3. Availability

Know when your service is down before your users do.

What to checkFrequencyAlert if
Health check endpointEvery 30sTwo consecutive failures.
SSL certificate expiryDailyLess than 14 days remaining.
DNS resolutionEvery 5mResolution fails or returns unexpected IP.
Key third-party servicesEvery 1mDependency returns errors for > 2 minutes.

Tool examples: Better Uptime (status pages + incident management), Checkly (synthetic monitoring with Playwright).

4. Business Metrics

Technical metrics alone don't tell you if the product works.

MetricWhy it matters
Signups per hour/dayDetects registration flow breakage immediately.
Conversion rateDrop signals checkout or onboarding issues.
Key feature usageConfirms new features are actually being used.
Error rate per user actionTies technical errors to user impact.

Tool examples: PostHog (open-source product analytics, feature flags, session replay), Mixpanel (funnel and retention analysis).

Health Check Endpoint

Create a /api/health endpoint that verifies real connectivity, not just "the server is running."

typescript
// app/api/health/route.ts
import { NextResponse } from 'next/server'

export async function GET() {
  const checks: Record<string, 'ok' | 'fail'> = {}

  // Check database connectivity
  try {
    await db.query('SELECT 1')
    checks.database = 'ok'
  } catch {
    checks.database = 'fail'
  }

  // Check external services (cache, queue, etc.)
  try {
    await redis.ping()
    checks.cache = 'ok'
  } catch {
    checks.cache = 'fail'
  }

  const allHealthy = Object.values(checks).every((s) => s === 'ok')

  return NextResponse.json(
    { status: allHealthy ? 'healthy' : 'degraded', checks },
    { status: allHealthy ? 200 : 503 },
  )
}

Adapt the checks to the actual services in the stack. Return 503 if any check fails so load balancers and uptime monitors detect it.

Alerting Strategy

Alert on actionable signals only. Noisy alerts get ignored.

SignalSeverityNotification channelResponse time
Health check down (2+ consecutive)CriticalPagerDuty / phone call< 15 minutes
Error rate > 5% of requestsCriticalSlack #incidents + PagerDuty< 15 minutes
Error rate > 1% of requestsWarningSlack #alerts< 1 hour
p95 response time > 1sWarningSlack #alerts< 1 hour
SSL cert expiry < 14 daysInfoSlack #ops< 1 day
Disk usage > 80%WarningSlack #ops< 4 hours
Deploy completedInfoSlack #deploysNo response needed

Rules for good alerting:

  • Don't alert on single transient errors. Use thresholds and windows (e.g., "error rate > 5% over 5 minutes").
  • Every alert must have a clear owner and a documented first-response action.
  • Review alert fatigue monthly. If an alert fires > 3 times without action, fix it or remove it.

SLOs (Service Level Objectives)

Define SLOs for key services. SLOs set expectations; SLIs measure them.

ServiceSLI (what you measure)SLO (target)Error budget
API availability% of requests returning non-5xx99.9%8.7 hours downtime / year
API latencyp95 response time< 500ms5% of requests can exceed
Web vitals (LCP)p75 LCP across all pages< 2.5s25% of page loads can exceed
Data pipeline freshnessTime since last successful sync< 15 minutes4 allowed SLO violations / month

How to use error budgets:

  • When the budget is healthy, ship fast and take calculated risks.
  • When the budget is low, freeze non-critical deploys and focus on reliability.
  • Track budget burn rate weekly. A sudden spike means something broke.

Dashboard Essentials

Build a team dashboard with these panels. Keep it to one screen.

PanelWhat it showsWhy
Error rate (last 24h)Errors per minute, with deploy markersCorrelate errors with deploys instantly.
Latency trends (last 24h)p50, p95, p99 lines on one chartSpot gradual degradation before it becomes critical.
Active users (real-time)Current connected / active usersContext for error rates. 10 errors with 10 users is worse than 10 errors with 10,000.
Uptime statusGreen/red for each monitored endpointGlanceable health.
Deploy historyLast 10 deploys with timestamp and authorQuick reference for "what changed?"
SLO burn rateError budget remaining for the periodKnow when to slow down.

Incident Response

Use severity levels to set expectations and escalation.

LevelDefinitionExampleResponse expectation
SEV1Service down or major data loss. Most users affected.API returning 500 for all requests. Payment processing broken.All hands. Respond in < 15 min. Communicate status every 30 min.
SEV2Significant degradation. Some users affected.Slow response times. One region down. Feature broken for subset of users.On-call responds in < 30 min. Hourly status updates.
SEV3Minor issue. Workaround exists.Non-critical feature broken. Cosmetic bug in production.Address within business hours. No status page update needed.

For every incident:

  1. Acknowledge the alert and declare severity.
  2. Open an incident channel (or thread) for coordination.
  3. Mitigate first, investigate second. Get the service back up, then find root cause.
  4. Write a brief post-incident review: what happened, why, and what will prevent recurrence.

よくある質問

AIスキル「Monitor」では何ができますか?

Set up monitoring with error tracking, alerts, dashboards, and SLOs for production applications. Use when user says "set up monitoring", "add error tracking", "create alerts", "observability", "SLOs", "health checks", "how do I know if it's broken", or needs production visibility.

TypingMindでMonitorを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Monitorはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにMonitorをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/kazdenc/builder-skills/tree/main/.claude/skills/dev/deploy/monitorを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Monitorを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Monitorで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもMonitorを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Monitor」は無料ですか?

はい。kazdencがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇