add-command

Automate adding a new cx CLI subcommand with templates, wiring, and tests.

114|10|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/coralogix/cx-cli --skill add-command-coralogix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-command
Source: https://github.com/coralogix/cx-cli/tree/main/.claude/skills/add-command
Command: npx skills add https://github.com/coralogix/cx-cli --skill add-command-coralogix

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Add Command skill provides end-to-end guidance for implementing a new subcommand in the cx CLI, including archetype selection, file layout, module wiring, and testing, so developers can efficiently extend the CLI.

Core Features & Use Cases

  • Guides when designing a new subcommand for cx (archetype A: DataPrime-based or Archetype B: REST-based) with template references in docs/adding-a-command.md.
  • Provides a runnable workflow for code layout, API wrappers or data-prime pipelines, testing scaffolds, and CLI wiring.
  • Helps teams document and verify new features before merging to ensure consistency and maintainability.

Quick Start

Create a new cx subcommand following the official workflow, implement its logic with the appropriate archetype, wire it into the CLI, and add tests and documentation.

Frequently Asked Questions about add-command

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

FAQPage Schema
How do I add a new subcommand to the cx CLI?

To add a new cx CLI subcommand, follow the automated workflow for archetype selection, file layout, module wiring, and testing scaffolds to ensure consistent, production-ready command integration.

What is the difference between DataPrime and REST command archetypes?

DataPrime archetypes utilize data-prime pipelines for processing, while REST archetypes implement API wrappers. Selecting the correct archetype determines the specific code templates and module layout applied during command wiring.

How do I wire a new cx CLI command into the existing module structure?

Wire a new cx CLI command by applying the provided code templates and module layout conventions, ensuring the subcommand is properly registered and validated during the end-to-end addition workflow.

What testing scaffolds are needed when building cx CLI subcommands?

Building cx CLI subcommands requires testing scaffolds provided by the workflow, which validate the new command's logic, API wrappers, or DataPrime pipelines before merging to ensure maintainability.

Does the cx CLI command-wiring workflow enforce project conventions?

Yes, the cx CLI command-wiring workflow enforces project conventions by providing specific code templates, module layouts, and validation steps, ensuring every new subcommand remains consistent and production-ready.