alba-cli

Create .NET CLI applications using the Albatross.CommandLine toolkit.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/RushuiGuan/claude --skill alba-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: alba-cli
Source: https://github.com/RushuiGuan/claude/tree/main/skills/alba-cli
Command: npx skills add https://github.com/RushuiGuan/claude --skill alba-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps software engineers create command-line interfaces in .NET using the Albatross.CommandLine library, reducing boilerplate and guiding proper patterns for verbs, options, arguments, and handlers.

Core Features & Use Cases

  • Roslyn-based source generator integration that wires up [Verb] declarations with their handlers, enabling automatic command registration and execution.
  • Pre-built packaging patterns and bootstrap guidance for common CLI apps, including Program.cs wiring, dependency injection, and optional defaults.
  • Enforced best practices: namespaces for all types, consistent naming conventions, and support for subcommands, reusable option/argument classes, and validation hooks.

Quick Start

Create a new console app targeting net10.0, install Albatross.CommandLine, define a Verb with a Params class and a Handler, then build and run the app.

Frequently Asked Questions about alba-cli

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

FAQPage Schema
How do I build a .NET CLI application with automatic command registration?

You reduce boilerplate in .NET CLI applications by using the Albatross.CommandLine toolkit, which provides Roslyn-based source generators to automatically wire up Verb declarations with their handlers for command execution.

What is the best way to structure a .NET console app with subcommands and options?

Structure a .NET console app by defining reusable option and argument classes, enforcing namespaces for all types, and applying consistent command sequencing with AddCommands or RegisterCommands for subcommands and validation hooks.

Does Albatross.CommandLine work with .NET 10 projects?

Yes, Albatross.CommandLine works with .NET 10 projects, specifically targeting net10.0 to support pre-built packaging patterns, Program.cs wiring, dependency injection, and optional defaults via WithDefaults.

How does Roslyn source generation handle command-line verbs and handlers?

Roslyn source generation handles command-line verbs by automatically wiring Verb declarations with their corresponding handlers, enabling automatic command registration and execution without manual boilerplate in your .NET CLI.

Why do I need to sequence Parse and AddCommands when setting up a CLI?

You need to sequence Parse and AddCommands correctly to ensure proper dependency injection and command routing, because the Albatross.CommandLine toolkit enforces this specific ordering to validate command-line arguments and register handlers accurately.