Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

erigon-seg-integrity

Skill by erigontech

Runs integrity checks on Erigon datadirs with the 'erigon seg integrity' command to verify snapshot and segment files. Useful when verifying snapshot files or during snapshot publishing.

  • Score 76
  • 3.6k stars
  • LGPL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install erigon-seg-integrity

Built from the published package, never by AI.

git clone --depth 1 https://github.com/erigontech/erigon /tmp/erigon && mkdir -p ~/.claude/skills && cp -r /tmp/erigon/.claude/skills/erigon-seg-integrity ~/.claude/skills/erigon-seg-integrity

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install erigon-seg-integrity in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill runs the erigon seg integrity command on an Erigon datadir. The command checks that snapshot and segment files are valid and consistent. Users can run all default checks or pick specific checks to run or skip, can list the currently available checks with --help, and can choose whether to stop at the first problem or collect all warnings. An optional file integrity cache speeds up repeated runs and adds a torrent piece-hash verification pass.

It is meant for people who need to verify snapshot or segment file integrity, including during the snapshot publishing process. Erigon must be stopped first because the command needs exclusive access to the datadir. Runs on large datadirs, especially mainnet, can take significant time.

Written from the project's SKILL.md and checked against it.

What it can do

  • Run default checksRuns all default integrity checks on an Erigon datadir.
  • Run a specific checkRuns only the check name passed with the --check flag.
  • Skip checksExcludes named checks from a run using the --skip-check flag.
  • Discover available checksLists the current check names through the --help output of the command.
  • Continue past failuresSets --failFast=false to verify every file and collect all warnings.
  • Torrent piece verificationRuns a torrent piece-hash pass when a file integrity cache is set.
  • Interpret outputReports errors or warnings found in the command output.

What you need

  • A synced Erigon datadir
  • Erigon stopped during the check
  • Erigon binary built with /erigon-build

Try asking

  • Verify the snapshot files in my Erigon datadir at /data/erigon
  • Run only a specific integrity check on my datadir and show the results
  • Check which integrity checks are available for erigon seg integrity

Good to know

  • Erigon must be stopped because the command needs exclusive access to the datadir.
  • Integrity checks can take significant time on large datadirs, especially mainnet.
  • The torrent pre-pass scans many files on mainnet archive datadirs and can be skipped with --skip-check TorrentPieces.
  • A piece-hash mismatch or interrupted run still exits non-zero even with --failFast=false.

Security check

B
  • Allowed to use Bash without limitsIn SKILL.md

Checked automatically: .claude/skills/erigon-seg-integrity/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: BashRead

  • SKILL.md4 KB

Alternatives to erigon-seg-integrity

All alternatives →

Compare with meme-rush, okx-market or saas-metrics-coach

erigon-seg-integrity: common questions

Do I need to stop Erigon before running seg integrity?

Yes. The source says the command requires exclusive access to the datadir, and a file lock will make it fail if Erigon is running.

Which integrity checks can I run?

The source says the list of checks changes over time, so it should be discovered by running the command with --help and reading the --check flag description.

Does continuing past failures mean a failed scan passes?

No. The source states that a partial or failed torrent verification scan is never reported as a pass and still exits non-zero.

How do I install erigon-seg-integrity?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is erigon-seg-integrity free?

The code is published under the LGPL-3.0 licence. The service it connects to may have its own pricing.

Is erigon-seg-integrity safe to use?

It scores 76 of 100. Grades: maintenance A, licence C, quality A. Security check: grade B (allowed to use bash without limits). Review the code before you install. How grades work.

What are alternatives to erigon-seg-integrity?

Similar skills: meme-rush, okx-market, saas-metrics-coach, sec-edgar.

erigon-seg-integrity Install

Add to stack

Loading.