jpskill.com
🛠️ 開発・MCP コミュニティ

appinsights-instrumentation

Guidance for instrumenting webapps with Azure Application Insights. Provides telemetry patterns, SDK setup, and configuration references. USE FOR: how to instrument app, App Insights SDK, telemetry patterns, what is App Insights, Application Insights guidance, instrumentation examples, APM best practices. DO NOT USE FOR: adding App Insights to my app (use azure-prepare), add telemetry to my project (use azure-prepare), add monitoring (use azure-prepare). This skill provides guidance—azure-prepare orchestrates component changes.

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o appinsights-instrumentation.zip https://jpskill.com/download/19654.zip && unzip -o appinsights-instrumentation.zip && rm appinsights-instrumentation.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/19654.zip -OutFile "$d\appinsights-instrumentation.zip"; Expand-Archive "$d\appinsights-instrumentation.zip" -DestinationPath $d -Force; ri "$d\appinsights-instrumentation.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して appinsights-instrumentation.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → appinsights-instrumentation フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
11

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

AppInsights 計装ガイド

このスキルは、Azure Application Insights を使用して Web アプリを計装するためのガイダンスと参考資料を提供します。

⛔ コンポーネントを追加しますか?

ユーザーがアプリに App Insights を追加したい場合は、代わりにazure-prepareを呼び出してください。 このスキルは参考資料を提供します。azure-prepare は実際の変更を調整します。

このスキルを使用するタイミング

  • ユーザーが計装の方法を尋ねる場合(ガイダンス、パターン、例)
  • ユーザーが SDK セットアップ手順を必要とする場合
  • azure-prepare が調査フェーズ中にこのスキルを呼び出す場合
  • ユーザーが App Insights の概念を理解したい場合

azure-prepare を代わりに使用するタイミング

  • ユーザーが「アプリにテレメトリを追加する」と言う場合
  • ユーザーが「App Insights を追加する」と言う場合
  • ユーザーがプロジェクトを変更したい場合
  • コンポーネントの変更/追加に関するあらゆるリクエスト

前提条件

ワークスペース内のアプリは、次のいずれかの種類である必要があります。

  • Azure でホストされている ASP.NET Core アプリ
  • Azure でホストされている Node.js アプリ

ガイドライン

コンテキスト情報を収集する

ユーザーがテレメトリサポートを追加しようとしているアプリケーションの(プログラミング言語、アプリケーションフレームワーク、ホスティング)の組を見つけ出してください。これにより、アプリケーションをどのように計装できるかが決まります。ソースコードを読んで、推測を立ててください。不明な点があれば、ユーザーに確認してください。アプリケーションがどこでホストされているか(例:個人用コンピューター、Azure App Service のコードとして、Azure App Service のコンテナとして、Azure Container App など)を常にユーザーに尋ねる必要があります。

可能であれば自動計装を優先する

アプリが Azure App Service でホストされている C# ASP.NET Core アプリである場合は、AUTO ガイドを使用して、ユーザーがアプリを自動計装するのを支援してください。

手動で計装する

AppInsights リソースを作成し、アプリのコードを更新することで、アプリを手動で計装します。

AppInsights リソースを作成する

環境に合った以下のいずれかのオプションを使用してください。

  • 既存の Bicep テンプレートに AppInsights を追加します。追加する内容については、examples/appinsights.bicep を参照してください。ワークスペースに既存の Bicep テンプレートファイルがある場合、これが最良のオプションです。
  • Azure CLI を使用します。App Insights リソースを作成するために実行する Azure CLI コマンドについては、scripts/appinsights.ps1 を参照してください。

どのオプションを選択しても、リソースの管理を容易にする意味のあるリソースグループに App Insights リソースを作成することをユーザーに推奨してください。適切な候補は、Azure でホストされているアプリのリソースを含む同じリソースグループです。

アプリケーションコードを変更する

  • アプリが ASP.NET Core アプリの場合は、C# コードの変更方法についてASPNETCORE ガイドを参照してください。
  • アプリが Node.js アプリの場合は、JavaScript/TypeScript コードの変更方法についてNODEJS ガイドを参照してください。
  • アプリが Python アプリの場合は、Python コードの変更方法についてPYTHON ガイドを参照してください。

SDK クイックリファレンス

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

AppInsights Instrumentation Guide

This skill provides guidance and reference material for instrumenting webapps with Azure Application Insights.

⛔ ADDING COMPONENTS?

If the user wants to add App Insights to their app, invoke azure-prepare instead. This skill provides reference material—azure-prepare orchestrates the actual changes.

When to Use This Skill

  • User asks how to instrument (guidance, patterns, examples)
  • User needs SDK setup instructions
  • azure-prepare invokes this skill during research phase
  • User wants to understand App Insights concepts

When to Use azure-prepare Instead

  • User says "add telemetry to my app"
  • User says "add App Insights"
  • User wants to modify their project
  • Any request to change/add components

Prerequisites

The app in the workspace must be one of these kinds

  • An ASP.NET Core app hosted in Azure
  • A Node.js app hosted in Azure

Guidelines

Collect context information

Find out the (programming language, application framework, hosting) tuple of the application the user is trying to add telemetry support in. This determines how the application can be instrumented. Read the source code to make an educated guess. Confirm with the user on anything you don't know. You must always ask the user where the application is hosted (e.g. on a personal computer, in an Azure App Service as code, in an Azure App Service as container, in an Azure Container App, etc.).

Prefer auto-instrument if possible

If the app is a C# ASP.NET Core app hosted in Azure App Service, use AUTO guide to help user auto-instrument the app.

Manually instrument

Manually instrument the app by creating the AppInsights resource and update the app's code.

Create AppInsights resource

Use one of the following options that fits the environment.

  • Add AppInsights to existing Bicep template. See examples/appinsights.bicep for what to add. This is the best option if there are existing Bicep template files in the workspace.
  • Use Azure CLI. See scripts/appinsights.ps1 for what Azure CLI command to execute to create the App Insights resource.

No matter which option you choose, recommend the user to create the App Insights resource in a meaningful resource group that makes managing resources easier. A good candidate will be the same resource group that contains the resources for the hosted app in Azure.

Modify application code

  • If the app is an ASP.NET Core app, see ASPNETCORE guide for how to modify the C# code.
  • If the app is a Node.js app, see NODEJS guide for how to modify the JavaScript/TypeScript code.
  • If the app is a Python app, see PYTHON guide for how to modify the Python code.

SDK Quick References

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。