スキル一覧に戻る
vasilyu1983

software-crypto-web3

by vasilyu1983

25🍴 6📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


name: software-crypto-web3 description: Production-grade blockchain and Web3 development with Solidity (Ethereum/EVM), Rust (Solana), CosmWasm (Cosmos), including smart contract architecture, security patterns, gas optimization, testing strategies, DeFi protocols, and deployment workflows.

Blockchain & Web3 Development Skill — Quick Reference

This skill equips blockchain developers with execution-ready patterns for building secure, gas-optimized smart contracts and decentralized applications. Apply these patterns when you need smart contract development, DeFi protocols, NFT implementations, security audits, or Web3 architecture.

Modern Best Practices (Jan 2026): Solidity 0.8.33+, security-first development, explicit threat models, comprehensive testing (unit, integration, fork, invariant), audits/formal methods where warranted, upgrade safety (timelocks, governance, rollback plans), and defense-in-depth for key custody and signing.


Quick Reference

TaskTool/FrameworkCommandWhen to Use
Solidity DevelopmentHardhat/Foundrynpx hardhat init or forge initEthereum/EVM smart contracts
Solana ProgramsAnchoranchor initSolana blockchain development
Cosmos ContractsCosmWasmcargo generate --git cosmwasm-templateCosmos ecosystem contracts
TON ContractsTact/FunC + Blueprintnpm create ton@latestTON blockchain development
Testing (Solidity)Foundry/Hardhatforge test or npx hardhat testUnit, fork, invariant tests
Security AuditSlither/Aderyn/Echidnaslither . or aderyn .Static analysis, fuzzing
AI-Assisted AuditSherlock AI/OlympixIntegrated platformsPre-audit, CI/CD security
FuzzingEchidna/Medusaechidna . or medusa fuzzProperty-based fuzzing
Gas OptimizationFoundry Gas Snapshotsforge snapshotBenchmark and optimize gas
DeploymentHardhat Deploy/Forge Scriptnpx hardhat deployMainnet/testnet deployment
VerificationEtherscan APInpx hardhat verifySource code verification
Upgradeable ContractsOpenZeppelin Upgrades@openzeppelin/hardhat-upgradesProxy-based upgrades
Smart WalletsERC-4337 + EIP-7702Account abstraction SDKsGasless UX, batch txns

When to Use This Skill

