feat: add home-configs with auto-deployed Claude skills

- Move GLOBAL_RULES.md to home-configs/ as single source of truth
- Add el-review and el-review-heavy skills for GitLab-style branch diff review
- Update ai-setup.sh to deploy skills to ~/.claude/skills/
- Update README and tests for new paths
This commit is contained in:
Виталий Никитенко
2026-06-04 19:02:37 +07:00
parent de7373210c
commit 81a7b024ee
6 changed files with 135 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ BIN_DIR="$HOME/.local/bin"
NPM_GLOBAL="$HOME/.npm-global"
PROXY_BIN="$BIN_DIR/claude-code-proxy"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
GLOBAL_RULES_SOURCE="$SCRIPT_DIR/GLOBAL_RULES.md"
GLOBAL_RULES_SOURCE="$SCRIPT_DIR/home-configs/GLOBAL_RULES.md"
RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m'; CYAN='\033[0;36m'; NC='\033[0m'
info() { echo -e "${CYAN}[INFO]${NC} $*"; }
@@ -207,6 +207,23 @@ cp "$CONFIG_DIR/global_rules.md" "$HOME/.claude/CLAUDE.md"
cp "$CONFIG_DIR/global_rules.md" "$HOME/.gemini/GEMINI.md"
success "Native rule-файлы обновлены"
# ── 6.6. Деплой Claude skills ────────────────────────────────
info "Обновляю Claude skills..."
SKILLS_SRC="$SCRIPT_DIR/home-configs/claude/skills"
SKILLS_DST="$HOME/.claude/skills"
if [ -d "$SKILLS_SRC" ]; then
mkdir -p "$SKILLS_DST"
for skill_dir in "$SKILLS_SRC"/*; do
[ -d "$skill_dir" ] || continue
skill_name=$(basename "$skill_dir")
mkdir -p "$SKILLS_DST/$skill_name"
cp -r "$skill_dir/"* "$SKILLS_DST/$skill_name/"
done
success "Claude skills обновлены"
else
info "Папка со skills не найдена, пропускаю"
fi
# ── 7. Очистка старых функций из .bashrc / .zshrc ───────────
clean_rc() {
local rc_file="$1"