Skip to content

EliasOulkadi/shokunin / .pack/skills/windows-powershell

windows-powershell

Flagged

Windows 11 system administration with PowerShell — system info reporting, hardware monitoring, package management (winget/scoop), disk cleanup, performance optimization, environment configuration, PowerShell profile setup with aliases and autocomplete, and Task Scheduler automation. Use when user asks to check system info, install tools on Windows, clean up disk space, set up PowerShell profile, or automate Windows tasks. Do NOT use for Linux administration, cross-platform scripting, or network infrastructure management.

scripts/system-info.ps1

View on GitHub
<#
.SYNOPSIS
  Gathers comprehensive Windows system information and outputs a clean report.
.DESCRIPTION
  Reports OS version, CPU (model/cores/usage%), RAM (total/used/free%),
  disk (per drive), top 5 processes by memory, network adapters, uptime,
  and pending Windows updates.
.EXAMPLE
  .\system-info.ps1
#>

$ErrorActionPreference = 'Stop'
$output = @()

# Header
$output += "=" * 60
$output += "  SYSTEM INFORMATION REPORT"
$output += "  Generated: $(Get-Date -Format 'yyyy-MM-dd HH:mm:ss')"
$output += "  Hostname:  $env:COMPUTERNAME"
$output += "=" * 60
$output += ""

# OS Version
$os = Get-CimInstance Win32_OperatingSystem
$output += "[OS]"
$output += "  Edition:    $($os.Caption)"
$output += "  Version:    $($os.Version)"
$output += "  Build:      $($os.BuildNumber)"
$output += "  Arch:       $env:PROCESSOR_ARCHITECTURE"
$output += "  Install:    $($os.InstallDate.ToString('yyyy-MM-dd'))"
$output += "  Last Boot:  $($os.LastBootUpTime.ToString('yyyy-MM-dd HH:mm:ss'))"
$output += ""

# Uptime
$uptime = (Get-Date) - $os.LastBootUpTime
$output += "[UPTIME]"
$output += "  $($uptime.Days) days, $($uptime.Hours) hours, $($uptime.Minutes) minutes"
$output += ""

# CPU
$cpu = Get-CimInstance Win32_Processor | Select-Object -First 1
$cores = (Get-CimInstance Win32_Processor).NumberOfCores
$logical = (Get-CimInstance Win32_Processor).NumberOfLogicalProcessors
$cpuLoad = Get-CimInstance Win32_Processor | Measure-Object -Property LoadPercentage -Average
$output += "[CPU]"
$output += "  Model:   $($cpu.Name)"
$output += "  Cores:   $cores physical / $logical logical"
$output += "  Usage:   $([math]::Round($cpuLoad.Average, 1))%"
$output += "  Max MHz: $($cpu.MaxClockSpeed)"
$output += ""

# RAM
$ramTotal = [math]::Round($os.TotalVisibleMemorySize / 1MB, 1)
$ramFree  = [math]::Round($os.FreePhysicalMemory / 1MB, 1)
$ramUsed  = $ramTotal - $ramFree
$ramPct   = if ($ramTotal -gt 0) { [math]::Round(($ramUsed / $ramTotal) * 100, 1) } else { 0 }
$output += "[RAM]"
$output += "  Total:  $ramTotal GB"
$output += "  Used:   $ramUsed GB"
$output += "  Free:   $ramFree GB ($([math]::Round(($ramFree/$ramTotal)*100, 1))%)"
$output += "  Usage:  $ramPct%"
$output += ""

# Disk — per drive
$output += "[DISK]"
Get-CimInstance Win32_LogicalDisk -Filter 'DriveType=3' | ForEach-Object {
  $total = [math]::Round($_.Size / 1GB, 1)
  $free  = [math]::Round($_.FreeSpace / 1GB, 1)
  $used  = $total - $free
  $pct   = if ($total -gt 0) { [math]::Round(($used / $total) * 100, 1) } else { 0 }
  $output += "  $($_.DeviceID)  Total: ${total}G  Used: ${used}G  Free: ${free}G ($([math]::Round(($free/$total)*100, 1))%)  [$pct% used]"
}
$output += ""

# Top 5 processes by memory
$output += "[TOP 5 PROCESSES (by Working Set)]"
Get-Process | Sort-Object WorkingSet64 -Descending | Select-Object -First 5 | ForEach-Object {
  $mb = [math]::Round($_.WorkingSet64 / 1MB, 1)
  $output += "  {0,-6} {1,-20} {2,8} MB" -f $_.Id, $_.ProcessName, $mb
}
$output += ""

# Network adapters
$output += "[NETWORK ADAPTERS]"
Get-NetAdapter | Where-Object Status -EQ 'Up' | ForEach-Object {
  $ip = Get-NetIPAddress -InterfaceIndex $_.ifIndex -AddressFamily IPv4 -ErrorAction SilentlyContinue
  $ipStr = if ($ip) { $ip.IPAddress } else { 'N/A' }
  $output += "  {0,-20} {1,-15}  {2}" -f $_.Name, $ipStr, $_.LinkSpeed
}
$output += ""

# Pending Windows Updates
$output += "[WINDOWS UPDATES PENDING]"
try {
  $session = New-Object -ComObject Microsoft.Update.Session
  $searcher = $session.CreateUpdateSearcher()
  $result = $searcher.Search("IsInstalled=0")
  if ($result.Updates.Count -eq 0) {
    $output += "  None pending"
  } else {
    $result.Updates | ForEach-Object { $output += "  - $($_.Title)" }
  }
} catch {
  $output += "  Could not query Windows Update (may require admin)"
}
$output += ""

# Footer
$output += "=" * 60
$output += "  END OF REPORT"
$output += "=" * 60

$output -join "`r`n" | Write-Output
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall