Logo van Powershell Expert

Powershell Expert

Community
hmohamed01
powershell-expert

Develop PowerShell scripts, tools, modules, and GUIs following Microsoft best practices. Use when writing PowerShell code, creating Windows Forms/WPF interfaces, working with PowerShell Gallery modules, or needing cmdlet/module recommendations. Covers script development, parameter design, pipeline handling, error management, and GUI creation patterns. Verifies module availability and cmdlet syntax against live documentation when accuracy is critical.

Overzicht

Uitgeverhmohamed01
Repositorypowershell-expert
Skillnaampowershell-expert
Sterren
58
Forks
14
Meegeleverde bestanden
5
Links
  • Instructies in Markdown

    Een SKILL.md-bestand dat het model laadt wanneer nodig, zodat het alleen tokens kost als een verzoek er daadwerkelijk bij past.

  • Werkt met elk LLM

    AI-skills zijn gewone Markdown, geen aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • 5 meegeleverde bestanden

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. Bestanden zijn alleen-lezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door hmohamed01 op GitHub. Lees de broninhoud voordat je de skill installeert.

Installatie

Installeer de AI-skill Powershell Expert in TypingMind om deze met elke LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map — het leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/hmohamed01/powershell-expert/tree/main/powershell-expert
  4. Schakel de skill in elke chat in waarin je deze beschikbaar wilt hebben.
Plug-ins → Skills → Nieuwe skill → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hmohamed01/powershell-expert.git /tmp/powershell-expert
mkdir -p .claude/skills
cp -r /tmp/powershell-expert/powershell-expert .claude/skills/powershell-expert
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Powershell Expert in een willekeurige chat in TypingMind in en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek erbij past, laadt het model zelf de volledige instructies — je hoeft de skill nooit handmatig aan te roepen en deze kost pas tokens wanneer je de skill daadwerkelijk gebruikt.

Het model laadt Powershell Expert automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Powershell Expert niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

PowerShell Expert

Develop production-quality PowerShell scripts, tools, and GUIs using Microsoft best practices and the PowerShell ecosystem.

Quick Reference

Script Structure

powershell
#Requires -Version 5.1

<#
.SYNOPSIS
    Brief description.
.DESCRIPTION
    Detailed description.
.PARAMETER Name
    Parameter description.
.EXAMPLE
    Example-Usage -Name 'Value'
#>

[CmdletBinding()]
param(
    [Parameter(Mandatory, ValueFromPipeline)]
    [ValidateNotNullOrEmpty()]
    [string[]]$Name,

    [switch]$Force
)

begin {
    # One-time setup
}

process {
    foreach ($item in $Name) {
        # Per-item processing
    }
}

end {
    # Cleanup
}

Function Template

powershell
function Verb-Noun {
    [CmdletBinding(SupportsShouldProcess)]
    param(
        [Parameter(Mandatory, Position = 0)]
        [string]$Name,

        [Parameter(ValueFromPipelineByPropertyName)]
        [Alias('CN')]
        [string]$ComputerName = $env:COMPUTERNAME,

        [switch]$PassThru
    )

    process {
        if ($PSCmdlet.ShouldProcess($Name, 'Action')) {
            # Implementation
            if ($PassThru) { Write-Output $result }
        }
    }
}

Workflow

1. Script Development

Follow naming and parameter conventions:

  • Verb-Noun format with approved verbs (Get-Verb)
  • Strong typing with validation attributes
  • Pipeline support via ValueFromPipeline
  • -WhatIf/-Confirm for destructive operations

See best-practices.md for complete guidelines.

2. GUI Development

Windows Forms for simple dialogs, WPF/XAML for complex interfaces:

powershell
Add-Type -AssemblyName System.Windows.Forms
Add-Type -AssemblyName System.Drawing

$form = New-Object System.Windows.Forms.Form -Property @{
    Text          = 'Title'
    Size          = New-Object System.Drawing.Size(400, 300)
    StartPosition = 'CenterScreen'
}

See gui-development.md for controls, events, and templates.

3. PowerShell Gallery Integration

Search and install modules using PSResourceGet:

