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.
在 Windows PowerShell 5.1 与 PowerShell 7 中编写和执行稳定命令,重点处理引号、管道符、原生命令参数传递与跨版本兼容。遇到 --jq/过滤表达式被 PowerShell 误解析、同一命令在 pwsh5 与 pwsh7 行为不一致、或需要为 pwsh7.3+ 增加参数传递适配时使用此 skill。
$ npx skills add BiFangKNT/mtga --skill pwsh -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install BiFangKNT/mtga pwsh --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/BiFangKNT/mtga.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/pwsh .claude/skills/pwsh && rm -rf skills-srcUse ~/.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/
Install the "pwsh" agent skill from https://github.com/BiFangKNT/mtga/tree/tauri/.codex/skills/pwsh into .claude/skills/pwsh/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pwsh", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/BiFangKNT/mtga/tree/tauri/.codex/skills/pwshType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add BiFangKNT/mtga --skill pwsh -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install BiFangKNT/mtga pwsh --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BiFangKNT/mtga.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.codex/skills/pwsh .agents/skills/pwsh && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "pwsh" agent skill from https://github.com/BiFangKNT/mtga/tree/tauri/.codex/skills/pwsh into .agents/skills/pwsh/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pwsh", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add BiFangKNT/mtga --skill pwsh -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install BiFangKNT/mtga pwsh --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BiFangKNT/mtga.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.codex/skills/pwsh .cursor/skills/pwsh && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "pwsh" agent skill from https://github.com/BiFangKNT/mtga/tree/tauri/.codex/skills/pwsh into .cursor/skills/pwsh/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pwsh", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/BiFangKNT/mtga.git --path .codex/skills/pwsh--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add BiFangKNT/mtga --skill pwsh -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install BiFangKNT/mtga pwsh --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BiFangKNT/mtga.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.codex/skills/pwsh .gemini/skills/pwsh && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "pwsh" agent skill from https://github.com/BiFangKNT/mtga/tree/tauri/.codex/skills/pwsh into .gemini/skills/pwsh/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pwsh", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install BiFangKNT/mtga pwshInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add BiFangKNT/mtga --skill pwsh -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/BiFangKNT/mtga.git skills-src && mkdir -p .github/skills && cp -r skills-src/.codex/skills/pwsh .github/skills/pwsh && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "pwsh" agent skill from https://github.com/BiFangKNT/mtga/tree/tauri/.codex/skills/pwsh into .github/skills/pwsh/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pwsh", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add BiFangKNT/mtga --skill pwsh -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install BiFangKNT/mtga pwsh --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BiFangKNT/mtga.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.codex/skills/pwsh .opencode/skills/pwsh && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "pwsh" agent skill from https://github.com/BiFangKNT/mtga/tree/tauri/.codex/skills/pwsh into .opencode/skills/pwsh/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pwsh", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
pwsh在 Windows PowerShell 5.1 与 PowerShell 7 中编写和执行稳定命令,重点处理引号、管道符、原生命令参数传递与跨版本兼容。遇到 --jq/过滤表达式被 PowerShell 误解析、同一命令在 pwsh5 与 pwsh7 行为不一致、或需要为 pwsh7.3+ 增加参数传递适配时使用此 skill。
Pwsh is an agent skill from BiFangKNT/mtga. 在 Windows PowerShell 5.1 与 PowerShell 7 中编写和执行稳定命令,重点处理引号、管道符、原生命令参数传递与跨版本兼容。遇到 --jq/过滤表达式被 PowerShell 误解析、同一命令在 pwsh5 与 pwsh7 行为不一致、或需要为 pwsh7.3+ 增加参数传递适配时使用此 skill。
Its SKILL.md is about 340 tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `agents/openai.yaml`, `references/pwsh5-baseline.md` and `references/pwsh7-adaptation.md`).
It works with PowerShell. The repository describes itself as: 基于本地代理的方式,绕过 IDE 的固定模型服务商限制. The licence is AGPL-3.0.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 72669fb. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Pwsh loads about 338 tokens when it runs, and up to ~1.2k if it reads all its reference files. Until then it costs about 43 tokens; SKILL.md has 101 words of instructions outside code blocks.
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.
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.
The full file from BiFangKNT/mtga at commit 72669fb, republished under its AGPL-3.0 licence (© BiFangKNT). 101 words, ~338 tokens.
.claude/skills/pwsh/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.以“先兼容、后增强”为原则生成 PowerShell 命令。默认先满足 pwsh5 可运行,再按需启用 pwsh7 专属能力。
$PSVersionTable.PSVersion,判断是 5.1 还是 7.x。--% 或 pwsh7 参数传递设置。--jq 或类似参数传入含 | 的表达式时,必须使用单引号字符串。PowerShell 7.3+ 时考虑 $PSNativeCommandArgumentPassing 影响。Legacy,任务完成后恢复原值。??、||、&&、ForEach-Object -Parallel)前先做版本判断。| 被吃掉:检查表达式是否被单引号包裹。--% 或 $PSNativeCommandArgumentPassing。Plan: 要解决的 PowerShell 兼容问题。Commands: 可直接执行的命令(必要时分 5.1 与 7.x 两套)。Result: 关键输出与版本信息。Compat: 是否依赖 pwsh7 特性,及回退方案。按需加载,不要一次性读取全部细节:
references/pwsh5-baseline.md--jq 与引号规则:references/quoting-jq.mdreferences/pwsh7-adaptation.md© BiFangKNT, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files (references) in .codex/skills/pwsh of BiFangKNT/mtga.
Open the folder on GitHubat commit 72669fb
Pwsh 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Pwsh this skillBiFangKNT/mtga | 1.2k | — | ~338 | Automated safety check: Pass | AGPL-3.0 | |
| Pester Failure AnalysisPowerShell/PowerShell | 56k | — | ~5.1k | Automated safety check: Pass | MIT | |
| Copilot Session Failure Analysisdotnet/maui | 23k | — | ~3.4k | Automated safety check: Pass | MIT | |
| Windows App SDK Issue Triage Reportmicrosoft/WindowsAppSDK | 4.7k | — | ~3.4k | Automated safety check: Pass | Apache-2.0 | |
| Evaluate PR Testsdotnet/maui | 23k | — | ~2.9k | Automated safety check: Pass | MIT | |
| Translation ReviewDevolutions/UniGetUI | 26k | — | ~1.3k | Automated safety check: Pass | MIT |
PowerShell/PowerShell
Investigates failing Pester tests in PowerShell CI jobs by following a six-step workflow from pull request status to documented fix recommendations.
dotnet/maui
Mines local Copilot CLI session logs for dotnet/maui to rank costly or failing runs, tag recurring failure modes, propose repo edits and emit guard evals.
microsoft/WindowsAppSDK
Generates GitHub Feature Area Status reports for the Windows App SDK repository, scoring issues so teams can see what needs attention in each area.
dotnet/maui
Reviews the tests added in a pull request for fix coverage, quality, edge cases and test type, and recommends lighter test types where they would do.
Devolutions/UniGetUI
Reviews UniGetUI .json language files for localization quality, detects parity issues, English-equal entries, wrong-script content, and cross-language outliers, then generates a dataset for…
Kuddev/pebrel
Control the live Pebrel terminal workspace from Codex or Claude Code.
BiFangKNT/mtga
Write and debug ast-grep rules for structural code search and rewrite.
BiFangKNT/mtga
Maintain, debug, and recover MTGA's Trae native custom-model route.
BiFangKNT/mtga
使用 GitHub CLI (gh) 执行非交互式 GitHub 协作与自动化任务(PR、Issue、Actions、Release、API 查询/修改)。当用户要求“用 gh 命令完成任务”、需要结构化 JSON 输出(--json/--jq)、批量处理 PR/Issue(如“批量 review 多个 PR”)、按策略合并(如“检查通过后自动 squash 合并”)时使用此 skill。
BiFangKNT/mtga
构建、调试与发布 Tauri v2 应用的工程化工作流。覆盖项目初始化(create-tauri-app)、前端与 Rust 命令通信([tauri::command] + invoke)、状态管理、Capabilities 权限建模、插件接入、跨平台构建与问题排查。当用户需求涉及“创建 Tauri 项目”“把 Web 前端接到 Rust…
BiFangKNT/mtga
在 Windows/macOS/Linux 上使用 uv 执行 Python 运行、依赖同步、锁文件管理、Python 版本管理与工具命令(uv run、uv sync、uv lock、uv python、uv tool)。当任务涉及“用 uv 运行脚本/命令”“临时依赖(--with)”“锁文件一致性(--locked/--frozen)”“跨平台…
Works with
在 Windows PowerShell 5.1 与 PowerShell 7 中编写和执行稳定命令,重点处理引号、管道符、原生命令参数传递与跨版本兼容。遇到 --jq/过滤表达式被 PowerShell 误解析、同一命令在 pwsh5 与 pwsh7 行为不一致、或需要为 pwsh7.3+ 增加参数传递适配时使用此 skill。. Pwsh is an agent skill from BiFangKNT/mtga.
Run `npx skills add BiFangKNT/mtga --skill pwsh -a claude-code`. Or copy the skill folder (.codex/skills/pwsh in BiFangKNT/mtga) into .claude/skills/pwsh in your project. Claude Code loads it when a task matches its description.
Run `npx skills add BiFangKNT/mtga --skill pwsh -a codex`. Or copy the skill folder (.codex/skills/pwsh in BiFangKNT/mtga) into .agents/skills/pwsh in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add BiFangKNT/mtga --skill pwsh -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pwsh, .gemini/skills/pwsh, .github/skills/pwsh and .opencode/skills/pwsh in your project.
SKILL.md names no scripts, command-line tools or credentials: Pwsh is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
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.
Pwsh is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 338 tokens (SKILL.md is roughly 1.4k 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 854 tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Pwsh: Pester Failure Analysis (PowerShell/PowerShell, 56k stars), Copilot Session Failure Analysis (dotnet/maui, 23k stars), Windows App SDK Issue Triage Report (microsoft/WindowsAppSDK, 4.7k stars) and Evaluate PR Tests (dotnet/maui, 23k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
BiFangKNT (a GitHub user) maintains it in BiFangKNT/mtga, which has 1,170 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on June 18, 2026.
Source: BiFangKNT/mtga on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.