Official agent skill

Pester Should Migration

by github in github/awesome-copilot

Experimental (preview) Pester skill for migrating classic Should -Be (v5) assertion syntax to the new Should- (v6) assertions (note the hyphen, no space), e.g.

OfficialMITAuto-check passedTesting & QA

Install Pester Should Migration

skills CLI
$ npx skills add github/awesome-copilot --skill pester-should-migration -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install github/awesome-copilot pester-should-migration --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/github/awesome-copilot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/pester-should-migration .claude/skills/pester-should-migration && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pester-should-migration
GitHub stars
40k
Token cost
~2k tokens
SKILL.md length
837 words
Files
2 (incl. references)
Skills in repo
417
Repo updated
First seen
Licence
MIT

At a glance

Experimental (preview) Pester skill for migrating classic Should -Be (v5) assertion syntax to the new Should- (v6) assertions (note the hyphen, no space), e.g.

  • Works in 5 steps: Find the classic assertions → Apply the mapping → Check the behavioral gotchas (do NOT skip) → …
  • Converting Pester v5 assertions to Pester v6 Should- operators
  • SKILL.md covers When to Use, Know This First, Procedure and Output, plus 1 more section
  • Reaches pester.dev

What it does

Pester Should Migration is an agent skill from github/awesome-copilot, published by the product's own GitHub organization. Experimental (preview) Pester skill for migrating classic Should -Be (v5) assertion syntax to the new Should- (v6) assertions (note the hyphen, no space), e.g. Should -Be - Should-Be, Should -Not -Be - Should-NotBe. Tracks Pester 6, which is still a release candidate, so this guidance may change; verified against Pester 6.0.0-rc2. Use when converting Pester v5 assertions to Pester v6 Should- operators, modernizing a Pester test suite, or when a user asks to migrate, convert, or rewrite Should -... calls in…

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/assertion-map.md`).

It sits in Testing & QA, covering Test generation. It works with PowerShell. The repository describes itself as: Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot. The licence is MIT.

When your agent uses it

  • Converting Pester v5 assertions to Pester v6 Should- operators
  • Modernizing a Pester test suite
  • A user asks to migrate
  • Rewrite Should -..

Example prompts

  • “/pester-should-migration”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Find the classic assertions
  2. Apply the mapping
  3. Check the behavioral gotchas (do NOT skip)
  4. Verify
  5. (Optional) Enforce the new style

What it can do on your machine

Read from SKILL.md and the folder at commit 727ff2e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are powershell).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • pester.dev

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pester Should Migration loads about 2k tokens when it runs, and up to ~4.4k if it reads all its reference files. Until then it costs about 145 tokens; SKILL.md has 837 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~145
When it runs · the whole SKILL.md, loaded when a task matches
~2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from github/awesome-copilot at commit 727ff2e, republished under its MIT licence (© github). 837 words, ~1,970 tokens.

Download SKILL.mdSave it as .claude/skills/pester-should-migration/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
pester-should-migration
description
Experimental (preview) Pester skill for migrating classic Should -Be (v5) assertion syntax to the new Should-* (v6) assertions (note the hyphen, no space), e.g. `Should -Be` -> `Should-Be`, `Should -Not -Be` -> `Should-NotBe`. Tracks Pester 6, which is still a release candidate, so this guidance may change; verified against Pester 6.0.0-rc2. Use when converting Pester v5 assertions to Pester v6 Should-* operators, modernizing a Pester test suite, or when a user asks to migrate, convert, or rewrite `Should -...` calls in .Tests.ps1 / PowerShell files.
argument-hint
File, folder, or test suite to migrate

Pester Should -* → Should-* Migration

Convert classic Pester v5 assertions (Should -Be, space then parameter) to the new Pester v6 Should-* assertions (Should-Be, hyphen, no space).

Status: experimental / preview. Verified against Pester 6.0.0-rc2. The classic Should -Be style still works in v6, so migrate incrementally and keep the suite green.

Companion skill. This skill covers the optional move to the new Should-* operators. To upgrade a suite across major Pester versions (v3→v4→v5→v6 — the runtime, mocks, and config), use the separate pester-migration skill. In v6 the classic Should -Be keeps working, so adopting Should-* is independent of any version bump.

When to Use

  • Modernizing a Pester suite to the v6 Should-* assertions.
  • A user asks to migrate / convert / rewrite Should -... calls.
  • You want clearer, type-aware failure messages from the new assertions.

Know This First

  • Both syntaxes work side by side in Pester v6. Migration is optional and can be done one test (or one file) at a time. Nothing breaks if you leave some classic.
  • Requires Pester v6+. The Should-* commands do not exist in v5.
  • Negation is a separate command, not a -Not switch: Should -Not -Be → Should-NotBe. There is no -Not parameter on the new assertions.
  • The actual value still comes from the pipeline ($x | Should-Be 1) or from -Actual (Should-Be -Actual $x -Expected 1). -Because carries over unchanged.
  • Most renames are mechanical, but several have behavior changes you must check by hand — see Gotchas.

Procedure

Step 1 — Find the classic assertions

Search the target for the classic space-separated syntax (the tell is Should -, or Should followed by -Not):

Should -          # any classic operator
Should -Not -     # negated classic operator
Assert-MockCalled # also removed in v6 -> Should-Invoke

Limit the scope to PowerShell test files (*.Tests.ps1, *.ps1).

Step 2 — Apply the mapping

Most-used conversions (full list in references/assertion-map.md):

Classic (v5)New (v6)
$x | Should -Be 1$x | Should-Be 1
$x | Should -Not -Be 1$x | Should-NotBe 1
$x | Should -BeExactly 'A'$x | Should-BeString 'A' -CaseSensitive
$x | Should -BeGreaterOrEqual 2$x | Should-BeGreaterThanOrEqual 2
$x | Should -BeLessOrEqual 2$x | Should-BeLessThanOrEqual 2
$x | Should -BeLike 'a*'$x | Should-BeLikeString 'a*'
$x | Should -Match 're'$x | Should-MatchString 're'
$x | Should -BeOfType [int]$x | Should-HaveType ([int])
$x | Should -BeNullOrEmptydepends — see gotchas (no single equivalent)
$c | Should -HaveCount 3$c | Should-BeCollection -Count 3
$c | Should -Contain 2$c | Should-ContainCollection 2
{ ... } | Should -Throw 'msg'{ ... } | Should-Throw -ExceptionMessage 'msg'
Should -Invoke Get-ThingShould-Invoke Get-Thing
Should -InvokeVerifiableShould-Invoke -Verifiable
Show full SKILL.md (457 more words)Show less
Step 3 — Check the behavioral gotchas (do NOT skip)

These do not translate by a plain rename. Read each before converting:

  1. Case sensitivity. Classic Should -Be is case-insensitive on strings; so is Should-Be. But classic Should -BeExactly (case-sensitive) has no plain equivalent — use Should-BeString -CaseSensitive. (Should-Be is never case-sensitive.) Same pattern for BeLikeExactly → Should-BeLikeString -CaseSensitive and MatchExactly → Should-MatchString -CaseSensitive.
  2. Truthy vs. true. Classic Should -BeTrue / -BeFalse accept any truthy / falsy value (1, 'x', 0, '', $null, @()). The new Should-BeTrue / Should-BeFalse are strict (exactly $true / $false). To preserve the old loose behavior use Should-BeTruthy / Should-BeFalsy. Only use the strict ones when the value really is a boolean.
  3. BeNullOrEmpty has no single equivalent. Pick by intent: $null → Should-BeNull; empty string → Should-BeEmptyString; empty collection → Should-BeCollection -Count 0; broad "falsy" → Should-BeFalsy. The negation Should -Not -BeNullOrEmpty similarly splits into Should-NotBeNull / Should-NotBeEmptyString / Should-NotBeWhiteSpaceString.
  4. Collections. Classic Should -Be also compares arrays; the new Should-Be is a value assertion and errors if -Expected is a collection ("You provided a collection to the -Expected parameter"). Use Should-BeCollection to compare arrays. Should -Contain (single-item membership) → Should-ContainCollection. The new command also takes a collection of expected items and checks they are all present, in the right order (1, 2, 3 | Should-ContainCollection @(1, 2)). For exact, whole-collection equality use Should-BeCollection instead.
  5. Pipeline unwrapping. The pipeline unwraps input: a value assertion sees @(1) as 1 and @() as $null, and a typed collection ([int[]]) is re-collected as [object[]]. When the exact value or concrete collection type matters (e.g. Should-HaveType), pass it with -Actual instead of piping.
  6. No Should-* equivalent. Should -Exist and the Should -FileContentMatch* family have no new counterpart. Either keep the classic assertion, or rewrite with PowerShell: Test-Path $p | Should-BeTrue, (Get-Content $p -Raw) | Should-MatchString 're'.
  7. Should -BeIn direction. No Should-BeIn. Reverse the operands: $value | Should -BeIn $collection → $collection | Should-ContainCollection $value (note the actual/expected swap), or keep the classic form.
Step 4 — Verify

Run the suite and confirm it's still green — the new messages differ, but passes must stay passes:

powershell
Invoke-Pester -Path ./tests

If a converted assertion newly fails, re-check the gotchas above (most often #2 truthy/falsy, #3 null-or-empty, or #4 collections).

Step 5 — (Optional) Enforce the new style

Once a suite is fully migrated, switch off the classic syntax so it can't creep back:

powershell
$config = New-PesterConfiguration
$config.Should.DisableV5 = $true

With this set, any remaining Should -Be throws and points at the Should-Be form.

Output

Summarize what changed: files touched, count of assertions converted, any classic assertions intentionally left (e.g. Should -Exist), and any conversions that need a human decision (truthy/falsy, null-or-empty, collection semantics).

Reference

  • references/assertion-map.md — full operator-by-operator table with before/after examples and workarounds.
  • Live command reference: https://pester.dev/docs/commands/Should-Be (swap in any Should-* name) for exact parameters and examples.
  • Concepts: https://pester.dev/docs/assertions/should-command (value vs. collection assertions, pipeline vs. -Actual).
  • v5→v6 upgrade guide: https://pester.dev/docs/migrations/v5-to-v6.

© github, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in skills/pester-should-migration of github/awesome-copilot.

  • SKILL.md
  • references/assertion-map.md

Open the folder on GitHubat commit 727ff2e

Compare with similar skills

Pester Should Migration next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pester Should Migration compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pester Should Migration this skillgithub/awesome-copilot40k—~2kAutomated safety check: PassMIT
Validate Changesgaelcolas/Sampler244—~1.8kAutomated safety check: PassMIT
Run Testsplatonai/Browser41.2k—~1.9kAutomated safety check: PassApache-2.0
Pester Failure AnalysisPowerShell/PowerShell56k—~5.1kAutomated safety check: PassMIT
Write and Verify Playwright Testsappsmithorg/appsmith41k—~2.9kAutomated safety check: NotesApache-2.0
Adk Verify Snippetsgoogle/adk-python22k—~1.4kAutomated safety check: PassApache-2.0

Similar skills

  • Validate Changes

    gaelcolas/Sampler

    Run targeted Sampler test scopes to validate changes quickly and safely, then run the full test suite when needed for confidence before PRs.

    244 GitHub stars~1.8k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Run Tests

    platonai/Browser4

    Discovers and runs Browser4 test suites (unit, integration, E2E, CLI, PowerShell, real-world scenarios, production acceptance).

    1.2k GitHub stars~1.9k tokensUpdated today
    Testing & QAAuto-check passed
  • Pester Failure Analysis

    PowerShell/PowerShell

    Investigates failing Pester tests in PowerShell CI jobs by following a six-step workflow from pull request status to documented fix recommendations.

    56k GitHub stars~5.1k tokensUpdated today
    Testing & QAAuto-check passed
  • Writes a Playwright end-to-end test from a prompt, runs it against a live Appsmith deployment and retries with fixes up to three times until it passes.

    41k GitHub stars~2.9k tokensUpdated today
    Testing & QAAuto-check: notes
  • Adk Verify Snippets

    google/adk-python

    Official

    Checks that every Python code block in a Markdown file actually compiles and runs, by extracting each block to a temporary file, executing it in an isolated subprocess, and writing a pass/fail…

    22k GitHub stars~1.4k tokensUpdated today
    Testing & QAAuto-check passed
  • Engine E2E

    wix/react-native-navigation

    Official

    Run Wix Engine (mobile-apps-engine) iOS E2E tests locally to validate RNN changes.

    13k GitHub stars~1.1k tokensUpdated yesterday
    Testing & QAAuto-check passed

More from github/awesome-copilot

All 417 skills in this repo
  • Acquire Codebase Knowledge

    github/awesome-copilot

    Official

    Maps an unfamiliar codebase into seven evidence-backed documents in docs/codebase/, using a scan script and templates, for onboarding or architecture write-ups.

    40k GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed
  • Azure Architecture Autopilot

    github/awesome-copilot

    Official

    Designs Azure infrastructure from a natural-language description, or diagrams an existing resource group, then refines the design through conversation and deploys it with Bicep.

    40k GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Draw.io Diagram Generator

    github/awesome-copilot

    Official

    Generates, edits and validates draw.io files with correct mxGraph XML, covering flowcharts, architecture, sequence, ER and UML class diagrams.

    40k GitHub starsUsed in 1 repo~4.9k tokens
    Auto-check passed
  • Credit Risk Data Cleaning

    github/awesome-copilot

    Official

    Cleans raw credit data and screens variables before loan modeling, dropping unstable, noisy or redundant features and writing an Excel report of every step.

    40k GitHub starsUsed in 1 repo~1.5k tokens
    Auto-check passed
  • Daily Focus Board

    github/awesome-copilot

    Official

    Builds a warm, browser-based daily focus board the user updates by talking to their agent, with Eisenhower priorities, a brain-dump box and kind not-today carryover.

    40k GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Python Pypi Package Builder

    github/awesome-copilot

    Official

    End-to-end skill for building, testing, linting, versioning, and publishing a production-grade Python library to PyPI.

    40k GitHub starsUsed in 1 repo~4.6k tokens
    Auto-check passed

Works with

Categories

Questions about Pester Should Migration

What does Pester Should Migration do?

Experimental (preview) Pester skill for migrating classic Should -Be (v5) assertion syntax to the new Should- (v6) assertions (note the hyphen, no space), e.g. Pester Should Migration is an agent skill from github/awesome-copilot, published by the product's own GitHub organization.g.

When should I use Pester Should Migration?

Pester Should Migration fits situations like: converting Pester v5 assertions to Pester v6 Should- operators; modernizing a Pester test suite; A user asks to migrate; rewrite Should -..

How do I install Pester Should Migration in Claude Code?

Run `npx skills add github/awesome-copilot --skill pester-should-migration -a claude-code`. Or copy the skill folder (skills/pester-should-migration in github/awesome-copilot) into .claude/skills/pester-should-migration in your project. Claude Code loads it when a task matches its description.

How do I install Pester Should Migration in Codex?

Run `npx skills add github/awesome-copilot --skill pester-should-migration -a codex`. Or copy the skill folder (skills/pester-should-migration in github/awesome-copilot) into .agents/skills/pester-should-migration in your project. Codex loads it when a task matches its description.

Can I use Pester Should Migration in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add github/awesome-copilot --skill pester-should-migration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pester-should-migration, .gemini/skills/pester-should-migration, .github/skills/pester-should-migration and .opencode/skills/pester-should-migration in your project.

What does Pester Should Migration need to run?

SKILL.md names no scripts, command-line tools or credentials: Pester Should Migration is instructions for the agent only.

Does Pester Should Migration access the network?

SKILL.md names 1 domain. In commands or code: pester.dev; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Pester Should Migration safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Pester Should Migration use?

Pester Should Migration is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pester Should Migration use?

About 2k tokens (SKILL.md is roughly 7.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.4k tokens, read only when the agent opens those files.

What are the alternatives to Pester Should Migration?

Skills that share tags, products or a category with Pester Should Migration: Validate Changes (gaelcolas/Sampler, 244 stars), Run Tests (platonai/Browser4, 1.2k stars), Pester Failure Analysis (PowerShell/PowerShell, 56k stars) and Write and Verify Playwright Tests (appsmithorg/appsmith, 41k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pester Should Migration?

github (a GitHub organization, an official publisher) maintains it in github/awesome-copilot, which has 39,748 GitHub stars. The repository holds 417 skills in this directory. The repository was last updated on October 7, 2026.

Source: github/awesome-copilot on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.