# Install the No Readable Company shred skill into detected agent skill folders. $ErrorActionPreference = "Stop" $Base = if ($env:NRC_SKILL_BASE) { $env:NRC_SKILL_BASE } else { "https://noreadablecompany.xyz" } $Name = "shred" $Tmp = Join-Path ([System.IO.Path]::GetTempPath()) ("nrc-shred-" + [guid]::NewGuid().ToString("N")) New-Item -ItemType Directory -Path (Join-Path $Tmp "scripts") | Out-Null try { Invoke-WebRequest -UseBasicParsing -Uri "$Base/skills/$Name/SKILL.md" -OutFile (Join-Path $Tmp "SKILL.md") Invoke-WebRequest -UseBasicParsing -Uri "$Base/skills/$Name/scripts/shred.py" -OutFile (Join-Path $Tmp "scripts/shred.py") function Install-Into([string]$Dest) { New-Item -ItemType Directory -Path (Join-Path $Dest "scripts") -Force | Out-Null Copy-Item (Join-Path $Tmp "SKILL.md") (Join-Path $Dest "SKILL.md") -Force Copy-Item (Join-Path $Tmp "scripts/shred.py") (Join-Path $Dest "scripts/shred.py") -Force Write-Host "Installed $Name -> $Dest" } Install-Into (Join-Path $HOME ".agents/skills/$Name") $homes = @( (Join-Path $HOME ".claude"), (Join-Path $HOME ".cursor"), (Join-Path $HOME ".codex"), (Join-Path $HOME ".grok"), (Join-Path $HOME ".gemini"), (Join-Path $HOME ".copilot") ) foreach ($root in $homes) { if (Test-Path $root) { Install-Into (Join-Path $root "skills/$Name") } } $opencode = Join-Path $HOME ".config/opencode" if (Test-Path $opencode) { Install-Into (Join-Path $opencode "skills/$Name") } if ((Test-Path ".git") -or (Test-Path "AGENTS.md") -or (Test-Path "CLAUDE.md")) { Install-Into (Join-Path (Get-Location) ".agents/skills/$Name") } Write-Host "" Write-Host "Ask your agent to shred a file, or run /$Name." Write-Host "It should hash on disk and refuse to paste the contents." } finally { Remove-Item -Recurse -Force $Tmp -ErrorAction SilentlyContinue }