Add /diff and /template commands
- /diff command to compare config with backups - Shows added/removed/changed files - JSON-aware comparison for config files - List available backups - /template command for session templates - Built-in templates: daily-standup, code-review, troubleshoot, deploy - Each template includes checklist, initial commands, prompt - Create custom templates interactively or non-interactively - Updated shell completions with 21 aliases total - Test suite now covers 29 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:
@@ -131,6 +131,24 @@ _claude_agent_info() {
|
||||
'*:name:'
|
||||
}
|
||||
|
||||
# Config diff completion
|
||||
_claude_diff() {
|
||||
_arguments \
|
||||
'--backup[Backup file]:file:_files' \
|
||||
'--list[List backups]' \
|
||||
'--json[JSON output]'
|
||||
}
|
||||
|
||||
# Template completion
|
||||
_claude_template() {
|
||||
_arguments \
|
||||
'--list[List templates]' \
|
||||
'--create[Create template]:name:' \
|
||||
'--use[Use template]:name:' \
|
||||
'--delete[Delete template]:name:' \
|
||||
'--non-interactive[Non-interactive mode]'
|
||||
}
|
||||
|
||||
# Register completions
|
||||
compdef _memory_add memory-add.py
|
||||
compdef _memory_list memory-list.py
|
||||
@@ -145,6 +163,8 @@ compdef _claude_upgrade upgrade.sh
|
||||
compdef _claude_workflow workflow-info.py
|
||||
compdef _claude_skill_info skill-info.py
|
||||
compdef _claude_agent_info agent-info.py
|
||||
compdef _claude_diff config-diff.py
|
||||
compdef _claude_template session-template.py
|
||||
|
||||
# Aliases
|
||||
alias claude-validate='~/.claude/automation/validate-setup.sh'
|
||||
@@ -167,8 +187,10 @@ 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'
|
||||
alias claude-diff='python3 ~/.claude/automation/config-diff.py'
|
||||
alias claude-template='python3 ~/.claude/automation/session-template.py'
|
||||
|
||||
echo "Claude Code completions loaded (zsh)"
|
||||
echo " Aliases: 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}"
|
||||
echo " claude-{workflow,skill,agent,diff,template}"
|
||||
|
||||
Reference in New Issue
Block a user