claude-mpm 5.1.9__py3-none-any.whl → 5.4.22__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of claude-mpm might be problematic. Click here for more details.

Files changed (176) hide show
  1. claude_mpm/VERSION +1 -1
  2. claude_mpm/__init__.py +4 -0
  3. claude_mpm/agents/CLAUDE_MPM_TEACHER_OUTPUT_STYLE.md +1 -1
  4. claude_mpm/agents/PM_INSTRUCTIONS.md +290 -34
  5. claude_mpm/agents/agent_loader.py +13 -44
  6. claude_mpm/agents/templates/circuit-breakers.md +138 -1
  7. claude_mpm/cli/__main__.py +4 -0
  8. claude_mpm/cli/chrome_devtools_installer.py +175 -0
  9. claude_mpm/cli/commands/agent_state_manager.py +8 -17
  10. claude_mpm/cli/commands/agents.py +0 -31
  11. claude_mpm/cli/commands/auto_configure.py +210 -25
  12. claude_mpm/cli/commands/config.py +88 -2
  13. claude_mpm/cli/commands/configure.py +1097 -158
  14. claude_mpm/cli/commands/configure_agent_display.py +15 -6
  15. claude_mpm/cli/commands/mpm_init/core.py +160 -46
  16. claude_mpm/cli/commands/mpm_init/knowledge_extractor.py +481 -0
  17. claude_mpm/cli/commands/mpm_init/prompts.py +280 -0
  18. claude_mpm/cli/commands/skills.py +214 -189
  19. claude_mpm/cli/commands/summarize.py +413 -0
  20. claude_mpm/cli/executor.py +11 -3
  21. claude_mpm/cli/parsers/agents_parser.py +0 -9
  22. claude_mpm/cli/parsers/auto_configure_parser.py +0 -138
  23. claude_mpm/cli/parsers/base_parser.py +5 -0
  24. claude_mpm/cli/parsers/config_parser.py +153 -83
  25. claude_mpm/cli/parsers/skills_parser.py +3 -2
  26. claude_mpm/cli/startup.py +550 -94
  27. claude_mpm/commands/mpm-config.md +265 -0
  28. claude_mpm/commands/mpm-help.md +14 -95
  29. claude_mpm/commands/mpm-organize.md +500 -0
  30. claude_mpm/config/agent_sources.py +27 -0
  31. claude_mpm/core/framework/formatters/content_formatter.py +3 -13
  32. claude_mpm/core/framework/loaders/agent_loader.py +8 -5
  33. claude_mpm/core/framework_loader.py +4 -2
  34. claude_mpm/core/logger.py +13 -0
  35. claude_mpm/core/socketio_pool.py +3 -3
  36. claude_mpm/core/unified_agent_registry.py +5 -15
  37. claude_mpm/hooks/claude_hooks/correlation_manager.py +60 -0
  38. claude_mpm/hooks/claude_hooks/event_handlers.py +211 -78
  39. claude_mpm/hooks/claude_hooks/hook_handler.py +6 -0
  40. claude_mpm/hooks/claude_hooks/installer.py +33 -10
  41. claude_mpm/hooks/claude_hooks/memory_integration.py +26 -9
  42. claude_mpm/hooks/claude_hooks/response_tracking.py +2 -3
  43. claude_mpm/hooks/claude_hooks/services/connection_manager.py +4 -0
  44. claude_mpm/hooks/memory_integration_hook.py +46 -1
  45. claude_mpm/init.py +0 -19
  46. claude_mpm/scripts/claude-hook-handler.sh +58 -18
  47. claude_mpm/scripts/launch_monitor.py +93 -13
  48. claude_mpm/scripts/start_activity_logging.py +0 -0
  49. claude_mpm/services/agents/agent_recommendation_service.py +278 -0
  50. claude_mpm/services/agents/agent_review_service.py +280 -0
  51. claude_mpm/services/agents/deployment/agent_discovery_service.py +2 -3
  52. claude_mpm/services/agents/deployment/agent_template_builder.py +4 -2
  53. claude_mpm/services/agents/deployment/multi_source_deployment_service.py +78 -9
  54. claude_mpm/services/agents/deployment/remote_agent_discovery_service.py +335 -53
  55. claude_mpm/services/agents/git_source_manager.py +34 -0
  56. claude_mpm/services/agents/loading/base_agent_manager.py +1 -13
  57. claude_mpm/services/agents/sources/git_source_sync_service.py +8 -1
  58. claude_mpm/services/agents/toolchain_detector.py +10 -6
  59. claude_mpm/services/analysis/__init__.py +11 -1
  60. claude_mpm/services/analysis/clone_detector.py +1030 -0
  61. claude_mpm/services/command_deployment_service.py +81 -10
  62. claude_mpm/services/event_bus/config.py +3 -1
  63. claude_mpm/services/git/git_operations_service.py +93 -8
  64. claude_mpm/services/monitor/daemon.py +9 -2
  65. claude_mpm/services/monitor/daemon_manager.py +39 -3
  66. claude_mpm/services/monitor/server.py +225 -19
  67. claude_mpm/services/self_upgrade_service.py +120 -12
  68. claude_mpm/services/skills/__init__.py +3 -0
  69. claude_mpm/services/skills/git_skill_source_manager.py +32 -2
  70. claude_mpm/services/skills/selective_skill_deployer.py +704 -0
  71. claude_mpm/services/skills/skill_to_agent_mapper.py +406 -0
  72. claude_mpm/services/skills_deployer.py +126 -9
  73. claude_mpm/services/socketio/event_normalizer.py +15 -1
  74. claude_mpm/services/socketio/server/core.py +160 -21
  75. claude_mpm/services/version_control/git_operations.py +103 -0
  76. claude_mpm/utils/agent_filters.py +17 -44
  77. {claude_mpm-5.1.9.dist-info → claude_mpm-5.4.22.dist-info}/METADATA +47 -84
  78. {claude_mpm-5.1.9.dist-info → claude_mpm-5.4.22.dist-info}/RECORD +82 -161
  79. claude_mpm-5.4.22.dist-info/entry_points.txt +5 -0
  80. claude_mpm-5.4.22.dist-info/licenses/LICENSE +94 -0
  81. claude_mpm-5.4.22.dist-info/licenses/LICENSE-FAQ.md +153 -0
  82. claude_mpm/agents/BASE_AGENT_TEMPLATE.md +0 -292
  83. claude_mpm/agents/BASE_DOCUMENTATION.md +0 -53
  84. claude_mpm/agents/BASE_ENGINEER.md +0 -658
  85. claude_mpm/agents/BASE_OPS.md +0 -219
  86. claude_mpm/agents/BASE_PM.md +0 -480
  87. claude_mpm/agents/BASE_PROMPT_ENGINEER.md +0 -787
  88. claude_mpm/agents/BASE_QA.md +0 -167
  89. claude_mpm/agents/BASE_RESEARCH.md +0 -53
  90. claude_mpm/agents/base_agent.json +0 -31
  91. claude_mpm/agents/base_agent_loader.py +0 -601
  92. claude_mpm/cli/commands/agents_detect.py +0 -380
  93. claude_mpm/cli/commands/agents_recommend.py +0 -309
  94. claude_mpm/cli/ticket_cli.py +0 -35
  95. claude_mpm/commands/mpm-agents-auto-configure.md +0 -278
  96. claude_mpm/commands/mpm-agents-detect.md +0 -177
  97. claude_mpm/commands/mpm-agents-list.md +0 -131
  98. claude_mpm/commands/mpm-agents-recommend.md +0 -223
  99. claude_mpm/commands/mpm-config-view.md +0 -150
  100. claude_mpm/commands/mpm-ticket-organize.md +0 -304
  101. claude_mpm/dashboard/analysis_runner.py +0 -455
  102. claude_mpm/dashboard/index.html +0 -13
  103. claude_mpm/dashboard/open_dashboard.py +0 -66
  104. claude_mpm/dashboard/static/css/activity.css +0 -1958
  105. claude_mpm/dashboard/static/css/connection-status.css +0 -370
  106. claude_mpm/dashboard/static/css/dashboard.css +0 -4701
  107. claude_mpm/dashboard/static/js/components/activity-tree.js +0 -1871
  108. claude_mpm/dashboard/static/js/components/agent-hierarchy.js +0 -777
  109. claude_mpm/dashboard/static/js/components/agent-inference.js +0 -956
  110. claude_mpm/dashboard/static/js/components/build-tracker.js +0 -333
  111. claude_mpm/dashboard/static/js/components/code-simple.js +0 -857
  112. claude_mpm/dashboard/static/js/components/connection-debug.js +0 -654
  113. claude_mpm/dashboard/static/js/components/diff-viewer.js +0 -891
  114. claude_mpm/dashboard/static/js/components/event-processor.js +0 -542
  115. claude_mpm/dashboard/static/js/components/event-viewer.js +0 -1155
  116. claude_mpm/dashboard/static/js/components/export-manager.js +0 -368
  117. claude_mpm/dashboard/static/js/components/file-change-tracker.js +0 -443
  118. claude_mpm/dashboard/static/js/components/file-change-viewer.js +0 -690
  119. claude_mpm/dashboard/static/js/components/file-tool-tracker.js +0 -724
  120. claude_mpm/dashboard/static/js/components/file-viewer.js +0 -580
  121. claude_mpm/dashboard/static/js/components/hud-library-loader.js +0 -211
  122. claude_mpm/dashboard/static/js/components/hud-manager.js +0 -671
  123. claude_mpm/dashboard/static/js/components/hud-visualizer.js +0 -1718
  124. claude_mpm/dashboard/static/js/components/module-viewer.js +0 -2764
  125. claude_mpm/dashboard/static/js/components/session-manager.js +0 -579
  126. claude_mpm/dashboard/static/js/components/socket-manager.js +0 -368
  127. claude_mpm/dashboard/static/js/components/ui-state-manager.js +0 -749
  128. claude_mpm/dashboard/static/js/components/unified-data-viewer.js +0 -1824
  129. claude_mpm/dashboard/static/js/components/working-directory.js +0 -920
  130. claude_mpm/dashboard/static/js/connection-manager.js +0 -536
  131. claude_mpm/dashboard/static/js/dashboard.js +0 -1914
  132. claude_mpm/dashboard/static/js/extension-error-handler.js +0 -164
  133. claude_mpm/dashboard/static/js/socket-client.js +0 -1474
  134. claude_mpm/dashboard/static/js/tab-isolation-fix.js +0 -185
  135. claude_mpm/dashboard/static/socket.io.min.js +0 -7
  136. claude_mpm/dashboard/static/socket.io.v4.8.1.backup.js +0 -7
  137. claude_mpm/dashboard/templates/code_simple.html +0 -153
  138. claude_mpm/dashboard/templates/index.html +0 -606
  139. claude_mpm/dashboard/test_dashboard.html +0 -372
  140. claude_mpm/scripts/mcp_server.py +0 -75
  141. claude_mpm/scripts/mcp_wrapper.py +0 -39
  142. claude_mpm/services/mcp_gateway/__init__.py +0 -159
  143. claude_mpm/services/mcp_gateway/auto_configure.py +0 -369
  144. claude_mpm/services/mcp_gateway/config/__init__.py +0 -17
  145. claude_mpm/services/mcp_gateway/config/config_loader.py +0 -296
  146. claude_mpm/services/mcp_gateway/config/config_schema.py +0 -243
  147. claude_mpm/services/mcp_gateway/config/configuration.py +0 -429
  148. claude_mpm/services/mcp_gateway/core/__init__.py +0 -43
  149. claude_mpm/services/mcp_gateway/core/base.py +0 -312
  150. claude_mpm/services/mcp_gateway/core/exceptions.py +0 -253
  151. claude_mpm/services/mcp_gateway/core/interfaces.py +0 -443
  152. claude_mpm/services/mcp_gateway/core/process_pool.py +0 -977
  153. claude_mpm/services/mcp_gateway/core/singleton_manager.py +0 -315
  154. claude_mpm/services/mcp_gateway/core/startup_verification.py +0 -316
  155. claude_mpm/services/mcp_gateway/main.py +0 -589
  156. claude_mpm/services/mcp_gateway/registry/__init__.py +0 -12
  157. claude_mpm/services/mcp_gateway/registry/service_registry.py +0 -412
  158. claude_mpm/services/mcp_gateway/registry/tool_registry.py +0 -489
  159. claude_mpm/services/mcp_gateway/server/__init__.py +0 -15
  160. claude_mpm/services/mcp_gateway/server/mcp_gateway.py +0 -414
  161. claude_mpm/services/mcp_gateway/server/stdio_handler.py +0 -372
  162. claude_mpm/services/mcp_gateway/server/stdio_server.py +0 -712
  163. claude_mpm/services/mcp_gateway/tools/__init__.py +0 -36
  164. claude_mpm/services/mcp_gateway/tools/base_adapter.py +0 -485
  165. claude_mpm/services/mcp_gateway/tools/document_summarizer.py +0 -789
  166. claude_mpm/services/mcp_gateway/tools/external_mcp_services.py +0 -654
  167. claude_mpm/services/mcp_gateway/tools/health_check_tool.py +0 -456
  168. claude_mpm/services/mcp_gateway/tools/hello_world.py +0 -551
  169. claude_mpm/services/mcp_gateway/tools/kuzu_memory_service.py +0 -555
  170. claude_mpm/services/mcp_gateway/utils/__init__.py +0 -14
  171. claude_mpm/services/mcp_gateway/utils/package_version_checker.py +0 -160
  172. claude_mpm/services/mcp_gateway/utils/update_preferences.py +0 -170
  173. claude_mpm-5.1.9.dist-info/entry_points.txt +0 -10
  174. claude_mpm-5.1.9.dist-info/licenses/LICENSE +0 -21
  175. {claude_mpm-5.1.9.dist-info → claude_mpm-5.4.22.dist-info}/WHEEL +0 -0
  176. {claude_mpm-5.1.9.dist-info → claude_mpm-5.4.22.dist-info}/top_level.txt +0 -0
