add-module

Scaffold new CLY project modules with Cobra and Bubbletea registration hooks.

1|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/yurifrl/cly --skill add-module
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-module
Source: https://github.com/yurifrl/cly/tree/main/.opencode/skill/add-module
Command: npx skills add https://github.com/yurifrl/cly --skill add-module

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creating new demo or utility modules in the CLY repository often involves repetitive boilerplate, registration, and structure setup. This Skill automates scaffolding that aligns with established patterns, reducing manual errors and speeding up module onboarding.

Core Features & Use Cases

  • Boilerplate generation: Scaffold a new module with the correct directory layout, Cobra registration, and initial files.
  • Pattern compliance: Ensures adherence to Bubbletea/Bubbles conventions and CLY project patterns.
  • Guided setup: Helps developers avoid cross-module imports and enforce isolation principles when creating a module.

Quick Start

Provide the target module type (demo or utility) and the desired module name. The skill will create the proper directory structure, initial files, and registration hooks ready to compile.

Frequently Asked Questions about add-module

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

FAQPage Schema
How do I scaffold a new module in a Go project using Cobra and Bubbletea?

Scaffolding a new Go module involves generating the correct directory layout, Cobra registration hooks, and initial boilerplate files. This skill automates that process for the CLY project, ensuring proper Bubbletea integration and a single registration point to speed up onboarding.

What is the best way to enforce module isolation and prevent cross-module imports in Go?

Enforcing module isolation requires a guided setup that restricts cross-module imports and maintains minimal dependencies. This scaffolding skill guides developers in structuring demo and utility modules to ensure a clean, portable, and isolated module layout from the start.

How do I generate boilerplate for demo versus utility modules in a Go repository?

Generating boilerplate for demo or utility modules requires specifying the target type and desired name. The skill then creates the proper directory structure under modules/demo or modules/ and sets up the initial files and registration hooks ready to compile.

Does this module scaffolding tool require any specific dependencies to set up Cobra commands?

Setting up Cobra commands with this scaffolding tool requires no external dependencies. It directly generates the necessary registration hooks and structural files to integrate Cobra and Bubbletea conventions into the CLY project.

When should I use an automated scaffolding pattern instead of manually creating Go module files?

Automated scaffolding should be used when creating new modules to avoid repetitive boilerplate and manual errors. It ensures adherence to established project patterns and Bubbletea conventions, significantly speeding up module onboarding compared to manual file creation.