What problem does it solve?
Establishes and enforces standardized conventions across the Squad codebase to reduce drift and improve maintainability.
Core Features & Use Cases
- Zero Dependencies: Squad uses only Node.js built-ins; no runtime dependencies to avoid bloat.
- Node.js Built-in Test Runner: Tests use node:test and node:assert/strict; run with npm test; tests live in test/.
- Error Handling — fatal() Pattern: All user-facing errors funnel through fatal(msg) for clean messages.
- ANSI Color Constants: UI colors are defined as constants (GREEN, RED, DIM, BOLD, RESET) and reused.
- File Structure & Windows Compatibility: Conventions around .squad/, .squad/templates/, templates/, and safe path handling with path.join().
- Init Idempotency & Copy Pattern: Init skips existing user state; copy patterns use copyRecursive with recursive directory creation.
- Prevention of Overwriting User State: Upgrades overwrite Squad-owned files only.
Quick Start
Align new Squad work to zero-dependency patterns, safe path handling via path.join, and the fatal() error-handling conventions.