Earthquake Mc logo

Earthquake Mc

Community
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.

Overview

PublisherGuangyaoYin
Repositoryskills
Skill nameearthquake-mc
Stars
64
Forks
2
Bundled files
2
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by GuangyaoYin on GitHub. Read the source before you install it.

Installation

Install the Earthquake Mc AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/GuangyaoYin/skills/tree/main/skills/earthquake-mc
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Earthquake Mc in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Earthquake Mc on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Earthquake Mc is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Earthquake Mc AI skill do?

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.

Why use Earthquake Mc on TypingMind?

Because you install it once and use it with any model. Earthquake Mc is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Earthquake Mc in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/GuangyaoYin/skills/tree/main/skills/earthquake-mc. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Earthquake Mc?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Earthquake Mc?

As many as you like. As long as a model supports skills, you can use Earthquake Mc with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Earthquake Mc AI skill free?

It is published on GitHub by GuangyaoYin. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