Earthquake Mcのロゴ

Earthquake Mc

コミュニティ
GuangyaoYin
earthquake-mc

Estimate earthquake catalog magnitude of completeness Mc using normalized cumulative occurrence curves, especially the Petrillo & Zhuang normalized quantity method used in the EMQTP fault-zone correlation paper. Use when the user asks to calculate, explain, plot, justify, or report Mc/completeness magnitude for earthquake catalogs before b-value, Gutenberg-Richter, declustering, correlation, or seismicity-rate analysis.

概要

公開者GuangyaoYin
リポジトリskills
スキル名earthquake-mc
スター
64
フォーク
2
同梱ファイル
2
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Earthquake Mc

Core Task

Estimate and explain the magnitude of completeness (Mc) for an earthquake catalog by comparing normalized cumulative occurrence curves for a range of threshold magnitudes. Use this skill when a catalog must be filtered to a complete magnitude range before downstream seismicity statistics.

The motivating paper is:

  • Correlation of earthquake occurrence among major fault zones in the eastern margin of the Tibetan Plateau through Big Data Analysis, The Innovation Geoscience, 2025.
  • It cites Petrillo and Zhuang (2023), Verifying the Magnitude Dependence in Earthquake Occurrence, Phys. Rev. Lett. 131, 154101.
  • In the EMQTP case, threshold curves were tested for Mc = 0.5, 1.0, 1.5, 2.0, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.5. Curves were dispersed for Mc <= 2.0 and nearly overlapped for Mc >= 2.5, so the paper adopted Mc = 2.5.

Do not hard-code 2.5 for new catalogs. Treat it as an example from that paper.

Required Inputs

Require or infer:

  • Event origin time or an event order column.
  • Magnitude column.
  • Study region, time window, catalog source, magnitude type, and magnitude precision if available.
  • Candidate magnitude thresholds, usually spanning below and above the likely completeness magnitude.

Before estimating Mc, check:

  • Time values are parseable and sorted chronologically.
  • Magnitudes are numeric and use one magnitude scale or documented mixed scales.
  • The catalog time span does not combine strongly incompatible network eras without noting the limitation.
  • Each candidate threshold has enough events to support a curve. Flag thresholds with too few events.

Normalized Quantity Method

For each threshold magnitude m_th, select events with M >= m_th. Compute the normalized cumulative count as a function of time:

text
F(t | m_th) = count(events with time <= t and M >= m_th) / count(events with M >= m_th)

This is the empirical cumulative distribution of occurrence times for events above each threshold.

Interpretation:

  • If m_th is below the completeness magnitude, early or low-detectability periods usually miss small events. The normalized curves for lower thresholds separate from higher-threshold curves.
  • If m_th is at or above Mc, the curves for all higher thresholds should become visually indistinct or nearly collapse, apart from small noise.
  • Choose the lowest threshold at which the curve family is stable/collapsed and event counts remain adequate.

The method is a catalog-completeness diagnostic, not a standalone proof. Combine the plot with event counts, known station/network changes, magnitude precision, and study purpose.

Workflow

  1. Load the catalog and identify time and magnitude fields.
  2. Define candidate thresholds. If the user does not provide them, use the catalog magnitude precision:
    • 0.1 spacing for high-resolution catalogs.
    • 0.5 spacing for coarse historical or regional catalogs.
    • Include several thresholds below and above the apparent transition.
  3. For each threshold, calculate event count and F(t | m_th).
  4. Plot all normalized cumulative curves on the same time axis. Overlay catalog events or a magnitude-time scatter when useful.
  5. Quantify curve separation using a common time grid:
    • Interpolate each threshold curve on the same grid.
    • Compare the envelope of curves from each candidate threshold upward.
    • Report max and median separation; use this only as a guide, not a substitute for visual inspection.
  6. Select the lowest threshold where higher-threshold curves collapse and sample size is still sufficient.
  7. Write a short justification that includes candidate thresholds, accepted Mc, rejected lower thresholds, event counts, and known caveats.

Script

Use scripts/estimate_mc_normalized.py when the user provides a CSV catalog or asks for a reproducible calculation.

Example:

bash
python scripts/estimate_mc_normalized.py catalog.csv \
  --time-column time \
  --mag-column magnitude \
  --thresholds 0.5,1.0,1.5,2.0,2.5,2.6,2.7,2.8,2.9,3.0,3.5 \
  --out-dir mc_results

The script writes:

  • normalized_curves.csv
  • threshold_summary.csv
  • mc_report.md
  • normalized_curves.png if matplotlib is installed

Treat the script recommendation as a first pass. Always inspect the plot and the event counts before giving the final Mc.

Reporting Template

When reporting Mc, include:

text
Catalog: <source, region, time window>
Method: normalized cumulative occurrence curves after Petrillo & Zhuang (2023)
Candidate thresholds: <list>
Accepted Mc: <value>
Reason: curves below <value> are separated; curves from <value> upward nearly overlap/collapse.
Event count at Mc: <n>
Caveats: <network changes, magnitude type, sparse high-threshold curves, mixed catalog sources, etc.>
Downstream use: use events with M >= Mc for statistics requiring catalog completeness.

Relationship To b-Value

Do not claim that the EMQTP paper computed a b-value unless the user provides additional supporting text. In that paper's main text, the relevant section uses the normalized quantity method to choose Mc; it does not present a b-value calculation workflow.

If the user asks to calculate b-value after Mc, use a standard Gutenberg-Richter/Aki-Utsu maximum-likelihood estimate on events with M >= Mc:

text
b = log10(e) / (mean(M) - (Mc - deltaM / 2))

Use deltaM equal to the catalog magnitude bin width, commonly 0.1 when magnitudes are rounded to 0.1. State whether the b-value is calculated from the raw or declustered catalog.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

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

Estimate earthquake catalog magnitude of completeness Mc using normalized cumulative occurrence curves, especially the Petrillo & Zhuang normalized quantity method used in the EMQTP fault-zone correlation paper. Use when the user asks to calculate, explain, plot, justify, or report Mc/completeness magnitude for earthquake catalogs before b-value, Gutenberg-Richter, declustering, correlation, or seismicity-rate analysis.

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

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

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

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

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

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

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

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

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

GuangyaoYinがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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