What problem does it solve?
This Skill prevents cross-platform failures caused by OS-specific path and command assumptions by standardizing timestamps, git usage patterns, and path handling across Windows, macOS, and Linux.
Core Features & Use Cases
- Safe Timestamps: Centralizes timestamp formatting with a safeTimestamp() pattern that replaces colons with hyphens to avoid illegal filenames on Windows.
- Reliable Git Workflows: Recommends changing directories before running git, checking for staged changes with git diff --cached --quiet, and writing commit messages to a temporary file used with git commit -F to avoid PowerShell and Windows pitfalls.
- Robust Path Handling: Advises using path.join() or path.resolve() instead of manual separator concatenation and avoiding git -C on Windows paths.
- Use Case: Apply these patterns when running Squad automation, CI pipelines, or local developer scripts across Windows, macOS, and Linux to avoid silent failures, illegal filenames, and unreliable git behavior.
Quick Start
Update repository automation to replace git -C calls with explicit cd then git commands and to use a safeTimestamp() utility for filenames.