EliasOulkadi/shokunin / .pack/skills/windows-powershell
windows-powershell
FlaggedWindows 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 9.1 KB |
| assets/Microsoft.PowerShell_profile.ps1 | script | 8.5 KB |
| references/powershell-mastery.md | markdown | 8.3 KB |
| scripts/cleanup-system.ps1 | script | 5.4 KB |
| scripts/install-tools.ps1 | script | 3.4 KB |
| scripts/system-info.ps1 | script | 3.8 KB |
scripts/install-tools.ps1
View on GitHub<#
.SYNOPSIS
Checks for and installs common Windows dev tools via winget or scoop.
.DESCRIPTION
Supports: Git, Node.js, Python, VS Code, Docker Desktop, 7-Zip, PowerShell 7,
Windows Terminal, Oh My Posh, Postman (or alternatives).
Skips already-installed tools. Logs all actions.
.EXAMPLE
.\install-tools.ps1
.\install-tools.ps1 -Verbose
.PARAMETER Scope
'user' (default) or 'machine' – affects winget --scope parameter.
.PARAMETER PackageManager
'winget' (default). Future: 'scoop'.
#>
param(
[ValidateSet('user', 'machine')]
[string]$Scope = 'user',
[ValidateSet('winget', 'scoop')]
[string]$PackageManager = 'winget'
)
$ErrorActionPreference = 'Continue'
$log = @()
function Write-Log {
param([string]$Message)
$timestamp = Get-Date -Format 'HH:mm:ss'
$line = "[$timestamp] $Message"
$log += $line
Write-Host $line
}
function Test-CommandAvailable {
param([string]$Command)
return [bool](Get-Command $Command -ErrorAction SilentlyContinue)
}
function Install-WithWinget {
param(
[string]$Id,
[string]$Name
)
if (Test-CommandAvailable 'winget') {
Write-Log "Installing $Name ($Id) via winget..."
& winget install --id $Id --silent --accept-package-agreements --scope $Scope 2>&1 | Out-Null
if ($LASTEXITCODE -eq 0) {
Write-Log " $Name installed successfully."
} else {
Write-Log " $Name install returned exit code $LASTEXITCODE (may already be installed)."
}
} else {
Write-Log " winget not available. Skipping $Name."
}
}
# ---- Prerequisites ----
Write-Log "=== Dev Tools Installer ==="
Write-Log "Scope: $Scope | Manager: $PackageManager"
if (-not (Test-CommandAvailable 'winget')) {
Write-Log "WARNING: winget not found. Install App Installer from the Microsoft Store first."
}
# ---- Tools to install ----
$tools = @(
@{ Id = 'Git.Git'; Name = 'Git' }
@{ Id = 'OpenJS.NodeJS'; Name = 'Node.js' }
@{ Id = 'Python.Python.3.13'; Name = 'Python 3' }
@{ Id = 'Microsoft.VisualStudioCode'; Name = 'VS Code' }
@{ Id = 'Docker.DockerDesktop'; Name = 'Docker Desktop' }
@{ Id = '7zip.7zip'; Name = '7-Zip' }
@{ Id = 'Microsoft.PowerShell'; Name = 'PowerShell 7' }
@{ Id = 'Microsoft.WindowsTerminal'; Name = 'Windows Terminal' }
@{ Id = 'JanDeDobbeleer.OhMyPosh'; Name = 'Oh My Posh' }
@{ Id = 'Postman.Postman'; Name = 'Postman' }
)
Write-Log ""
Write-Log "Checking installed tools..."
foreach ($tool in $tools) {
$name = $tool.Name
$id = $tool.Id
$exeName = switch ($name) {
'Git' { 'git' }
'Node.js' { 'node' }
'Python 3' { 'python' }
'VS Code' { 'code' }
'Docker Desktop' { 'docker' }
'7-Zip' { '7z' }
'PowerShell 7' { 'pwsh' }
'Windows Terminal' { 'wt' }
'Oh My Posh' { 'oh-my-posh' }
'Postman' { 'postman' }
default { $null }
}
if ($exeName -and (Test-CommandAvailable $exeName)) {
Write-Log " $name already installed."
} else {
Install-WithWinget -Id $id -Name $name
}
}
# ---- Post-install reminders ----
Write-Log ""
Write-Log "=== Summary ==="
Write-Log "Installation complete. Reminders:"
Write-Log " - Restart terminals to update PATH"
Write-Log " - For Oh My Posh: add 'oh-my-posh init pwsh | Invoke-Expression' to `$PROFILE"
Write-Log " - For Docker Desktop: a restart may be required"
# Return log for pipeline use
return $log
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 119k | Updated | Claude CodeCodex | Verified | Install |
| 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: 118k | Updated | Claude CodeCodex | Verified | Install |