add-alias-command

Create alias commands that delegate to target commands with copied flags.

10|14|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/openkaiden/kdn --skill add-alias-command
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-alias-command
Source: https://github.com/openkaiden/kdn/tree/main/.agents/skills/add-alias-command
Command: npx skills add https://github.com/openkaiden/kdn --skill add-alias-command

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables teams to define shorthand aliases for existing commands, reducing keystrokes and avoiding repetitive command sequences.

Core Features & Use Cases

  • Create alias commands that delegate to a target command, preserving behavior and flags.
  • Automatically copy flags from the target command and reuse its help and usage patterns.
  • Support documentation and testing guidance by wiring an alias into the root command and referencing the original command.
  • Use cases include simplifying frequent operations like list, remove, add, and init by providing concise aliases.

Quick Start

Create an alias command that delegates to an existing target command.

Frequently Asked Questions about add-alias-command

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

FAQPage Schema
How do I create a command alias for an existing CLI command?

To create a command alias, delegate all behavior to a target command by registering a new alias in the root command. This preserves the original behavior while providing a concise shorthand for frequent operations.

How do I copy flags from a target command when creating a CLI alias?

When creating a CLI alias, you must copy flags directly from the target command. This ensures the alias accepts the same arguments and preserves the original command's usage patterns and help documentation.

When do I need to create command aliases in my CLI application?

You need command aliases to reduce keystrokes and avoid repetitive command sequences in a CLI application. Defining shorthand aliases for common workspace operations like list, remove, add, and init simplifies team workflows.

Does creating a command alias require updating the root command registry?

Yes, creating a command alias requires registering the new alias in the root command. Wiring the alias into the root command ensures it is executable, supports documentation, and references the original target command correctly.

What is the best way to adapt command examples for a CLI alias?

The best way to adapt command examples for a CLI alias is to use a specific adaptation process for the alias. This adjusts the examples to reflect the new shorthand while maintaining the target command's expected behavior and flag support.

Can I use command aliases to simplify workspace initialization and management?

Yes, you can use command aliases to simplify workspace initialization and management. Aliasing common workspace commands like init, add, list, and remove provides concise shortcuts that delegate directly to the original subcommands.