-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·116 lines (100 loc) · 5 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·116 lines (100 loc) · 5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
#!/usr/bin/env bash
set -euo pipefail
# maxym-ai-ads installer (macOS / Linux)
# Wraps everything in main() to prevent partial execution on network failure
main() {
SKILL_DIR="${HOME}/.claude/skills/ads"
AGENT_DIR="${HOME}/.claude/agents"
REPO_URL="${MAXYM_ADS_REPO_URL:-https://github.com/Maxymize/maxym-ai-ads}"
echo "════════════════════════════════════════════════════════════"
echo " maxym-ai-ads — installer"
echo " Strategy · Creative · Multi-platform Audit · Reporting"
echo "════════════════════════════════════════════════════════════"
echo ""
# Check prerequisites
command -v git >/dev/null 2>&1 || { echo "✗ Git is required but not installed."; exit 1; }
echo "✓ Git detected"
# Create directories
mkdir -p "${SKILL_DIR}/references"
mkdir -p "${AGENT_DIR}"
# Clone to temp directory
TEMP_DIR=$(mktemp -d)
trap 'rm -rf "${TEMP_DIR}"' EXIT
echo "↓ Downloading maxym-ai-ads..."
git clone --depth 1 "${REPO_URL}" "${TEMP_DIR}/maxym-ai-ads" 2>/dev/null
SRC="${TEMP_DIR}/maxym-ai-ads"
# Copy every sub-skill under skills/ (including the 'ads' orchestrator)
echo "→ Installing orchestrator + 31 sub-skills..."
for skill_dir in "${SRC}/skills"/*/; do
skill_name=$(basename "${skill_dir}")
target="${HOME}/.claude/skills/${skill_name}"
mkdir -p "${target}"
cp "${skill_dir}SKILL.md" "${target}/SKILL.md"
# Copy references/ (for the 'ads' orchestrator), assets/ (industry templates +
# HTML report template for ads-blueprint), and research-sources/ if they exist.
for sub in references assets research-sources; do
if [ -d "${skill_dir}${sub}" ]; then
mkdir -p "${target}/${sub}"
# Copy .md files
cp "${skill_dir}${sub}/"*.md "${target}/${sub}/" 2>/dev/null || true
# Copy .html files (blueprint report template)
cp "${skill_dir}${sub}/"*.html "${target}/${sub}/" 2>/dev/null || true
fi
done
done
# Copy agents
echo "→ Installing 15 subagents (10 audit/creative + 5 strategy)..."
cp "${SRC}/agents/"*.md "${AGENT_DIR}/" 2>/dev/null || true
# Copy scripts
SCRIPTS_DIR="${SKILL_DIR}/scripts"
if [ -d "${SRC}/scripts" ]; then
echo "→ Installing Python scripts..."
mkdir -p "${SCRIPTS_DIR}"
cp "${SRC}/scripts/"*.py "${SCRIPTS_DIR}/"
cp "${SRC}/requirements.txt" "${SKILL_DIR}/requirements.txt"
fi
# Install Python dependencies
echo ""
echo "→ Installing Python dependencies..."
if command -v pip3 >/dev/null 2>&1 || command -v pip >/dev/null 2>&1; then
PIP_CMD="pip3"
command -v pip3 >/dev/null 2>&1 || PIP_CMD="pip"
${PIP_CMD} install -q -r "${SKILL_DIR}/requirements.txt" 2>/dev/null \
|| { echo " ⚠ Standard pip install failed, trying --break-system-packages..." >&2; \
${PIP_CMD} install --break-system-packages -q -r "${SKILL_DIR}/requirements.txt" 2>/dev/null; } \
&& echo " ✓ Python dependencies installed" \
|| echo " ⚠ pip install failed. Run manually: pip3 install -r ${SKILL_DIR}/requirements.txt"
else
echo " ⚠ pip not found. Install deps manually: pip3 install -r ${SKILL_DIR}/requirements.txt"
fi
# Optional: banana-claude for image generation
echo ""
if [ -d "${HOME}/.claude/skills/banana" ] || [ -f "${HOME}/.claude/skills/banana/SKILL.md" ]; then
echo " ✓ banana-claude detected (image generation ready)"
else
echo " ℹ banana-claude not detected. Commands /ads generate and /ads photoshoot require it."
echo " See the README § Image Generation for provider setup options."
fi
echo ""
echo "✓ maxym-ai-ads installed successfully!"
echo ""
echo " Installed:"
echo " • 1 unified /ads orchestrator"
echo " • 31 sub-skills (incl. /ads blueprint + /ads blueprint-execution)"
echo " • 15 subagents (6 audit + 4 creative-pipeline + 5 strategy)"
echo " • 25 reference files"
echo " • 11 industry strategy templates"
echo " • 2 interactive HTML templates (blueprint report + execution dashboard)"
echo ""
echo "Usage:"
echo " 1. Start Claude Code: claude"
echo " 2. Try: /ads blueprint ← GUIDED strategy (planning)"
echo " /ads blueprint-execution ← GUIDED execution (doing)"
echo " /ads quick <url>"
echo " /ads strategy <url>"
echo " /ads audit"
echo " /ads plan saas"
echo ""
echo "To uninstall: curl -fsSL ${REPO_URL}/raw/main/uninstall.sh | bash"
}
main "$@"