add-module

Installation
SKILL.md

Add Module Skill

Automates creation of new modules in the CLY project following established patterns.

Module Isolation Principle (CRITICAL)

The Portability Test: Before creating a module, ask: "If I copy this module folder to a new repo, how hard would it be to make it work?"

The answer should be: trivially easy.

Requirements for Isolation

  • Self-contained: All module logic lives within its directory
  • Minimal dependencies: Only depend on stdlib, Bubbletea/Bubbles/Lipgloss, and Cobra
  • No cross-module imports: Modules NEVER import from other modules
  • Single registration point: Only touch parent's cmd.go for registration
  • Own types: Define types locally, don't reach into other packages

What a Module Can Import

Related skills

More from yurifrl/cly

Installs
12
Repository
yurifrl/cly
First Seen
Feb 15, 2026