Mock To Internals Migration
SkillDev toolsCodex adapter 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.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Mock To Internals Migration skill
What this skill tells your AI
The instructions your AI receives, as published by zaxbyhub/opencode-swarm in .agents/skills/mock-to-internals-migration/SKILL.md and read by ahel’s review.
Read .opencode/skills/generated/mock-to-internals-migration/SKILL.md for the canonical migration protocol.
Also load:
.agents/skills/writing-tests/SKILL.md.agents/skills/engineering-conventions/SKILL.mdif the seam touches runtime-sensitive code
Codex-specific execution notes:
- Use
apply_patchfor source and test edits. - Use focused per-file
bun --smol test <file> --timeout 30000validation first. - Restore any
_internalsoverrides inafterEach. - Prefer small seams that expose only the dependency under test.
Signals
- GitHub stars
- 467
- Forks
- 51
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
mock-to-internals-migration- Source
- github.com/zaxbyhub/opencode-swarm