squad-conventions

Define coding standards for the Squad CLI tool using Node.js built-ins.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/barichter/squad --skill squad-conventions-barichter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: squad-conventions
Source: https://github.com/barichter/squad/tree/main/.copilot/skills/squad-conventions
Command: npx skills add https://github.com/barichter/squad --skill squad-conventions-barichter

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides a comprehensive set of coding conventions and patterns to ensure consistency and best practices in the Squad CLI tool development process.

Core Features & Use Cases

  • Zero Dependencies: Ensures all development is done with Node.js built-ins for a lightweight runtime.
  • Test Patterns: Guidelines for using node:test and node:assert/strict for streamlined testing.
  • Error Handling: Implements a fatal() function for consistent error reporting and handling.
  • File Structure: Outlines the recommended directory layout for organizing code and resources.
  • Windows Compatibility: Ensures compatibility across different operating systems.
  • Init Idempotency: Maintains the integrity of user state during initialization processes.
  • Copy Pattern: Defines a copyRecursive() function for robust file and directory handling.

Quick Start

Implement these conventions when setting up a new project in the Squad ecosystem. Follow the structure and patterns outlined in the Skill to ensure consistent and maintainable code.

Frequently Asked Questions about squad-conventions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I establish Node.js coding conventions for a CLI tool with zero dependencies?

To establish Node.js coding conventions for a CLI tool with zero dependencies, use only Node.js built-ins for a lightweight runtime. This approach maintains codebase consistency and reduces external library overhead.

What is the best way to handle errors consistently in a Node.js CLI application?

The best way to handle errors consistently in a Node.js CLI application is to implement a dedicated fatal() function. This pattern standardizes error reporting and robust handling across the entire codebase.

How do I test a Node.js CLI tool without external testing frameworks?

You test a Node.js CLI tool without external frameworks by utilizing the built-in node:test runner and node:assert/strict module. These native modules provide streamlined testing patterns for robust validation and zero-dependency development.

Does a zero-dependency Node.js CLI tool ensure cross-platform compatibility on Windows?

Yes, a zero-dependency Node.js CLI tool can ensure Windows compatibility by following specific file structure and operational guidelines. This includes implementing robust file handling and initialization patterns to support different operating systems.

How do I implement robust recursive file copying using only Node.js built-ins?

To implement robust recursive file copying using only Node.js built-ins, define a copyRecursive() function. This pattern provides reliable file and directory handling without relying on external libraries.

Why does CLI initialization need to be idempotent and how does it protect user state?

CLI initialization needs to be idempotent to maintain the integrity of user state during repeated initialization processes. This prevents accidental data overwrites and ensures consistent setup operations.