VeChain Core Skill
CRITICAL RULES
- Read reference files FIRST. When the user's request involves any topic in the reference table below, read those files before doing anything else — before writing code, before making decisions. Briefly mention which files you are reading so the user can confirm the skill is active (e.g., "Reading fee delegation reference...").
- Information priority for VeChain topics: (a) Reference files in this skill — always the primary source. (b) VeChain MCP tools — use
@vechain/mcp-server for on-chain data, transaction building, and live network queries; use Kapa AI MCP for VeChain documentation lookups. (c) Web search — only as a last resort, and only for topics NOT covered in the reference files.
- Prefer working directly in the main conversation for VeChain tasks. Plan mode and subagents do not inherit skill context and may fall back to web search instead of using reference files.
- After compaction or context loss, re-read this SKILL.md to restore awareness of the reference table and operating procedure before continuing work.
Scope
Use this Skill for general VeChain development:
- SDK usage (
@vechain/sdk-core, @vechain/sdk-network, ethers adapter)
- Fee delegation (VIP-191) — gasless transactions, backend sponsorship, vechain.energy
- Multi-clause transactions — atomic batching of multiple operations
- Dual-token model (VET for value, VTHO for gas)
- Legacy migration from Connex/thor-devkit to VeChain SDK
- General VeChainThor development patterns and reference links
For specialized topics, see the companion skills:
- frontend — Generic frontend patterns: React Query, Turborepo, state management, Chakra UI, i18n, transaction UX
- vechain-kit — VeChain Kit and dapp-kit packages: hooks, components, wallet connection, social login
- smart-contract-development — Solidity, Hardhat, testing, security, gas optimization
- vebetterdao — X2Earn apps, B3TR/VOT3, governance, VeVote
- stargate — NFT staking, validators, delegation, VTHO rewards
Default stack
| Layer |
Default |
Alternative |
| SDK |
@vechain/sdk-core + @vechain/sdk-network |
@vechain/sdk-ethers-adapter |
| Node |
Node 20 LTS (managed via nvm) |
-- |
Operating procedure
1. Check Node version
Before installing dependencies or running any command:
- Check if
.nvmrc exists in the project root. If yes, run nvm use to switch to the required version.
- If
.nvmrc does not exist, create one with 20 (Node 20 LTS) and run nvm use.
2. Detect project structure
turbo.json present → follow Turborepo conventions (apps/, packages/*)
3. Clarify before implementing
When the user's request is ambiguous or could be solved multiple ways, ask before building. Do not silently research alternatives and pick one. Separate research from implementation:
- If the scope is unclear, ask the user to narrow it
- If multiple architectures are viable, present trade-offs and let the user choose
- Only proceed to implementation once the approach is agreed upon
4. Implement with VeChain-specific correctness
- Network: always explicit (
mainnet/testnet/solo)
- Gas: estimate first, use fee delegation where appropriate
- Transactions: use multi-clause when batching benefits atomicity or UX
- Tokens: VET for value, VTHO for gas (dual-token model)
5. Verify and deliver
A task is not complete until all applicable gates pass:
- Code compiles — no build errors
- Tests pass — existing tests still pass; new logic has test coverage
- Risk notes documented — any signing, fee, or token-transfer implications are called out
Then provide:
- Files changed + diffs
- Install/build/test commands
- Risk notes for signing, fees, token transfers
Reference files
Read the matching files BEFORE doing anything else. See Critical Rules above.
| Topic |
File |
Read when user mentions... |
| Fee delegation |
references/fee-delegation.md |
gasless, sponsored, VIP-191, delegator, vechain.energy |
| Multi-clause |
references/multi-clause-transactions.md |
batch, multi-clause, atomic, multiple operations |
| Legacy migration |
references/sdk-migration.md |
Connex, thor-devkit, migration, deprecated |
| Reference links |
references/resources.md |
docs URL, npm link, GitHub repo |
1---2name: vechain-core3description: Core VeChain development — SDK usage, fee delegation (VIP-191), multi-clause transactions, dual-token model, legacy migration, and general VeChainThor development patterns.4license: MIT5---67# VeChain Core Skill89## CRITICAL RULES10111. **Read reference files FIRST.** When the user's request involves any topic in the reference table below, read those files before doing anything else — before writing code, before making decisions. Briefly mention which files you are reading so the user can confirm the skill is active (e.g., "Reading fee delegation reference...").122. **Information priority for VeChain topics:** (a) Reference files in this skill — always the primary source. (b) VeChain MCP tools — use `@vechain/mcp-server` for on-chain data, transaction building, and live network queries; use Kapa AI MCP for VeChain documentation lookups. (c) Web search — only as a last resort, and only for topics NOT covered in the reference files.133. **Prefer working directly in the main conversation** for VeChain tasks. Plan mode and subagents do not inherit skill context and may fall back to web search instead of using reference files.144. **After compaction or context loss**, re-read this SKILL.md to restore awareness of the reference table and operating procedure before continuing work.1516## Scope1718Use this Skill for general VeChain development:1920- SDK usage (`@vechain/sdk-core`, `@vechain/sdk-network`, ethers adapter)21- Fee delegation (VIP-191) — gasless transactions, backend sponsorship, vechain.energy22- Multi-clause transactions — atomic batching of multiple operations23- Dual-token model (VET for value, VTHO for gas)24- Legacy migration from Connex/thor-devkit to VeChain SDK25- General VeChainThor development patterns and reference links2627For specialized topics, see the companion skills:2829- **frontend** — Generic frontend patterns: React Query, Turborepo, state management, Chakra UI, i18n, transaction UX30- **vechain-kit** — VeChain Kit and dapp-kit packages: hooks, components, wallet connection, social login31- **smart-contract-development** — Solidity, Hardhat, testing, security, gas optimization32- **vebetterdao** — X2Earn apps, B3TR/VOT3, governance, VeVote33- **stargate** — NFT staking, validators, delegation, VTHO rewards3435## Default stack3637| Layer | Default | Alternative |38|-------|---------|-------------|39| SDK | `@vechain/sdk-core` + `@vechain/sdk-network` | `@vechain/sdk-ethers-adapter` |40| Node | Node 20 LTS (managed via `nvm`) | -- |4142## Operating procedure4344### 1. Check Node version4546Before installing dependencies or running any command:4748- Check if `.nvmrc` exists in the project root. If yes, run `nvm use` to switch to the required version.49- If `.nvmrc` does not exist, create one with `20` (Node 20 LTS) and run `nvm use`.5051### 2. Detect project structure5253- `turbo.json` present → follow Turborepo conventions (`apps/`, `packages/*`)5455### 3. Clarify before implementing5657When the user's request is ambiguous or could be solved multiple ways, **ask before building**. Do not silently research alternatives and pick one. Separate research from implementation:5859- If the scope is unclear, ask the user to narrow it60- If multiple architectures are viable, present trade-offs and let the user choose61- Only proceed to implementation once the approach is agreed upon6263### 4. Implement with VeChain-specific correctness6465- Network: always explicit (`mainnet`/`testnet`/`solo`)66- Gas: estimate first, use fee delegation where appropriate67- Transactions: use multi-clause when batching benefits atomicity or UX68- Tokens: VET for value, VTHO for gas (dual-token model)6970### 5. Verify and deliver7172A task is **not complete** until all applicable gates pass:73741. **Code compiles** — no build errors752. **Tests pass** — existing tests still pass; new logic has test coverage763. **Risk notes documented** — any signing, fee, or token-transfer implications are called out7778Then provide:7980- Files changed + diffs81- Install/build/test commands82- Risk notes for signing, fees, token transfers8384## Reference files8586Read the matching files BEFORE doing anything else. See Critical Rules above.8788| Topic | File | Read when user mentions... |89|-------|------|---------------------------|90| Fee delegation | [references/fee-delegation.md](references/fee-delegation.md) | gasless, sponsored, VIP-191, delegator, vechain.energy |91| Multi-clause | [references/multi-clause-transactions.md](references/multi-clause-transactions.md) | batch, multi-clause, atomic, multiple operations |92| Legacy migration | [references/sdk-migration.md](references/sdk-migration.md) | Connex, thor-devkit, migration, deprecated |93| Reference links | [references/resources.md](references/resources.md) | docs URL, npm link, GitHub repo |