Agent skill
interactive-menu-builder-1-basic-menu-structure
Sub-skill of interactive-menu-builder: 1. Basic Menu Structure.
Install this agent skill to your Project
npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_core/bash/interactive-menu-builder/1-basic-menu-structure
SKILL.md
1. Basic Menu Structure
1. Basic Menu Structure
Single-level menu with numbered options:
#!/bin/bash
# ABOUTME: Basic interactive menu pattern
# ABOUTME: Simple numbered option selection
# Colors
CYAN='\033[0;36m'
GREEN='\033[0;32m'
RED='\033[0;31m'
NC='\033[0m'
show_menu() {
clear
echo -e "${CYAN}═══════════════════════════════════════${NC}"
echo -e "${CYAN} Main Menu${NC}"
echo -e "${CYAN}═══════════════════════════════════════${NC}"
echo ""
echo " 1) Option One"
echo " 2) Option Two"
echo " 3) Option Three"
echo ""
echo " 0) Exit"
echo ""
echo -e "${CYAN}═══════════════════════════════════════${NC}"
echo ""
}
handle_choice() {
local choice="$1"
case "$choice" in
1)
echo "Running Option One..."
# Implementation
;;
2)
echo "Running Option Two..."
# Implementation
;;
3)
echo "Running Option Three..."
# Implementation
;;
0)
echo "Goodbye!"
exit 0
;;
*)
echo -e "${RED}Invalid option${NC}"
;;
esac
}
# Main loop
while true; do
show_menu
read -p "Select option: " choice
handle_choice "$choice"
echo ""
read -p "Press Enter to continue..."
done
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gsd-complete-milestone
Archive completed milestone and prepare for next version
gsd-reapply-patches
Reapply local modifications after a GSD update
gsd-verify-work
Validate built features through conversational UAT
gsd-thread
Manage persistent context threads for cross-session work
clinical-trial-protocol
Generate clinical trial protocols for medical devices or drugs through a modular, waypoint-based architecture with research-only and full protocol modes.
single-cell-rna-qc
Performs quality control on single-cell RNA-seq data (.h5ad or .h5 files) using scverse best practices with MAD-based filtering and comprehensive visualizations.
Didn't find tool you were looking for?