distributed-ledger
FreeNo executable scriptsNot checkedDistributed-ledger / blockchain architecture in general (engine-agnostic): when a ledger beats a database, consensus families (PoW/PoS/BFT), L1 vs L2…
by claude-dev-suite★ 51 GitHub starsAbout this skill
Distributed-Ledger Architecture (general)
Generalizes the Bitcoin-specific bitcoin/* skills into engine-agnostic ledger
design. For deep Bitcoin/Lightning specifics, defer to those skills.
First question: do you actually need a ledger?
A ledger is an append-only, replicated, tamper-evident log agreed by mutually-distrusting parties. Use one only when you genuinely have: multi-party lack of trust, a need for shared auditable state, and no acceptable trusted intermediary. If a single org controls the data, a normal (possibly append-only/audited) database is simpler, faster, and cheaper — most "blockchain" projects should be databases.
Consensus family (builds on distributed-consensus)
| Family | Sybil resistance | Trade-off |
|---|---|---|
| PoW | Burn energy | Robust, slow, energy-heavy, probabilistic finality |
| PoS | Stake capital | Efficient, fast finality, weak-subjectivity/validator-set concerns |
| BFT (PBFT/Tendermint) | Known validator set | Fast deterministic finality, bounded validators → more permissioned |
Permissionless (open validator set) favors PoW/PoS; permissioned/consortium favors BFT.
Layering: L1 vs L2
- L1 = base chain (security + data availability). Scaling it directly hits the trilemma.
- L2 moves execution off L1 while inheriting its security:
- Rollups post compressed data + proofs to L1. ZK rollups (validity proofs, fast finality, harder to build) vs optimistic rollups (fraud proofs, challenge window/withdrawal delay).
- State/payment channels (e.g. Lightning) — off-chain bilateral updates, on-chain settlement; great for high-frequency payments.
- Sidechains — own security, bridged; weaker guarantees.
Other decisions
- Permissioned vs permissionless: trust model + regulatory needs.
- State model: UTXO (parallelizable, privacy, harder smart contracts) vs account (stateful contracts, simpler, sequential nonces).
- Trilemma: decentralization / security / scalability — you optimize two; L2s are the usual escape valve.
- Finality: probabilistic (PoW) vs deterministic/instant (BFT) — affects UX and bridge safety.
Guidance
Single trust domain → database. Multi-party, open → permissionless L1 + L2 for scale. Known consortium → permissioned BFT chain. High-frequency payments → channels. Always justify the ledger over a database first.
Install distributed-ledger in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
ReadGrepGlobFAQ
What does the distributed-ledger skill do?
Distributed-ledger / blockchain architecture in general (engine-agnostic): when a ledger beats a database, consensus families (PoW/PoS/BFT), L1 vs L2 (rollups, channels, sidechains), permissioned vs permissionless, UTXO vs account models, and the scalability trilemma. Architect-level, not coin-specific. USE WHEN: designing/evaluating a blockchain or DLT system in general, "L2", "rollup", "zk vs optimistic", "PoS vs PoW", "permissioned ledger", "consortium chain", "UTXO vs account", "do we even need a blockchain", token/state design. DO NOT USE FOR: Bitcoin-specific work (use the `bitcoin/*` skills); raw consensus internals (use `distributed-consensus`); ordinary app data (use database / data-intensive skills).
How do I install the distributed-ledger skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the distributed-ledger skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
by Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
by Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
by Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
by Anthropic