erigon-datadir
Tools for performing safe data directory operations on Erigon nodes.
Install
mkdir -p .claude/skills/erigon-datadir && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/6572" && unzip -o skill.zip -d .claude/skills/erigon-datadir && rm skill.zipInstalls to .claude/skills/erigon-datadir
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Reference for manipulating Erigon datadirs. Use this when the user wants to perform operations on Erigon data directories.Key capabilities
- →Duplicate Erigon datadirs
- →Verify datadir integrity
- →Perform APFS copy-on-write cloning
- →Check disk space for full copies
How it works
The skill follows a strict procedure to verify source validity, detect the filesystem type, and perform either an APFS copy-on-write clone or a full recursive copy, ensuring data integrity throughout.
Inputs & outputs
When to use erigon-datadir
- →Moving Erigon data directories
- →Cloning blockchain nodes
- →Verifying datadir integrity
About this skill
Erigon Datadir Operations
Duplicating a Datadir
Given a source path and destination path, follow this procedure exactly.
Precondition Checks
All checks must pass before copying. Abort on the first failure.
- Source exists:
test -d <src>— abort if missing - Source is a valid Erigon datadir: verify all three exist:
<src>/nodekey(file)<src>/snapshots/(directory)<src>/chaindata/(directory)
- Destination does not exist:
test ! -e <dst>— abort if it already exists - Destination parent is writable:
test -w "$(dirname <dst>)"— abort if not - Report source size: run
du -sh <src>and always tell the user the size before proceeding - Detect APFS: find the mount device for the destination parent directory from
mountoutput. If the mount entry containsapfs, use the APFS CoW procedure below; otherwise use the full-copy procedure.
APFS Procedure (copy-on-write)
Use this when the destination is on an APFS volume.
- Run
cp -ac <src> <dst>— this creates a CoW clone that is near-instant and consumes no extra disk space. - No disk space check is needed for CoW clones.
- After the copy completes, delete chaindata from the destination:
rm -rf <dst>/chaindata
Other Filesystems Procedure (full copy)
Use this when the destination is NOT on APFS.
- Check disk space: run
df -h "$(dirname <dst>)"and compare available space to the source size. If available space is less than source size, abort and tell the user — do not proceed. - Run
cp -a <src> <dst>to recursively copy the entire datadir. This is a long-running operation for large datadirs — run in background.
Post-Copy
After either procedure completes, confirm success by listing the destination contents and comparing against the source (minus chaindata/ for APFS copies).
When not to use it
- →Operations on non-Erigon data directories
Limitations
- →Requires valid Erigon datadir structure
- →Requires write permissions on destination parent
How it compares
It automates filesystem-specific optimizations like APFS CoW and enforces mandatory integrity checks, unlike manual copying which risks data corruption or disk space exhaustion.
Compared to similar skills
erigon-datadir side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| erigon-datadir (this skill) | 1 | 6mo | No flags | Intermediate |
| grafana-dashboards | 134 | 5mo | No flags | Intermediate |
| cost-optimization | 1 | 5mo | No flags | Intermediate |
| reflow-machine-maintenance-guidance | 1 | 2mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by erigontech
View all by erigontech →You might also like
grafana-dashboards
wshobson
Create and manage production Grafana dashboards for real-time visualization of system and application metrics. Use when building monitoring dashboards, visualizing metrics, or creating operational observability interfaces.
cost-optimization
wshobson
Optimize cloud costs through resource rightsizing, tagging strategies, reserved instances, and spending analysis. Use when reducing cloud expenses, analyzing infrastructure costs, or implementing cost governance policies.
reflow-machine-maintenance-guidance
benchflow-ai
This skill should be considered when you need to answer reflow machine maintenance questions or provide detailed guidance based on thermocouple data, MES data or defect data and reflow technical handbooks. This skill covers how to obtain important concepts, calculations, definitions, thresholds, and others from the handbook and how to do cross validations between handbook and datasets.
signals-scout-data-pipelines
PostHog
>
aws-billing-and-cost-management
aws
|
aws-monitoring
ssrjkk
Monitoring with AWS. monitoring.