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.

referencesquoting-and-parser-boundaries.md

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

Quoting and parser boundaries

Quoting and here-strings

  • Single-quoted strings are literal; double-quoted strings expand variables, subexpressions, and PowerShell escape sequences.
  • Use ${name} when the end of a variable name is ambiguous in an expandable string.
  • A here-string opener (@' or @") must be followed by a newline. Its matching closing marker must be alone on a line. This skill recommends a column-one closer for broad parser compatibility; verify indentation behavior against the target PowerShell version.
  • Single-quoted here-strings preserve $, $(), and backticks. Double-quoted here-strings expand them.

Parsing and special characters

  • PowerShell parses expressions and command arguments differently. Prefer direct invocation with distinct argument values over constructing a command string, and validate untrusted values for the target program's option syntax.
  • PowerShell 7.3 introduced $PSNativeCommandArgumentPassing modes (Legacy, Standard, and Windows). Defaults and compatibility behavior vary by platform and executable; Windows PowerShell 5.1 uses legacy behavior.
  • The backtick introduces PowerShell escape sequences in expandable strings. The -- token only stops parameter parsing for PowerShell commands; native invocations receive it as an argument. The Windows-only --% token stops parsing at a native-command boundary and is not a general quoting fix.
  • Each embedding layer (such as YAML, JSON, or another shell) can transform the script before PowerShell parses it. Validate the final PowerShell text, not just its outer representation.

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