quicknode-local-dev-loop

v2026.09.24

Create a deterministic local QuickNode development loop with transport fixtures, base-URL injection, redacted recordings, and an opt-in read-only sandbox check. Use when developing SDK, RPC, Stream, or Webhook integrations without consuming live credits on every test. Trigger with: "develop against QuickNode locally", "mock QuickNode", "test a QuickNode adapter offline".

GitHub
安装命令
npx skhub add jeremylongshore/quicknode-local-dev-loop
Markdown
SKILL.md

QuickNode Deterministic Local Loop

Overview

Develop against an injectable transport by default. Local tests should model QuickNode protocol contracts without a live token, then use one explicit sandbox read to catch integration drift.

Prerequisites

  • Existing QuickNode or JSON-RPC adapter
  • Repository test runner and fixture convention
  • Optional non-production, read-only credential in a local secret manager

Instructions

Step 1: Locate the boundary

Use Read and Grep to find direct endpoint calls, SDK constructors, global environment reads, retries, timers, and response parsing. Choose one adapter seam for injection.

Step 2: Define fixture contracts

Use Write or Edit to add success, HTTP error, JSON-RPC error, timeout, rate limit, malformed response, and pagination fixtures. Preserve request IDs and nested causes.

Step 3: Inject transport and time

Pass the transport, base URL, clock, and sleeper into the adapter. Use documented SDK base URL overrides only for a local stub or approved staging endpoint.

Step 4: Sanitize recordings

If a real response becomes a fixture, retain only necessary fields and replace endpoint URLs, tokens, API keys, addresses, and business payloads. Add a leak assertion to the fixture test.

Step 5: Run fast tests

Use Bash(npm:*) to run the repository's pinned unit and contract commands. Keep network disabled in the default lane and make accidental outbound access fail.

Step 6: Opt into one live read

Gate a sandbox read behind an explicit variable or command. Verify chain identity and shape, cap timeout and calls, and skip cleanly when the opt-in credential is absent locally.

Tool Discipline

Use Read/Grep for adapter discovery, Write/Edit for injection and fixtures, and Bash(npm:*) for repository-defined tests. Do not use production endpoints, funded signers, or live writes.

Output

  • Injectable QuickNode transport boundary
  • Sanitized deterministic fixtures
  • Fast offline test command
  • Explicit sandbox-read contract

Examples

An SDK adapter receives a stub base URL and fake clock. Retry tests advance virtual time, while a separate opt-in command performs one authenticated chain-ID read.

Error Handling

FailureResponse
Unit test reaches the networkBlock outbound access and fix the adapter seam
Fixture contains a tokenRemove it, rotate if real, and add a regression assertion
Retry test sleeps in real timeInject clock and sleeper
Sandbox differs from productionDocument the gap and cover it in protected CI

Resources

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

Sep 24, 2026

分类

未分类

许可证

MIT

源路径

skills/.curated/quicknode-local-dev-loop

默认分支

main

最新提交

e5a6c3b

Tree SHA

c2dc8e8