powershell
# Search gallery
Find-PSResource -Name 'ModuleName' -Repository PSGallery

# Install module
Install-PSResource -Name 'ModuleName' -Scope CurrentUser -TrustRepository

Use scripts/Search-Gallery.ps1 for enhanced search.

See powershellget.md for full cmdlet reference.

Key Patterns

Error Handling

powershell
try {
    $result = Get-Content -Path $Path -ErrorAction Stop
}
catch [System.IO.FileNotFoundException] {
    Write-Error "File not found: $Path"
    return
}
catch {
    throw
}

Splatting for Readability

powershell
$params = @{
    Path        = $sourcePath
    Destination = $destPath
    Recurse     = $true
    Force       = $true
}
Copy-Item @params

Pipeline Best Practices

powershell
# Stream output immediately
foreach ($item in $collection) {
    Process-Item $item | Write-Output
}

# Accept pipeline input
param(
    [Parameter(ValueFromPipeline)]
    [string[]]$InputObject
)
process {
    foreach ($obj in $InputObject) {
        # Process each
    }
}

Module Recommendations

When recommending modules, search the PowerShell Gallery. These are common starting points — always verify via Module Verification before recommending:

CategoryPopular Modules
AzureAz, Az.Compute, Az.Storage
TestingPester, PSScriptAnalyzer
ConsolePSReadLine, Terminal-Icons
SecretsMicrosoft.PowerShell.SecretManagement
WebPode (web server), PoshRSJob (async)
GUIWPFBot3000, PSGUI

Documentation Lookup

Verify cmdlet syntax and module availability against live sources rather than recalled detail. Every learn.microsoft.com PowerShell page is generated from markdown in a public MicrosoftDocs repository — fetch the markdown, not the rendered page. The source is far smaller, carries no navigation chrome or JavaScript, and preserves syntax blocks and parameter tables verbatim.

Raw Markdown Sources (WebFetch)

Use the WebFetch tool against raw.githubusercontent.com. Construct the URL directly from the templates below — do not search for it first.

Command kindURL template
Core PowerShellGet-ChildItem, Write-Output, Invoke-Commandhttps://raw.githubusercontent.com/MicrosoftDocs/PowerShell-Docs/main/reference/{version}/{Module}/{Cmdlet}.md
Conceptualabout_Splatting, about_CommonParametershttps://raw.githubusercontent.com/MicrosoftDocs/PowerShell-Docs/main/reference/{version}/Microsoft.PowerShell.Core/About/{about_Topic}.md
Windows-onlyGet-ADUser, Get-DnsServerZone, Get-MpComputerStatushttps://raw.githubusercontent.com/MicrosoftDocs/windows-powershell-docs/main/docset/winserver2025-ps/{Module}/{Cmdlet}.md
Gallery / packagingInstall-PSResource, Find-PSResourcehttps://raw.githubusercontent.com/MicrosoftDocs/powershell-docs-psget/main/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/{Cmdlet}.md
Satellite modulesInvoke-ScriptAnalyzer, Get-Secrethttps://raw.githubusercontent.com/MicrosoftDocs/PowerShell-Docs-Modules/main/reference/ps-modules/{Module}/{Cmdlet}.md

{version} is one of 5.1, 7.4, 7.5, 7.6, 7.7. Pin it from context — #Requires, pwsh, ISE, or a stated platform. With no signal, fetch both 7.5 and 5.1 and state any parameter difference, since the wrong edition yields syntax that looks authentic but fails on the user's shell.

WebFetch prompt: Extract the complete syntax blocks, the full parameter table with types and defaults, and the examples.

Three rules govern URL construction:

  1. Case matters. Raw paths are case-sensitive where learn.microsoft.com is not. .../activedirectory/Get-ADUser.md returns 404; .../ActiveDirectory/Get-ADUser.md returns 200. Preserve the module's own casing.
  2. Never point at a folder. Raw serves blobs only — any URL ending in / returns 404. There is no directory-listing endpoint.
  3. Convert page URLs. Rewrite github.com/{owner}/{repo}/blob/{branch}/{path} to raw.githubusercontent.com/{owner}/{repo}/{branch}/{path}.

