Windows Toolchain Forensics
Forensic Debugger for Fragmented Windows Development Environments
npx -y skills add The-Biomechanist/Windows-Toolchain-ForensicsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Forensic debugger for messy Windows dev setups. Use when users report in casual language that installs "look done" but still fail, PATH/shell behavior is inconsistent, tools only work in one terminal/editor, or prior-agent changes cannot be verified.
SKILL.md
6.6 KB, as published. Nobody here has run it
Windows Toolchain Forensics
Execute forensic triage for broken Windows development environments using a safety-first, evidence-first workflow.
Trigger quickly on casual language (tightly wired)
Activate this skill when user intent matches environment fragmentation, even if wording is non-technical.
Plain-language trigger phrases
- "my Windows setup is a mess"
- "PATH is cursed" / "my path is broken"
- "it works here but not there"
- "agent/bot said it fixed it but it's still broken"
- "I don't know what's actually installed anymore"
- "I installed it and it still says command not found"
- "VS Code works but terminal doesn't" (or the reverse)
- "everything got worse after installing X"
Hard trigger conditions
Run this skill if any of the following are true:
- The same command behaves differently across shells/editors.
- Tool resolution is ambiguous (multiple binaries, unknown path origin, shim/wrapper suspicion).
- Prior-agent claims conflict with current machine behavior.
- Multiple ecosystems are failing and root cause is unclear.
- Package-manager success does not match runtime reality.
If none apply, do standard troubleshooting instead.
Follow these operating rules
- Start in INSPECTION mode (read-only).
- Treat all claims as untrusted until verified.
- Negotiate capabilities up front (what can/can't be observed in this host).
- Check policy and security stop conditions before remediation.
- Require explicit approval before state-changing commands.
- Prefer reversible changes, quarantine, and rollback manifests over destructive cleanup.
- Verify each fix across PowerShell, CMD, and relevant editor/WSL contexts.
- Treat CMD
Command Processor\AutoRunas a mandatory shell-mutation check, not optional. - For GPU/runtime validation, prefer capability probes (real execution) over metadata fields.
Run this workflow
1) Frame the case
- Capture failing command(s), context(s), and expected behavior.
- Capture what changed recently (installer, agent action, policy update, shell profile edits).
- Define a measurable success condition.
1.5) Capability negotiation (mandatory)
Before deep inspection, explicitly state whether you can do each of the following:
- run shell commands,
- inspect filesystem,
- inspect env variables,
- compare multiple shells/contexts,
- read registry/policy surfaces,
- access prior-agent claim history.
If any are unavailable, mark affected conclusions as Unknown (access-limited) instead of "not present."
2) Enforce mode state
Use this state object in responses when remediation is being discussed:
{
"mode_state": {
"current_mode": "INSPECTION",
"pending_changes": [],
"approved_changes": [],
"rollback_available": false
}
}
Transition only as follows:
- INSPECTION → GUIDED: user requests proposed changes.
- GUIDED → EXECUTION: user explicitly approves concrete change list.
- Any mode → INSPECTION: failure, timeout, ambiguity, or user cancel.
3) Check stop conditions first
Before proposing repair, validate policy/security blockers (execution policy, MOTW/SmartScreen/Defender, AppLocker/WDAC, proxy/cert constraints, privilege limits).
Execution policy must be interpreted correctly:
- script/profile execution may be blocked,
- while interactive diagnostics may still work.
Also explicitly distinguish Windows PowerShell 5.1 from PowerShell 7+ during triage.
Mandatory shell-policy checks must include:
HKCU\Software\Microsoft\Command Processor\AutoRunHKLM\Software\Microsoft\Command Processor\AutoRun
Any non-empty AutoRun value is a high-priority branch because it can mutate CMD behavior globally.
Load references/RED-FLAG-INDEX.md for rapid indicator-to-root-cause mapping, then escalate blockers before touching toolchain state.
4) Perform layered forensics
Use the full staged procedure in references/PLAYBOOK.md.
At minimum, inspect:
- Layer 0: policy/security blockers.
- Layer 1: PATH and environment precedence.
- Layer 2: package manager/shim integrity.
- Layer 3: runtime and dependency coherence.
- Layer 4: shell/profile/editor injection.
- Layer 5: project-local isolation (venv, nvm/fnm/volta, WSL boundaries, repo config).
- Layer 6: prior-agent drift and phantom changes.
5) Classify evidence in every conclusion
Label findings as:
- Observed: direct command/file output.
- Strong inference: corroborated signals with no conflict.
- Weak inference: plausible but unverified.
Never present inference as fact.
Use confidence tags directly in findings:
- Observed
- Strong inference
- Weak inference
- Unknown
6) Produce constrained remediation
When user asks for fixes:
- Propose smallest safe diff first.
- Include rollback steps before execution steps.
- Explicitly list commands that mutate system state.
- Avoid duplicate-installer thrash; remove shadowing causes before reinstalling.
7) Verify and harden
After each change:
- Re-run failing command(s) in all affected contexts.
- Confirm selected interpreter/runtime/binary path is canonical.
- Emit residual risks and what was intentionally not changed.
Mandatory verification triad for environment-policy changes:
- Registry/user policy state (key/value exists as expected),
- Fresh external shell (new PowerShell/CMD process),
- Current long-lived app host (editor/agent host session inheritance).
Do not mark a fix complete until all three states are checked or explicitly marked unknown.
If cleanup targets protected paths (for example under Program Files), branch early:
- classify as requires elevation/ownership change when non-admin,
- do not leave it mixed into ordinary low-risk cleanup.
If stabilized, generate a baseline using references/BASELINE-ARTIFACT-TEMPLATE.md.
Use packaged references surgically
- Load
references/RED-FLAG-INDEX.mdfor quick triage and stop-doing guidance. - Load
references/PLAYBOOK.mdfor full staged execution details. - Load
references/BASELINE-ARTIFACT-TEMPLATE.mdat stabilization/handoff time. - Load
references/NOTES.mdonly for deployment and host-capability guidance.
Output contract (always)
Respond in this exact high-level structure:
- Situation Snapshot
- Verified Facts
- Likely Fragmentation Points
- Root-Cause Ranking
- Next Safe Actions
- Remaining Unknowns
- Definition of Done