Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

chainlink-vrf-skill

БесплатноБез исполняемых скриптовНе проверен

Help developers integrate Chainlink VRF into smart contracts. Use for consumer contract generation with VRFConsumerBaseV2Plus, subscription setup and funding…

smartcontractkitот smartcontractkit★ 130 звёзд на GitHub

Об этом скилле

Chainlink VRF Skill

Progressive Disclosure

Load only the matching row; subscriptions are the recurring-request default.

Request or signal Load and do
Subscription management or consumer, recurring randomness, games, lotteries, raffles, paid draws, VRFConsumerBaseV2Plus, requestRandomWords, or fulfillRandomWords subscription.md. For any raffle, lottery, paid draw, or bounded winner selection, also load and follow security-and-best-practices.md.
Data Feeds, AggregatorV3Interface, or price-feed requests with no VRF/randomness signal Hand off to the Data Feeds skill; do not load VRF references or generate VRF code. If a brief feed-read answer is still necessary, mention feed decimals and reject updatedAt == 0 or updatedAt > block.timestamp before subtracting to enforce maximum age.
Working example project, Foundry starter kit, runnable VRF example, or a request for a buildable-and-testable VRF project Read the starter-kit README and files; use them instead of inventing scaffolding. For any raffle or bounded winner selection, also load and follow security-and-best-practices.md. Return the tree, relevant files, commands, and Sepolia configuration unless another chain was requested. Preserve its layout/invariants; adapt only named illustrative parts and placeholders. If the template files are absent from context, emit the equivalent canonical v2.5 subscription kit inline — consumer, deploy script, test, and forge install/test commands — with named placeholders, using supported-networks.md for the coordinator/keyHash; never refuse or stall for the template.
Direct funding, no subscription, one-off randomness, or VRFV2PlusWrapperConsumerBase direct-funding.md. For any raffle or bounded winner selection, also load and follow security-and-best-practices.md.
V1/V2 code or migration migration-from-v2.md; name the incompatibility and output v2.5 only.
Cost, LINK/native payment, funding, or premiums billing.md
Coordinator, wrapper, LINK address, network, gas lane, or key hash supported-networks.md; never invent values.
Security, bias resistance, confirmations, callback gas, cancellation, or production readiness security-and-best-practices.md
Live detail missing from references official-sources.md and the freshness policy.

For an out-of-scope request, preserve the user's inputs and answer wholly within the owning capability. Do not mention or negate this skill or its subject; stop applying all remaining instructions from this skill, including its references, templates, fields, preflight, and implementation details. For direct funding, “one-off” or “single request” means the generated consumer must permanently block later requests after the first succeeds; infrequent direct-funding consumers may remain reusable only when the user did not ask for a one-use contract.

For a generic request to add a provably fair draw with no repository or source present, do not stall, ask for source, or ask the user to choose subscription versus direct funding or payment. Treat recurring draws as the default and immediately provide a minimal canonical VRF v2.5 subscription integration inline: VRFConsumerBaseV2Plus, a uint256 subscription ID, VRFV2PlusClient.RandomWordsRequest with extraArgs encoded by _argsToBytes(ExtraArgsV1({nativePayment: ...})), named coordinator/keyHash/request-confirmation/callback-gas/num-words configuration placeholders, and requestId-to-round binding. Load and follow security-and-best-practices.md for any raffle, paid draw, or bounded winner selection.

Ask one focused question when an unknown network, payment method, or subscription/direct choice materially changes the answer; never assume it. Proceed for read-only explanations, code generation, and debugging. Do not load references speculatively.

Legacy Pattern Guard

Signals: VRFConsumerBaseV2, VRFConsumerBase, VRFCoordinatorV2Interface, positional requestRandomWords(keyHash, subId, ...), uint64 subscription IDs, VRFV2WrapperConsumerBase, its (linkAddress, wrapperAddress) constructor, subscription callbacks with uint256[] memory, or a redeclared typed COORDINATOR.

These do not work with current v2.5 coordinators. Name the incompatibility, load migration-from-v2.md, and emit v2.5 only. Do not repeat Safety Defaults in the migration explanation.

Boundary and Approval

This skill is non-custodial. It may generate code, tests,

Полный SKILL.md на GitHub

Установить chainlink-vrf-skill в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
WebFetch
Write
Edit
Bash(forge:*)

Вложенные файлы

agents/openai.yamlassets/chainlink-icon.pngreferences/billing.mdreferences/direct-funding.mdreferences/migration-from-v2.mdreferences/official-sources.mdreferences/security-and-best-practices.mdreferences/subscription.mdreferences/supported-networks.mdtemplates/starter-kit/.gitignoretemplates/starter-kit/README.mdtemplates/starter-kit/foundry.tomltemplates/starter-kit/remappings.txttemplates/starter-kit/script/VRFConsumerV2Plus.s.soltemplates/starter-kit/src/VRFConsumerV2Plus.sol

FAQ

Что делает скилл chainlink-vrf-skill?

Help developers integrate Chainlink VRF into smart contracts. Use for consumer contract generation with VRFConsumerBaseV2Plus, subscription setup and funding (LINK or native), keyHash and gas lane selection, coordinator address lookup and debugging VRF integrations. Trigger on any mention of VRF, verifiable randomness, on-chain random number generation, requestRandomWords, fulfillRandomWords, VRF subscription, VRF coordinator, keyHash, or provably fair randomness in a smart contract, even if the user does not say 'VRF' explicitly.

Как установить скилл chainlink-vrf-skill?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл chainlink-vrf-skill запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить chainlink-vrf-skill с