-
Notifications
You must be signed in to change notification settings - Fork 302
Expand file tree
/
Copy pathMakefile
More file actions
161 lines (143 loc) · 6.13 KB
/
Makefile
File metadata and controls
161 lines (143 loc) · 6.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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# Claude Code Multi-Agent Workflow System Makefile
# Quick deployment for BMAD and Requirements workflows
.PHONY: help install deploy-bmad deploy-requirements deploy-essentials deploy-advanced deploy-all deploy-commands deploy-agents clean test changelog
# Default target
help:
@echo "Claude Code Multi-Agent Workflow - Quick Deployment"
@echo ""
@echo "Recommended installation: npx github:stellarlinkco/myclaude"
@echo ""
@echo "Usage: make [target]"
@echo ""
@echo "Targets:"
@echo " install - LEGACY: install all configurations (prefer npx github:stellarlinkco/myclaude)"
@echo " deploy-bmad - Deploy BMAD workflow (bmad-pilot)"
@echo " deploy-requirements - Deploy Requirements workflow (requirements-pilot)"
@echo " deploy-essentials - Deploy Development Essentials workflow"
@echo " deploy-advanced - Deploy Advanced AI Agents"
@echo " deploy-commands - Deploy all slash commands"
@echo " deploy-agents - Deploy all agent configurations"
@echo " deploy-all - Deploy everything (commands + agents)"
@echo " test-bmad - Test BMAD workflow with sample"
@echo " test-requirements - Test Requirements workflow with sample"
@echo " changelog - Update CHANGELOG.md using git-cliff"
@echo " clean - Clean generated artifacts"
@echo " help - Show this help message"
# Configuration paths
CLAUDE_CONFIG_DIR = ~/.claude
SPECS_DIR = .claude/specs
# Workflow directories
BMAD_DIR = agents/bmad
REQUIREMENTS_DIR = agents/requirements
ESSENTIALS_DIR = agents/development-essentials
ADVANCED_DIR = advanced-ai-agents
OUTPUT_STYLES_DIR = output-styles
# Install all configurations
install: deploy-all
@echo "⚠️ LEGACY PATH: make install will be removed in future versions."
@echo " Prefer: npx github:stellarlinkco/myclaude"
@echo "✅ Installation complete!"
# Deploy BMAD workflow
deploy-bmad:
@echo "🚀 Deploying BMAD workflow..."
@mkdir -p $(CLAUDE_CONFIG_DIR)/commands
@mkdir -p $(CLAUDE_CONFIG_DIR)/agents
@mkdir -p $(CLAUDE_CONFIG_DIR)/output-styles
@cp $(BMAD_DIR)/commands/bmad-pilot.md $(CLAUDE_CONFIG_DIR)/commands/
@cp $(BMAD_DIR)/agents/*.md $(CLAUDE_CONFIG_DIR)/agents/
@cp $(OUTPUT_STYLES_DIR)/bmad.md $(CLAUDE_CONFIG_DIR)/output-styles/ 2>/dev/null || true
@echo "✅ BMAD workflow deployed successfully!"
@echo " Usage: /bmad-pilot \"your feature description\""
# Deploy Requirements workflow
deploy-requirements:
@echo "🚀 Deploying Requirements workflow..."
@mkdir -p $(CLAUDE_CONFIG_DIR)/commands
@mkdir -p $(CLAUDE_CONFIG_DIR)/agents
@cp $(REQUIREMENTS_DIR)/commands/requirements-pilot.md $(CLAUDE_CONFIG_DIR)/commands/
@cp $(REQUIREMENTS_DIR)/agents/*.md $(CLAUDE_CONFIG_DIR)/agents/
@echo "✅ Requirements workflow deployed successfully!"
@echo " Usage: /requirements-pilot \"your feature description\""
# Deploy Development Essentials workflow
deploy-essentials:
@echo "🚀 Deploying Development Essentials workflow..."
@mkdir -p $(CLAUDE_CONFIG_DIR)/commands
@mkdir -p $(CLAUDE_CONFIG_DIR)/agents
@cp $(ESSENTIALS_DIR)/commands/*.md $(CLAUDE_CONFIG_DIR)/commands/
@cp $(ESSENTIALS_DIR)/agents/*.md $(CLAUDE_CONFIG_DIR)/agents/
@echo "✅ Development Essentials deployed successfully!"
@echo " Available commands: /ask, /code, /debug, /test, /review, /optimize, /bugfix, /refactor, /docs, /think"
# Deploy Advanced AI Agents
deploy-advanced:
@echo "🚀 Deploying Advanced AI Agents..."
@mkdir -p $(CLAUDE_CONFIG_DIR)/agents
@cp $(ADVANCED_DIR)/agents/*.md $(CLAUDE_CONFIG_DIR)/agents/
@echo "✅ Advanced AI Agents deployed successfully!"
# Deploy all commands
deploy-commands:
@echo "📦 Deploying all slash commands..."
@mkdir -p $(CLAUDE_CONFIG_DIR)/commands
@cp $(BMAD_DIR)/commands/*.md $(CLAUDE_CONFIG_DIR)/commands/
@cp $(REQUIREMENTS_DIR)/commands/*.md $(CLAUDE_CONFIG_DIR)/commands/
@cp $(ESSENTIALS_DIR)/commands/*.md $(CLAUDE_CONFIG_DIR)/commands/
@echo "✅ All commands deployed!"
@echo " Available commands:"
@echo " - /bmad-pilot (Full agile workflow)"
@echo " - /requirements-pilot (Requirements-driven)"
@echo " - /ask, /code, /debug, /test, /review"
@echo " - /optimize, /bugfix, /refactor, /docs, /think"
# Deploy all agents
deploy-agents:
@echo "🤖 Deploying all agents..."
@mkdir -p $(CLAUDE_CONFIG_DIR)/agents
@cp $(BMAD_DIR)/agents/*.md $(CLAUDE_CONFIG_DIR)/agents/
@cp $(REQUIREMENTS_DIR)/agents/*.md $(CLAUDE_CONFIG_DIR)/agents/
@cp $(ESSENTIALS_DIR)/agents/*.md $(CLAUDE_CONFIG_DIR)/agents/
@cp $(ADVANCED_DIR)/agents/*.md $(CLAUDE_CONFIG_DIR)/agents/
@echo "✅ All agents deployed!"
# Deploy everything
deploy-all: deploy-commands deploy-agents
@mkdir -p $(CLAUDE_CONFIG_DIR)/output-styles
@cp $(OUTPUT_STYLES_DIR)/*.md $(CLAUDE_CONFIG_DIR)/output-styles/ 2>/dev/null || true
@echo "✨ Full deployment complete!"
@echo ""
@echo "Quick Start:"
@echo " BMAD: /bmad-pilot \"build user authentication\""
@echo " Requirements: /requirements-pilot \"implement JWT auth\""
@echo " Manual: /ask → /code → /test → /review"
# Test BMAD workflow
test-bmad:
@echo "🧪 Testing BMAD workflow..."
@echo "Run in Claude Code:"
@echo '/bmad-pilot "Simple todo list with add/delete functions"'
# Test Requirements workflow
test-requirements:
@echo "🧪 Testing Requirements workflow..."
@echo "Run in Claude Code:"
@echo '/requirements-pilot "Basic CRUD API for products"'
# Clean generated artifacts
clean:
@echo "🧹 Cleaning artifacts..."
@rm -rf $(SPECS_DIR)
@echo "✅ Cleaned!"
# Quick deployment shortcuts
bmad: deploy-bmad
requirements: deploy-requirements
essentials: deploy-essentials
advanced: deploy-advanced
all: deploy-all
# Version info
version:
@echo "Claude Code Multi-Agent Workflow System v3.1"
@echo "BMAD + Requirements-Driven Development"
# Update CHANGELOG.md using git-cliff
changelog:
@echo "📝 Updating CHANGELOG.md with git-cliff..."
@if ! command -v git-cliff > /dev/null 2>&1; then \
echo "❌ git-cliff not found. Installing via Homebrew..."; \
brew install git-cliff; \
fi
@git-cliff -o CHANGELOG.md
@echo "✅ CHANGELOG.md updated successfully!"
@echo ""
@echo "Preview the changes:"
@echo " git diff CHANGELOG.md"