mirror of
https://github.com/cexll/myclaude.git
synced 2026-02-05 02:30:26 +08:00
- 新增 Makefile 提供一键部署功能 - 支持 BMAD 和 Requirements 工作流快速安装 - 提供独立部署命令和测试功能 - 更新中英文 README 添加安装说明 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
113 lines
4.0 KiB
Makefile
113 lines
4.0 KiB
Makefile
# Claude Code Multi-Agent Workflow System Makefile
|
|
# Quick deployment for BMAD and Requirements workflows
|
|
|
|
.PHONY: help install deploy-bmad deploy-requirements deploy-all clean test
|
|
|
|
# Default target
|
|
help:
|
|
@echo "Claude Code Multi-Agent Workflow - Quick Deployment"
|
|
@echo ""
|
|
@echo "Usage: make [target]"
|
|
@echo ""
|
|
@echo "Targets:"
|
|
@echo " install - Install all configurations to Claude Code"
|
|
@echo " deploy-bmad - Deploy BMAD workflow (bmad-pilot)"
|
|
@echo " deploy-requirements - Deploy Requirements workflow (requirements-pilot)"
|
|
@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 " clean - Clean generated artifacts"
|
|
@echo " help - Show this help message"
|
|
|
|
# Configuration paths
|
|
CLAUDE_CONFIG_DIR = ~/.claude
|
|
COMMANDS_DIR = commands
|
|
AGENTS_DIR = agents
|
|
OUTPUT_STYLES_DIR = output-styles
|
|
SPECS_DIR = .claude/specs
|
|
|
|
# Install all configurations
|
|
install: deploy-all
|
|
@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 $(COMMANDS_DIR)/bmad-pilot.md $(CLAUDE_CONFIG_DIR)/commands/
|
|
@cp $(AGENTS_DIR)/bmad-*.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 $(COMMANDS_DIR)/requirements-pilot.md $(CLAUDE_CONFIG_DIR)/commands/
|
|
@cp $(AGENTS_DIR)/requirements-*.md $(CLAUDE_CONFIG_DIR)/agents/
|
|
@echo "✅ Requirements workflow deployed successfully!"
|
|
@echo " Usage: /requirements-pilot \"your feature description\""
|
|
|
|
# Deploy all commands
|
|
deploy-commands:
|
|
@echo "📦 Deploying all slash commands..."
|
|
@mkdir -p $(CLAUDE_CONFIG_DIR)/commands
|
|
@cp $(COMMANDS_DIR)/*.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 $(AGENTS_DIR)/*.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
|
|
all: deploy-all
|
|
|
|
# Version info
|
|
version:
|
|
@echo "Claude Code Multi-Agent Workflow System v3.1"
|
|
@echo "BMAD + Requirements-Driven Development"
|