powershell-landmines SKILL.md skillA

powershell-landmines from lidge-jun/fuck-powershell is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add lidge-jun/fuck-powershell/powershell-landmines@git:20260924.9b2bbe7

Pins git:20260924.9b2bbe7 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
lidge-jun/fuck-powershell
Path
skills/powershell-landmines/SKILL.md
Versions recorded
5
Latest version
git:20260924.9b2bbe7, committed Sep 24, 2026
First version recorded
Aug 22, 2026
Size
8,193 bytes
Repository stars
6
License
MIT

Query-first Windows failure intelligence: preflight the fuck-powershell landmine corpus before patches, and avoid PowerShell landmines when writing or running Windows shell commands: alias traps (curl/wget), POSIX redirects (/dev/null), native stderr ErrorRecord wrapping, exit-code blindness, encoding/BOM corruption, 5.1-vs-7 divergence, quoting loss, env-var identity traps. Use BEFORE generating any powershell/pwsh command, .ps1 script, or Windows CI step. Triggers: PowerShell, pwsh…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# powershell-landmines

Windows shell & process interoperability hazards for coding agents — backed by the
fuck-powershell failure corpus (https://github.com/lidge-jun/fuck-powershell,
live: https://lidge-jun.github.io/fuck-powershell/). PowerShell is the brand;
the corpus covers cmd.exe, Node/Bun spawn, PATH/PATHEXT, encodings, Win32 paths,
and CI runner behavior.

## MCP tools (preferred when registered)

If your host exposes `fp_preflight`, `fp_search`, `fp_errors` and `fp_case` (the
fuck-powershell MCP server, `scripts/mcp.mjs`), use them instead of the CLI below: same
operations, same risk rules, a few hundred bytes per answer, and the server reads the
corpus fresh on every call. Call `fp_preflight` before the patch, `fp_case` on the top
result, and `fp_search` / `fp_errors` over the diff and any error you hit. Registration
is in the repository README ("Use it as an MCP server"). Use the CLI only when those
tools are absent.

In Codex Code Mode these tools may not be in your own tool list at all: they sit inside
`exec` as `mcp__fuck_powershell__fp_preflight`, `..._fp_search`, `..._fp_errors` and
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add lidge-jun/fuck-powershell/powershell-landmines@sha256:be0db7d8eefce238

The line at the top of this page pins the label git:20260924.9b2bbe7, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_m3ifkc4gpg3uoyxx.svg)](https://markdownregistry.com/a/art_m3ifkc4gpg3uoyxx)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between Aug 22, 2026 and Sep 24, 2026, about one every 8 days.

versioncommittedcommitsizeaudit
git:20260924.9b2bbe7 latest2026-09-24 9b2bbe7 8,193 BA view · diff
git:20260923.b95267f2026-09-23 b95267f 7,925 BA view · diff
git:20260911.17fb00b2026-09-11 17fb00b 7,365 BA view · diff
git:20260822.bf2a3062026-08-22 bf2a306 6,327 BA view · diff
git:20260822.43779fe2026-08-22 43779fe 5,010 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (8193 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

lidge-jun/fuck-powershell · 6 stars · license MIT · pushed 2026-09-24 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_m3ifkc4gpg3uoyxx
GET https://markdownregistry.com/api/v1/resolve?ref=lidge-jun/fuck-powershell/powershell-landmines
GET https://markdownregistry.com/api/v1/blob/be0db7d8eefce2388bf7dfba5980400e09aca0d6d080ec12b6f5296d574710a8

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from lidge-jun/fuck-powershell

DESIGN.md DESIGN.md file
lidge-jun/fuck-powershell · DESIGN.md
git:20260822.cb8f48a · audit A · 6 stars

Every file in lidge-jun/fuck-powershell

Browse by kind, by grade A, or by owner.