Перейти к основному содержимому

Lang Solidity

Build, test, and lint Solidity contracts.

Skill metadata​

SourceBundled (installed by default)
Pathskills/software-development/lang-solidity
Version1.1.0
AuthorVibeOS
LicenseMIT
Platformslinux, macos, windows

Reference: full SKILL.md​

к сведению

The following is the complete skill definition that VibeOS loads when this skill is triggered. This is what the agent sees as instructions when the skill is active.

Solidity Language Pack Skill

Drive Solidity work with the project index and standard CLI recipes. LSP hint: none (toolchain CLI) (editor-side when applicable). Zero new core tools.

What this language is (beginner)​

Язык смарт-контрактов для Ethereum и EVM-сетей. Нужен для Web3, DeFi, NFT и on-chain логики.

Лучше всего для:

  • смарт-контракты Ethereum / L2
  • DeFi, токены, NFT, DAO
  • ончейн-часть интернет/Web3 продуктов

When to Use​

Выбирай этот pack, если:

  • есть foundry.toml или hardhat.config.*
  • продукт требует блокчейн-логику
  • пользователь явно просит Solidity/Web3

Manifests (автодетект репозитория): foundry.toml, hardhat.config.*

Обычно рядом: TypeScript фронт/скрипты деплоя; Foundry или Hardhat.

См. также skill choose-language-pack, если цель ещё не ясна.

When NOT to use​

  • обычный веб без блокчейна → TypeScript / Python
  • оффчейн API → Go / TypeScript

Prerequisites​

vibeos pack apply lang-solidity --apply
vibeos pack apply project-intelligence --apply

How to Run​

vibeos project index build
forge test || npx hardhat test
forge build || npx hardhat compile
forge fmt --check || solhint 'contracts/**/*.sol'

Quick Reference​

GoalCommand
Apply packvibeos pack apply lang-solidity --apply
Doctorvibeos language doctor solidity
Primary testforge test
Choose guideskill choose-language-pack

Procedure​

  1. Если язык ещё не выбран для нового проекта — сначала choose-language-pack.
  2. Work from the project root that matches pack manifests.
  3. Index query → read_file → edit → path-scoped tests when iterating.
  4. Prefer the package manager / toolchain already locked in the repo.
  5. Explain non-obvious toolchain choices in plain language for the user.

Pitfalls​

  • Never broadcast mainnet txs without explicit user approval.
  • Keep private keys in env / wallet tooling.
  • Do not invent core tools; stay on terminal + read_file + index CLI.

Verification​

vibeos language doctor solidity
forge test || npx hardhat test