Use this skill when you need:

  • Smart contract development (Solidity, Rust, CosmWasm)
  • DeFi protocol implementation (AMM, lending, staking, yield farming)
  • NFT and token standards (ERC20, ERC721, ERC1155, SPL tokens)
  • DAO governance systems
  • Cross-chain bridges and interoperability
  • Gas optimization and storage patterns
  • Smart contract security audits
  • Testing strategies (Foundry, Hardhat, Anchor)
  • Oracle integration (Chainlink, Pyth)
  • Upgradeable contract patterns (proxies, diamonds)
  • Web3 frontend integration (ethers.js, web3.js, @solana/web3.js)
  • Blockchain indexing (The Graph, subgraphs)
  • MEV protection and flashbots
  • Layer 2 scaling solutions (Base, Arbitrum, Optimism, zkSync)
  • Account abstraction (ERC-4337, EIP-7702, smart wallets)
  • Backend crypto integration (.NET/C#, multi-provider architecture, CQRS)
  • Webhook handling and signature validation (Fireblocks, custodial providers)
  • Event-driven architecture with Kafka for crypto payments
  • Transaction lifecycle management and monitoring
  • Wallet management (custodial vs non-custodial)

Decision Tree: Blockchain Platform Selection

Project needs: [Use Case]
    ├─ EVM-compatible smart contracts?
    │   ├─ Complex testing needs → Foundry (Solidity tests, fuzzing, gas snapshots)
    │   ├─ TypeScript ecosystem → Hardhat (plugins, TypeScript, Ethers.js)
    │   └─ Enterprise features → NestJS + Hardhat
    │
    ├─ High throughput/low fees?
    │   ├─ Rust-based → Solana (Anchor framework)
    │   ├─ EVM L2 → Arbitrum/Optimism (Ethereum security, lower gas)
    │   └─ Telegram integration → TON (Tact/FunC contracts)
    │
    ├─ Interoperability across chains?
    │   ├─ Cosmos ecosystem → CosmWasm (IBC protocol)
    │   ├─ Multi-chain DeFi → LayerZero or Wormhole
    │   └─ Bridge development → Custom bridge contracts
    │
    ├─ Token standard implementation?
    │   ├─ Fungible tokens → ERC20 (OpenZeppelin), SPL Token (Solana)
    │   ├─ NFTs → ERC721/ERC1155 (OpenZeppelin), Metaplex (Solana)
    │   └─ Semi-fungible → ERC1155 (gaming, fractionalized NFTs)
    │
    ├─ DeFi protocol development?
    │   ├─ AMM/DEX → Uniswap V3 fork or custom (x*y=k, concentrated liquidity)
    │   ├─ Lending → Compound/Aave fork (collateralized borrowing)
    │   └─ Staking/Yield → Custom reward distribution contracts
    │
    ├─ Upgradeable contracts required?
    │   ├─ Transparent Proxy → OpenZeppelin (admin/user separation)
    │   ├─ UUPS → Gas-efficient (upgrade logic in implementation)
    │   └─ Diamond Standard → Modular functionality (EIP-2535)
    │
    └─ Backend integration?
        ├─ .NET/C# → Multi-provider architecture (see Backend Integration Patterns)
        ├─ Node.js → Ethers.js/Web3.js + Prisma
        └─ Python → Web3.py + FastAPI

Chain-Specific Considerations:

  • Ethereum/EVM: Security-first, higher gas costs, largest ecosystem
  • Solana: Performance-first, Rust required, lower fees
  • Cosmos: Interoperability-first, IBC native, growing ecosystem
  • TON: Telegram-first, async contracts, unique architecture

See references/ for chain-specific best practices.


Security-First Patterns (Jan 2026)

Security baseline: Assume an adversarial environment. Treat contracts and signing infrastructure as public, attackable APIs.

Custody, Keys, and Signing (Core)

Key management is the dominant risk driver in production crypto systems. Use general key management guidance as a baseline (NIST SP 800-57) https://csrc.nist.gov/publications/detail/sp/800-57-part-1/rev-5/final

ModelWho holds keysTypical usePrimary risksDefault controls
Non-custodialEnd user walletConsumer apps, self-custodyPhishing, approvals, UX errorsHardware wallet support, clear signing UX, allowlists
CustodialYour service (HSM/MPC)Exchanges, payments, B2BKey theft, insider threat, ops mistakesHSM/MPC, separation of duties, limits/approvals, audit logs
HybridSplit responsibilityEnterprisesComplex failure modesExplicit recovery/override paths, runbooks

Do:

  • Separate hot/warm/cold signing paths with limits and approvals [Inference]
  • Require dual control for high-value transfers (policy engine + human approval) [Inference]
  • Keep an immutable audit trail for signing requests (who/what/when/why) [Inference]

Avoid:

  • Storing private keys in databases or application config
  • Reusing signing keys across environments (dev/staging/prod)
  • Hot-wallet automation without rate limits and circuit breakers [Inference]

Checks-Effects-Interactions (CEI) Pattern

Mandatory for all state-changing functions.

// Correct: CEI pattern
function withdraw(uint256 amount) external {
    // 1. CHECKS: Validate conditions
    require(balances[msg.sender] >= amount, "Insufficient balance");

    // 2. EFFECTS: Update state BEFORE external calls
    balances[msg.sender] -= amount;

    // 3. INTERACTIONS: External calls LAST
    (bool success, ) = msg.sender.call{value: amount}("");
    require(success, "Transfer failed");
}

// Wrong: External call before state update (reentrancy risk)
function withdrawUnsafe(uint256 amount) external {
    require(balances[msg.sender] >= amount);
    (bool success, ) = msg.sender.call{value: amount}("");
    require(success);
    balances[msg.sender] -= amount; // Too late!
}

Security Tools (Jan 2026)

CategoryToolPurposeWhen to Use
Static AnalysisSlitherVulnerability detection, 92+ detectorsEvery contract
Static AnalysisAderynRust-based, faster for large codebasesLarge projects
FuzzingEchidnaProperty-based fuzzingComplex state
FuzzingMedusaParallelized Go fuzzerCI/CD pipelines
Formal VerificationSMTCheckerBuilt-in Solidity checkerEvery contract
Formal VerificationCertoraProperty-based proofs (CVL)DeFi, high-value
Formal VerificationHalmosSymbolic testingComplex invariants
AI-AssistedSherlock AIML vulnerability detectionPre-audit prep
AI-AssistedOlympixDevSecOps integrationCI/CD security
AI-AssistedAuditBase423+ detectors, LLM-poweredBusiness logic
Mutation TestingSuMoTest suite quality assessmentTest validation
// Certora CVL rule example
rule balanceNeverNegative(address user) {
    env e;
    require balances[user] >= 0;
    deposit(e);
    assert balances[user] >= 0;
}

AI Auditor Landscape (2026): AI auditing tools have cut average audit time by 30%+. Sherlock AI (released Sept 2025) combines rule-based scanning with supervised learning. Use AI tools for pre-audit preparation; they complement, not replace, human auditors.

MEV Protection

StrategyImplementation
Private mempoolFlashbots Protect, MEV Blocker
Commit-revealHash commitment, reveal after deadline
Batch auctionsCoW Protocol, Gnosis Protocol
Encrypted mempoolsShutter Network
// Commit-reveal pattern
mapping(address => bytes32) public commitments;

function commit(bytes32 hash) external {
    commitments[msg.sender] = hash;
}

function reveal(uint256 value, bytes32 salt) external {
    require(
        keccak256(abi.encodePacked(value, salt)) == commitments[msg.sender],
        "Invalid reveal"
    );
    // Process revealed value
}

Account Abstraction (Jan 2026)

Adoption: 40M+ smart accounts deployed, 100M+ UserOperations processed. EIP-7702 live since Pectra upgrade (May 2025).

ERC-4337 vs EIP-7702

StandardTypeKey FeatureUse Case
ERC-4337Smart contract walletsFull AA without protocol changesNew wallets, DeFi, gaming
EIP-7702EOA enhancementEOAs execute smart contract codeExisting wallets, batch txns
ERC-6900Modular accountsPlugin management for AA walletsExtensible wallet features

ERC-4337 Architecture:

User → UserOperation → Bundler → EntryPoint → Smart Account → Target Contract
                          ↓
                      Paymaster (gas sponsorship)

EIP-7702 (Pectra Upgrade):

  • EOAs can temporarily delegate to smart contracts
  • Enables batch transactions, sponsored gas for existing addresses
  • Complementary to ERC-4337 (uses same bundler/paymaster infra)
  • Supported by Ambire, Trust Wallet, and growing

Key Capabilities:

  • Gasless transactions: Paymasters sponsor gas in ERC-20 or fiat
  • Batch operations: Multiple actions in single transaction
  • Social recovery: Multi-sig or guardian-based key recovery
  • Session keys: Limited permissions for dApps without full wallet access

Smart Wallet Development

// Minimal ERC-4337 Account (simplified)
import "@account-abstraction/contracts/core/BaseAccount.sol";

contract SimpleAccount is BaseAccount {
    address public owner;

    function validateUserOp(
        UserOperation calldata userOp,
        bytes32 userOpHash,
        uint256 missingAccountFunds
    ) external override returns (uint256 validationData) {
        // Verify signature
        require(_validateSignature(userOp, userOpHash), "Invalid sig");
        // Pay prefund if needed
        if (missingAccountFunds > 0) {
            (bool success,) = payable(msg.sender).call{value: missingAccountFunds}("");
            require(success);
        }
        return 0; // Valid
    }
}

Layer 2 Development (Jan 2026)

Market Share: Base (46.58%) + Arbitrum (30.86%) = 75%+ of L2 DeFi TVL. All major optimistic rollups now Stage 1 with live fraud proofs.

L2 Selection Guide

L2TypeBest ForKey Feature
BaseOptimisticConsumer apps, mainstream adoptionCoinbase integration, low fees
ArbitrumOptimisticDeFi, mature ecosystemLargest TVL, DAO grants
OptimismOptimisticPublic goods, SuperchainOP Stack, grant programs
zkSync EraZK-RollupFast finality, native AAzkEVM, no withdrawal delay
StarkNetZK-RollupCairo development, ZK-nativeSTARK proofs, custom VM

Enterprise Rollups (2025-2026 Trend)

Major institutions launching L2s on OP Stack:

  • Kraken INK - Exchange-native L2
  • Uniswap UniChain - DeFi-optimized
  • Sony Soneium - Gaming and media
  • Robinhood - Arbitrum integration

EIP-4844 Blob Optimization

Since March 2024, rollups use blob-based data posting:

Before: calldata posting → expensive
After:  blob posting → 50%+ DA cost reduction

Optimism, zkSync optimized batching for blobs in 2025.


LLM Limitations in Smart Contracts

Do not rely on LLMs for:

  • Security-critical logic verification
  • Gas optimization calculations
  • Complex mathematical proofs

Use LLMs for:

  • Boilerplate generation (tests, docs)
  • Code explanation and review prep
  • Initial vulnerability hypotheses (verify manually)

Resources

Templates

Related Skills


Trend Awareness Protocol

IMPORTANT: When users ask recommendation questions about Web3/crypto development, you MUST use WebSearch to check current trends before answering.

Trigger Conditions

  • "What's the best blockchain for [use case]?"
  • "What should I use for [smart contracts/DeFi/NFTs]?"
  • "What's the latest in Web3 development?"
  • "Current best practices for [Solidity/auditing/gas optimization]?"
  • "Is [chain/protocol] still relevant in 2026?"
  • "[Ethereum] vs [Solana] vs [other L1/L2]?"
  • "Best framework for [smart contract development]?"

Required Searches

  1. Search: "Web3 development best practices 2026"
  2. Search: "[Ethereum/Solana/Base] development updates 2026"
  3. Search: "smart contract security 2026"
  4. Search: "[Hardhat/Foundry] comparison 2026"

What to Report

After searching, provide:

  • Current landscape: What chains/tools are popular NOW
  • Emerging trends: New protocols or patterns gaining traction
  • Deprecated/declining: Chains or approaches losing relevance
  • Recommendation: Based on fresh data and ecosystem activity
  • L2 ecosystem growth (Base, Arbitrum, Optimism)
  • Solidity vs Rust for smart contracts
  • Foundry vs Hardhat tooling
  • Account abstraction (ERC-4337) adoption
  • Cross-chain bridges and interoperability
  • DeFi security patterns and audit practices

Operational Playbooks

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です