Repository navigation
Expand file tree
/
Copy pathsetup.sh
More file actions
56 lines (45 loc) · 2.13 KB
/
Copy pathsetup.sh
File metadata and controls
56 lines (45 loc) · 2.13 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
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
echo "🐝 Setting up Kiro Harness Hive..."
echo ""
# Verify prerequisites
if ! command -v kiro-cli &> /dev/null; then
echo "ERROR: kiro-cli not found. Install it first:"
echo " curl -fsSL https://cli.kiro.dev/install | bash"
exit 1
fi
if ! command -v node &> /dev/null || ! command -v npm &> /dev/null; then
echo "ERROR: Node.js and npm are required (for npx skills add)."
echo " Install from https://nodejs.org/ (v18+ recommended)"
exit 1
fi
# Create .kiro directories
mkdir -p .kiro/skills/agent-harness/references
mkdir -p .kiro/agents
mkdir -p ppt/{tasks,evolution}
mkdir -p webapp/{tasks,evolution}
# Install core skill: agent-harness (ours — shipped in this repo)
cp "$SCRIPT_DIR/skills/agent-harness/SKILL.md" .kiro/skills/agent-harness/SKILL.md
cp "$SCRIPT_DIR/skills/agent-harness/references/agent-schema.md" .kiro/skills/agent-harness/references/agent-schema.md
cp "$SCRIPT_DIR/skills/agent-harness/references/evolution-patterns.md" .kiro/skills/agent-harness/references/evolution-patterns.md
# Install domain skills from the skills.sh registry
echo "📦 Installing skills from registry (requires internet)..."
npx skills add https://github.com/anthropics/skills --skill pptx -y
npx skills add https://github.com/anthropics/skills --skill webapp-testing -y
npx skills add https://github.com/vercel-labs/agent-skills --skill web-design-guidelines -y
# Install pre-built agent configs
cp "$SCRIPT_DIR/agents/"*.json .kiro/agents/
# Seed evolution files so agents can append from round 1
echo '{"version":1,"entries":[]}' > ppt/evolution/experience-log.json
echo '# Agent Lessons Learned' > ppt/evolution/lessons.md
echo '{"version":1,"entries":[]}' > webapp/evolution/experience-log.json
echo '# Agent Lessons Learned' > webapp/evolution/lessons.md
echo "✅ Setup complete!"
echo ""
echo "Installed:"
echo " Skills: agent-harness (local), pptx, webapp-testing, web-design-guidelines (registry)"
echo " Agents: ppt-orchestrator, webapp-orchestrator (+ 6 subagents)"
echo ""
echo "Try it now (~2 minutes):"
echo " kiro-cli --agent ppt-orchestrator"