diagnose-windows-sandbox-acl
Use on Windows for unexpected DSH sandbox access denials: workspace writes or listing fail, or an ordinarily readable path cannot be read. One bundled command…
от fufankeji★ 46 звёзд на GitHub
Установить diagnose-windows-sandbox-acl в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Diagnose Windows sandbox ACL failures
Write every approval request in plain words, in the user's language. The prompt is all the user reads before widening access, so it must stand alone: which folder the script touches, that it adds the signed-in user's full-control entry where a right is missing and removes foreign package entries, that file contents and owners are unchanged, and that the printed recovery command undoes each change. Keep error codes, WRITE_DAC/WRITE_OWNER, S-1-15-2-* SIDs, icacls, ACL, ACE, verdict names and switches out of the request: write Windows file permissions, not ACL or ACE. Ask once, for one command.
One command diagnoses and repairs
The script has no modes. -Path, -AllowRoot and -Out read the path and every ancestor and repair what the observations prove, in the same run:
- directories on that chain that lack effective
WRITE_DACorWRITE_OWNERreceive a full-control allow ACE for the signed-in user, because DSH cannot provision its workspace grant without them; - explicit AppContainer package allow ACEs (
S-1-15-2-*, except the well-known groups ending in 1 or 2) are removed at their sources, ancestor first, which also removes those packages' access; - a directory the sandbox cannot provision — the state its provisioning error reports on the workspace root — or the authorized root itself also has its subtree searched for those ACEs in the same run, so a deeper entry needs no second request. That bounded walk reports
truncatedand unreadable directories; if truncated, pass the still-failing deeper path once more.
Every change is backed up, then verified by re-reading it. -AllowRoot bounds all of it: an object is changed only when it is that directory or strictly inside it, so a workspace root can repair itself. Never split this into a diagnostic call and a repair call, never ask twice for one repair, and never pass a mode switch that does not exist.
& '<skill-directory>\scripts\diagnose-windows-sandbox-acl.ps1' -Path '<failing-path>' -AllowRoot '<authorized-directory>' -Out '<recovery-directory>'
exit $LASTEXITCODE
Substitute full, quoted paths. Keep -Out persistent and user-owned, preferably beside the failing workspace; never use the skill resource directory, which is deleted when the skill unloads. Pass one path per invocation.
Run it
Repeat the failing operation once confined. The script writes permissions, which the confined token cannot do — run it there and it would report the sandbox's own restriction as a missing right — so request approval for that one command and run it unconfined. A confined run of the script is never useful. Unconfined does not elevate the Windows token.
Diagnose unexpected denials of workspace writes, listing, or plainly readable paths; explain expected ones instead: writes outside the workspace, any write in read-only, piped grandchild spawn EPERM, ConstrainedLanguage errors. If approval is refused or unavailable, report the path as undiagnosed and stop.
Read the output
Every record reaches stdout, the acl-report-*.jsonl file under -Out, and the final RECAP line, which carries the verdicts, changes, verifications, refusals and scans. Tool output keeps only its tail, so read the recap first, and read specific records from the report when it is not enough. Trust verification records, never completed actions. Decide from details.nextAction:
nextAction |
Meaning |
|---|---|
verify_original_confined_operation |
Repairs verified; repeat the original operation confined. |
stop |
Nothing repaired, or a refusal ended the run. Report and stop. |
restore_pending_then_stop |
Rollback unverified. Run the printed recovery commands in order, then stop. |
A deny ACE's presence alone does not establish causation, and the script never removes one; DSH's S-1-4-* grants and the Everyone DeleteSubdirectoriesAndFiles deny are expected, not conflicts. A deny that blocks the repair ends the run without a repair (REPAIR_REFUSED, or GRANT_FAILED) after restoring what it attempted. Each change leaves two files in -Out (acl-backup-<id>.json and its .ps1), and the run prints the matching ROLLBACK command.
After a repair, and when it stops
Repeat the original failed operation confined. A verified repair is not undone because the original operation fails for a further reason: continue from the new observations, and if a deeper path is still denied, run the same one command there — again one call, one approval.
Stop after any failed or refused repair, or failed verification. The script already restored that invocation's changes; do not repeat it or start another repair, and never remove a deny ACE by hand.
A stopped run still owes the user a decision. Name the blocking object and the right or ACE it lacks, what changed and what was rolled back, the recovery commands in order, and the report path. Only the user can lift confinement, so ask them to
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- scripts/diagnose-windows-sandbox-acl.ps1
FAQ
Что делает скилл diagnose-windows-sandbox-acl?
Use on Windows for unexpected DSH sandbox access denials: workspace writes or listing fail, or an ordinarily readable path cannot be read. One bundled command inspects the path and every ancestor and repairs the ACL problems it proves in that same run. Expected confinement denials need no ACL repair.
Как установить скилл diagnose-windows-sandbox-acl?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл diagnose-windows-sandbox-acl запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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…