Skip to content
Back to skills

Windows Env

ASecurity

How to run npm, tests, typecheck, builds, Electron and scripts on this Windows machine without the usual failures (wrong path case, Git Bash quirks, Electron starting as Node, escaping that eats backslashes). Use before running any command here.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 21, 2026
ai-agentspythonshellbashnodegitapi

Works with

  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned November 21, 2026

npx -y skills add Sidhilynx/fenna --skill windows-env --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Windows Env?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Windows Env
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sidhilynx-windows-env/badge)](https://www.skillsdirectory.com/skills/sidhilynx-windows-env)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: windows-env
description: How to run npm, tests, typecheck, builds, Electron and scripts on this Windows machine without the usual failures (wrong path case, Git Bash quirks, Electron starting as Node, escaping that eats backslashes). Use before running any command here.
---

# Running commands here

## Where and how

- Use **PowerShell**, from `D:\sidhilynx\open-source-tools` (capital `D:`).
  npm compares paths case-sensitively; `d:\` breaks workspace links.
- In PowerShell 5.1 there is no `&&`. Use `;`, or `if ($?) { ... }`.
- **Never run `npm install`** or add dependencies (AGENTS.md rule 5). If you
  need a package, name it in the hand-over.
- Vitest from Git Bash reports "no tests". Run it from PowerShell.

| What | Command |
|------|---------|
| All tests | `npx vitest run` |
| One package | `npx vitest run packages/board` |
| Typecheck | `npx tsc -p apps/whiteboard/tsconfig.json --noEmit` (and each `packages/*` tsconfig you touched) |
| Build an app | `npm run build -w @opendeck/whiteboard` |
| Capture | `node scripts/shot.mjs ...` (`ui-verify`) |
| Agent run | `node scripts/agy-try.mjs ...`, then `node scripts/agy-trace.mjs` |

Read the last lines of every test and typecheck run. "Tests 266 passed" and
an empty typecheck output are the only passes.

## Electron

- If Electron prints "Node.js v24" and a stack trace, `ELECTRON_RUN_AS_NODE`
  is set: `Remove-Item Env:ELECTRON_RUN_AS_NODE`. (`shot.mjs` does this.)
- Never launch the app on the user's real profile for tests; `shot.mjs`
  uses a fresh `--user-data-dir`.

## Writing files

- Edit source with your file-editing tool, not with shell one-liners.
  Scripts passed through PowerShell or Bash lose backslashes and quotes, and
  regexes like `/\d+/` silently become `/d+/`. If you must generate a file
  from a script, write the script to a `.mjs` file first and run it.
- No Python on this machine. Use Node (`.mjs` files) for helper scripts, and
  keep them in `%TEMP%`, not the repo.
- PowerShell's `Set-Content` writes a BOM and CRLF. Use `-Encoding utf8` with
  `Out-File`, or write files with Node.
- After any generated edit, open the changed lines and check them.

## Time

Agent runs take 1 to 5 minutes; give them a 10-minute timeout. Electron
captures take about 15 seconds each; `--all` takes about a minute.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.