ton-best-practices

March 2, 2026 · View on GitHub

A Claude Code skill for TON blockchain smart contract security auditing, development, and best practices.

Language: Tolk v1.2 / TVM 12 Based on: 233 vulnerabilities from 34 professional audits + full Tolk documentation + 42 production contracts from tolk-bench

Installation

npx skills add elsvv/ton-best-practices-skill

What's inside

FileContents
SKILL.mdEntry point — Top 10 vulnerabilities, quick checklist, TON vs EVM comparison
tolk-security.md30 Tolk-specific security pitfalls with vulnerable/correct code examples
tolk-best-practices.md16-section Tolk language best practices from production contracts
vulnerabilities.mdFull 233-vulnerability catalog with Tolk code examples
tvm-async.mdTVM internals, async model, BounceMode guide (Tolk 1.2 / TVM 12)
audit-checklist.md11-phase professional audit checklist (Phase 0 = Tolk config)

Key topics

  • Top 10 vulnerabilities: auth checks, integer overflow, async reentrancy, lazy loading bypass, union type dispatch, message modes, deserialization, null assertions, bounce handling, gas exhaustion
  • Tolk 1.2 features: BounceMode.RichBounce (full bounce body recovery), address internal-only validation, borrow checker
  • Async model: carry-value pattern, bounce handlers, multi-message race conditions
  • Access control: nullable admin patterns, two-step ownership transfer, workchain validation
  • Gas management: fee estimation, reserve patterns, out-of-gas handling

Trigger keywords

Tolk, TVM, TVM 12, TON contract, jetton, NFT TON, TON audit, bounce message, smart contract security, TON blockchain

Sources