basilisk-labs/agentplane/agentplane-testkit-migration
Claude Code and agent skill by basilisk-labs/agentplane
- community
Checking that the SKILL.md file is still in the repository.
Use when migrating Agentplane tests to @agentplane/testkit, replacing local test helpers, fixing testkit export/build failures, splitting large CLI/backend suites, or diagnosing missing testkit dist exports in package builds.
Install
npx vskill@latest install basilisk-labs/agentplane/agentplane-testkit-migrationSKILL.md
Agentplane Testkit Migration
Use This Skill When
- A task mentions
@agentplane/testkit,run-cli.test-helpers, shared fixtures, Vitest wrappers, or test helper duplication. - CI/build fails because
packages/agentplane/src/testing/*cannot import../../../testkit/dist/*. - A large test file is being split into scenario-focused suites.
- Tests use local helper clones that should move behind the canonical testkit surface.
Source Of Truth
Prefer exported testkit surfaces over deep imports or local helper copies. Before adding a helper, search for an existing one:
Migration Steps
- Identify the test family: CLI PR flow, task lifecycle, release/upgrade, runner, recipes, Redmine/backend, or scripts.
- Replace local setup with canonical testkit helpers:
- repository setup:
tempRepo, git helpers, config writers - backend setup: mock task backend helpers
- GitHub PR setup: mock PR API helpers
- suite gating:
describeWhenEnvPresent,describeWhenNotHook,describeCritical
- Keep compatibility exports in
packages/agentplane/src/testing/index.tsonly as a bridge. The canonical implementation belongs inpackages/testkit. - If
agentplane buildimports from../../../testkit/dist/*, ensure@agentplane/testkitis built beforeagentplane. - Remove obsolete shims only after
rgproves no imports remain.
Build-Safe Export Checklist
When adding or moving a helper:
- Export it from the package-local module where it is implemented.
- Export it from the public testkit barrel.
- Export compatibility aliases only where existing agentplane tests still depend on them.
- Run both focused tests and package builds.
Common failure:
Interpretation: the helper was migrated without a complete export chain, or build order skipped testkit.
Verification
Use focused checks first, then the smallest relevant package build:
For known slow PR-flow suites, prefer the recorded single-worker route instead of broad retries.
Boundaries
- Do not introduce general testing style rules here.
- Do not add helper abstractions without at least two current consumers or an immediate build/export need.
- Do not hide fragile setup in testkit if the setup is task-specific and unlikely to recur.
Security
- Security scanPassed, 96 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 repositoryCheckingskills/agentplane-testkit-migration/SKILL.md
Popularity
- Repository stars
- 39
- Repository forks
- 4
- 7-day trend score
- 18
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 30 Apr 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- 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/basilisk-labs/agentplane/agentplane-testkit-migration)