Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Web3 & Blockchain Engineering

БесплатноБез исполняемых скриптовНе проверен

Complete methodology for evaluating, designing, building, securing, and operating blockchain-based systems. Covers smart contract development, DeFi protocol…

modbenderот modbender★ 21 звезда на GitHub

Об этом скилле

Web3 & Blockchain Engineering

Complete methodology for evaluating, designing, building, securing, and operating blockchain-based systems. Covers smart contract development, DeFi protocol design, token economics, security auditing, and production operations.

Zero dependencies. Framework-agnostic. Works with any blockchain, any language, any AI agent.


Phase 1: Should You Use Blockchain?

The Database Test

Before writing a single line of Solidity, answer honestly:

blockchain_evaluation:
  problem: "[describe the core problem]"
  
  requirements:
    multiple_untrusting_parties: true/false    # >1 org needs shared truth
    no_trusted_authority: true/false            # no single party everyone trusts
    immutability_critical: true/false           # history must be tamper-proof
    censorship_resistance_needed: true/false    # no entity should block access
    value_transfer_required: true/false         # moving assets between parties
    transparency_required: true/false           # all parties need verifiable state
  
  disqualifiers:
    single_org_controls_data: true/false        # → use a database
    data_deletion_required: true/false          # → GDPR conflict, careful
    high_throughput_low_latency: true/false     # → >10K TPS? consider L2 or database
    users_cant_manage_wallets: true/false       # → account abstraction or custodial
    trusted_authority_exists: true/false        # → database with audit log
  
  score: "[count true requirements - count true disqualifiers]"
  verdict: "blockchain / hybrid / database"

Decision rules:

  • Score ≤ 0 → Use PostgreSQL with audit logs
  • Score 1-2 → Hybrid (anchoring/notarization on-chain, logic off-chain)
  • Score 3+ → Blockchain is justified

Platform Selection Matrix

Platform TPS Finality Gas Cost Best For
Ethereum L1 ~30 ~12 min $1-50+ Settlement, high-value DeFi
Arbitrum ~4,000 ~1 sec (soft) $0.01-0.10 DeFi, general dApps
Optimism ~2,000 ~2 sec (soft) $0.01-0.15 Public goods, governance
Base ~2,000 ~2 sec (soft) $0.001-0.05 Consumer apps, social
Polygon PoS ~7,000 ~2 sec $0.001-0.01 Gaming, mass-market
Solana ~65,000 ~400ms $0.00025 High-frequency, DePIN
Avalanche C ~4,500 ~1 sec $0.01-0.10 Enterprise, subnets
BNB Chain ~2,000 ~3 sec $0.01-0.05 Retail, low-cost
Bitcoin L1 ~7 ~60 min $0.50-5+ Store of value, settlement
Bitcoin L2 (Lightning) ~1M+ instant <$0.01 Micropayments, P2P

Selection decision tree:

  1. Store of value / settlement only? → Bitcoin
  2. Micropayments / instant P2P? → Lightning Network
  3. Need EVM compatibility? → Yes: continue. No: consider Solana, Cosmos
  4. High-value DeFi / maximum security? → Ethereum L1
  5. General dApp with low gas? → Arbitrum or Base
  6. Mass-market consumer? → Base or Polygon
  7. Enterprise with custom rules? → Avalanche subnets or Hyperledger

Phase 2: Smart Contract Architecture

Design Principles

  1. Minimize on-chain state — Storage is expensive. Put data on-chain only if it needs consensus
  2. Fail loudly — Use require() / revert() with descriptive messages, never silent failures
  3. Immutability by default — Upgradeability adds attack surface. Only use if genuinely needed
  4. Separation of concerns — One contract per responsibility
  5. Gas-conscious design — Every operation costs money. Optimize hot paths

Contract Architecture Patterns

architecture_brief:
  project: "[name]"
  type: "DeFi / NFT / DAO / Token / Marketplace / Infrastructure"
  
  contracts:
    core:
      - name: "[MainContract]"
        responsibility: "[single clear purpose]"
        state_variables: ["list key storage"]
        external_calls: ["contracts it calls"]
    
    periphery:
      - name: "[Router/Helper]"
        responsibility: "[user-facing convenience]"
    
    libraries:
      - name: "[MathLib/SafeLib]"
        responsibility: "[shared pure functions]"
  
  upgrade_strategy: "immutable / transparent-proxy / UUPS / diamond / beacon"
  access_control: "Ownable / AccessControl / Timelock+Multisig / DAO"

Upgrade Pattern Decision

Pattern Complexity Gas Overhead Storage Layout Risk Best For
Immutable None None None Simple contracts, tokens
Transparent Proxy Medium +gas per call High Standard upgradeable
UUPS Medium Lower than transparent High Gas-efficient upgradeable
Diamond (EIP-2535) High Medium High Large modular systems
Beacon Medium Medium High Many identical instances

Rule: If you can avoid upgradeability, do it. If you must upgrade, use UUPS with timelock + multisig governance.

Sol

Полный SKILL.md на GitHub

Установить Web3 & Blockchain Engineering в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.md

FAQ

Что делает скилл Web3 & Blockchain Engineering?

Complete methodology for evaluating, designing, building, securing, and operating blockchain-based systems. Covers smart contract development, DeFi protocol design, token economics, security auditi...

Как установить скилл Web3 & Blockchain Engineering?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Web3 & Blockchain Engineering запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Web3 & Blockchain Engineering с