diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json new file mode 100644 index 0000000..3a51f74 --- /dev/null +++ b/.claude-plugin/marketplace.json @@ -0,0 +1,158 @@ +{ + "name": "claude-code-dev-workflows", + "owner": { + "name": "Claude Code Dev Workflows", + "email": "contact@example.com", + "url": "https://github.com/yourusername/myclaude" + }, + "metadata": { + "description": "Professional multi-agent development workflows with Requirements-Driven and BMAD methodologies, featuring 16+ specialized agents and 12+ commands", + "version": "1.0.0" + }, + "plugins": [ + { + "name": "requirements-driven-development", + "source": "./", + "description": "Streamlined requirements-driven development workflow with 90% quality gates for practical feature implementation", + "version": "1.0.0", + "author": { + "name": "Claude Code Dev Workflows", + "url": "https://github.com/yourusername/myclaude" + }, + "homepage": "https://github.com/yourusername/myclaude", + "repository": "https://github.com/yourusername/myclaude", + "license": "MIT", + "keywords": [ + "requirements", + "workflow", + "automation", + "quality-gates", + "feature-development", + "agile", + "specifications" + ], + "category": "workflows", + "strict": false, + "commands": [ + "./commands/requirements-pilot.md" + ], + "agents": [ + "./agents/requirements-generate.md", + "./agents/requirements-code.md", + "./agents/requirements-testing.md", + "./agents/requirements-review.md" + ] + }, + { + "name": "bmad-agile-workflow", + "source": "./", + "description": "Full BMAD agile workflow with role-based agents (PO, Architect, SM, Dev, QA) and interactive approval gates", + "version": "1.0.0", + "author": { + "name": "Claude Code Dev Workflows", + "url": "https://github.com/yourusername/myclaude" + }, + "homepage": "https://github.com/yourusername/myclaude", + "repository": "https://github.com/yourusername/myclaude", + "license": "MIT", + "keywords": [ + "bmad", + "agile", + "scrum", + "product-owner", + "architect", + "developer", + "qa", + "workflow-orchestration" + ], + "category": "workflows", + "strict": false, + "commands": [ + "./commands/bmad-pilot.md" + ], + "agents": [ + "./agents/bmad-po.md", + "./agents/bmad-architect.md", + "./agents/bmad-sm.md", + "./agents/bmad-dev.md", + "./agents/bmad-qa.md", + "./agents/bmad-orchestrator.md", + "./agents/bmad-review.md" + ], + "output-styles": [ + "./output-styles/bmad.md" + ] + }, + { + "name": "development-essentials", + "source": "./", + "description": "Essential development commands for coding, debugging, testing, optimization, and documentation", + "version": "1.0.0", + "author": { + "name": "Claude Code Dev Workflows", + "url": "https://github.com/yourusername/myclaude" + }, + "homepage": "https://github.com/yourusername/myclaude", + "repository": "https://github.com/yourusername/myclaude", + "license": "MIT", + "keywords": [ + "code", + "debug", + "test", + "optimize", + "review", + "bugfix", + "refactor", + "documentation" + ], + "category": "essentials", + "strict": false, + "commands": [ + "./commands/code.md", + "./commands/debug.md", + "./commands/test.md", + "./commands/optimize.md", + "./commands/review.md", + "./commands/bugfix.md", + "./commands/refactor.md", + "./commands/docs.md", + "./commands/ask.md", + "./commands/think.md" + ], + "agents": [ + "./agents/code.md", + "./agents/bugfix.md", + "./agents/bugfix-verify.md", + "./agents/code-optimize.md", + "./agents/debug.md", + "./agents/develop.md" + ] + }, + { + "name": "advanced-ai-agents", + "source": "./", + "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/yourusername/myclaude" + }, + "homepage": "https://github.com/yourusername/myclaude", + "repository": "https://github.com/yourusername/myclaude", + "license": "MIT", + "keywords": [ + "gpt5", + "ai", + "analysis", + "problem-solving", + "deep-research" + ], + "category": "advanced", + "strict": false, + "commands": [], + "agents": [ + "./agents/gpt5.md" + ] + } + ] +} \ No newline at end of file diff --git a/PLUGIN_README.md b/PLUGIN_README.md new file mode 100644 index 0000000..5a533b8 --- /dev/null +++ b/PLUGIN_README.md @@ -0,0 +1,95 @@ +# Claude Code Plugin System + +本项目已支持Claude Code插件系统,可以将命令和代理打包成可安装的插件包。 + +## 插件配置 + +插件配置文件位于 `.claude-plugin/marketplace.json`,定义了所有可用的插件包。 + +## 可用插件 + +### 1. Requirements-Driven Development +- **描述**: 需求驱动的开发工作流,包含90%质量门控 +- **命令**: `/requirements-pilot` +- **代理**: requirements-generate, requirements-code, requirements-testing, requirements-review + +### 2. BMAD Agile Workflow +- **描述**: 完整的BMAD敏捷工作流(产品负责人→架构师→SM→开发→QA) +- **命令**: `/bmad-pilot` +- **代理**: bmad-po, bmad-architect, bmad-sm, bmad-dev, bmad-qa, bmad-orchestrator + +### 3. Development Essentials +- **描述**: 核心开发命令套件 +- **命令**: `/code`, `/debug`, `/test`, `/optimize`, `/review`, `/bugfix`, `/refactor`, `/docs`, `/ask`, `/think` +- **代理**: code, bugfix, bugfix-verify, code-optimize, debug, develop + +### 4. Advanced AI Agents +- **描述**: 高级AI代理,集成GPT-5进行深度分析 +- **代理**: gpt5 + +## 使用插件命令 + +### 列出所有可用插件 +```bash +/plugin list +``` + +### 查看插件详情 +```bash +/plugin info +``` +例如:`/plugin info requirements-driven-development` + +### 安装插件 +```bash +/plugin install +``` +例如:`/plugin install bmad-agile-workflow` + +### 移除插件 +```bash +/plugin remove +``` + +## 创建自定义插件 + +要创建自己的插件: + +1. 在 `.claude-plugin/marketplace.json` 中添加新的插件定义 +2. 指定插件包含的命令和代理文件路径 +3. 设置适当的元数据(版本、作者、关键词等) + +示例插件结构: +```json +{ + "name": "my-custom-plugin", + "source": "./", + "description": "自定义插件描述", + "version": "1.0.0", + "commands": [ + "./commands/my-command.md" + ], + "agents": [ + "./agents/my-agent.md" + ] +} +``` + +## 分享插件 + +要分享插件给其他项目: +1. 复制整个 `.claude-plugin` 目录到目标项目 +2. 确保相关的命令和代理文件存在 +3. 在新项目中使用 `/plugin` 命令管理插件 + +## 注意事项 + +- 插件系统遵循Claude Code的插件规范 +- 所有命令和代理文件必须是有效的Markdown格式 +- 插件配置支持版本管理和依赖关系 +- 插件可以包含多个命令、代理和输出样式 + +## 相关文档 + +- [Claude Code插件文档](https://docs.claude.com/en/docs/claude-code/plugins) +- [示例插件仓库](https://github.com/wshobson/agents) \ No newline at end of file