Index of every page on this site: llms.txt
All skills
mynameistito avatar

/powershell

@cb1203a
by Titomynameistito/skills1 stars
Run it yourself

Write, review, debug, and test PowerShell scripts and commands, including pipelines, functions, errors, paths, native-command boundaries, security, and cross-platform pwsh behavior. Also use for here-strings, multiline text, Bash heredoc conversions, and quoting or interpolation issues.

  • 7 files
  • 24.5 KB
  • MIT
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/mynameistito/skills/powershell

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencespipelines-errors-and-exit-codes.md

≈344 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Pipelines, errors, and native exit codes

Pipelines

  • PowerShell cmdlet pipelines pass objects. Parameters can accept pipeline input by value or by property name; use Get-Help and Get-Member to inspect the contract.
  • A native process's stdin/stdout is a separate boundary from the PowerShell object pipeline. PowerShell 7.4 added byte-preserving behavior for native stdout redirection to files and byte data piped to native stdin; verify exact behavior on older runtimes and when combining stderr with stdout.

Errors and exit codes

  • Non-terminating errors do not enter catch by default. Use -ErrorAction Stop when a cmdlet failure must be handled there.
  • Native process status is reported through $LASTEXITCODE; capture or check it immediately after the relevant command and interpret it according to that program's contract. A nonzero code does not always mean failure, and stderr output alone does not establish failure.
  • A native nonzero exit does not normally enter catch. $PSNativeCommandUseErrorActionPreference became stable in PowerShell 7.4 and can change this behavior when enabled.

Sources

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at cb1203a. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated last month
compatibility
PowerShell 5.1+; examples prefer modern pwsh where behavior differs.
metadata
{
  "author": "mynameistito",
  "version": "1.1.0"
}

README badge

README badge for mynameistito/skills/powershell