windows-ai-cli-recovery
Skill1 starsChanged 53 days agoMITView on GitHub
Use when diagnosing Windows AI CLI or app problems for Codex, Claude Code, npm-installed CLIs, PowerShell command lookup, PATH, execution policy, proxy env files, reconnect loops, Codex Desktop status messages, missing claude/codex commands, WindowsApps or sandbox popups, or verifying local .codex/.claude skills and config on this machine.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Fable-Forge/windows-ai-cli-recoveryword for word, first seen Sep 3, 2026
Other versions1 project uses a version of this.
Word for word · 1
- Fable-Forge/windows-ai-cli-recovery★ 0100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- llms.txtllms.txt
- agent-skill-migrationSkill
- agents-md-verification-mapSkill
- cocos-creator-mobile-gameSkill
- game-entity-movement-presentationSkill
- game-event-directorSkill
- game-ui-panelsSkill
- godot-narrative-workflowSkill
- narrative-game-prototype-plannerSkill
- obsidian-article-writebackSkill
- offline-ux-kitSkill
- product-image-prompt-iterationSkill
- product-teardownSkill
- reporting-disciplineSkill
- scene-anchor-systemSkill
- screen2layersSkill
- sol-luna-local-parallelSkill
- sprite-atlas-slicerSkill
- unfinished-work-auditSkill
- xiaohongshu-copywriterSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 8 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Use this skill to restore the simple command the user expects, such as codex or claude, on Windows PowerShell.
- Distinctive: line 16
Prefer read-only checks before edits.
- Distinctive: line 17
Do not expose secrets from config files.
- Very specific: line 18
When reading .env, show only proxy endpoints or non-secret settings that are needed for the task.
- Distinctive: line 19
Before editing profile, PATH, or config files, explain the exact file or setting being changed.
- Distinctive: line 30
Verify current state with narrow commands.
- Very specific: line 32
Use npm config get prefix and inspect the npm global bin directory.
- Very specific: line 33
Use Get-Item / Test-Path for expected .cmd files.
- Very specific: line 34
Use Get-NetTCPConnection only for local proxy port discovery.
- Distinctive: line 37
Add the npm global directory to the user PATH when the executable exists but cannot be found.
- Very specific: line 38
Prefer <tool>.cmd when .ps1 is blocked.
- Distinctive: line 39
Add a PowerShell profile function only when the user explicitly wants the bare command and PATH/execution policy alone does not restore it.
- Distinctive: line 42
Verify the restored workflow.
- Very specific: line 43
Run the exact command the user wants, such as claude --version or codex --version.
- Distinctive: line 44
If a new shell is required, provide the one-line temporary PATH refresh and the permanent explanation.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Windows AI CLI Recovery
Overview
Use this skill to restore the simple command the user expects, such as codex or claude, on Windows PowerShell. Verify the current machine state first, then apply the smallest reversible fix.
For concrete command patterns and decision points, read references/windows-cli-checks.md when the task involves PATH, npm global bin, proxy ports, PowerShell profiles, execution policy, or Codex Desktop state.
Safety Rules
- Prefer read-only checks before edits.
- Do not expose secrets from config files.
- When reading
.env, show only proxy endpoints or non-secret settings that are needed for the task. - Before editing profile, PATH, or config files, explain the exact file or setting being changed.
- Preserve the user's preferred command shape when possible. If they want to type
claude, restoreclaude, not a long command they must memorize.
Workflow
- Classify the failure.
- Command not found: inspect command lookup, npm global bin, PATH, and installed files.
- PowerShell script blocked: check whether
.cmdworks while.ps1is blocked. - Reconnect/proxy issue: inspect local proxy listener and Codex
.env. - Codex Desktop message: explain whether it is app state, context compression, review UI, or project file state.
- Verify current state with narrow commands.
- Use
Get-Command <name> -All. - Use
npm config get prefixand inspect the npm global bin directory. - Use
Get-Item/Test-Pathfor expected.cmdfiles. - Use
Get-NetTCPConnectiononly for local proxy port discovery.
- Use
- Choose the smallest fix.
- Add the npm global directory to the user PATH when the executable exists but cannot be found.
- Prefer
<tool>.cmdwhen.ps1is blocked. - Add a PowerShell profile function only when the user explicitly wants the bare command and PATH/execution policy alone does not restore it.
- For Codex proxy, write or verify
C:\Users\<user>\.codex\.envonly after confirming the local proxy port.
- Verify the restored workflow.
- Run the exact command the user wants, such as
claude --versionorcodex --version. - If a new shell is required, provide the one-line temporary PATH refresh and the permanent explanation.
- Run the exact command the user wants, such as
Output Expectations
End with:
- root cause in one or two sentences
- exact setting or file changed, if any
- verified command output or remaining blocker
- the shortest command the user should use next
Known Patterns
- npm global CLIs on Windows often install to
%APPDATA%\npmas.cmdand.ps1shims. - PowerShell may block
.ps1shims while.cmdworks. - A new PowerShell window may be required after changing user PATH.
- Codex proxy config belongs in
C:\Users\<user>\.codex\.envwithHTTP_PROXYandHTTPS_PROXY. - A Codex "complete content failed to load" review message can be a UI/diff loading problem, not proof that edited files are broken.
- "Automatic context compression" means the app is summarizing a long thread so work can continue; it is not by itself a failure.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

