Add /workflow, /skill-info, and /agent-info commands
- /workflow command to list and describe available workflows - Filter by category (health, deploy, incidents, sysadmin) - Show workflow steps and triggers - /skill-info command for skill introspection - List scripts, triggers, and allowed tools - Show references and documentation - /agent-info command with hierarchy visualization - Tree view of agent relationships - Model assignments (opus/sonnet/haiku) with visual indicators - Supervisor and subordinate information - Updated shell completions with 19 aliases total - Test suite now covers 27 tests 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -51,6 +51,24 @@ _claude_upgrade() {
|
||||
COMPREPLY=($(compgen -W "--check --backup --apply --help" -- "${cur}"))
|
||||
}
|
||||
|
||||
_claude_workflow() {
|
||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
|
||||
COMPREPLY=($(compgen -W "--category --list" -- "${cur}"))
|
||||
}
|
||||
|
||||
_claude_skill_info() {
|
||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
|
||||
COMPREPLY=($(compgen -W "--scripts --list" -- "${cur}"))
|
||||
}
|
||||
|
||||
_claude_agent_info() {
|
||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
|
||||
COMPREPLY=($(compgen -W "--tree --list" -- "${cur}"))
|
||||
}
|
||||
|
||||
_claude_memory_add() {
|
||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
local prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||
@@ -87,6 +105,9 @@ complete -F _claude_debug debug.sh
|
||||
complete -F _claude_export session-export.py
|
||||
complete -F _claude_mcp_status mcp-status.sh
|
||||
complete -F _claude_upgrade upgrade.sh
|
||||
complete -F _claude_workflow workflow-info.py
|
||||
complete -F _claude_skill_info skill-info.py
|
||||
complete -F _claude_agent_info agent-info.py
|
||||
|
||||
# Alias completions for convenience
|
||||
alias claude-validate='~/.claude/automation/validate-setup.sh'
|
||||
@@ -106,7 +127,11 @@ alias claude-debug='~/.claude/automation/debug.sh'
|
||||
alias claude-export='python3 ~/.claude/automation/session-export.py'
|
||||
alias claude-mcp='~/.claude/automation/mcp-status.sh'
|
||||
alias claude-upgrade='~/.claude/automation/upgrade.sh'
|
||||
alias claude-workflow='python3 ~/.claude/automation/workflow-info.py'
|
||||
alias claude-skill='python3 ~/.claude/automation/skill-info.py'
|
||||
alias claude-agent='python3 ~/.claude/automation/agent-info.py'
|
||||
|
||||
echo "Claude Code completions loaded. Available aliases:"
|
||||
echo " claude-{validate,status,backup,restore,clean,memory-add,memory-list}"
|
||||
echo " claude-{search,history,install,test,maintenance,log,debug,export,mcp,upgrade}"
|
||||
echo " claude-{validate,status,backup,restore,clean,memory-add,memory-list,search}"
|
||||
echo " claude-{history,install,test,maintenance,log,debug,export,mcp,upgrade}"
|
||||
echo " claude-{workflow,skill,agent}"
|
||||
|
||||
Reference in New Issue
Block a user