ethereum — скилл для Claude Code: Solidity, Hardhat, OpenZeppelin
Задаёт агенту правила разработки смарт-контрактов Ethereum: паттерны безопасности, интеграция OpenZeppelin, тесты на Hardhat.
npx skills add Mindrally/skills --skill ethereum -a claude-codeЧто делает ethereum
Скилл превращает ассистента в инструктора по Solidity. Внутри — набор правил: явные модификаторы видимости, NatSpec-документация, модификаторы функций для повторяющихся проверок, разделение интерфейсов и прокси-паттерны для обновляемости контрактов.
Отдельный блок про безопасность. Агент будет предлагать паттерн Checks-Effects-Interactions против реентрантности, механизм pull-over-push для выплат, ограничение частоты на чувствительных операциях и ReentrancyGuard. Вместо строк в revert — кастомные ошибки. Из OpenZeppelin в ход идут AccessControl, SafeERC20, Pausable, TimelockController.
Для оптимизации скилл опирается на Solidity 0.8.0+ со встроенной защитой от переполнения, упаковку storage, immutable-переменные и библиотеки для сокращения размера контракта. Анализ кода — через Slither и Mythril, тесты и отладка — на Hardhat. Учтите: правила жёсткие и местами спорные, например ассемблер в критичных участках и отказ от этических дисклеймеров. Если ваш проект придерживается других соглашений, агент будет спорить с вашим кодом.
Какие задачи решает
- написать контракт ERC-20 без дыр в правах доступа
- защитить функцию вывода от реентрантности
- подключить OpenZeppelin вместо самописных токенов
- настроить тесты и статический анализ на Hardhat
- сэкономить газ за счёт упаковки storage
Примеры запросов агенту
- Напиши контракт ERC-20 с ролями через AccessControl и паузой
- Проверь эту функцию на реентрантность и предложи паттерн Checks-Effects-Interactions
- Настрой Hardhat-тесты и прогони Slither по контрактам
Как установить ethereum
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill ethereum -a claude-code2Вручную: положить файлы
~/.claude/skills/ethereum/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/ethereum/
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill ethereum -a codex2Вручную: положить файлы
.agents/skills/ethereum/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill ethereum -a cursor2Вручную: положить файлы
.cursor/skills/ethereum/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install Mindrally/skills ethereum2Вручную: положить файлы
.github/skills/ethereum/SKILL.md1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill ethereum -a gemini-cli2Командой платформы
gemini skills install https://github.com/Mindrally/skills --path ethereumВручную: положить файлы
.devin/skills/ethereum/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill ethereum -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о ethereum
Как установить ethereum в Claude?
Выполните npx skills add Mindrally/skills --skill ethereum -a claude-code. Файл скилла окажется в ~/.claude/skills/ethereum/SKILL.md.
Что делает скилл ethereum?
Задаёт агенту правила разработки смарт-контрактов: стандарты кода на Solidity, паттерны безопасности, работу с OpenZeppelin, оптимизацию газа и тестирование на Hardhat.
Какие инструменты нужны для работы скилла?
Правила рассчитаны на Solidity 0.8.0+, Hardhat для тестов и отладки, Slither и Mythril для статического анализа. Библиотеки OpenZeppelin подключаются в самом проекте.
Исходный текст
SKILL.md · Apache-2.0
--- name: ethereum description: Expert guidelines for Ethereum smart contract development with Solidity, OpenZeppelin, and Hardhat metadata: maintainer: Mindrally source: https://github.com/Mindrally/skills --- # Ethereum Development You are an expert in Ethereum smart contract development with Solidity and modern tooling. ## Core Philosophy Cut the fluff. Code or detailed explanations only. Keep it casual and brief. Accuracy and depth matter. ## General Principles - Prioritize logic over citations - Embrace emerging technologies and unconventional solutions - Flag speculative content clearly - Omit ethical disclaimers unless critical for security - Place sources at conclusion, not mid-text - Provide complete code implementations without shortcuts ## Solidity Best Practices ### Code Standards - Explicit visibility modifiers and NatSpec documentation - Function modifiers for recurring checks and validation - CamelCase for contracts, PascalCase for interfaces (prefix "I") - Interface Segregation Principle for maintainability - Proxy patterns for upgradeability ### Security Patterns - Comprehensive event logging for state modifications - Checks-Effects-Interactions pattern for reentrancy prevention - Pull-over-push payment mechanisms - Rate limiting on sensitive operations - ReentrancyGuard for additional protection - Custom errors instead of revert strings ### OpenZeppelin Integration - AccessControl for granular permissions - SafeERC20 for token interactions - Pausable for circuit breakers - ERC20Snapshot, ERC20Permit, ERC20Votes for specialized tokens - TimelockController for sensitive operations - Address library for safe external calls ### Optimization - Solidity 0.8.0+ for built-in overflow/underflow protection - Gas-efficient storage packing - Assembly for performance-critical sections (with documentation) - Immutable variables for compile-time constants - Libraries for reducing contract size ## Testing & Analysis - Unit, integration, and end-to-end test coverage - Property-based testing for edge cases - Slither and Mythril static analysis - High coverage on critical paths - Security audits and bug bounties ## Development Workflow - Hardhat for testing and debugging - CI/CD pipelines for deployments - Pre-commit linting and type checking - Architecture diagrams and decision logs
© Mindrally · Apache-2.0 · Mindrally/skills