Add /help and /status commands
- /help: Shows available commands and skills with descriptions - /status: Quick dashboard overview across all domains - System health (disk, memory, updates) - Kubernetes status (nodes, pods, alerts) - Email summary (unread, urgent) - Calendar (today's events, next meeting) Both commands added to component-registry.json with aliases: - /help: /commands, /skills - /status: /overview, /dashboard Updated commands/README.md with new entries. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -9,6 +9,8 @@ Slash commands for quick actions. User-invoked (type `/command` to trigger).
|
|||||||
| Command | Aliases | Description |
|
| Command | Aliases | Description |
|
||||||
|---------|---------|-------------|
|
|---------|---------|-------------|
|
||||||
| `/pa` | `/assistant`, `/ask` | Personal assistant entrypoint |
|
| `/pa` | `/assistant`, `/ask` | Personal assistant entrypoint |
|
||||||
|
| `/help` | `/commands`, `/skills` | Show available commands and skills |
|
||||||
|
| `/status` | `/overview`, `/dashboard` | Quick status across all domains |
|
||||||
| `/programmer` | | Code development tasks |
|
| `/programmer` | | Code development tasks |
|
||||||
| `/gcal` | `/calendar`, `/cal` | Google Calendar access |
|
| `/gcal` | `/calendar`, `/cal` | Google Calendar access |
|
||||||
| `/usage` | `/stats` | View usage statistics |
|
| `/usage` | `/stats` | View usage statistics |
|
||||||
|
|||||||
59
commands/help.md
Normal file
59
commands/help.md
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
---
|
||||||
|
name: help
|
||||||
|
description: Show available commands and skills
|
||||||
|
aliases: [commands, skills]
|
||||||
|
---
|
||||||
|
|
||||||
|
# /help Command
|
||||||
|
|
||||||
|
Show available commands and skills in this Claude Code configuration.
|
||||||
|
|
||||||
|
## When Invoked
|
||||||
|
|
||||||
|
Display a formatted list of available functionality:
|
||||||
|
|
||||||
|
```
|
||||||
|
📚 Claude Code Help
|
||||||
|
|
||||||
|
═══ Commands ═══
|
||||||
|
|
||||||
|
/pa <request> Personal assistant (natural language)
|
||||||
|
/gcal [today|tomorrow|week] Calendar agenda
|
||||||
|
/usage [today|week|month] Usage statistics
|
||||||
|
|
||||||
|
/sysadmin:health System health check
|
||||||
|
/sysadmin:update Package updates
|
||||||
|
/sysadmin:autonomy Set autonomy level
|
||||||
|
|
||||||
|
/k8s:cluster-status Kubernetes health
|
||||||
|
/k8s:deploy Deploy to cluster
|
||||||
|
/k8s:diagnose Troubleshoot issues
|
||||||
|
|
||||||
|
/programmer Code development
|
||||||
|
|
||||||
|
═══ Skills (Auto-Invoked) ═══
|
||||||
|
|
||||||
|
These activate automatically based on your request:
|
||||||
|
|
||||||
|
• gmail - "check my email", "urgent emails"
|
||||||
|
• gcal - "what's on today", "tomorrow's schedule"
|
||||||
|
• k8s - "cluster status", "pod health"
|
||||||
|
• sysadmin - "system health", "disk space"
|
||||||
|
• usage - "usage stats", "how many sessions"
|
||||||
|
|
||||||
|
═══ Tips ═══
|
||||||
|
|
||||||
|
• Use /pa for natural language requests
|
||||||
|
• Skills trigger automatically - just ask!
|
||||||
|
• Run /usage to see session statistics
|
||||||
|
```
|
||||||
|
|
||||||
|
## Implementation
|
||||||
|
|
||||||
|
Read from `state/component-registry.json` and format:
|
||||||
|
|
||||||
|
1. List commands with descriptions
|
||||||
|
2. List skills with trigger examples
|
||||||
|
3. Show tips for using the system
|
||||||
|
|
||||||
|
Keep output concise - this should fit in one screen.
|
||||||
70
commands/status.md
Normal file
70
commands/status.md
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
---
|
||||||
|
name: status
|
||||||
|
description: Quick status overview across all domains
|
||||||
|
aliases: [overview, dashboard]
|
||||||
|
---
|
||||||
|
|
||||||
|
# /status Command
|
||||||
|
|
||||||
|
Show a quick status overview across all managed domains.
|
||||||
|
|
||||||
|
## When Invoked
|
||||||
|
|
||||||
|
Run quick checks and present a dashboard:
|
||||||
|
|
||||||
|
```
|
||||||
|
📊 Status Overview
|
||||||
|
|
||||||
|
═══ System ═══
|
||||||
|
💻 Workstation: Healthy
|
||||||
|
Disk: 45% used | Memory: 68% | Load: 0.5
|
||||||
|
Updates: 3 pending
|
||||||
|
|
||||||
|
═══ Kubernetes ═══
|
||||||
|
☸️ Cluster: Healthy
|
||||||
|
Nodes: 3/3 Ready | Pods: 42 Running
|
||||||
|
Alerts: 0 firing
|
||||||
|
|
||||||
|
═══ Email ═══
|
||||||
|
📧 Inbox: 12 unread (3 urgent)
|
||||||
|
Last checked: 2 mins ago
|
||||||
|
|
||||||
|
═══ Calendar ═══
|
||||||
|
📅 Today: 3 events
|
||||||
|
Next: Team standup in 45 mins
|
||||||
|
```
|
||||||
|
|
||||||
|
## Implementation
|
||||||
|
|
||||||
|
Run these checks in parallel for speed:
|
||||||
|
|
||||||
|
### System Check
|
||||||
|
```bash
|
||||||
|
~/.claude/skills/sysadmin-health/scripts/health-check.sh | head -20
|
||||||
|
```
|
||||||
|
|
||||||
|
### Kubernetes Check
|
||||||
|
```bash
|
||||||
|
~/.claude/skills/k8s-quick-status/scripts/quick-status.sh | head -10
|
||||||
|
```
|
||||||
|
|
||||||
|
### Email Check
|
||||||
|
```bash
|
||||||
|
~/.claude/skills/gmail/scripts/check_unread.py 1 10
|
||||||
|
```
|
||||||
|
|
||||||
|
### Calendar Check
|
||||||
|
```bash
|
||||||
|
~/.claude/skills/gcal/scripts/agenda.py today
|
||||||
|
```
|
||||||
|
|
||||||
|
## Output Format
|
||||||
|
|
||||||
|
- Use emoji indicators for quick scanning
|
||||||
|
- Keep each section to 2-3 lines
|
||||||
|
- Highlight any issues in red/warning
|
||||||
|
- Show "Last checked" for cached data
|
||||||
|
|
||||||
|
## Autonomy
|
||||||
|
|
||||||
|
Read-only - runs without confirmation.
|
||||||
@@ -129,6 +129,16 @@
|
|||||||
"description": "Diagnose Kubernetes issues",
|
"description": "Diagnose Kubernetes issues",
|
||||||
"aliases": [],
|
"aliases": [],
|
||||||
"invokes": "agent:k8s-diagnostician"
|
"invokes": "agent:k8s-diagnostician"
|
||||||
|
},
|
||||||
|
"/help": {
|
||||||
|
"description": "Show available commands and skills",
|
||||||
|
"aliases": ["/commands", "/skills"],
|
||||||
|
"invokes": "command:help"
|
||||||
|
},
|
||||||
|
"/status": {
|
||||||
|
"description": "Quick status overview across all domains",
|
||||||
|
"aliases": ["/overview", "/dashboard"],
|
||||||
|
"invokes": "command:status"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"agents": {
|
"agents": {
|
||||||
|
|||||||
Reference in New Issue
Block a user