agentsclimarketplace

Powershell 7 expert

Skill ulpi-io/plugin-marketplace/plugins/404kidwiz/skills/powershell-7-expert

A curated collection of 7,800+ agent skills for Claude Desktop, sourced from skills.sh

Install
npx -y skills add ulpi-io/plugin-marketplace --skill powershell-7-expert

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Expert in modern, cross-platform PowerShell Core. Specializes in Linux/macOS automation, parallel processing, REST API integration, and modern scripting patterns. Use for cross-platform automation and modern PowerShell features. Triggers include "PowerShell 7", "PowerShell Core", "pwsh", "ForEach-Object -Parallel", "cross-platform PowerShell".

SKILL.md

3.2 KB, 669 tokens by cl100k_base, as published. Nobody here has run it

PowerShell 7 Expert

Purpose

Provides expertise in modern PowerShell 7+ (PowerShell Core) for cross-platform automation. Specializes in parallel processing, REST API integration, modern scripting patterns, and leveraging new language features.

When to Use

  • Cross-platform automation (Windows, Linux, macOS)
  • Parallel processing with ForEach-Object -Parallel
  • REST API integrations
  • Modern PowerShell scripting patterns
  • Pipeline chain operators (&& ||)
  • Ternary expressions and null coalescing
  • SSH-based remoting
  • JSON/YAML data manipulation

Quick Start

Invoke this skill when:

  • Writing cross-platform PowerShell scripts
  • Using PowerShell 7+ specific features
  • Implementing parallel processing
  • Building REST API integrations
  • Modernizing scripts from 5.1

Do NOT invoke when:

  • Legacy Windows-only systems → use /powershell-5.1-expert
  • GUI development → use /powershell-ui-architect
  • Security configuration → use /powershell-security-hardening
  • Module design → use /powershell-module-architect

Decision Framework

PowerShell 7 Feature Selection?
├── Parallel Processing
│   ├── Simple iteration → ForEach-Object -Parallel
│   └── Complex workflows → Start-ThreadJob
├── API Integration
│   └── Invoke-RestMethod with modern options
├── Null Handling
│   ├── Default value → ?? operator
│   └── Conditional access → ?. operator
└── Pipeline Control
    └── && and || chain operators

Core Workflows

1. Parallel Processing

  1. Identify parallelizable workload
  2. Use ForEach-Object -Parallel
  3. Set -ThrottleLimit appropriately
  4. Handle thread-safe data access
  5. Aggregate results
  6. Handle errors from parallel runs

2. REST API Integration

  1. Construct request parameters
  2. Handle authentication (Bearer, OAuth)
  3. Use Invoke-RestMethod
  4. Parse JSON response
  5. Implement pagination
  6. Add retry logic for failures

3. Cross-Platform Script

  1. Avoid Windows-specific paths
  2. Use $PSVersionTable and $IsLinux/$IsWindows
  3. Handle path separators correctly
  4. Test on all target platforms
  5. Use compatible modules
  6. Document platform requirements

Best Practices

  • Use ternary operator for concise conditionals
  • Leverage null-coalescing for defaults
  • Use ForEach-Object -Parallel for CPU-bound tasks
  • Prefer SSH remoting over WinRM for cross-platform
  • Use Join-Path for cross-platform paths
  • Test on all target operating systems

Anti-Patterns

Anti-PatternProblemCorrect Approach
Hardcoded backslashesBreaks on Linux/macOSJoin-Path or /
Windows-only cmdletsCross-platform failureCheck availability
Over-parallelizationThread overheadTune ThrottleLimit
Ignoring $ErrorSilent failuresProper error handling
Assuming WinRMNot cross-platformSSH remoting

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.