# Pester migration

> Pester migration is an open-source agent skill. Pester migration skill for upgrading PowerShell Pester test suites across major versions — v3→v4, v4→v5, and v5→v6. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/github/awesome-copilot/tree/main/skills/pester-migration
- **Repository:** https://github.com/github/awesome-copilot
- **GitHub stars:** 41,254
- **License:** MIT
- **Skill name:** pester-migration
- **Collection:** https://github.com/github/awesome-copilot
- **Listing updated:** 2026-11-17

## About

Pester migration skill for upgrading PowerShell Pester test suites across major versions — v3→v4, v4→v5, and v5→v6. Covers the Discovery/Run two-phase model, moving setup into BeforeAll, $PSScriptRoot vs $MyInvocation, mock changes (Assert-MockCalled → Should -Invoke, removed fall-through), Invoke-Pester parameters → PesterConfiguration, data-driven -ForEach/-TestCases, and the v6 breaking changes. Use when the user asks to upgrade, migrate, or modernize Pester tests, fix *.Tests.ps1 files that broke after bumping the Pester version, or convert legacy Should / Invoke-Pester syntax.

## When your agent uses it

> Pester migration skill for upgrading PowerShell Pester test suites across major versions — v3→v4, v4→v5, and v5→v6. Covers the Discovery/Run two-phase model, moving setup into BeforeAll, $PSScriptRoot vs $MyInvocation, mock changes (Assert-MockCalled → Should -Invoke, removed fall-through), Invoke-Pester parameters → PesterConfiguration, data-driven -ForEach/-TestCases, and the v6 breaking changes. Use when the user asks to upgrade, migrate, or modernize Pester tests, fix *.Tests.ps1 files that broke after bumping the Pester version, or convert legacy Should / Invoke-Pester syntax.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/github/awesome-copilot/tree/HEAD/skills/pester-migration)
- [License: MIT](https://github.com/github/awesome-copilot/tree/HEAD/skills/pester-migration)

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/pester-migration` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/pester-migration &&
cp -R "$tmp/skills/pester-migration" ~/.claude/skills/pester-migration &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/pester-migration` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/pester-migration` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/pester-migration &&
cp -R "$tmp/skills/pester-migration" ~/.agents/skills/pester-migration &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/pester-migration` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/pester-migration` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/pester-migration &&
cp -R "$tmp/skills/pester-migration" ~/.cursor/skills/pester-migration &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/pester-migration` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/github/awesome-copilot.git --path skills/pester-migration
```

Or copy the folder to `~/.gemini/skills/pester-migration` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/pester-migration`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/pester-migration &&
cp -R "$tmp/skills/pester-migration" ~/.copilot/skills/pester-migration &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/pester-migration` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/github/awesome-copilot.git
```

Then copy `awesome-copilot/skills/pester-migration` into your agent's skills folder as `pester-migration`. Agents that support SKILL.md read one folder per skill.

## FAQ

### How do I install Pester migration in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/pester-migration to use it in all your projects, or to .claude/skills/pester-migration in one project.

### Does Pester migration run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Pester migration?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

---
Source: https://ai-powered.com/skills/pester-migration
