squad-conventions

Enforce coding conventions for Squad CLI Node.js applications.

Updated May 10, 2026
One-click install
npx skills add https://github.com/AshleyHollis/agentic-identity-lab --skill squad-conventions-ashleyhollis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: squad-conventions
Source: https://github.com/AshleyHollis/agentic-identity-lab/tree/main/.copilot/skills/squad-conventions
Command: npx skills add https://github.com/AshleyHollis/agentic-identity-lab --skill squad-conventions-ashleyhollis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill ensures consistency and clarity in the Squad codebase by establishing and enforcing core conventions and patterns.

Core Features & Use Cases

  • Zero Dependencies: Ensures the Squad CLI tool operates with Node.js built-ins, avoiding unnecessary package dependencies.
  • Node.js Test Runner: Utilizes node:test and node:assert/strict for testing, providing a straightforward testing environment.
  • Error Handling: Standardizes error handling through the fatal() function, ensuring user-friendly error messages and system stability.
  • ANSI Color Constants: Defines color constants for consistent logging and output formatting.
  • File Structure: Provides a clear and predictable file structure for the Squad project, aiding in maintainability.
  • Windows Compatibility: Ensures compatibility across Windows, macOS, and Linux platforms.
  • Init Idempotency: Ensures that the initialization process does not overwrite user-owned files.
  • Copy Pattern: Offers a robust pattern for copying files and directories recursively.
  • Anti-Patterns: Lists common anti-patterns to avoid, such as adding npm dependencies and overwriting user state.

Quick Start

Follow the core conventions outlined in this Skill to ensure your Squad source code adheres to the established patterns.

Frequently Asked Questions about squad-conventions

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

FAQPage Schema
How do I enforce zero-dependency coding conventions in a Node.js CLI tool?

To enforce zero-dependency coding conventions, restrict your Node.js application to built-in modules only, avoiding external package dependencies. This approach ensures a consistent, secure, and lightweight environment for CLI tool development.

What is the best way to standardize error handling in Node.js CLI applications?

The best way to standardize error handling in Node.js CLI applications is by using a standardized fatal() function. This ensures user-friendly error messages and maintains system stability across the codebase.

Can I use the Node.js test runner for CLI tools without adding external dependencies?

Yes, you can use the Node.js test runner without adding external dependencies by utilizing node:test and node:assert/strict. This provides a straightforward testing environment while maintaining zero-dependency operation.

Does this Squad coding convention support Windows, macOS, and Linux platforms?

Yes, the Squad coding conventions ensure cross-platform compatibility across Windows, macOS, and Linux. The established patterns and file structure are designed to operate predictably across all supported operating systems.

What anti-patterns should I avoid when maintaining a zero-dependency Node.js codebase?

When maintaining a zero-dependency Node.js codebase, avoid anti-patterns such as adding npm dependencies and overwriting user state during initialization. The established conventions specifically list these patterns to prevent codebase maintenance issues.

How do I recursively copy files and directories in Node.js without external packages?

You can recursively copy files and directories without external packages by following the robust copy pattern defined in these coding conventions. This pattern leverages Node.js built-ins to ensure safe and predictable file operations.