Routing a cmdlet to the right repository, module, and version folder is covered in doc-sources.md, along with complete module inventories and a 404 troubleshooting table. Consult it whenever the correct path is not obvious.

Fallback Chain

Escalate only on failure, one step at a time:

StepToolUse when
1WebFetch raw markdownDefault — always attempt first
2WebFetch contents APIhttps://api.github.com/repos/{owner}/{repo}/contents/{path}A folder name is unknown. Returns plain JSON that parses cleanly; 60 requests/hour unauthenticated
3WebFetch learn.microsoft.comNo raw source exists (third-party modules, Learn-only articles)
4WebSearchPath cannot be derived. Query: {Cmdlet-Name} site:learn.microsoft.com/en-us/powershell — then convert the result back to a raw URL and return to step 1
5Local executionTools unavailable. Ask the user to run Get-Help {Cmdlet} -Full or Get-Command {Cmdlet} -Syntax

If every step fails, state the uncertainty explicitly rather than guessing:

"I wasn't able to verify this against live documentation. Please confirm by running: Get-Command Cmdlet-Name -Syntax"

Module Verification

Gallery packages have no markdown source. WebFetch the listing page directly:

  • URL: https://www.powershellgallery.com/packages/{ModuleName}
  • Prompt: Extract: module name, latest version, last updated date, total downloads, and whether it shows any deprecation warning or 'unlisted' status

A 404 means the module likely does not exist — confirm with WebSearch for {ModuleName} PowerShell module site:powershellgallery.com. If both tools are unavailable, execute scripts/Search-Gallery.ps1 -Name 'ModuleName'.

ScenarioRequirement
User asks whether module X existsMUST verify on the Gallery
Recommending a specific moduleMUST verify it exists and is not deprecated
Stating a module version requirementMUST check the Gallery for the current version
Providing exact cmdlet syntaxSHOULD verify against raw markdown
General best practicesStatic references suffice

Good (verified against live data):

"ImportExcel (v7.8.10, updated Oct 2024, 17M+ downloads) provides Export-Excel for creating spreadsheets without Excel installed."

Bad (unverified):

"Use the Excel-Tools module to export data." ← may not exist

Rendered Documentation

Browse these manually; prefer the raw sources above when fetching.

Reference Files

TopicFile
Documentation routing, raw URL maps, 404 troubleshootingreferences/doc-sources.md
Naming, parameters, pipeline, error handling, code stylereferences/best-practices.md
Windows Forms, WPF, controls, events, templatesreferences/gui-development.md
Find, install, update, publish modulesreferences/powershellget.md

Included Scripts

ScriptPurpose
scripts/Search-Gallery.ps1Formatted PowerShell Gallery search with legacy Find-Module fallback

Meegeleverde bestanden

Het model leest deze bestanden wanneer nodig terwijl de skill geladen is. Ze worden beschikbaar gesteld als leesbare bestanden en worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Powershell Expert?

Develop PowerShell scripts, tools, modules, and GUIs following Microsoft best practices. Use when writing PowerShell code, creating Windows Forms/WPF interfaces, working with PowerShell Gallery modules, or needing cmdlet/module recommendations. Covers script development, parameter design, pipeline handling, error management, and GUI creation patterns. Verifies module availability and cmdlet syntax against live documentation when accuracy is critical.

Waarom Powershell Expert gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Powershell Expert bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model, en je kunt midden in een chat van model wisselen zonder dat de skill niet meer werkt. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Powershell Expert in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/hmohamed01/powershell-expert/tree/main/powershell-expert. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Powershell Expert gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Powershell Expert gebruiken?

Zoveel als je wilt. Zolang een model skills ondersteunt, kun je Powershell Expert ermee gebruiken: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama en meer. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Powershell Expert gratis?

Deze skill is door hmohamed01 op GitHub gepubliceerd. Bekijk de repository voor de licentievoorwaarden. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. Deze volgt het open Agent Skills-formaat: een bestand met de naam SKILL.md met een naam en beschrijving, plus eventuele scripts, sjablonen of referentiebestanden die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