@@ -1,223 +0,0 @@
1
- ---
2
- namespace: mpm/agents
3
- command: recommend
4
- aliases: [mpm-agents-recommend]
5
- migration_target: /mpm/agents:recommend
6
- category: agents
7
- deprecated_aliases: []
8
- description: Get intelligent agent recommendations based on detected project toolchain
9
- ---
10
- # Show recommended agents for detected project stack
11
-
12
- Get intelligent agent recommendations based on your project's detected toolchain.
13
-
14
- ## Usage
15
-
16
- ```
17
- /mpm-agents-recommend
18
- ```
19
-
20
- ## Description
21
-
22
- This command analyzes your detected project stack and recommends the most appropriate agents, organized by priority:
23
- - **Essential agents**: Core agents required for your primary stack
24
- - **Recommended agents**: Complementary agents for full functionality
25
- - **Optional agents**: Specialized agents for detected tools
26
-
27
- Each recommendation includes an explanation of why that agent is suggested.
28
-
29
- ## Implementation
30
-
31
- When you run `/mpm-agents-recommend`, the PM will execute:
32
- ```bash
33
- claude-mpm agents recommend
34
- ```
35
-
36
- This runs the detection phase and then applies recommendation rules to suggest the best agents for your specific technology stack.
37
-
38
- ## Expected Output
39
-
40
- ```
41
- 🤖 Agent Recommendations
42
- =========================
43
-
44
- Based on detected stack:
45
- Python 3.11, FastAPI 0.104.0, pytest, Docker, Vercel
46
-
47
- Essential Agents (Must Have):
48
- ✓ fastapi-engineer
49
- Reason: FastAPI framework detected - specialized agent for FastAPI development
50
- Capabilities: FastAPI routes, Pydantic models, async endpoints, dependency injection
51
-
52
- ✓ python-engineer
53
- Reason: Python project - general Python development support
54
- Capabilities: Python code, testing, debugging, package management
55
-
56
- ✓ api-qa
57
- Reason: API testing for FastAPI backend
58
- Capabilities: API endpoint testing, validation, load testing, contract testing
59
-
60
- Recommended Agents (Strongly Suggested):
61
- ○ docker-ops
62
- Reason: Docker configuration detected
63
- Capabilities: Docker builds, container management, docker-compose orchestration
64
-
65
- ○ vercel-ops
66
- Reason: Vercel deployment configuration found
67
- Capabilities: Vercel deployments, serverless functions, domain management
68
-
69
- ○ playwright-qa
70
- Reason: Comprehensive E2E testing capability
71
- Capabilities: Browser automation, visual testing, API testing
72
-
73
- Optional Agents (Nice to Have):
74
- ○ local-ops-agent
75
- Reason: Local development and PM2 process management
76
- Capabilities: Local server management, port handling, PM2 operations
77
-
78
- ○ security-agent
79
- Reason: Security scanning and best practices
80
- Capabilities: Dependency scanning, code security, auth patterns
81
-
82
- Summary:
83
- Recommended: 3 essential + 2 recommended = 5 agents
84
- Optional: 2 additional agents for enhanced capabilities
85
-
86
- Total recommended deployment: 5 agents
87
- Maximum useful deployment: 7 agents
88
-
89
- Next Steps:
90
- 1. Review recommendations above
91
- 2. Run '/mpm-auto-configure --preview' to see deployment plan
92
- 3. Run '/mpm-auto-configure' to deploy recommended agents
93
- 4. Or deploy individually: '/mpm-agents deploy <agent-name>'
94
- ```
95
-
96
- ## Recommendation Logic
97
-
98
- ### Python Projects
99
-
100
- **If FastAPI detected:**
101
- - Essential: fastapi-engineer, python-engineer, api-qa
102
- - Recommended: docker-ops (if Docker), vercel-ops (if Vercel)
103
-
104
- **If Flask detected:**
105
- - Essential: flask-engineer, python-engineer, api-qa
106
- - Recommended: docker-ops (if Docker)
107
-
108
- **If Django detected:**
109
- - Essential: django-engineer, python-engineer, api-qa
110
- - Recommended: docker-ops (if Docker)
111
-
112
- **If pytest detected:**
113
- - Add to recommended: api-qa, playwright-qa
114
-
115
- ### JavaScript/TypeScript Projects
116
-
117
- **If Next.js detected:**
118
- - Essential: nextjs-engineer, react-engineer, web-qa
119
- - Recommended: playwright-qa, vercel-ops (if Vercel)
120
-
121
- **If React detected (without Next.js):**
122
- - Essential: react-engineer, web-qa
123
- - Recommended: playwright-qa
124
-
125
- **If Vue detected:**
126
- - Essential: vue-engineer, web-qa
127
- - Recommended: playwright-qa
128
-
129
- **If Express detected:**
130
- - Essential: node-engineer, api-qa
131
- - Recommended: docker-ops (if Docker)
132
-
133
- **If Nest.js detected:**
134
- - Essential: nestjs-engineer, node-engineer, api-qa
135
- - Recommended: docker-ops (if Docker)
136
-
137
- ### Full-Stack Projects
138
-
139
- **Python backend + React frontend:**
140
- - Essential: fastapi-engineer (or flask-engineer), python-engineer, react-engineer, api-qa, web-qa
141
- - Recommended: playwright-qa, docker-ops, local-ops-agent
142
-
143
- **Node.js backend + React frontend:**
144
- - Essential: node-engineer, react-engineer, api-qa, web-qa
145
- - Recommended: playwright-qa, docker-ops
146
-
147
- ### Testing-Focused Projects
148
-
149
- **If Playwright detected:**
150
- - Add to recommended: playwright-qa
151
-
152
- **If Jest/Vitest detected:**
153
- - Ensure web-qa or api-qa in recommended
154
-
155
- ### Deployment-Focused Projects
156
-
157
- **If Vercel detected:**
158
- - Add to recommended: vercel-ops
159
-
160
- **If Railway detected:**
161
- - Add to recommended: railway-ops
162
-
163
- **If Docker detected:**
164
- - Add to recommended: docker-ops
165
-
166
- **If PM2 detected:**
167
- - Add to recommended: local-ops-agent
168
-
169
- ## Agent Descriptions
170
-
171
- ### Backend Specialists
172
- - **fastapi-engineer**: FastAPI expert - routes, Pydantic, async, websockets
173
- - **flask-engineer**: Flask expert - blueprints, extensions, templates
174
- - **django-engineer**: Django expert - models, views, ORM, admin
175
- - **node-engineer**: Node.js expert - Express, async, streams
176
- - **nestjs-engineer**: NestJS expert - modules, decorators, DI
177
-
178
- ### Frontend Specialists
179
- - **nextjs-engineer**: Next.js expert - app router, server components, SSR
180
- - **react-engineer**: React expert - hooks, state, components
181
- - **vue-engineer**: Vue expert - composition API, components
182
-
183
- ### QA Specialists
184
- - **api-qa**: API testing expert - REST, GraphQL, validation
185
- - **web-qa**: Web testing expert - fetch, integration, E2E
186
- - **playwright-qa**: Browser automation expert - UI testing, visual regression
187
-
188
- ### Ops Specialists
189
- - **docker-ops**: Docker expert - builds, compose, containers
190
- - **vercel-ops**: Vercel deployment expert - serverless, edge
191
- - **railway-ops**: Railway deployment expert
192
- - **local-ops-agent**: Local development expert - PM2, ports, processes
193
-
194
- ## Use Cases
195
-
196
- 1. **Planning**: Understand what agents you should deploy before starting work
197
- 2. **Validation**: Verify that auto-configuration will suggest the right agents
198
- 3. **Learning**: Discover what capabilities are available for your stack
199
- 4. **Optimization**: Find additional agents that could enhance your workflow
200
-
201
- ## Tips
202
-
203
- 1. **Start here**: Run this before `/mpm-auto-configure` to preview recommendations
204
- 2. **Essential vs Optional**: Focus on essential agents first, add others as needed
205
- 3. **Stack-specific**: Recommendations are tailored to YOUR detected stack
206
- 4. **Flexible**: You can always deploy additional agents later or skip some
207
- 5. **Explanations**: Pay attention to the "Reason" for each recommendation
208
-
209
- ## Customizing Recommendations
210
-
211
- After seeing recommendations, you can:
212
- 1. **Accept all**: Run `/mpm-auto-configure` to deploy all recommended agents
213
- 2. **Pick and choose**: Deploy specific agents with `/mpm-agents deploy <name>`
214
- 3. **Skip optional**: Deploy only essential and recommended agents
215
- 4. **Add more**: Deploy additional agents not in recommendations
216
-
217
- ## Related Commands
218
-
219
- - `/mpm-agents-detect` - See what was detected in your project
220
- - `/mpm-auto-configure` - Automatically deploy recommended agents
221
- - `/mpm-agents deploy <name>` - Deploy specific agents manually
222
- - `/mpm-agents` - View all available and deployed agents
223
- - `/mpm-help agents` - Learn more about agent management
@@ -1,150 +0,0 @@
1
- ---
2
- namespace: mpm/config
3
- command: view
4
- aliases: [mpm-config-view]
5
- migration_target: /mpm/config:view
6
- category: config
7
- deprecated_aliases: [mpm-config]
8
- description: View and validate Claude MPM configuration settings
9
- ---
10
- # View and validate claude-mpm configuration
11
-
12
- Manage Claude MPM configuration settings through validation, viewing, and status checks.
13
-
14
- ## Usage
15
-
16
- ```
17
- /mpm-config [subcommand] [options]
18
- ```
19
-
20
- ## Description
21
-
22
- This slash command provides access to Claude MPM's configuration management capabilities through the actual CLI commands.
23
-
24
- ## Available Subcommands
25
-
26
- ### Validate Configuration
27
- Validate configuration files for correctness and completeness.
28
-
29
- ```
30
- /mpm-config validate [--config-file PATH] [--strict] [--fix]
31
- ```
32
-
33
- **Options:**
34
- - `--config-file PATH`: Validate specific config file (default: all)
35
- - `--strict`: Use strict validation rules
36
- - `--fix`: Attempt to fix validation errors automatically
37
-
38
- **Example:**
39
- ```
40
- /mpm-config validate --strict
41
- /mpm-config validate --config-file .claude/config.yaml --fix
42
- ```
43
-
44
- ### View Configuration
45
- Display current configuration settings.
46
-
47
- ```
48
- /mpm-config view [--section SECTION] [--format FORMAT] [--show-defaults]
49
- ```
50
-
51
- **Options:**
52
- - `--section SECTION`: Specific configuration section to view
53
- - `--format FORMAT`: Output format (yaml, json, table)
54
- - `--show-defaults`: Include default values in output
55
-
56
- **Examples:**
57
- ```
58
- /mpm-config view
59
- /mpm-config view --section agents --format json
60
- /mpm-config view --show-defaults
61
- ```
62
-
63
- ### Configuration Status
64
- Show configuration health and status.
65
-
66
- ```
67
- /mpm-config status [--verbose]
68
- ```
69
-
70
- **Options:**
71
- - `--verbose`: Show detailed status information
72
-
73
- **Example:**
74
- ```
75
- /mpm-config status --verbose
76
- ```
77
-
78
- ## Implementation
79
-
80
- This command executes:
81
- ```bash
82
- claude-mpm config [subcommand] [options]
83
- ```
84
-
85
- The slash command passes through to the actual CLI configuration management system.
86
-
87
- ## Configuration Categories
88
-
89
- Configuration is organized into sections:
90
-
91
- - **agents**: Agent deployment and management settings
92
- - **memory**: Memory system configuration
93
- - **websocket**: WebSocket server settings (port, host)
94
- - **hooks**: Hook service configuration
95
- - **logging**: Logging levels and output
96
- - **tickets**: Ticket tracking settings
97
- - **monitor**: Dashboard and monitoring settings
98
-
99
- ## Expected Output
100
-
101
- ### Validation Output
102
- ```
103
- Validating configuration files...
104
-
105
- ✓ .claude/config.yaml: Valid
106
- ✓ .claude/agents/config.yaml: Valid
107
- ✓ Configuration schema: Valid
108
-
109
- Configuration is valid and ready to use.
110
- ```
111
-
112
- ### View Output
113
- ```yaml
114
- agents:
115
- deploy_mode: project
116
- auto_reload: true
117
-
118
- websocket:
119
- host: localhost
120
- port: 8765
121
-
122
- logging:
123
- level: INFO
124
- format: detailed
125
- ```
126
-
127
- ### Status Output
128
- ```
129
- Configuration Status
130
- ====================
131
-
132
- Files Found: 2
133
- ✓ .claude/config.yaml
134
- ✓ .claude/agents/config.yaml
135
-
136
- Validation: Passed
137
- Schema Version: 4.5
138
- Last Modified: 2025-01-15 14:30:22
139
-
140
- Active Settings:
141
- - WebSocket Port: 8765
142
- - Agent Deploy Mode: project
143
- - Logging Level: INFO
144
- ```
145
-
146
- ## Related Commands
147
-
148
- - `/mpm-status`: Show overall system status
149
- - `/mpm-doctor`: Diagnose configuration issues
150
- - `/mpm-init`: Initialize project configuration
@@ -1,304 +0,0 @@
1
- ---
2
- namespace: mpm/ticket
3
- command: organize
4
- aliases: [mpm-ticket-organize]
5
- migration_target: /mpm/ticket:organize
6
- category: tickets
7
- deprecated_aliases: [mpm-organize]
8
- description: Organize project files into proper directories with intelligent pattern detection
9
- ---
10
- # /mpm-organize
11
-
12
- Organize your project files into proper directories using intelligent pattern detection and framework-aware structure management.
13
-
14
- ## Usage
15
-
16
- ```
17
- /mpm-organize # Interactive mode with preview
18
- /mpm-organize --dry-run # Preview changes without applying
19
- /mpm-organize --force # Proceed even with uncommitted changes
20
- /mpm-organize --no-backup # Skip backup creation (not recommended)
21
- ```
22
-
23
- ## Description
24
-
25
- This slash command delegates to the **Project Organizer agent** to perform thorough project housekeeping. The agent analyzes your project structure, detects existing patterns and framework conventions, then organizes files into proper directories following best practices.
26
-
27
- **Smart Organization**: The agent follows the official [Project Organization Standard](../../../docs/reference/PROJECT_ORGANIZATION.md), which defines comprehensive organization rules for Claude MPM projects. It also checks CLAUDE.md for project-specific guidelines and respects framework-specific conventions.
28
-
29
- **Standard Documentation**: After organizing, this command ensures the organization standard is documented and accessible at `docs/reference/PROJECT_ORGANIZATION.md` with proper linking from CLAUDE.md.
30
-
31
- ## Features
32
-
33
- - **📁 Intelligent Pattern Detection**: Analyzes existing directory structure and naming conventions
34
- - **🎯 Framework-Aware**: Respects Next.js, React, Django, Rails, and other framework patterns
35
- - **🔍 CLAUDE.md Integration**: Follows project-specific guidelines when available
36
- - **✅ Safe Operations**: Uses `git mv` for tracked files to preserve history
37
- - **💾 Automatic Backups**: Creates backups before major reorganizations
38
- - **🔄 Import Path Updates**: Updates import statements after file moves
39
- - **📊 Organization Report**: Detailed summary of changes and recommendations
40
-
41
- ## Options
42
-
43
- ### Safety Options
44
- - `--dry-run`: Preview all changes without making them (recommended first run)
45
- - `--no-backup`: Skip backup creation before reorganization (not recommended)
46
- - `--force`: Proceed even with uncommitted changes (use with caution)
47
-
48
- ### Organization Options
49
- - `--docs-only`: Only organize documentation files
50
- - `--tests-only`: Only organize test files
51
- - `--scripts-only`: Only organize script files
52
- - `--skip-imports`: Don't update import paths after moves
53
-
54
- ### Output Options
55
- - `--verbose`: Show detailed analysis and reasoning
56
- - `--quiet`: Minimal output, errors only
57
- - `--report [path]`: Save organization report to file
58
-
59
- ## What This Command Does
60
-
61
- ### 1. Organization Standard Verification
62
- - Ensures `docs/reference/PROJECT_ORGANIZATION.md` exists and is current
63
- - Creates or updates the standard if needed
64
- - Links the standard from CLAUDE.md for easy reference
65
-
66
- ### 2. CLAUDE.md Analysis
67
- - Checks for existing organization guidelines
68
- - Extracts project-specific rules and conventions
69
- - Identifies priority areas for organization
70
-
71
- ### 3. Project Structure Detection
72
- - Scans directory hierarchy and patterns
73
- - Identifies naming conventions (camelCase, kebab-case, snake_case)
74
- - Maps current file type locations
75
- - Detects framework-specific conventions (Next.js, Django, Rails, etc.)
76
- - Determines organization type (feature/type/domain-based)
77
-
78
- ### 4. File Organization Strategy
79
-
80
- The agent organizes files into standard directories per [PROJECT_ORGANIZATION.md](../../../docs/reference/PROJECT_ORGANIZATION.md):
81
-
82
- ```
83
- docs/ # All documentation files (*.md, guides, architecture)
84
- tests/ # All test files and test utilities
85
- tmp/ # Temporary and ephemeral files
86
- scripts/ # Ad-hoc scripts and utilities
87
- src/ # Source code following framework conventions
88
- .claude/ # Claude MPM configuration and agents
89
- ```
90
-
91
- ### 5. Framework-Specific Handling
92
-
93
- **Next.js Projects**:
94
- - Respects `pages/`, `app/`, `public/`, API routes
95
- - Organizes components by feature or domain
96
- - Maintains Next.js conventions
97
-
98
- **Django Projects**:
99
- - Maintains app structure
100
- - Organizes migrations, templates, static files
101
- - Preserves Django conventions
102
-
103
- **React Projects**:
104
- - Organizes components, hooks, utils
105
- - Maintains component hierarchy
106
- - Groups related files
107
-
108
- **Other Frameworks**:
109
- - Detects and respects framework conventions
110
- - Applies appropriate organizational patterns
111
-
112
- ### 6. Safe File Movement
113
-
114
- For each file to be moved:
115
- 1. Analyzes file purpose and dependencies
116
- 2. Determines optimal location based on patterns
117
- 3. Uses `git mv` for version-controlled files
118
- 4. Updates import paths in affected files
119
- 5. Validates build still works
120
-
121
- ### 7. Backup Creation
122
-
123
- Before major reorganization:
124
- ```bash
125
- backup_YYYYMMDD_HHMMSS.tar.gz # Complete project backup
126
- ```
127
-
128
- ### 8. Import Path Updates
129
-
130
- Automatically updates:
131
- - Python imports (`from old.path import X` → `from new.path import X`)
132
- - JavaScript/TypeScript imports (`import X from './old/path'` → `import X from './new/path'`)
133
- - Relative path references
134
- - Configuration file paths
135
-
136
- ### 9. Organization Report
137
-
138
- Generates detailed report including:
139
- - Files moved and their new locations
140
- - Pattern analysis and detected conventions
141
- - Import paths updated
142
- - Recommendations for further improvements
143
- - Violations of best practices (if any)
144
-
145
- ## Examples
146
-
147
- ### Preview Organization (Recommended First Run)
148
- ```bash
149
- /mpm-organize --dry-run
150
- ```
151
- Shows what would be changed without making any modifications.
152
-
153
- ### Full Organization with Backup
154
- ```bash
155
- /mpm-organize
156
- ```
157
- Interactive mode with automatic backup before changes.
158
-
159
- ### Force Organization (With Uncommitted Changes)
160
- ```bash
161
- /mpm-organize --force --verbose
162
- ```
163
- Organizes project even with uncommitted changes, shows detailed output.
164
-
165
- ### Organize Documentation Only
166
- ```bash
167
- /mpm-organize --docs-only --dry-run
168
- ```
169
- Preview how documentation files would be organized.
170
-
171
- ### Quick Organization Without Backup
172
- ```bash
173
- /mpm-organize --no-backup
174
- ```
175
- Skip backup creation for small changes (use with caution).
176
-
177
- ### Save Organization Report
178
- ```bash
179
- /mpm-organize --report /tmp/organize-report.md
180
- ```
181
- Save detailed report to file for review.
182
-
183
- ## Implementation
184
-
185
- This slash command delegates to the **Project Organizer agent** (`project-organizer`), which performs intelligent file organization based on detected patterns and framework conventions.
186
-
187
- The agent receives the command options as context and then:
188
- 1. Analyzes CLAUDE.md for organization guidelines
189
- 2. Detects project framework and patterns
190
- 3. Identifies misplaced files
191
- 4. Creates safe reorganization plan
192
- 5. Executes file moves with git integration
193
- 6. Updates import paths across codebase
194
- 7. Validates build integrity
195
- 8. Generates organization report
196
-
197
- When you invoke `/mpm-organize [options]`, Claude MPM:
198
- - Passes the options to the Project Organizer agent as task context
199
- - The agent executes the organization workflow
200
- - Results are returned to you through the agent's structured output
201
-
202
- ## Expected Output
203
-
204
- ### Dry Run Mode
205
- ```
206
- 🔍 Analyzing project structure...
207
- ✓ Detected framework: Next.js
208
- ✓ Organization pattern: Feature-based
209
- ✓ Found CLAUDE.md guidelines
210
-
211
- 📁 Proposed Changes:
212
-
213
- docs/
214
- ← README_OLD.md (from root)
215
- ← architecture-notes.txt (from root)
216
-
217
- tests/
218
- ← test_helper.py (from src/)
219
- ← api.test.js (from src/api/)
220
-
221
- tmp/
222
- ← debug_output.log (from root)
223
- ← scratch.py (from root)
224
-
225
- scripts/
226
- ← migrate.sh (from root)
227
- ← deploy_helper.py (from root)
228
-
229
- 📊 Summary:
230
- - 8 files to move
231
- - 12 import paths to update
232
- - 0 conflicts detected
233
-
234
- Run without --dry-run to apply changes.
235
- ```
236
-
237
- ### Actual Organization
238
- ```
239
- 🔍 Analyzing project structure...
240
- ✓ Detected framework: Next.js
241
- ✓ Organization pattern: Feature-based
242
- ✓ Created backup: backup_20250102_143022.tar.gz
243
-
244
- 📁 Organizing files...
245
- ✓ Moved README_OLD.md → docs/
246
- ✓ Moved architecture-notes.txt → docs/
247
- ✓ Updated 5 import statements
248
-
249
- ✅ Organization complete!
250
-
251
- 📊 Report saved to: /tmp/organization-report.md
252
- ```
253
-
254
- ## Safety Guarantees
255
-
256
- - **Backup Created**: Full project backup before changes (unless --no-backup)
257
- - **Git Integration**: Uses `git mv` to preserve file history
258
- - **Dry Run Available**: Preview all changes before applying
259
- - **Import Updates**: Automatically fixes broken imports
260
- - **Build Validation**: Verifies build still works after changes
261
- - **Rollback Support**: Backup enables full rollback if needed
262
-
263
- ## When to Use This Command
264
-
265
- Use `/mpm-organize` when:
266
- - Starting a new project and establishing structure
267
- - Project has accumulated misplaced files
268
- - After major feature additions
269
- - Before major refactoring
270
- - When onboarding new team members
271
- - To enforce organization standards
272
-
273
- ## Best Practices
274
-
275
- 1. **Always Start with Dry Run**: Use `--dry-run` first to preview changes
276
- 2. **Commit First**: Commit your work before organizing (or use --force)
277
- 3. **Review CLAUDE.md**: Ensure guidelines are current before organizing
278
- 4. **Test After**: Run tests after organization to verify nothing broke
279
- 5. **Update Documentation**: Document any new organizational patterns
280
-
281
- ## Notes
282
-
283
- - This slash command delegates to the **Project Organizer agent** (`project-organizer`)
284
- - The agent performs intelligent file placement based on learned patterns
285
- - Respects framework-specific conventions automatically
286
- - Integrates with git to preserve file history
287
- - Updates import paths to prevent build breakage
288
- - Creates comprehensive reports for audit trails
289
- - Can be run repeatedly safely (idempotent)
290
- - Follows guidelines in CLAUDE.md when available
291
- - Falls back to framework conventions and best practices
292
-
293
- ## Related Documentation
294
-
295
- - **[Project Organization Standard](../../../docs/reference/PROJECT_ORGANIZATION.md)**: Comprehensive organization rules and guidelines
296
- - **[Project Structure](../../../docs/developer/STRUCTURE.md)**: Authoritative file organization reference
297
- - **[CLAUDE.md](../../../CLAUDE.md)**: Development guidelines with organization quick reference
298
-
299
- ## Related Commands
300
-
301
- - `/mpm-init`: Initialize or update project documentation and structure
302
- - `/mpm-doctor`: Diagnose project health and issues
303
- - `/mpm-status`: Check current project state
304
- - `/mpm-config`: Configure organization rules and preferences