cyotee/cyotee-claude-plugins/chainlink-local-testing
Claude Code and agent skill by cyotee/cyotee-claude-plugins
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install cyotee/cyotee-claude-plugins/chainlink-local-testingSKILL.md
The same SKILL.md was published earlier as cyotee/cyotee-claude-plugins/chainlink-local-testing.
Chainlink Local Testing
Use Chainlink Local when you want deterministic, local-first tests for Chainlink-dependent integrations before running public testnet or mainnet-fork validation.
What Chainlink Local Gives You
- Local simulation mode with pre-deployed CCIP test contracts
- Forked simulation mode with network detail registry and routing helpers
- Data feed mocks such as MockV3Aggregator and MockOffchainAggregator
- Test helpers for LINK funding and cross-chain message routing in tests
Foundry Setup
If Chainlink Local is installed with Forge, add this remapping:
You can place it in remappings.txt or foundry.toml remappings.
Core Contracts to Use in Tests
| 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 |
Pattern A: Local No-Fork CCIP Tests
Use this for fast unit/integration tests in a single local Anvil state.
Pattern B: Forked CCIP Tests
Use this to test with realistic chain state and route messages across forks.
In forked tests, use simFork.switchChainAndRouteMessage(destinationFork) after ccipSend to emulate delivery on the destination fork.
Pattern C: Data Feed Mock Tests
Use mock feeds for price-driven logic without CCIP dependencies.
Test Design Checklist
- Pick mode early: no-fork for speed, fork for realism.
- Keep simulator instances in test setup, not production code paths.
- For fork tests, persist simulator contracts with vm.makePersistent.
- Use requestLinkFromFaucet for LINK-fee test scenarios.
- Validate fee mode explicitly: LINK token vs native (feeToken address(0)).
- Assert both sender debits and receiver credits around routed operations.
Common Mistakes
- Forgetting @chainlink/local remapping after installation
- Not calling vm.makePersistent in forked mode
- Using chain selector where chain id is required (and vice versa)
- Skipping route step in forked CCIP tests
- Treating mock feed decimals as 18 when the mock is configured for 8
Useful Docs
- https://docs.chain.link/chainlink-local
- https://docs.chain.link/chainlink-local/build/ccip/foundry/local-simulator
- https://docs.chain.link/chainlink-local/build/ccip/foundry/local-simulator-fork
- https://docs.chain.link/chainlink-local/llms-full.txt
See Also
- skill:crane-chainlink-local-testing
- skill:forge-testing
- skill:crane-testing
- skill:chainlink-vrf-architecture
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/chainlink/skills/chainlink-local-testing/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cyotee/cyotee-claude-plugins/chainlink-local-testing)