a5c-ai/babysitter / library/specializations/cli-mcp-development/skills/mutually-exclusive-group-handler
mutually-exclusive-group-handler
VerifiedGenerate logic for handling mutually exclusive argument groups with clear error messages and validation in CLI applications.
README.md
View on GitHub# Mutually Exclusive Group Handler Skill
Generate logic for handling mutually exclusive argument groups with validation and clear error messages.
## Overview
This skill generates validation logic for mutually exclusive CLI argument groups, handling conflicts and dependencies between options.
## When to Use
- Implementing mutually exclusive options
- Creating dependent argument chains
- Validating argument relationships
- Generating clear conflict messages
## Quick Start
```json
{
"language": "typescript",
"groups": [
{
"name": "output-format",
"type": "mutually_exclusive",
"required": true,
"options": ["--json", "--yaml", "--table"]
}
]
}
```
## Features
- Mutual exclusivity validation
- Required group support
- Dependent arguments
- Custom error messages
## Integration with Processes
| Process | Integration |
|---------|-------------|
| argument-parser-setup | Group validation |
| error-handling-user-feedback | Conflict messages |
| cli-command-structure-design | Option relationships |
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |