mysql-checkpointing

mysql-checkpointing is a skill for Claude Code, Codex from masteranime/n8n-claude-skills. It costs 137 tokens per session (1,657 once invoked), scanned A, original, MIT.

Patterns for making n8n workflows safe to rerun, resumable, and suitable for large batches using MySQL or PostgreSQL checkpoint tables. n8n is a tool for connecting automated steps and services.

In plain words
What is it for?
Use them in workflows that process batches, receive webhooks, poll APIs, or create tables dynamically, with records for processed items and failed jobs.
Why use it?
They prevent duplicate side effects, such as sending the same email or charging twice, and preserve failed work for later handling.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use them in workflows that process batches, receive webhooks, poll APIs, or create tables dynamically, with records for processed items and failed jobs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/masteranime/n8n-claude-skills/mysql-checkpointing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add masteranime/n8n-claude-skills --skill mysql-checkpointing
Clone the repo
git clone --depth 1 https://github.com/masteranime/n8n-claude-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mysql-checkpointing

README.md
[![agentmods](https://agentmods.dev/badge/skills/masteranime/n8n-claude-skills/mysql-checkpointing/github.svg)](https://agentmods.dev/skills/masteranime/n8n-claude-skills/mysql-checkpointing)
Your own site
<a href="https://agentmods.dev/skills/masteranime/n8n-claude-skills/mysql-checkpointing"><img src="https://agentmods.dev/badge/skills/masteranime/n8n-claude-skills/mysql-checkpointing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mysql-checkpointing

Your own site · 80×15
<a href="https://agentmods.dev/skills/masteranime/n8n-claude-skills/mysql-checkpointing"><img src="https://agentmods.dev/badge/skills/masteranime/n8n-claude-skills/mysql-checkpointing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 137 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,657 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00137 $0.01657
Opus 5 $0.00068 $0.00829
Sonnet 5 $0.00027 $0.00331
Haiku 4.5 $0.00014 $0.00166

Measured 11d ago against content hash c9de339da089, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

mysql-checkpointing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/mysql-checkpointing/SKILL.md · 162 lines

How it starts

The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MySQL Checkpointing for n8n

Idempotency is not optional. Any workflow that can be re-run must produce identical results on the second run. MySQL (or Postgres — patterns are identical) is the pragmatic way.

The three checkpoint tables every pipeline needs

1. processed_items — did we already handle this?

CREATE TABLE processed_items (
  item_key VARCHAR(255) PRIMARY KEY,      -- natural ID (webhook event_id, order_id, etc.)
  workflow_name VARCHAR(100) NOT NULL,
  processed_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
  status VARCHAR(20) NOT NULL,            -- 'success' | 'failed' | 'skipped'
  payload_hash VARCHAR(64),               -- SHA256 of payload, detects payload changes
  INDEX idx_workflow_status (workflow_name, status),
  INDEX idx_processed_at (processed_at)
);

Check THIS FIRST in every workflow. Before any side-effect (email, charge, API call), SELECT item_key FROM processed_items WHERE item_key = ?. If it exists, exit.

2. failed_jobs — dead letter queue

CREATE TABLE failed_jobs (
  id BIGINT AUTO_INCREMENT PRIMARY KEY,
  workflow_name VARCHAR(100) NOT NULL,
  item_key VARCHAR(255),
  payload JSON,
  error_message TEXT,
  error_node VARCHAR(100),                -- which n8n node failed
  retry_count INT DEFAULT 0,
  failed_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
  INDEX idx_workflow_retry (workflow_name, retry_count)
);

Every error branch writes here. A retry workflow runs on schedule, picks up retry_count < 3, attempts reprocessing, bumps counter.

3. batch_runs — resumability

CREATE TABLE batch_runs (
  id BIGINT AUTO_INCREMENT PRIMARY KEY,
  workflow_name VARCHAR(100),
  last_cursor VARCHAR(255),               -- last ID / timestamp processed
  items_processed INT DEFAULT 0,
  status VARCHAR(20),                     -- 'running' | 'complete' | 'failed'
  started_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
  completed_at TIMESTAMP NULL
);

For batch jobs (scraping, enrichment, imports): persist the cursor after each chunk. On restart, resume from last_cursor instead of starting over.

Read the full file on GitHub · 162 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 162 lines · 137 tokens per session scan A c9de339da089

Subscribe to this mod's changes

mysql-checkpointing is a skill published in the GitHub repository masteranime/n8n-claude-skills (32 stars, last pushed 4mo ago), licensed MIT. It adds 137 tokens to every session and 1,657 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.