Sre Data Reliabilityのロゴ

Sre Data Reliability

コミュニティ
paulip114
sre-data-reliability

Use when designing, operating or reviewing data pipelines, scheduled/cron jobs, backups and restores, or data integrity protections — pipeline SLOs, idempotency, handling stragglers and hot spots, distributed cron, defense in depth against data loss, and recovery testing. Based on Google SRE practice.

概要

公開者paulip114
リポジトリsre-practice-skills
スキル名sre-data-reliability
スター
64
フォーク
19
同梱ファイル
指示のみ
ライセンスApache-2.0
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Data Pipelines, Scheduled Jobs and Data Integrity

Data integrity: what users need is restores, not backups

Users judge you by whether their data is there and correct when they ask for it. A backup that has never been restored is a hope, not a plan.

Threat model

Data loss comes from many combinations of:

  • Root cause: user error, application bugs, operator/automation error, infrastructure failure, malicious action, migration bugs.
  • Scope: wide (many entities) vs. narrow (one user/object).
  • Rate: sudden (big bang) vs. slow and creeping (a bug corrupting a little data each day for months).

Slow, creeping corruption is the most dangerous: by the time it's noticed, it's in every recent backup and replica.

Defense in depth

  1. First layer — soft deletion / undo: deleted data goes to a trash/tombstone state for a retention period (days to weeks) before purge; users and support can undo. Protects against user and application errors.
  2. Second layer — backups and recovery: versioned backups with retention long enough to catch slow corruption, stored in a separate failure domain and administrative domain (so the same bug or operator mistake can't delete both). Replication is not a backup — it faithfully replicates corruption and deletes.
  3. Third layer — early detection: continuous out-of-band validation that checks data invariants (referential integrity, counts, checksums, business rules) and alerts on drift. Detection time is what bounds how far back you need to restore.

Recovery

  • Define RPO (how much data loss is tolerable) and RTO (how fast you must recover) per dataset, and design backups to meet them.
  • Test restores continuously and automatically, end to end, from real backups; measure time to restore. Alert when a restore test fails.
  • Support partial/point restores (one user, one table, one time range), not just "restore everything".
  • Keep tooling and runbooks for recovery as production-grade as serving code.

Data pipelines

Design

  • Prefer continuous/streaming or frequent small batches over huge periodic batches when freshness matters; big periodic jobs create load spikes ("thundering herds") and long recovery after failure.
  • Make every stage idempotent and re-runnable; write outputs atomically (write then rename/commit).
  • Define pipeline SLOs: freshness, correctness, coverage/completeness, and end-to-end latency (sre-slos-and-error-budgets).
  • Handle stragglers and hot spots: split work into many small shards, rebalance dynamically, avoid skewed keys.
  • Schema changes and migrations: versioned schemas, backward/forward compatible readers, dual-writes and backfills staged and verified.
  • Isolate pipelines by priority so a large low-priority backfill can't starve a critical job.
  • Plan dependencies: know upstream sources, their SLOs, and what happens when they are late or bad; validate inputs and quarantine bad records instead of failing whole runs or silently passing garbage.

Operating

  • Monitor: freshness/lag at each stage, throughput, backlog, error/quarantine counts, data quality checks.
  • Alert on SLO (e.g. "data older than X for > Y% of reads"), not on every task failure.
  • Keep runbooks for: reprocessing a time range, skipping/quarantining poison inputs, backfills, and rolling back a bad output version.
  • Canary pipeline code and config changes on a subset of data and compare output against the previous version before full rollout.

Distributed cron / scheduled jobs

  • Run the scheduler itself redundantly with leader election via a consensus system, so one machine's failure doesn't skip or double-run jobs.
  • Persist launch state durably: record intent before launching and success after, so a new leader can tell whether a job ran.
  • Make jobs idempotent or have them check for prior completion; decide explicitly whether a missed run should be skipped or run late, and whether a double run is acceptable.
  • Spread start times (jitter, hashed minutes) to avoid everyone running at :00 and overloading shared systems.
  • Monitor for missed runs, overruns (job still running at next start), and failures.

Review checklist

  • RPO/RTO defined per dataset; backups meet them?
  • Backups in separate failure + administrative domain; retention covers slow corruption?
  • Soft-delete / undo for user-facing deletions?
  • Automated, end-to-end restore tests with alerting?
  • Out-of-band data validation running?
  • Pipeline stages idempotent, atomic outputs, freshness/correctness SLOs?
  • Scheduled jobs survive scheduler failure without skipping or double-running?

Sources

よくある質問

AIスキル「Sre Data Reliability」では何ができますか?

Use when designing, operating or reviewing data pipelines, scheduled/cron jobs, backups and restores, or data integrity protections — pipeline SLOs, idempotency, handling stragglers and hot spots, distributed cron, defense in depth against data loss, and recovery testing. Based on Google SRE practice.

TypingMindでSre Data Reliabilityを使うメリットは何ですか?

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

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

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

Sre Data Reliabilityを使えるAIモデルはどれですか?

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

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

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

AIスキル「Sre Data Reliability」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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