Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
A comprehensive collection of Agent Skills for context engineering, multi-agent architectures, and production agent systems.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
examples/digital-brain-skill/scripts/install.sh
1#!/bin/bash2# Digital Brain Installation Script3# Installs Digital Brain as a Claude Code skill45set -e67SKILL_NAME="digital-brain"8SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"9BRAIN_DIR="$(dirname "$SCRIPT_DIR")"1011# Colors12GREEN='\033[0;32m'13BLUE='\033[0;34m'14NC='\033[0m' # No Color1516echo -e "${BLUE}Digital Brain Installer${NC}"17echo "========================"18echo ""1920# Detect installation type21echo "Where would you like to install Digital Brain?"22echo ""23echo "1) User-wide (recommended) - ~/.claude/skills/"24echo "2) Current project only - ./.claude/skills/"25echo "3) Custom location"26echo ""27read -p "Enter choice [1-3]: " choice2829case $choice in301)31TARGET_DIR="$HOME/.claude/skills/$SKILL_NAME"32;;332)34TARGET_DIR="./.claude/skills/$SKILL_NAME"35;;363)37read -p "Enter custom path: " custom_path38TARGET_DIR="$custom_path/$SKILL_NAME"39;;40*)41echo "Invalid choice. Exiting."42exit 143;;44esac4546# Create target directory47mkdir -p "$(dirname "$TARGET_DIR")"4849# Check if already exists50if [ -d "$TARGET_DIR" ]; then51read -p "Directory exists. Overwrite? [y/N]: " overwrite52if [ "$overwrite" != "y" ] && [ "$overwrite" != "Y" ]; then53echo "Installation cancelled."54exit 055fi56rm -rf "$TARGET_DIR"57fi5859# Copy files60echo ""61echo "Installing to: $TARGET_DIR"62cp -r "$BRAIN_DIR" "$TARGET_DIR"6364# Remove install script from target (not needed there)65rm -f "$TARGET_DIR/scripts/install.sh"6667echo ""68echo -e "${GREEN}Installation complete!${NC}"69echo ""70echo "Next steps:"71echo "1. Navigate to your Digital Brain: cd $TARGET_DIR"72echo "2. Start with identity/voice.md - define your voice"73echo "3. Fill out identity/brand.md - your positioning"74echo "4. Add contacts to network/contacts.jsonl"75echo "5. Capture ideas in content/ideas.jsonl"76echo ""77echo "Claude Code will automatically discover the skill."78echo "Try: 'Help me write a post in my voice'"79echo ""80