/chainlink:chainlink-local-testingfrom chainlink
This skill should be used when the user asks about "Chainlink Local", "test Chainlink locally", "CCIPLocalSimulator", "CCIPLocalSimulatorFork", "MockV3Aggregator", "Chainlink data feed mocks", "Foundry Chainlink tests", or needs guidance on integrating Chainlink services in local or forked tests.
Ships in chainlink. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use Chainlink Local when you want deterministic, local-first tests for Chainlink-dependent integrations before running public testnet or mainnet-fork validation.
If Chainlink Local is installed with Forge, add this remapping:
@chainlink/local/=lib/chainlink-local/
You can place it in remappings.txt or foundry.toml remappings.
| Purpose | Contract | Path |
|---|---|---|
| Local CCIP simulator | CCIPLocalSimulator | @chainlink/local/src/ccip/CCIPLocalSimulator.sol |
| Forked CCIP simulator | CCIPLocalSimulatorFork | @chainlink/local/src/ccip/CCIPLocalSimulatorFork.sol |
| Local data feed mock | MockV3Aggregator | @chainlink/local/src/data-feeds/MockV3Aggregator.sol |
| Advanced feed mock | MockOffchainAggregator | @chainlink/local/src/data-feeds/MockOffchainAggregator.sol |
Use this for fast unit/integration tests in a single local Anvil state.
pragma solidity ^0.8.19;
import {Test} from "forge-std/Test.sol";
import {CCIPLocalSimulator} from "@chainlink/local/src/ccip/CCIPLocalSimulator.sol";
import {IRouterClient, LinkToken, BurnMintERC677Helper} from "@chainlink/local/src/ccip/CCIPLocalSimulator.sol";
contract ChainlinkLocalNoForkTest is Test {
CCIPLocalSimulator internal sim;
IRouterClient internal router;
LinkToken internal link;
BurnMintERC677Helper internal ccipBnM;
BurnMintERC677Helper internal ccipLnM;
address internal alice;
address internal bob;
uint64 internal destSelector;
function setUp() public {
alice = makeAddr("alice");
bob = makeAddr("bob");
sim = new CCIPLocalSimulator();
(
uint64 chainSelector,
IRouterClient sourceRouter,
,
,
LinkToken linkToken,
BurnMintERC677Helper tokenBnM,
BurnMintERC677Helper tokenLnM
) = sim.configuration();
destSelector = chainSelector;
router = sourceRouter;
link = linkToken;
ccipBnM = tokenBnM;
ccipLnM = tokenLnM;
}
}
Use this to test with realistic chain state and route messages across forks.
pragma solidity ^0.8.19;
import {Test} from "forge-std/Test.sol";
import {CCIPLocalSimulatorFork, Register} from "@chainlink/local/src/ccip/CCIPLocalSimulatorFork.sol";
contract ChainlinkLocalForkTest is Test {
CCIPLocalSimulatorFork internal simFork;
uint256 internal sourceFork;
uint256 internal destinationFork;
function setUp() public {
string memory sourceRpc = vm.envString("ARBITRUM_SEPOLIA_RPC_URL");
string memory destinationRpc = vm.envString("ETHEREUM_SEPOLIA_RPC_URL");
destinationFork = vm.createSelectFork(destinationRpc);
sourceFork = vm.createFork(sourceRpc);
simFork = new CCIPLocalSimulatorFork();
vm.makePersistent(address(simFork));
vm.selectFork(sourceFork);
Register.NetworkDetails memory source = simFork.getNetworkDetails(block.chainid);
assertTrue(source.routerAddress != address(0));
}
}
In forked tests, use simFork.switchChainAndRouteMessage(destinationFork) after ccipSend to emulate delivery on the destination fork.
Use mock feeds for price-driven logic without CCIP dependencies.
pragma solidity ^0.8.19;
import {Test} from "forge-std/Test.sol";
import {MockV3Aggregator} from "@chainlink/local/src/data-feeds/MockV3Aggregator.sol";
contract DataFeedMockTest is Test {
MockV3Aggregator internal feed;
function setUp() public {
feed = new MockV3Aggregator(8, 2000e8);
}
function test_priceUpdate() public {
(, int256 answer,,,) = feed.latestRoundData();
assertEq(answer, 2000e8);
feed.updateAnswer(2100e8);
(, int256 next,,,) = feed.latestRoundData();
assertEq(next, 2100e8);
}
}
What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
2 plugins ship this exact skill · first indexed Jul 20, 2026
Other plugins' skills for the same job
chainlink@cyotee is listed by cyotee/cyotee-claude-plugins — review the source before installing
npx claudepluginhub cyotee/cyotee-claude-plugins --plugin chainlink