claude-mpm 5.4.14__py3-none-any.whl → 5.4.21__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.
Files changed (30) hide show
  1. claude_mpm/VERSION +1 -1
  2. claude_mpm/agents/CLAUDE_MPM_TEACHER_OUTPUT_STYLE.md +1 -1
  3. claude_mpm/agents/PM_INSTRUCTIONS.md +127 -21
  4. claude_mpm/cli/chrome_devtools_installer.py +175 -0
  5. claude_mpm/cli/commands/agents.py +0 -31
  6. claude_mpm/cli/commands/skills.py +193 -187
  7. claude_mpm/cli/parsers/agents_parser.py +0 -9
  8. claude_mpm/cli/parsers/auto_configure_parser.py +0 -138
  9. claude_mpm/cli/startup.py +237 -25
  10. claude_mpm/commands/mpm-config.md +1 -2
  11. claude_mpm/commands/mpm-help.md +14 -95
  12. claude_mpm/commands/mpm-organize.md +350 -153
  13. claude_mpm/hooks/claude_hooks/event_handlers.py +5 -0
  14. claude_mpm/scripts/start_activity_logging.py +0 -0
  15. claude_mpm/services/command_deployment_service.py +10 -0
  16. claude_mpm/services/skills/selective_skill_deployer.py +475 -1
  17. claude_mpm/services/skills_deployer.py +62 -6
  18. {claude_mpm-5.4.14.dist-info → claude_mpm-5.4.21.dist-info}/METADATA +1 -1
  19. {claude_mpm-5.4.14.dist-info → claude_mpm-5.4.21.dist-info}/RECORD +23 -28
  20. claude_mpm/cli/commands/agents_detect.py +0 -380
  21. claude_mpm/cli/commands/agents_recommend.py +0 -309
  22. claude_mpm/commands/mpm-agents-auto-configure.md +0 -278
  23. claude_mpm/commands/mpm-agents-detect.md +0 -177
  24. claude_mpm/commands/mpm-agents-list.md +0 -131
  25. claude_mpm/commands/mpm-agents-recommend.md +0 -223
  26. {claude_mpm-5.4.14.dist-info → claude_mpm-5.4.21.dist-info}/WHEEL +0 -0
  27. {claude_mpm-5.4.14.dist-info → claude_mpm-5.4.21.dist-info}/entry_points.txt +0 -0
  28. {claude_mpm-5.4.14.dist-info → claude_mpm-5.4.21.dist-info}/licenses/LICENSE +0 -0
  29. {claude_mpm-5.4.14.dist-info → claude_mpm-5.4.21.dist-info}/licenses/LICENSE-FAQ.md +0 -0
  30. {claude_mpm-5.4.14.dist-info → claude_mpm-5.4.21.dist-info}/top_level.txt +0 -0
