Replace placeholder files with originals from system
Found and copied original files from ~/.claude installation: - hooks/ - Original Qwen and Ralph hook scripts with full functionality - commands/ - Original command definitions (brainstorm, write-plan, execute-plan) - bin/ralphloop - Original 223-line Python wrapper (6,290 bytes) - scripts/sync-agents.sh - Original sync script with GitHub/Gitea backup - templates/ - Original config templates from working installation - plugins/ - Original comprehensive plugin README Files sourced from: - ~/.claude/skills/skills/hooks/ - ~/.claude/skills/skills/commands/ - ~/.claude/skills/skills/templates/ - /home/uroma/obsidian-web-interface/bin/ralphloop - ~/.claude/agents/sync-agents.sh These are the production files from the working Claude Code installation, replacing the placeholder files I created earlier. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
#!/bin/bash
|
||||
# Session Start Hook - Auto-inject superpowers context
|
||||
# This hook runs on every session start/resume
|
||||
# Trigger: session-start
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Check if AUTO_SUPERPOWERS is enabled
|
||||
if [ "${AUTO_SUPERPOWERS:-false}" = "true" ]; then
|
||||
# Inject superpowers context into the session
|
||||
if [ -f "$HOME/.claude/skills/using-superpowers/skill.md" ]; then
|
||||
cat "$HOME/.claude/skills/using-superpowers/skill.md"
|
||||
fi
|
||||
fi
|
||||
# Read skill files and inject into session context
|
||||
auto_superpowers_content=$(cat "${HOME}/.claude/skills/auto-superpowers/SKILL.md" 2>/dev/null || echo "Skill not found")
|
||||
using_superpowers_content=$(cat "${HOME}/.claude/skills/using-superpowers/SKILL.md" 2>/dev/null || echo "Skill not found")
|
||||
|
||||
exit 0
|
||||
# Output JSON with skills injected
|
||||
cat <<EOF
|
||||
{
|
||||
"hookSpecificOutput": {
|
||||
"hookEventName": "SessionStart",
|
||||
"additionalContext": "\n**AUTO-SUPERPOWERS IS ACTIVE**\n\n${auto_superpowers_content}\n\n**USING-SUPERPOWERS INSTRUCTION:**\n\n${using_superpowers_content}\n\n"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user