zaxbyhub/opencode-swarm/mock-to-internals-migration
Codex canon for migrating opencode-swarm tests away from Bun mock.module leakage toward _internals dependency-injection seams. Use when touching tests with mock.module, adding test seams, fixing Bun mock isolation failures, or updating source modules for injectable internals.
Agent skill · version 0.0.0-main.1794521101.g554e2ed · from ZaxbyHub/opencode-swarm
Install
npx yarkr-cli add skill:zaxbyhub/opencode-swarm/mock-to-internals-migrationWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:zaxbyhub/opencode-swarm/mock-to-internals-migration
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:zaxbyhub/opencode-swarm/mock-to-internals-migrationOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:zaxbyhub/opencode-swarm/mock-to-internals-migrationWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.