chore: bootstrap repo with chunks 1 and 2
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>
This commit is contained in:
44
scripts/install.sh
Executable file
44
scripts/install.sh
Executable file
@@ -0,0 +1,44 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user