From 2b8efd42a960290eb6dbb657bcb32f4e9470e1a1 Mon Sep 17 00:00:00 2001 From: cexll Date: Fri, 5 Dec 2025 10:26:58 +0800 Subject: [PATCH] feat: implement modular installation system MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 引入模块化安装系统,支持可配置的工作流组合: 核心改进: - .claude-plugin/marketplace.json: 移除废弃模块引用,精简插件清单 - .gitignore: 添加 Python 开发环境忽略项(.venv, __pycache__, .coverage) - Makefile: 标记 make install 为 LEGACY,推荐使用 install.py - install.sh: codex-wrapper 安装脚本,添加到 PATH 新架构使用 config.json 控制模块启用/禁用,支持: - 选择性安装工作流(dev/bmad/requirements/essentials) - 声明式操作定义(merge_dir/copy_file/run_command) - 版本化配置管理 迁移路径: make install -> python3 install.py --install-dir ~/.claude 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .claude-plugin/marketplace.json | 52 --------------------------------- .gitignore | 4 +++ Makefile | 8 +++-- install.sh | 7 +++++ 4 files changed, 17 insertions(+), 54 deletions(-) diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 975567c..59205b9 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -124,58 +124,6 @@ "./agents/debug.md" ] }, - { - "name": "advanced-ai-agents", - "source": "./advanced-ai-agents/", - "description": "Advanced AI agent for complex problem solving and deep analysis with GPT-5 integration", - "version": "1.0.0", - "author": { - "name": "Claude Code Dev Workflows", - "url": "https://github.com/cexll/myclaude" - }, - "homepage": "https://github.com/cexll/myclaude", - "repository": "https://github.com/cexll/myclaude", - "license": "MIT", - "keywords": [ - "gpt5", - "ai", - "analysis", - "problem-solving", - "deep-research" - ], - "category": "advanced", - "strict": false, - "commands": [], - "agents": [ - "./agents/gpt5.md" - ] - }, - { - "name": "requirements-clarity", - "source": "./requirements-clarity/", - "description": "Transforms vague requirements into actionable PRDs through systematic clarification with 100-point scoring system", - "version": "1.0.0", - "author": { - "name": "Claude Code Dev Workflows", - "url": "https://github.com/cexll/myclaude" - }, - "homepage": "https://github.com/cexll/myclaude", - "repository": "https://github.com/cexll/myclaude", - "license": "MIT", - "keywords": [ - "requirements", - "clarification", - "prd", - "specifications", - "quality-gates", - "requirements-engineering" - ], - "category": "essentials", - "strict": false, - "skills": [ - "./skills/SKILL.md" - ] - }, { "name": "codex-cli", "source": "./skills/codex/", diff --git a/.gitignore b/.gitignore index b4dda1f..4cdb4b1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ .claude/ .claude-trace +.venv +.pytest_cache +__pycache__ +.coverage diff --git a/Makefile b/Makefile index e5c1840..9fc260e 100644 --- a/Makefile +++ b/Makefile @@ -7,10 +7,12 @@ help: @echo "Claude Code Multi-Agent Workflow - Quick Deployment" @echo "" + @echo "Recommended installation: python3 install.py --install-dir ~/.claude" + @echo "" @echo "Usage: make [target]" @echo "" @echo "Targets:" - @echo " install - Install all configurations to Claude Code" + @echo " install - LEGACY: install all configurations (prefer install.py)" @echo " deploy-bmad - Deploy BMAD workflow (bmad-pilot)" @echo " deploy-requirements - Deploy Requirements workflow (requirements-pilot)" @echo " deploy-essentials - Deploy Development Essentials workflow" @@ -36,6 +38,8 @@ OUTPUT_STYLES_DIR = output-styles # Install all configurations install: deploy-all + @echo "⚠️ LEGACY PATH: make install will be removed in future versions." + @echo " Prefer: python3 install.py --install-dir ~/.claude" @echo "✅ Installation complete!" # Deploy BMAD workflow @@ -140,4 +144,4 @@ all: deploy-all # Version info version: @echo "Claude Code Multi-Agent Workflow System v3.1" - @echo "BMAD + Requirements-Driven Development" \ No newline at end of file + @echo "BMAD + Requirements-Driven Development" diff --git a/install.sh b/install.sh index b36d81c..20bb838 100644 --- a/install.sh +++ b/install.sh @@ -1,6 +1,13 @@ #!/bin/bash set -e +echo "⚠️ WARNING: install.sh is LEGACY and will be removed in future versions." +echo "Please use the new installation method:" +echo " python3 install.py --install-dir ~/.claude" +echo "" +echo "Continuing with legacy installation in 5 seconds..." +sleep 5 + # Detect platform OS=$(uname -s | tr '[:upper:]' '[:lower:]') ARCH=$(uname -m)