powershell
Skill1 starsChanged 13 days agoMITView on GitHub
Use when giving the user PowerShell commands to run themselves, or diagnosing a PowerShell or Windows terminal problem they report. Trigger words - line continuation, password prompt, working directory, multi-step instructions for Windows 11, Select-Object -First, quotes lost in a native command argument.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- Lukk17/agent-standardstheir own version, first seen Nov 7, 2026
- G1Joshi/Agent-Skillstheir own version, first seen Oct 13, 2026
- carapace-sh/carapacetheir own version, first seen Oct 8, 2026
- OpenBMB/PilotDecktheir own version, first seen Oct 8, 2026
- bmaltais/skillstheir own version, first seen Sep 6, 2026
- ffsshhttiikk/opencode-agents-skillstheir own version, first seen Feb 28, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- OpenBMB/PilotDeck★ 5ksame name
- carapace-sh/carapace★ 1.5ksame name
- G1Joshi/Agent-Skills★ 15same name
- bmaltais/skills★ 2same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- Lukk17/agent-standards★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- angular-crud-gotchasSkill
- aws-lightsail-container-deploySkill
- bannerlord-decompileSkill
- codegen-t4-templatesSkill
- csharpSkill
- delphi-code-smellsSkill
- delphi-firedacSkill
- delphiSkill
- delphi-types-and-unitsSkill
- difftasticSkill
- dockerSkill
- efcore-aspnet-reviewSkill
- git-bash-editingSkill
- github-issue-creatorSkill
- microsoft-docsSkill
- minimal-comments-and-docsSkill
- msbuildSkill
- mssqlSkill
- mstest-assertionsSkill
- mysqlSkill
- nginx-config-testingSkill
- odata-generated-gridsSkill
- postgresSkill
- react-crud-gotchasSkill
- sanitize-for-open-sourceSkill
- self-contained-deploymentSkill
- skill-writerSkill
- ui-conventionsSkill
- verify-in-running-appSkill
- winui3Skill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Fix: use a trailing backtick (
) for continuation, or just collapse the command to one line. - Distinctive: line 28
Fix: when handing over a multi-step sequence, state the expected prompt/location at each step explicitly rather than assuming continuity …
- Very specific: line 44
Fix: run the script in PowerShell 7 (pwsh), or send the text on stdin ('SELECT 1 AS "MixedCase";' | psql ...), which kept the quotes in …
- Very specific: line 46
See both problems in a shell: run C:\Github\tools\ps_quirks_check.ps1 with powershell.exe -NoProfile -ExecutionPolicy Bypass -File ...
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PowerShell
A handful of gotchas from handing PowerShell commands to a Windows user mid-task, not a PowerShell tutorial.
1. Bash-style line continuation breaks
Symptom: a multi-line command using a trailing \ fails with something like Missing expression after unary operator '--'.
Cause: PowerShell doesn't treat \ as a line-continuation character.
Fix: use a trailing backtick (`) for continuation, or just collapse the command to one line. Never hand a Windows/PowerShell user a bash-style \-continued multi-line command.
2. Interactive password prompts look hung
Symptom: a command that prompts Enter password: (e.g. mysql -h host -u user -p) appears to accept no input at all — no asterisks, no cursor feedback — from both Command Prompt and a PowerShell admin window. It isn't hung, but it reads that way and derails the task.
Fix: don't rely on the interactive prompt for anything scripted or handed to a user mid-task. Pass the credential through the environment for that command ($env:MYSQL_PWD, $env:PGPASSWORD, $env:SQLCMDPASSWORD), never in the argument list or a file (see the mysql, postgres and mssql skills). If the CLI tool isn't installed on the host, borrow one from a running container (docker skill, section 3) rather than asking the user to install it.
3. Working-directory assumptions silently break multi-step instructions
Symptom: a step assumes the user is still at the project root (e.g. PS C:\project>), but they're sitting inside a mysql> prompt or a different shell context left over from an earlier step, and the step fails in a confusing way.
Fix: when handing over a multi-step sequence, state the expected prompt/location at each step explicitly rather than assuming continuity from the previous one.
4. | Select-Object -First N stops the script upstream
Symptom: a script piped into Select-Object -First 1 to keep the output short never finishes its work (a database copy was left half made: the backup was taken and the restore never ran).
Cause: Select-Object -First N ends the pipeline after N objects, which stops the commands that feed it.
Fix: keep the output short another way: redirect with *> $null (or | Out-Null only for commands that must run to the end), and check the result afterwards. Checked in Windows PowerShell 5.1 and PowerShell 7: a marker written after the first output line was missing with | Select-Object -First 1 and present with *> $null.
5. Windows PowerShell 5.1 drops double quotes inside native-command arguments
Symptom: psql -c 'SELECT 1 AS "MixedCase"' returns the column mixedcase, so a quoted mixed-case SQL identifier silently turns into a lower-case one.
Cause: Windows PowerShell 5.1 does not escape embedded double quotes when it builds the command line for an executable. PowerShell 7 does.
Fix: run the script in PowerShell 7 (pwsh), or send the text on stdin ('SELECT 1 AS "MixedCase";' | psql ...), which kept the quotes in both versions in the same test.
See both problems in a shell: run C:\Github\tools\ps_quirks_check.ps1 with powershell.exe -NoProfile -ExecutionPolicy Bypass -File ... and with pwsh -NoProfile -File ... and compare (it needs a working python for the quoting part). Tested in 5.1.26100 and 7.6.9.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

