claude-mpm 5.1.9__py3-none-any.whl → 5.4.48__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.
- claude_mpm/VERSION +1 -1
- claude_mpm/__init__.py +4 -0
- claude_mpm/agents/BASE_AGENT.md +164 -0
- claude_mpm/agents/CLAUDE_MPM_TEACHER_OUTPUT_STYLE.md +1 -1
- claude_mpm/agents/MEMORY.md +1 -1
- claude_mpm/agents/PM_INSTRUCTIONS.md +843 -900
- claude_mpm/agents/WORKFLOW.md +5 -254
- claude_mpm/agents/agent_loader.py +13 -44
- claude_mpm/agents/base_agent.json +1 -1
- claude_mpm/agents/frontmatter_validator.py +2 -2
- claude_mpm/agents/templates/circuit-breakers.md +138 -1
- claude_mpm/cli/__main__.py +4 -0
- claude_mpm/cli/chrome_devtools_installer.py +175 -0
- claude_mpm/cli/commands/agent_state_manager.py +18 -27
- claude_mpm/cli/commands/agents.py +9 -40
- claude_mpm/cli/commands/auto_configure.py +210 -25
- claude_mpm/cli/commands/config.py +88 -2
- claude_mpm/cli/commands/configure.py +1098 -159
- claude_mpm/cli/commands/configure_agent_display.py +25 -6
- claude_mpm/cli/commands/mpm_init/core.py +225 -46
- claude_mpm/cli/commands/mpm_init/knowledge_extractor.py +481 -0
- claude_mpm/cli/commands/mpm_init/prompts.py +280 -0
- claude_mpm/cli/commands/postmortem.py +1 -1
- claude_mpm/cli/commands/profile.py +277 -0
- claude_mpm/cli/commands/skills.py +218 -197
- claude_mpm/cli/commands/summarize.py +413 -0
- claude_mpm/cli/executor.py +21 -3
- claude_mpm/cli/interactive/agent_wizard.py +2 -2
- claude_mpm/cli/parsers/agents_parser.py +0 -9
- claude_mpm/cli/parsers/auto_configure_parser.py +0 -138
- claude_mpm/cli/parsers/base_parser.py +12 -0
- claude_mpm/cli/parsers/config_parser.py +153 -83
- claude_mpm/cli/parsers/profile_parser.py +148 -0
- claude_mpm/cli/parsers/skills_parser.py +0 -5
- claude_mpm/cli/startup.py +876 -149
- claude_mpm/commands/mpm-config.md +28 -0
- claude_mpm/commands/mpm-doctor.md +9 -22
- claude_mpm/commands/mpm-help.md +5 -287
- claude_mpm/commands/mpm-init.md +81 -507
- claude_mpm/commands/mpm-monitor.md +15 -402
- claude_mpm/commands/mpm-organize.md +120 -0
- claude_mpm/commands/mpm-postmortem.md +6 -108
- claude_mpm/commands/mpm-session-resume.md +12 -363
- claude_mpm/commands/mpm-status.md +5 -69
- claude_mpm/commands/mpm-ticket-view.md +52 -495
- claude_mpm/commands/mpm-version.md +5 -107
- claude_mpm/config/agent_sources.py +27 -0
- claude_mpm/core/config.py +2 -4
- claude_mpm/core/framework/formatters/content_formatter.py +3 -13
- claude_mpm/core/framework/loaders/agent_loader.py +8 -5
- claude_mpm/core/framework/loaders/instruction_loader.py +52 -11
- claude_mpm/core/framework_loader.py +4 -2
- claude_mpm/core/logger.py +13 -0
- claude_mpm/core/optimized_startup.py +59 -0
- claude_mpm/core/shared/config_loader.py +1 -1
- claude_mpm/core/socketio_pool.py +3 -3
- claude_mpm/core/unified_agent_registry.py +5 -15
- claude_mpm/dashboard/static/svelte-build/_app/env.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/assets/0.B_FtCwCQ.css +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/assets/2.Cl_eSA4x.css +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/BgChzWQ1.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/CIXEwuWe.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/CWc5urbQ.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/DMkZpdF2.js +2 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/DjhvlsAc.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/N4qtv3Hx.js +2 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/uj46x2Wr.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/entry/app.DTL5mJO-.js +2 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/entry/start.DzuEhzqh.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/nodes/0.CAGBuiOw.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/nodes/1.DFLC8jdE.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/nodes/2.DPvEihJJ.js +10 -0
- claude_mpm/dashboard/static/svelte-build/_app/version.json +1 -0
- claude_mpm/dashboard/static/svelte-build/favicon.svg +7 -0
- claude_mpm/dashboard/static/svelte-build/index.html +36 -0
- claude_mpm/hooks/claude_hooks/__pycache__/__init__.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/correlation_manager.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/event_handlers.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/hook_handler.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/installer.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/memory_integration.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/response_tracking.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/tool_analysis.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/correlation_manager.py +60 -0
- claude_mpm/hooks/claude_hooks/event_handlers.py +211 -78
- claude_mpm/hooks/claude_hooks/hook_handler.py +155 -1
- claude_mpm/hooks/claude_hooks/installer.py +33 -10
- claude_mpm/hooks/claude_hooks/memory_integration.py +26 -9
- claude_mpm/hooks/claude_hooks/response_tracking.py +2 -3
- claude_mpm/hooks/claude_hooks/services/__pycache__/__init__.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/__pycache__/connection_manager.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/__pycache__/connection_manager_http.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/__pycache__/duplicate_detector.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/__pycache__/state_manager.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/__pycache__/subagent_processor.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/connection_manager.py +30 -6
- claude_mpm/hooks/kuzu_memory_hook.py +5 -5
- claude_mpm/hooks/memory_integration_hook.py +46 -1
- claude_mpm/init.py +63 -19
- claude_mpm/models/git_repository.py +3 -3
- claude_mpm/scripts/claude-hook-handler.sh +58 -18
- claude_mpm/scripts/launch_monitor.py +93 -13
- claude_mpm/services/agents/agent_builder.py +3 -3
- claude_mpm/services/agents/agent_recommendation_service.py +278 -0
- claude_mpm/services/agents/agent_review_service.py +280 -0
- claude_mpm/services/agents/cache_git_manager.py +6 -6
- claude_mpm/services/agents/deployment/agent_deployment.py +29 -7
- claude_mpm/services/agents/deployment/agent_discovery_service.py +4 -5
- claude_mpm/services/agents/deployment/agent_format_converter.py +23 -13
- claude_mpm/services/agents/deployment/agent_template_builder.py +32 -20
- claude_mpm/services/agents/deployment/agents_directory_resolver.py +2 -2
- claude_mpm/services/agents/deployment/async_agent_deployment.py +31 -27
- claude_mpm/services/agents/deployment/local_template_deployment.py +3 -1
- claude_mpm/services/agents/deployment/multi_source_deployment_service.py +247 -35
- claude_mpm/services/agents/deployment/remote_agent_discovery_service.py +392 -87
- claude_mpm/services/agents/git_source_manager.py +53 -4
- claude_mpm/services/agents/loading/base_agent_manager.py +1 -13
- claude_mpm/services/agents/recommender.py +5 -3
- claude_mpm/services/agents/single_tier_deployment_service.py +2 -2
- claude_mpm/services/agents/sources/git_source_sync_service.py +120 -7
- claude_mpm/services/agents/startup_sync.py +22 -2
- claude_mpm/services/agents/toolchain_detector.py +10 -6
- claude_mpm/services/analysis/__init__.py +11 -1
- claude_mpm/services/analysis/clone_detector.py +1030 -0
- claude_mpm/services/command_deployment_service.py +81 -10
- claude_mpm/services/diagnostics/checks/agent_check.py +2 -2
- claude_mpm/services/diagnostics/checks/agent_sources_check.py +1 -1
- claude_mpm/services/event_bus/config.py +3 -1
- claude_mpm/services/git/git_operations_service.py +101 -16
- claude_mpm/services/monitor/daemon.py +9 -2
- claude_mpm/services/monitor/daemon_manager.py +39 -3
- claude_mpm/services/monitor/management/lifecycle.py +8 -1
- claude_mpm/services/monitor/server.py +698 -22
- claude_mpm/services/pm_skills_deployer.py +711 -0
- claude_mpm/services/profile_manager.py +331 -0
- claude_mpm/services/self_upgrade_service.py +120 -12
- claude_mpm/services/skills/__init__.py +3 -0
- claude_mpm/services/skills/git_skill_source_manager.py +130 -2
- claude_mpm/services/skills/selective_skill_deployer.py +704 -0
- claude_mpm/services/skills/skill_to_agent_mapper.py +406 -0
- claude_mpm/services/skills_deployer.py +127 -9
- claude_mpm/services/socketio/dashboard_server.py +1 -0
- claude_mpm/services/socketio/event_normalizer.py +51 -6
- claude_mpm/services/socketio/server/core.py +386 -108
- claude_mpm/services/version_control/git_operations.py +103 -0
- claude_mpm/skills/skill_manager.py +92 -3
- claude_mpm/utils/agent_dependency_loader.py +14 -2
- claude_mpm/utils/agent_filters.py +17 -44
- claude_mpm/utils/migration.py +4 -4
- claude_mpm/utils/robust_installer.py +47 -3
- {claude_mpm-5.1.9.dist-info → claude_mpm-5.4.48.dist-info}/METADATA +53 -87
- {claude_mpm-5.1.9.dist-info → claude_mpm-5.4.48.dist-info}/RECORD +157 -197
- claude_mpm-5.4.48.dist-info/entry_points.txt +5 -0
- claude_mpm-5.4.48.dist-info/licenses/LICENSE +94 -0
- claude_mpm-5.4.48.dist-info/licenses/LICENSE-FAQ.md +153 -0
- claude_mpm/agents/BASE_AGENT_TEMPLATE.md +0 -292
- claude_mpm/agents/BASE_DOCUMENTATION.md +0 -53
- claude_mpm/agents/BASE_OPS.md +0 -219
- claude_mpm/agents/BASE_PM.md +0 -480
- claude_mpm/agents/BASE_PROMPT_ENGINEER.md +0 -787
- claude_mpm/agents/BASE_QA.md +0 -167
- claude_mpm/agents/BASE_RESEARCH.md +0 -53
- claude_mpm/agents/base_agent_loader.py +0 -601
- claude_mpm/cli/commands/agents_detect.py +0 -380
- claude_mpm/cli/commands/agents_recommend.py +0 -309
- claude_mpm/cli/ticket_cli.py +0 -35
- claude_mpm/commands/mpm-agents-auto-configure.md +0 -278
- claude_mpm/commands/mpm-agents-detect.md +0 -177
- claude_mpm/commands/mpm-agents-list.md +0 -131
- claude_mpm/commands/mpm-agents-recommend.md +0 -223
- claude_mpm/commands/mpm-config-view.md +0 -150
- claude_mpm/commands/mpm-ticket-organize.md +0 -304
- claude_mpm/dashboard/analysis_runner.py +0 -455
- claude_mpm/dashboard/index.html +0 -13
- claude_mpm/dashboard/open_dashboard.py +0 -66
- claude_mpm/dashboard/static/css/activity.css +0 -1958
- claude_mpm/dashboard/static/css/connection-status.css +0 -370
- claude_mpm/dashboard/static/css/dashboard.css +0 -4701
- claude_mpm/dashboard/static/js/components/activity-tree.js +0 -1871
- claude_mpm/dashboard/static/js/components/agent-hierarchy.js +0 -777
- claude_mpm/dashboard/static/js/components/agent-inference.js +0 -956
- claude_mpm/dashboard/static/js/components/build-tracker.js +0 -333
- claude_mpm/dashboard/static/js/components/code-simple.js +0 -857
- claude_mpm/dashboard/static/js/components/connection-debug.js +0 -654
- claude_mpm/dashboard/static/js/components/diff-viewer.js +0 -891
- claude_mpm/dashboard/static/js/components/event-processor.js +0 -542
- claude_mpm/dashboard/static/js/components/event-viewer.js +0 -1155
- claude_mpm/dashboard/static/js/components/export-manager.js +0 -368
- claude_mpm/dashboard/static/js/components/file-change-tracker.js +0 -443
- claude_mpm/dashboard/static/js/components/file-change-viewer.js +0 -690
- claude_mpm/dashboard/static/js/components/file-tool-tracker.js +0 -724
- claude_mpm/dashboard/static/js/components/file-viewer.js +0 -580
- claude_mpm/dashboard/static/js/components/hud-library-loader.js +0 -211
- claude_mpm/dashboard/static/js/components/hud-manager.js +0 -671
- claude_mpm/dashboard/static/js/components/hud-visualizer.js +0 -1718
- claude_mpm/dashboard/static/js/components/module-viewer.js +0 -2764
- claude_mpm/dashboard/static/js/components/session-manager.js +0 -579
- claude_mpm/dashboard/static/js/components/socket-manager.js +0 -368
- claude_mpm/dashboard/static/js/components/ui-state-manager.js +0 -749
- claude_mpm/dashboard/static/js/components/unified-data-viewer.js +0 -1824
- claude_mpm/dashboard/static/js/components/working-directory.js +0 -920
- claude_mpm/dashboard/static/js/connection-manager.js +0 -536
- claude_mpm/dashboard/static/js/dashboard.js +0 -1914
- claude_mpm/dashboard/static/js/extension-error-handler.js +0 -164
- claude_mpm/dashboard/static/js/socket-client.js +0 -1474
- claude_mpm/dashboard/static/js/tab-isolation-fix.js +0 -185
- claude_mpm/dashboard/static/socket.io.min.js +0 -7
- claude_mpm/dashboard/static/socket.io.v4.8.1.backup.js +0 -7
- claude_mpm/dashboard/templates/code_simple.html +0 -153
- claude_mpm/dashboard/templates/index.html +0 -606
- claude_mpm/dashboard/test_dashboard.html +0 -372
- claude_mpm/scripts/mcp_server.py +0 -75
- claude_mpm/scripts/mcp_wrapper.py +0 -39
- claude_mpm/services/mcp_gateway/__init__.py +0 -159
- claude_mpm/services/mcp_gateway/auto_configure.py +0 -369
- claude_mpm/services/mcp_gateway/config/__init__.py +0 -17
- claude_mpm/services/mcp_gateway/config/config_loader.py +0 -296
- claude_mpm/services/mcp_gateway/config/config_schema.py +0 -243
- claude_mpm/services/mcp_gateway/config/configuration.py +0 -429
- claude_mpm/services/mcp_gateway/core/__init__.py +0 -43
- claude_mpm/services/mcp_gateway/core/base.py +0 -312
- claude_mpm/services/mcp_gateway/core/exceptions.py +0 -253
- claude_mpm/services/mcp_gateway/core/interfaces.py +0 -443
- claude_mpm/services/mcp_gateway/core/process_pool.py +0 -977
- claude_mpm/services/mcp_gateway/core/singleton_manager.py +0 -315
- claude_mpm/services/mcp_gateway/core/startup_verification.py +0 -316
- claude_mpm/services/mcp_gateway/main.py +0 -589
- claude_mpm/services/mcp_gateway/registry/__init__.py +0 -12
- claude_mpm/services/mcp_gateway/registry/service_registry.py +0 -412
- claude_mpm/services/mcp_gateway/registry/tool_registry.py +0 -489
- claude_mpm/services/mcp_gateway/server/__init__.py +0 -15
- claude_mpm/services/mcp_gateway/server/mcp_gateway.py +0 -414
- claude_mpm/services/mcp_gateway/server/stdio_handler.py +0 -372
- claude_mpm/services/mcp_gateway/server/stdio_server.py +0 -712
- claude_mpm/services/mcp_gateway/tools/__init__.py +0 -36
- claude_mpm/services/mcp_gateway/tools/base_adapter.py +0 -485
- claude_mpm/services/mcp_gateway/tools/document_summarizer.py +0 -789
- claude_mpm/services/mcp_gateway/tools/external_mcp_services.py +0 -654
- claude_mpm/services/mcp_gateway/tools/health_check_tool.py +0 -456
- claude_mpm/services/mcp_gateway/tools/hello_world.py +0 -551
- claude_mpm/services/mcp_gateway/tools/kuzu_memory_service.py +0 -555
- claude_mpm/services/mcp_gateway/utils/__init__.py +0 -14
- claude_mpm/services/mcp_gateway/utils/package_version_checker.py +0 -160
- claude_mpm/services/mcp_gateway/utils/update_preferences.py +0 -170
- claude_mpm-5.1.9.dist-info/entry_points.txt +0 -10
- claude_mpm-5.1.9.dist-info/licenses/LICENSE +0 -21
- {claude_mpm-5.1.9.dist-info → claude_mpm-5.4.48.dist-info}/WHEEL +0 -0
- {claude_mpm-5.1.9.dist-info → claude_mpm-5.4.48.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
|