local-mainnet-debug
Skill by ChainSafe
Debug Lodestar beacon node issues by running a local mainnet node with checkpoint sync and engineMock. It is for developers who need real peer interactions without a full execution client.
Install local-mainnet-debug
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ChainSafe/lodestar /tmp/lodestar && mkdir -p ~/.claude/skills && cp -r /tmp/lodestar/.claude/skills/local-mainnet-debug ~/.claude/skills/local-mainnet-debugRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ChainSafe/lodestar /tmp/lodestar && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/lodestar/.claude/skills/local-mainnet-debug ~/.gemini/antigravity-cli/skills/local-mainnet-debugAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install local-mainnet-debug in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an assistant through debugging a local Lodestar beacon node against Ethereum mainnet peers. It runs the node with checkpoint sync and engineMock, so no full execution client is needed. The goal is to reproduce networking, peer discovery, and protocol-level issues in a real-world environment.
The skill covers metrics scraping, A/B testing with code changes, libp2p instrumentation, log analysis, and stream-level tracing. It also lists common symptoms such as unknown peers, slow peer discovery, and high disconnect rates, with diagnostic steps for each. Debug runs use an isolated data directory and a custom port so they do not touch a production node on the same machine. It is aimed at developers working on Lodestar networking code.
Written from the project's SKILL.md and checked against it.
What it can do
- Local mainnet runRuns a local Lodestar beacon node against mainnet peers with checkpoint sync and engineMock.
- Metrics scrapingPulls Prometheus metrics for peer counts, identify results and libp2p connections.
- A/B testingCompares control and modified runs by diffing sampled metrics over time.
- libp2p instrumentationAdds temporary logging to libp2p identify, yamux and mplex code in node_modules.
- Log analysisCounts identify errors and extracts peer connect, disconnect and identify events from logs.
- Stream-level debuggingTraces protocol stream lifecycle, from negotiation to first frame timing and close.
- Unknown peer diagnosisSteps to investigate a high Unknown ratio in the lodestar_peers_by_client metric.
- Slow discovery diagnosisChecks dialer metrics, port access and discv5 bootstrap logs after startup.
- High disconnect diagnosisChecks connections versus streams, disconnect reasons and gossip peer scores.
What you need
- A Lodestar source checkout built with pnpm
- Network access to Ethereum mainnet peers
- Shell tools such as curl, lsof and timeout
Try asking
- Run a local mainnet Lodestar node for 2 minutes and check the Unknown peer ratio.
- Help me find why identify fails for some peers in my Lodestar debug run.
- Compare my control and test runs using the lodestar_peers_by_client metric.
Good to know
- engineMock means the node does not validate execution payloads.
- Intended for networking and peer debugging, not full block validation.
- Libp2p monkeypatches must be removed before committing, using pnpm install to restore.
- Short runs of 60 to 120 seconds are suggested as enough to observe identify behavior.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/local-mainnet-debug/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB
Alternatives to local-mainnet-debug
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
local-mainnet-debug: common questions
What does engineMock do in this setup?
The source says engineMock skips the execution layer requirement. The node will sync headers but will not validate execution payloads or blocks.
Why use checkpoint sync with --forceCheckpointSync?
The source recommends it for a clean start each run, since stale database state can mask issues. It is passed with a checkpoint sync URL for mainnet or holesky.
Can this be used on holesky instead of mainnet?
Yes. The source says to use --network holesky when a smaller, faster-syncing network is needed for testing.
How do I install local-mainnet-debug?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is local-mainnet-debug free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is local-mainnet-debug safe to use?
It scores 82 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to local-mainnet-debug?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
