agentleFS
vechainvechain/vechain-ai-skills/skills/thor/SKILL.md

thor

Skill15 starsChanged 9 months agoMITView on GitHub

VeChainThor node internals — architecture, consensus (PoA/PoS/BFT), built-in contracts, REST API, storage, P2P networking, block production, transaction lifecycle, reward distribution, staking, and contributing to the Go codebase.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read reference files FIRST: When the user's request involves any topic in the reference table below, read those files before doing anything …

    line 15
  2. Distinctive:

    Use this Skill for anything related to the VeChainThor node (thor):

    line 22
  3. Distinctive:

    Read the matching files BEFORE doing anything else.

    line 64

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Thor Skill

CRITICAL RULES

  1. Read reference files FIRST. When the user's request involves any topic in the reference table below, read those files before doing anything else. Briefly mention which files you are reading so the user can confirm the skill is active.
  2. Information priority: (a) Reference files in this skill — always the primary source. (b) The thor repo source code at github.com/vechain/thor/v2 for implementation details. (c) Web search — only as a last resort for topics NOT covered in references.
  3. Prefer working directly in the main conversation. Plan mode and subagents do not inherit skill context and may produce stale answers.
  4. After compaction or context loss, re-read this SKILL.md to restore awareness of the reference table.

Scope

Use this Skill for anything related to the VeChainThor node (thor):

  • Architecture and package structure of the Go codebase
  • Consensus: PoA v1/v2, PoS (Galactica), BFT finality
  • Built-in contracts: Authority, Energy, Staker, Params, Prototype, Executor, Extension
  • REST API endpoints and WebSocket subscriptions
  • Storage: LevelDB, SQLite logdb, trie, pruning, node types
  • P2P networking: discovery, block/tx propagation
  • Cross-cutting flows: block production, transaction lifecycle, reward distribution, staking/delegation, chain sync
  • Solo mode for local development
  • Contributing to the thor codebase: build, test, add endpoints, fork config

For application-level VeChain development, see the companion skills:

  • vechain-core — SDK usage, fee delegation, multi-clause transactions, dual-token model
  • vechain-kit — VeChain Kit hooks, components, wallet connection, social login
  • smart-contract-development — Solidity, Hardhat, testing, security
  • stargate — NFT staking, validator delegation, VTHO rewards

Operating procedure

1. Identify the question type

  • PM/architecture question → read architecture.md + relevant flow files
  • Contributor question → read contributing.md + relevant package reference
  • "How does X work?" → read the matching flow file(s)
  • API question → read api.md
  • Node operations → read architecture.md (node types, flags, ports)

2. Read before answering

Load the matching reference files from the table below. Cross-cutting questions may need multiple files.

3. Answer with context

  • Reference specific packages, types, and files from the thor codebase
  • For flows, trace through the packages step-by-step
  • For PM audiences, lead with the high-level summary before diving into implementation
  • For contributors, include package paths and key type names

Reference files

Read the matching files BEFORE doing anything else. See Critical Rules above.

TopicFileRead when user mentions...
Architecturereferences/architecture.mdoverview, packages, node types, ports, flags, fork config, tech stack
Consensusreferences/consensus.mdPoA, PoS, BFT, finality, proposer, validator selection, VRF, Galactica
Built-in contractsreferences/built-in-contracts.mdAuthority, Energy, VTHO, Staker, Params, Prototype, Executor, native contracts
REST APIreferences/api.mdAPI, endpoints, routes, subscriptions, WebSocket, Swagger
Storagereferences/storage.mddatabase, LevelDB, SQLite, logdb, trie, pruning, archive, disk
P2P networkingreferences/p2p.mdpeers, discovery, discv5, propagation, sync protocol, bootstrap
Contributingreferences/contributing.mdbuild, Makefile, tests, lint, add endpoint, fork config, PR, Go conventions
Solo modereferences/solo.mdsolo, local dev, test chain, pre-funded accounts, auto-mine
Flow: block productionreferences/flow-block-production.mdblock packing, scheduler, proposer, how blocks are created
Flow: transaction lifecyclereferences/flow-transaction-lifecycle.mdtx flow, txpool, clause execution, receipts, tx validation
Flow: reward distributionreferences/flow-reward-distribution.mdrewards, VTHO generation, validator rewards, gas rewards, burning
Flow: staking & delegationreferences/flow-staking-delegation.mdstaking, delegation, unstaking, Staker contract, validator lifecycle
Flow: chain syncreferences/flow-sync.mdsync, catch-up, peer download, fork handling, reorg, propagation

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.