What problem does it solve?
This Skill prevents Squad CLI development from drifting into fragile, inconsistent implementations by documenting the team’s core conventions for structure, reliability, and cross-platform behavior.
Core Features & Use Cases
- Zero-dependency Node.js rules: Enforces using Node built-ins instead of adding npm dependencies, keeping the package minimal and deterministic.
- Consistent testing workflow: Standardizes on Node’s built-in test runner (
node:test) and strict assertions, aligning how tests are authored and executed.
- Predictable error handling & UX: Requires the
fatal(msg) pattern for clean user-facing failures and avoids raw stack traces.
- Cross-platform filesystem safety: Mandates Windows-safe path handling via
path.join() and safe recursive copy utilities.
- Safe init/upgrade behavior: Defines idempotent init (skip-if-exists) while restricting overwrites to Squad-owned files during upgrades.
Quick Start
Use the conventions in this Skill when modifying Squad CLI code to ensure you follow the same zero-dependency, error-handling, testing, and filesystem patterns as the rest of the codebase.