Interactive setup wizard for claude-notifications plugin
Guides interactive setup of notification sounds and webhook configuration.
/plugin marketplace add 777genius/claude-notifications/plugin install claude-notifications@claude-notificationsYou are helping the user configure the claude-notifications plugin interactively. Follow these steps carefully:
First, detect the operating system and find available system sounds:
For macOS:
/System/Library/Sounds/For Linux:
/usr/share/sounds/ and subdirectoriesShow the user a formatted list of all available sounds with descriptions. For example:
Available System Sounds:
Tell the user: "You can ask me to play any sound before making your choice. For example, say 'play Glass' or 'прослушать Hero'. When you're ready, I'll ask you to select sounds for each notification type."
For EACH notification type (Task Complete, Review Complete, Question, Plan Ready):
afplay /System/Library/Sounds/[SoundName].aiff (macOS) or paplay /usr/share/sounds/[file] (Linux)After the user has explored sounds for each notification type, use AskUserQuestion to confirm their selections. Structure the questions as follows:
For each notification type (Task Complete, Review Complete, Question, Plan Ready):
Example options format:
question: "Do you want to enable webhook notifications?" header: "Webhook" multiSelect: false options:
If webhook is enabled, inform the user:
"Please edit config/config.json manually to add your webhook URL and any custom headers."
Based on the user's answers, create the config/config.json file. Use the following template:
{
"notifications": {
"desktop": {
"enabled": true,
"sound": true
},
"webhook": {
"enabled": <true/false based on answer>,
"url": "",
"format": "<json/text based on answer>",
"headers": {}
}
},
"statuses": {
"task_complete": {
"title": "✅ Task Completed",
"sound": "/System/Library/Sounds/<user's choice>",
"keywords": ["completed", "done", "finished", "успешно", "завершен"]
},
"review_complete": {
"title": "🔍 Review Completed",
"sound": "/System/Library/Sounds/<user's choice>",
"keywords": ["review", "ревью", "analyzed", "проверка", "analysis"]
},
"question": {
"title": "❓ Question",
"sound": "/System/Library/Sounds/<user's choice>",
"keywords": ["question", "вопрос", "clarify"]
},
"plan_ready": {
"title": "📋 Plan Ready",
"sound": "/System/Library/Sounds/<user's choice>",
"keywords": ["plan", "план", "strategy"]
}
}
}
IMPORTANT:
cd "$(dirname "$(readlink -f "$0" || echo "$0")")"config/config.json relative to the plugin root directory/usr/share/sounds/ insteadAfter creating the config file:
/setup-notifications anytime to reconfigureconfig/config.jsonOffer to test the notification by playing the selected "task_complete" sound to confirm it works.
Remember: Be friendly, clear, and help the user understand each step. Make this setup experience smooth and enjoyable!