Community라이팅 & 에디팅github.com

spacexun2/winpitfalls

A deterministic Windows field guide for coding agents — evidence before action.

winpitfalls란 무엇인가요?

winpitfalls is a Claude Code agent skill that a deterministic Windows field guide for coding agents — evidence before action.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add spacexun2/winpitfalls

Installed? Explore more 라이팅 & 에디팅 skills: steipete/notion, affaan-m/seo, affaan-m/brand-voice · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

winpitfalls — agent skill (reference integration)

EXPERIMENTAL reference, not a distribution. This file teaches an agent when and how to consult winpitfalls. It is deliberately thin: the knowledge lives in the rule base, never here. Do not copy rule content into skills — this protocol is the ONLY thing an agent should preload; the cards themselves arrive just-in-time, one action at a time.

When to consult

You are working on Windows (os windows, shells git-bash / powershell / pwsh / cmd / wsl).

  1. Before running a shell command whose first token is a native Windows executable you do not know to be MSYS-safe (robocopy, taskkill, …): consult preflight.
  2. After a command exits non-zero and the tool is one with documented non-failure exit semantics (e.g. robocopy): consult outcome before declaring failure or retrying.
  3. After a real failure with error text available: consult match with as much environment context as you can provide.

How to call

# 1. preflight — before execution
winpitfalls check --phase preflight --os <os> --shell <shell> --runtime <runtime?> --cmd "<command>"

# 2. outcome — after a suspicious exit
winpitfalls check --phase outcome --os <os> --tool <tool> --exit-code <n>

# 3. failure — recovery with evidence
winpitfalls match --stdin --os <os> --shell <shell> < error.txt

Prefer --json when consuming programmatically:

{ "result": "guidance | clear | insufficient", "phase": "preflight", "cards": [ ... ] }

How to interpret

  • guidance — act on the cards. For preflight, prefer the card's replacement (machine-usable safer form) and re-check it once: a correct guardrail must answer clear for its own advice. If it warns again, the guardrail is broken — file a misdiagnosis issue instead of looping.
  • clear — the declared scope was fully confirmed and nothing applies. Proceed normally.
  • insufficientthis is not a clear. Nothing was checked. Supply the missing bounds (--os/--shell/--runtime/--tool/--env) and re-run.

Hard rules

  • Never execute a fix automatically. All fixes in cards are manual steps.
  • Never kill a process or free a port before identifying the holder, even when a diagnosis looks obvious (see WP-PROC-004).
  • Do not retry on ok-nonstandard outcome cards; check the actual goal state instead.
  • If winpitfalls is not installed, say so and continue without inventing its output.

관련 스킬

steipete/notion

Notion CLI/API for pages, Markdown content, data sources, files, comments, search, Workers, and raw API calls.

community

affaan-m/seo

Audit, plan, and implement SEO improvements across technical SEO, on-page optimization, structured data, Core Web Vitals, and content strategy. Use when the user wants better search visibility, SEO remediation, schema markup, sitemap/robots work, or keyword mapping.

community

affaan-m/brand-voice

Build a source-derived writing style profile from real posts, essays, launch notes, docs, or site copy, then reuse that profile across content, outreach, and social workflows. Use when the user wants voice consistency without generic AI writing tropes.

community

affaan-m/crosspost

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

community

affaan-m/x-api

X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.

community

affaan-m/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

community