chainlink-vrf-skill
Installation
SKILL.md
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. |