phuryn/product-engineering / agent-harness/skills/windows-agent-shell
windows-agent-shell
VerifiedA coding agent on Windows: Git Bash path rewriting, PowerShell quoting and encoding, CRLF. Use when output comes back garbled, or it works here and breaks there.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 13.3 KB |
| receipts.md | markdown | 6.8 KB |
| references/troubleshooting.md | markdown | 5.3 KB |
| scripts/check_text.py | script | 7.3 KB |
| scripts/probe_argv.py | script | 1.2 KB |
scripts/probe_argv.py
View on GitHub#!/usr/bin/env python3
"""Print exactly what a program receives, after the shell has finished with your command.
When an argument might be split, re-quoted, path-converted or decoded differently by
Git Bash, PowerShell 5.1, PowerShell 7 or cmd, measure it instead of reasoning about it.
Put this script where the real program would go, in the same shell, with the same
arguments:
python <skill dir>/scripts/probe_argv.py -c.extraMetadata.name=value
python <skill dir>/scripts/probe_argv.py /repos/owner/name # Git Bash path conversion
It prints one JSON object: the arguments as received, the working directory, and the
encodings Python chose for this process's pipes (which is what a hook or a tool reading
your output will get). Exit code 0, always.
"""
import json
import os
import sys
print(json.dumps({
"argv": sys.argv[1:],
"cwd": os.getcwd(),
"stdin_encoding": getattr(sys.stdin, "encoding", None),
"stdout_encoding": getattr(sys.stdout, "encoding", None),
"stderr_encoding": getattr(sys.stderr, "encoding", None),
"PYTHONUTF8": os.environ.get("PYTHONUTF8"),
"MSYS_NO_PATHCONV": os.environ.get("MSYS_NO_PATHCONV"),
}, ensure_ascii=True))
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 468k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |