Establishes the global AI development config repo from scratch: - Chunk 1: repo skeleton, install.sh, statusline, deploy manifest - Chunk 2: core instructions (coding/git/testing), CLAUDE.md rewrite (always-on + content index two-tier model), docs restructure, 6 ADRs, ROADMAP.md, .gitkeep placeholders - Bootstrap skills in .claude/skills/ (to be catalogued and migrated to .agents/skills/ in Chunk 3) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
45 lines
1.0 KiB
Bash
Executable File
45 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
# shellcheck source=deploy-manifest.sh
|
|
source "$REPO_ROOT/scripts/deploy-manifest.sh"
|
|
|
|
echo "Installing from $REPO_ROOT..."
|
|
|
|
for entry in "${DEPLOY_FILES[@]}"; do
|
|
dest="$HOME/${entry##*:}"
|
|
mkdir -p "$(dirname "$dest")"
|
|
cp "$REPO_ROOT/${entry%%:*}" "$dest"
|
|
done
|
|
|
|
for entry in "${DEPLOY_EXECUTABLES[@]}"; do
|
|
dest="$HOME/${entry##*:}"
|
|
mkdir -p "$(dirname "$dest")"
|
|
cp "$REPO_ROOT/${entry%%:*}" "$dest"
|
|
chmod +x "$dest"
|
|
done
|
|
|
|
for entry in "${DEPLOY_DIRS[@]}"; do
|
|
dest="$HOME/${entry##*:}"
|
|
rm -rf "$dest"
|
|
mkdir -p "$dest"
|
|
cp -r "$REPO_ROOT/${entry%%:*}/." "$dest/"
|
|
done
|
|
|
|
for dir in "${DEPLOY_EMPTY_DIRS[@]}"; do
|
|
mkdir -p "$HOME/$dir"
|
|
done
|
|
|
|
echo ""
|
|
echo "Deployed:"
|
|
for entry in "${DEPLOY_FILES[@]}" "${DEPLOY_EXECUTABLES[@]}"; do
|
|
echo " ~/${entry##*:}"
|
|
done
|
|
for entry in "${DEPLOY_DIRS[@]}"; do
|
|
echo " ~/${entry##*:}/"
|
|
done
|
|
for dir in "${DEPLOY_EMPTY_DIRS[@]}"; do
|
|
echo " ~/$dir/ (directory created)"
|
|
done
|