-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·74 lines (63 loc) · 2.68 KB
/
install.sh
File metadata and controls
executable file
·74 lines (63 loc) · 2.68 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
#!/bin/bash
# Storyline installer - Story-driven development workflow for Claude Code
# https://github.com/prillcode/storyline
set -e
echo "📖 Installing Storyline..."
echo ""
# Colors for output
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
# Create .claude directories if they don't exist
mkdir -p ~/.claude/skills
mkdir -p ~/.claude/commands
mkdir -p ~/.claude/agents
# Determine installation source
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DEPENDENCY_DIR="$SCRIPT_DIR/cc-resources"
# Check if we have the bundled dependencies
if [ -d "$DEPENDENCY_DIR/skills" ]; then
echo -e "${BLUE}📦 Installing from local repository...${NC}"
# Install bundled cc-resources
echo "Installing cc-resources dependencies..."
cp -r "$DEPENDENCY_DIR/skills"/* ~/.claude/skills/ 2>/dev/null || true
cp -r "$DEPENDENCY_DIR/commands"/* ~/.claude/commands/ 2>/dev/null || true
cp -r "$DEPENDENCY_DIR/agents"/* ~/.claude/agents/ 2>/dev/null || true
echo -e "${GREEN}✅ cc-resources installed${NC}"
else
echo -e "${RED}❌ Error: cc-resources directory not found${NC}"
echo ""
echo "The bundled dependencies are missing. This shouldn't happen."
echo "Please re-clone the repository or report this issue."
exit 1
fi
# Install storyline skills
echo "Installing Storyline skills..."
cp -r "$SCRIPT_DIR/skills"/* ~/.claude/skills/
# Install storyline commands
echo "Installing Storyline commands..."
cp -r "$SCRIPT_DIR/commands"/* ~/.claude/commands/
echo ""
echo -e "${GREEN}✅ Storyline v0.21.5 installed successfully!${NC}"
echo ""
echo "Available sl-commands (story-led development):"
echo " /sl-setup [command] - Initialize, manage, check projects"
echo " /sl-epic-creator [PRD.md] - Create epics from PRD (or guided mode)"
echo " /sl-story-creator <epic-file> - Generate user stories from epic"
echo " /sl-spec-story <story-file> - Create technical spec from story"
echo " /sl-develop <spec-file> - Execute technical spec (implement)"
echo " /sl-commit [message] - Create conventional commit (auto or manual)"
echo ""
echo "Quick start:"
echo " 1. /sl-setup init # Initialize project"
echo " 2. /sl-epic-creator # Guided PRD creation"
echo " 3. /sl-story-creator .storyline/epics/epic-{id}-01.md"
echo " 4. /sl-spec-story .storyline/stories/epic-{id}-01/story-01.md"
echo " 5. /sl-develop .storyline/specs/epic-{id}-01/spec-01.md"
echo " 6. /sl-setup status # Check progress"
echo ""
echo "Start a new Claude Code session and run: /sl-setup check"
echo ""
echo -e "${YELLOW}Documentation: https://github.com/prillcode/storyline${NC}"