Windows
Windows-specific patterns, security practices, and operational traps that cause silent failures.
от clawic★ 23 звезды на GitHub
Установить Windows в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Credential Management
- Never hardcode passwords in scripts — use Windows Credential Manager:
# Store cmdkey /generic:"MyService" /user:"admin" /pass:"secret" # Retrieve in script $cred = Get-StoredCredential -Target "MyService" - For scripts, use
Get-Credentialand export securely:$cred | Export-Clixml -Path "cred.xml" # Encrypted to current user/machine $cred = Import-Clixml -Path "cred.xml"
Silent Failures
- Windows Defender silently quarantines downloaded scripts/executables — check quarantine if script disappears
- Group Policy overrides local settings silently —
gpresult /rto see what's actually applied - Antivirus real-time scanning blocks file operations intermittently — add exclusions for build/automation folders
- PowerShell
-ErrorAction SilentlyContinuehides problems — useStopand handle explicitly
Symbolic Links
- Creating symlinks requires admin OR SeCreateSymbolicLinkPrivilege — regular users fail silently
- Enable Developer Mode for symlinks without admin: Settings → For Developers → Developer Mode
mklinkis CMD-only, PowerShell usesNew-Item -ItemType SymbolicLink
Script Signing
- Unsigned scripts fail on restricted machines with confusing errors — sign for production:
$cert = Get-ChildItem Cert:\CurrentUser\My -CodeSigningCert Set-AuthenticodeSignature -FilePath script.ps1 -Certificate $cert - AllSigned policy requires ALL scripts signed including profile.ps1
Operational Safety
- Always
-WhatIffirst on destructive operations —Remove-Item -Recurse -WhatIf Start-Transcriptfor audit trail — forgotten until incident investigation- NTFS permissions:
icaclsfor CLI, but inheritance rules are non-obvious — test changes on copy first
WinRM Remoting
- Enable correctly:
Enable-PSRemoting -Forceisn't enough on workgroups - Workgroup machines need TrustedHosts:
Set-Item WSMan:\localhost\Client\TrustedHosts -Value "server1,server2" - HTTPS remoting needs certificate setup — HTTP sends credentials readable on network
Event Logging
- Scripts should log to Windows Event Log for centralized monitoring:
New-EventLog -LogName Application -Source "MyScript" -ErrorAction SilentlyContinue Write-EventLog -LogName Application -Source "MyScript" -EventId 1000 -Message "Started" - Custom event sources require admin to create — create during install, not runtime
File Locking
- Windows locks files aggressively — test file access before operations:
try { [IO.File]::OpenWrite($path).Close(); $true } catch { $false } - Scheduled tasks writing to same file as user → conflicts. Use unique temp files and atomic rename
Temp File Hygiene
$env:TEMPfills silently — scripts should cleanup withtry/finally:$tmp = New-TemporaryFile try { ... } finally { Remove-Item $tmp -Force }- Orphaned temp files accumulate across reboots — unlike Linux /tmp
Service Account Gotchas
- Services run in different user context —
$env:USERPROFILEpoints to system profile, not user's - Network access from SYSTEM account uses machine credentials — may fail where user succeeds
- Mapped drives don't exist for services — use UNC paths
\\server\share
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- _meta.json
FAQ
Что делает скилл Windows?
Windows-specific patterns, security practices, and operational traps that cause silent failures.
Как установить скилл Windows?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Windows запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…