@@ -1,177 +0,0 @@
1
- ---
2
- namespace: mpm/agents
3
- command: detect
4
- aliases: [mpm-agents-detect]
5
- migration_target: /mpm/agents:detect
6
- category: agents
7
- deprecated_aliases: []
8
- description: Scan project to detect programming languages, frameworks, tools, and configurations
9
- ---
10
- # Detect project toolchain and frameworks
11
-
12
- Scan your project to detect programming languages, frameworks, tools, and configurations.
13
-
14
- ## Usage
15
-
16
- ```
17
- /mpm-agents-detect
18
- ```
19
-
20
- ## Description
21
-
22
- This command scans your project directory to automatically detect:
23
- - Programming languages and their versions
24
- - Web frameworks and libraries
25
- - Testing tools and frameworks
26
- - Build tools and bundlers
27
- - Package managers
28
- - Deployment configurations
29
-
30
- This is useful for understanding what Claude MPM can detect in your project before running auto-configuration.
31
-
32
- ## Implementation
33
-
34
- When you run `/mpm-agents-detect`, the PM will execute:
35
- ```bash
36
- claude-mpm agents detect
37
- ```
38
-
39
- This performs a comprehensive scan of your project looking for:
40
- - Package manifests (package.json, requirements.txt, Cargo.toml, go.mod, pom.xml)
41
- - Framework-specific files (next.config.js, fastapi imports, etc.)
42
- - Test configurations (pytest.ini, jest.config.js, playwright.config.ts)
43
- - Build configurations (vite.config.js, webpack.config.js, tsconfig.json)
44
- - Deployment files (Dockerfile, vercel.json, railway.json)
45
-
46
- ## Expected Output
47
-
48
- ```
49
- 🔍 Project Toolchain Detection
50
- ================================
51
-
52
- Languages:
53
- ✓ Python 3.11.5
54
- ✓ Node.js 20.10.0
55
- ✓ TypeScript 5.3.2
56
-
57
- Frameworks:
58
- ✓ FastAPI 0.104.0
59
- ✓ React 18.2.0
60
- ✓ Next.js 14.0.4
61
-
62
- Testing:
63
- ✓ pytest 7.4.3
64
- ✓ Jest 29.7.0
65
- ✓ Playwright 1.40.0
66
-
67
- Build Tools:
68
- ✓ Vite 5.0.0
69
- ✓ TypeScript Compiler
70
-
71
- Package Managers:
72
- ✓ poetry (Python)
73
- ✓ npm (Node.js)
74
-
75
- Deployment:
76
- ✓ Docker (Dockerfile found)
77
- ✓ Vercel (vercel.json found)
78
- ✓ PM2 (ecosystem.config.js found)
79
-
80
- Configuration Files Detected:
81
- - pyproject.toml
82
- - package.json
83
- - tsconfig.json
84
- - next.config.js
85
- - pytest.ini
86
- - jest.config.js
87
- - playwright.config.ts
88
- - Dockerfile
89
- - vercel.json
90
-
91
- Summary:
92
- Full-stack project with Python backend (FastAPI) and
93
- React/Next.js frontend, comprehensive testing setup,
94
- and multiple deployment targets.
95
- ```
96
-
97
- ## What Gets Detected
98
-
99
- ### Language Detection
100
- - **Python**: Looks for .py files, requirements.txt, pyproject.toml, setup.py
101
- - **JavaScript/TypeScript**: Looks for .js/.ts files, package.json, tsconfig.json
102
- - **Rust**: Looks for Cargo.toml, .rs files
103
- - **Go**: Looks for go.mod, .go files
104
- - **Java**: Looks for pom.xml, build.gradle, .java files
105
-
106
- ### Framework Detection
107
- **Python:**
108
- - FastAPI (imports, decorator patterns)
109
- - Flask (imports, app patterns)
110
- - Django (settings.py, manage.py)
111
-
112
- **JavaScript/TypeScript:**
113
- - Next.js (next.config.js, pages/ or app/ directory)
114
- - React (package.json dependencies, JSX usage)
115
- - Vue (vue.config.js, .vue files)
116
- - Express (imports, app patterns)
117
- - Nest.js (nest-cli.json, decorators)
118
-
119
- ### Testing Detection
120
- - pytest (pytest.ini, conftest.py)
121
- - unittest (test_*.py patterns)
122
- - Jest (jest.config.js)
123
- - Vitest (vitest.config.js)
124
- - Playwright (playwright.config.ts)
125
- - Cypress (cypress.json)
126
-
127
- ### Build Tool Detection
128
- - Vite (vite.config.js/ts)
129
- - Webpack (webpack.config.js)
130
- - Rollup (rollup.config.js)
131
- - esbuild (esbuild configuration)
132
- - Turbopack (next.config.js with turbopack)
133
-
134
- ### Deployment Detection
135
- - Docker (Dockerfile, docker-compose.yml)
136
- - Vercel (vercel.json, .vercel directory)
137
- - Railway (railway.json, railway.toml)
138
- - PM2 (ecosystem.config.js)
139
- - Kubernetes (k8s/, kubernetes/ directories)
140
-
141
- ## Use Cases
142
-
143
- 1. **Before Auto-Configuration**: Run this to see what will be detected
144
- 2. **Troubleshooting**: Verify that your project setup is being recognized correctly
145
- 3. **Documentation**: Generate a summary of your project's tech stack
146
- 4. **Planning**: Understand what agents might be recommended
147
-
148
- ## Tips
149
-
150
- 1. **Run from project root**: Detection works best from your project's root directory
151
- 2. **Check detection accuracy**: Verify detected versions match your actual setup
152
- 3. **Missing detections**: If something isn't detected, you can still deploy agents manually
153
- 4. **Configuration files**: Detection relies on standard configuration files being present
154
-
155
- ## Common Issues
156
-
157
- **Nothing detected?**
158
- - Make sure you're in the project root directory
159
- - Check that you have standard configuration files (package.json, requirements.txt, etc.)
160
- - Some projects may need manual agent deployment
161
-
162
- **Wrong versions detected?**
163
- - Detection shows what's configured in manifest files
164
- - Actual runtime versions may differ
165
- - This doesn't affect agent functionality
166
-
167
- **Framework not detected?**
168
- - Some frameworks are harder to detect automatically
169
- - You can still use auto-configure and manually select agents
170
- - Or deploy specific agents manually with `/mpm-agents deploy <name>`
171
-
172
- ## Related Commands
173
-
174
- - `/mpm-agents-recommend` - See agent recommendations based on detection
175
- - `/mpm-auto-configure` - Automatically configure agents based on detection
176
- - `/mpm-agents` - Manually manage agents
177
- - `/mpm-help auto-configure` - Learn about auto-configuration
@@ -1,131 +0,0 @@
1
- ---
2
- namespace: mpm/agents
3
- command: list
4
- aliases: [mpm-agents-list]
5
- migration_target: /mpm/agents:list
6
- category: agents
7
- deprecated_aliases: [mpm-agents]
8
- description: List all available Claude MPM agents with versions and deployment status
9
- ---
10
- # Show available agents and their versions
11
-
12
- Show all available Claude MPM agents with their versions and deployment status.
13
-
14
- ## Usage
15
-
16
- ```
17
- /mpm-agents
18
- ```
19
-
20
- ## Description
21
-
22
- This command lists all available Claude MPM agents, including both built-in agents and any custom agents you've created. It shows their current deployment status, version information, and capabilities.
23
-
24
- ## What This Command Does
25
-
26
- When you run `/mpm-agents`, I will:
27
-
28
- 1. **List Available Agents**: Run `claude-mpm agents list` to show all agents
29
- 2. **Display Agent Information**:
30
- - Agent names and IDs
31
- - Brief descriptions
32
- - Model preferences (opus, sonnet, haiku)
33
- - Tool availability
34
- - Version information
35
- - Deployment status
36
-
37
- ## Output Example
38
-
39
- The command displays agents in a formatted table showing:
40
- - Agent name and description
41
- - Version and model preference
42
- - Tools available to the agent
43
- - Current deployment status
44
-
45
- ## Implementation
46
-
47
- To show available agents, I'll execute:
48
- ```bash
49
- claude-mpm agents list --deployed
50
- ```
51
-
52
- This will display all deployed agents that are currently available for use.
53
-
54
- Alternatively, you can use these variations:
55
- - `claude-mpm agents list --system` - Show system agents
56
- - `claude-mpm agents list --by-tier` - Group agents by precedence tier
57
- - `claude-mpm agents list --all` - Show all agents including undeployed
58
-
59
- ## Auto-Configuration Subcommands (NEW!)
60
-
61
- ### Quick Agent Setup
62
-
63
- Claude MPM now includes intelligent auto-configuration that detects your project and recommends the right agents:
64
-
65
- #### `agents detect`
66
- Scan your project to detect toolchain and frameworks:
67
- ```bash
68
- claude-mpm agents detect
69
- ```
70
-
71
- Shows detected:
72
- - Programming languages (Python, Node.js, Rust, Go, etc.)
73
- - Frameworks (FastAPI, Next.js, React, Express, etc.)
74
- - Testing tools (pytest, Jest, Playwright, etc.)
75
- - Build tools and package managers
76
- - Deployment configurations
77
-
78
- #### `agents recommend`
79
- Get agent recommendations based on detected toolchain:
80
- ```bash
81
- claude-mpm agents recommend
82
- ```
83
-
84
- Shows:
85
- - Essential agents for your stack
86
- - Recommended complementary agents
87
- - Optional specialized agents
88
- - Rationale for each recommendation
89
-
90
- #### `auto-configure`
91
- Automatically detect, recommend, and deploy agents:
92
- ```bash
93
- claude-mpm auto-configure --preview # See what would be configured
94
- claude-mpm auto-configure # Interactive configuration
95
- claude-mpm auto-configure --yes # Auto-apply without prompts
96
- ```
97
-
98
- **Example workflow:**
99
- 1. Run `claude-mpm agents detect` to see what's detected
100
- 2. Run `claude-mpm agents recommend` to see suggestions
101
- 3. Run `claude-mpm auto-configure` to apply configuration
102
- 4. Or skip straight to `claude-mpm auto-configure --yes`
103
-
104
- ### Supported Stacks
105
-
106
- **Python:**
107
- - FastAPI, Flask, Django → fastapi-engineer, python-engineer
108
- - pytest, unittest → api-qa, python-qa
109
-
110
- **JavaScript/TypeScript:**
111
- - Next.js → nextjs-engineer, react-engineer
112
- - React, Vue, Svelte → react-engineer, web-qa
113
- - Express, Nest.js → node-engineer, api-qa
114
- - Jest, Vitest, Playwright → playwright-qa, web-qa
115
-
116
- **Full-Stack Projects:**
117
- Automatically recommends both frontend and backend agents based on your complete stack.
118
-
119
- **Deployment:**
120
- - Vercel → vercel-ops
121
- - Railway → railway-ops
122
- - Docker → docker-ops
123
- - PM2 → local-ops-agent
124
-
125
- ## Related Commands
126
-
127
- For more information on auto-configuration:
128
- - `/mpm-help auto-configure` - Detailed auto-configuration help
129
- - `/mpm-agents-detect` - Run detection via slash command
130
- - `/mpm-agents-recommend` - Show recommendations via slash command
131
- - `/mpm-auto-configure` - Run auto-configuration via slash command
@@ -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