claude-mpm 5.4.55__py3-none-any.whl → 5.4.85__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 (173) hide show
  1. claude_mpm/VERSION +1 -1
  2. claude_mpm/agents/CLAUDE_MPM_FOUNDERS_OUTPUT_STYLE.md +405 -0
  3. claude_mpm/agents/CLAUDE_MPM_OUTPUT_STYLE.md +63 -241
  4. claude_mpm/agents/CLAUDE_MPM_TEACHER_OUTPUT_STYLE.md +109 -1925
  5. claude_mpm/agents/PM_INSTRUCTIONS.md +36 -9
  6. claude_mpm/cli/__init__.py +5 -1
  7. claude_mpm/cli/commands/agents.py +2 -4
  8. claude_mpm/cli/commands/agents_reconcile.py +197 -0
  9. claude_mpm/cli/commands/configure.py +620 -21
  10. claude_mpm/cli/commands/skills.py +166 -14
  11. claude_mpm/cli/executor.py +1 -0
  12. claude_mpm/cli/interactive/__init__.py +10 -0
  13. claude_mpm/cli/interactive/agent_wizard.py +30 -50
  14. claude_mpm/cli/interactive/questionary_styles.py +65 -0
  15. claude_mpm/cli/interactive/skill_selector.py +481 -0
  16. claude_mpm/cli/parsers/base_parser.py +5 -0
  17. claude_mpm/cli/startup.py +223 -388
  18. claude_mpm/constants.py +1 -0
  19. claude_mpm/core/claude_runner.py +2 -2
  20. claude_mpm/core/interactive_session.py +7 -7
  21. claude_mpm/core/output_style_manager.py +21 -13
  22. claude_mpm/core/unified_config.py +50 -8
  23. claude_mpm/core/unified_paths.py +30 -13
  24. claude_mpm/scripts/start_activity_logging.py +0 -0
  25. claude_mpm/services/agents/deployment/agent_template_builder.py +8 -0
  26. claude_mpm/services/agents/deployment/deployment_reconciler.py +577 -0
  27. claude_mpm/services/agents/deployment/startup_reconciliation.py +138 -0
  28. claude_mpm/services/agents/sources/git_source_sync_service.py +7 -4
  29. claude_mpm/services/agents/startup_sync.py +5 -2
  30. claude_mpm/services/pm_skills_deployer.py +4 -0
  31. claude_mpm/services/skills/git_skill_source_manager.py +24 -8
  32. claude_mpm/services/skills/selective_skill_deployer.py +82 -83
  33. claude_mpm/skills/bundled/collaboration/brainstorming/SKILL.md +79 -0
  34. claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/SKILL.md +178 -0
  35. claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/references/agent-prompts.md +577 -0
  36. claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/references/coordination-patterns.md +467 -0
  37. claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/references/examples.md +537 -0
  38. claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/references/troubleshooting.md +730 -0
  39. claude_mpm/skills/bundled/collaboration/git-worktrees.md +317 -0
  40. claude_mpm/skills/bundled/collaboration/requesting-code-review/SKILL.md +112 -0
  41. claude_mpm/skills/bundled/collaboration/requesting-code-review/references/code-reviewer-template.md +146 -0
  42. claude_mpm/skills/bundled/collaboration/requesting-code-review/references/review-examples.md +412 -0
  43. claude_mpm/skills/bundled/collaboration/stacked-prs.md +251 -0
  44. claude_mpm/skills/bundled/collaboration/writing-plans/SKILL.md +81 -0
  45. claude_mpm/skills/bundled/collaboration/writing-plans/references/best-practices.md +362 -0
  46. claude_mpm/skills/bundled/collaboration/writing-plans/references/plan-structure-templates.md +312 -0
  47. claude_mpm/skills/bundled/debugging/root-cause-tracing/SKILL.md +152 -0
  48. claude_mpm/skills/bundled/debugging/root-cause-tracing/references/advanced-techniques.md +668 -0
  49. claude_mpm/skills/bundled/debugging/root-cause-tracing/references/examples.md +587 -0
  50. claude_mpm/skills/bundled/debugging/root-cause-tracing/references/integration.md +438 -0
  51. claude_mpm/skills/bundled/debugging/root-cause-tracing/references/tracing-techniques.md +391 -0
  52. claude_mpm/skills/bundled/debugging/systematic-debugging/CREATION-LOG.md +119 -0
  53. claude_mpm/skills/bundled/debugging/systematic-debugging/SKILL.md +148 -0
  54. claude_mpm/skills/bundled/debugging/systematic-debugging/references/anti-patterns.md +483 -0
  55. claude_mpm/skills/bundled/debugging/systematic-debugging/references/examples.md +452 -0
  56. claude_mpm/skills/bundled/debugging/systematic-debugging/references/troubleshooting.md +449 -0
  57. claude_mpm/skills/bundled/debugging/systematic-debugging/references/workflow.md +411 -0
  58. claude_mpm/skills/bundled/debugging/systematic-debugging/test-academic.md +14 -0
  59. claude_mpm/skills/bundled/debugging/systematic-debugging/test-pressure-1.md +58 -0
  60. claude_mpm/skills/bundled/debugging/systematic-debugging/test-pressure-2.md +68 -0
  61. claude_mpm/skills/bundled/debugging/systematic-debugging/test-pressure-3.md +69 -0
  62. claude_mpm/skills/bundled/debugging/verification-before-completion/SKILL.md +131 -0
  63. claude_mpm/skills/bundled/debugging/verification-before-completion/references/gate-function.md +325 -0
  64. claude_mpm/skills/bundled/debugging/verification-before-completion/references/integration-and-workflows.md +490 -0
  65. claude_mpm/skills/bundled/debugging/verification-before-completion/references/red-flags-and-failures.md +425 -0
  66. claude_mpm/skills/bundled/debugging/verification-before-completion/references/verification-patterns.md +499 -0
  67. claude_mpm/skills/bundled/infrastructure/env-manager/INTEGRATION.md +611 -0
  68. claude_mpm/skills/bundled/infrastructure/env-manager/README.md +596 -0
  69. claude_mpm/skills/bundled/infrastructure/env-manager/SKILL.md +260 -0
  70. claude_mpm/skills/bundled/infrastructure/env-manager/examples/nextjs-env-structure.md +315 -0
  71. claude_mpm/skills/bundled/infrastructure/env-manager/references/frameworks.md +436 -0
  72. claude_mpm/skills/bundled/infrastructure/env-manager/references/security.md +433 -0
  73. claude_mpm/skills/bundled/infrastructure/env-manager/references/synchronization.md +452 -0
  74. claude_mpm/skills/bundled/infrastructure/env-manager/references/troubleshooting.md +404 -0
  75. claude_mpm/skills/bundled/infrastructure/env-manager/references/validation.md +420 -0
  76. claude_mpm/skills/bundled/main/artifacts-builder/SKILL.md +86 -0
  77. claude_mpm/skills/bundled/main/internal-comms/SKILL.md +43 -0
  78. claude_mpm/skills/bundled/main/internal-comms/examples/3p-updates.md +47 -0
  79. claude_mpm/skills/bundled/main/internal-comms/examples/company-newsletter.md +65 -0
  80. claude_mpm/skills/bundled/main/internal-comms/examples/faq-answers.md +30 -0
  81. claude_mpm/skills/bundled/main/internal-comms/examples/general-comms.md +16 -0
  82. claude_mpm/skills/bundled/main/mcp-builder/SKILL.md +160 -0
  83. claude_mpm/skills/bundled/main/mcp-builder/reference/design_principles.md +412 -0
  84. claude_mpm/skills/bundled/main/mcp-builder/reference/evaluation.md +602 -0
  85. claude_mpm/skills/bundled/main/mcp-builder/reference/mcp_best_practices.md +915 -0
  86. claude_mpm/skills/bundled/main/mcp-builder/reference/node_mcp_server.md +916 -0
  87. claude_mpm/skills/bundled/main/mcp-builder/reference/python_mcp_server.md +752 -0
  88. claude_mpm/skills/bundled/main/mcp-builder/reference/workflow.md +1237 -0
  89. claude_mpm/skills/bundled/main/skill-creator/SKILL.md +189 -0
  90. claude_mpm/skills/bundled/main/skill-creator/references/best-practices.md +500 -0
  91. claude_mpm/skills/bundled/main/skill-creator/references/creation-workflow.md +464 -0
  92. claude_mpm/skills/bundled/main/skill-creator/references/examples.md +619 -0
  93. claude_mpm/skills/bundled/main/skill-creator/references/progressive-disclosure.md +437 -0
  94. claude_mpm/skills/bundled/main/skill-creator/references/skill-structure.md +231 -0
  95. claude_mpm/skills/bundled/php/espocrm-development/SKILL.md +170 -0
  96. claude_mpm/skills/bundled/php/espocrm-development/references/architecture.md +602 -0
  97. claude_mpm/skills/bundled/php/espocrm-development/references/common-tasks.md +821 -0
  98. claude_mpm/skills/bundled/php/espocrm-development/references/development-workflow.md +742 -0
  99. claude_mpm/skills/bundled/php/espocrm-development/references/frontend-customization.md +726 -0
  100. claude_mpm/skills/bundled/php/espocrm-development/references/hooks-and-services.md +764 -0
  101. claude_mpm/skills/bundled/php/espocrm-development/references/testing-debugging.md +831 -0
  102. claude_mpm/skills/bundled/pm/pm-bug-reporting/pm-bug-reporting.md +248 -0
  103. claude_mpm/skills/bundled/pm/pm-delegation-patterns/SKILL.md +167 -0
  104. claude_mpm/skills/bundled/pm/pm-git-file-tracking/SKILL.md +113 -0
  105. claude_mpm/skills/bundled/pm/pm-pr-workflow/SKILL.md +124 -0
  106. claude_mpm/skills/bundled/pm/pm-teaching-mode/SKILL.md +657 -0
  107. claude_mpm/skills/bundled/pm/pm-ticketing-integration/SKILL.md +154 -0
  108. claude_mpm/skills/bundled/pm/pm-verification-protocols/SKILL.md +198 -0
  109. claude_mpm/skills/bundled/react/flexlayout-react.md +742 -0
  110. claude_mpm/skills/bundled/rust/desktop-applications/SKILL.md +226 -0
  111. claude_mpm/skills/bundled/rust/desktop-applications/references/architecture-patterns.md +901 -0
  112. claude_mpm/skills/bundled/rust/desktop-applications/references/native-gui-frameworks.md +901 -0
  113. claude_mpm/skills/bundled/rust/desktop-applications/references/platform-integration.md +775 -0
  114. claude_mpm/skills/bundled/rust/desktop-applications/references/state-management.md +937 -0
  115. claude_mpm/skills/bundled/rust/desktop-applications/references/tauri-framework.md +770 -0
  116. claude_mpm/skills/bundled/rust/desktop-applications/references/testing-deployment.md +961 -0
  117. claude_mpm/skills/bundled/tauri/tauri-async-patterns.md +495 -0
  118. claude_mpm/skills/bundled/tauri/tauri-build-deploy.md +599 -0
  119. claude_mpm/skills/bundled/tauri/tauri-command-patterns.md +535 -0
  120. claude_mpm/skills/bundled/tauri/tauri-error-handling.md +613 -0
  121. claude_mpm/skills/bundled/tauri/tauri-event-system.md +648 -0
  122. claude_mpm/skills/bundled/tauri/tauri-file-system.md +673 -0
  123. claude_mpm/skills/bundled/tauri/tauri-frontend-integration.md +767 -0
  124. claude_mpm/skills/bundled/tauri/tauri-performance.md +669 -0
  125. claude_mpm/skills/bundled/tauri/tauri-state-management.md +573 -0
  126. claude_mpm/skills/bundled/tauri/tauri-testing.md +384 -0
  127. claude_mpm/skills/bundled/tauri/tauri-window-management.md +628 -0
  128. claude_mpm/skills/bundled/testing/condition-based-waiting/SKILL.md +119 -0
  129. claude_mpm/skills/bundled/testing/condition-based-waiting/references/patterns-and-implementation.md +253 -0
  130. claude_mpm/skills/bundled/testing/test-driven-development/SKILL.md +145 -0
  131. claude_mpm/skills/bundled/testing/test-driven-development/references/anti-patterns.md +543 -0
  132. claude_mpm/skills/bundled/testing/test-driven-development/references/examples.md +741 -0
  133. claude_mpm/skills/bundled/testing/test-driven-development/references/integration.md +470 -0
  134. claude_mpm/skills/bundled/testing/test-driven-development/references/philosophy.md +458 -0
  135. claude_mpm/skills/bundled/testing/test-driven-development/references/workflow.md +639 -0
  136. claude_mpm/skills/bundled/testing/test-quality-inspector/SKILL.md +458 -0
  137. claude_mpm/skills/bundled/testing/test-quality-inspector/examples/example-inspection-report.md +411 -0
  138. claude_mpm/skills/bundled/testing/test-quality-inspector/references/assertion-quality.md +317 -0
  139. claude_mpm/skills/bundled/testing/test-quality-inspector/references/inspection-checklist.md +270 -0
  140. claude_mpm/skills/bundled/testing/test-quality-inspector/references/red-flags.md +436 -0
  141. claude_mpm/skills/bundled/testing/testing-anti-patterns/SKILL.md +140 -0
  142. claude_mpm/skills/bundled/testing/testing-anti-patterns/references/completeness-anti-patterns.md +572 -0
  143. claude_mpm/skills/bundled/testing/testing-anti-patterns/references/core-anti-patterns.md +411 -0
  144. claude_mpm/skills/bundled/testing/testing-anti-patterns/references/detection-guide.md +569 -0
  145. claude_mpm/skills/bundled/testing/testing-anti-patterns/references/tdd-connection.md +695 -0
  146. claude_mpm/skills/bundled/testing/webapp-testing/SKILL.md +184 -0
  147. claude_mpm/skills/bundled/testing/webapp-testing/decision-tree.md +459 -0
  148. claude_mpm/skills/bundled/testing/webapp-testing/playwright-patterns.md +479 -0
  149. claude_mpm/skills/bundled/testing/webapp-testing/reconnaissance-pattern.md +687 -0
  150. claude_mpm/skills/bundled/testing/webapp-testing/server-management.md +758 -0
  151. claude_mpm/skills/bundled/testing/webapp-testing/troubleshooting.md +868 -0
  152. claude_mpm/utils/agent_dependency_loader.py +103 -4
  153. claude_mpm/utils/robust_installer.py +45 -24
  154. {claude_mpm-5.4.55.dist-info → claude_mpm-5.4.85.dist-info}/METADATA +47 -23
  155. {claude_mpm-5.4.55.dist-info → claude_mpm-5.4.85.dist-info}/RECORD +159 -47
  156. claude_mpm/hooks/claude_hooks/__pycache__/__init__.cpython-311.pyc +0 -0
  157. claude_mpm/hooks/claude_hooks/__pycache__/correlation_manager.cpython-311.pyc +0 -0
  158. claude_mpm/hooks/claude_hooks/__pycache__/event_handlers.cpython-311.pyc +0 -0
  159. claude_mpm/hooks/claude_hooks/__pycache__/hook_handler.cpython-311.pyc +0 -0
  160. claude_mpm/hooks/claude_hooks/__pycache__/installer.cpython-311.pyc +0 -0
  161. claude_mpm/hooks/claude_hooks/__pycache__/memory_integration.cpython-311.pyc +0 -0
  162. claude_mpm/hooks/claude_hooks/__pycache__/response_tracking.cpython-311.pyc +0 -0
  163. claude_mpm/hooks/claude_hooks/__pycache__/tool_analysis.cpython-311.pyc +0 -0
  164. claude_mpm/hooks/claude_hooks/services/__pycache__/__init__.cpython-311.pyc +0 -0
  165. claude_mpm/hooks/claude_hooks/services/__pycache__/connection_manager_http.cpython-311.pyc +0 -0
  166. claude_mpm/hooks/claude_hooks/services/__pycache__/duplicate_detector.cpython-311.pyc +0 -0
  167. claude_mpm/hooks/claude_hooks/services/__pycache__/state_manager.cpython-311.pyc +0 -0
  168. claude_mpm/hooks/claude_hooks/services/__pycache__/subagent_processor.cpython-311.pyc +0 -0
  169. {claude_mpm-5.4.55.dist-info → claude_mpm-5.4.85.dist-info}/WHEEL +0 -0
  170. {claude_mpm-5.4.55.dist-info → claude_mpm-5.4.85.dist-info}/entry_points.txt +0 -0
  171. {claude_mpm-5.4.55.dist-info → claude_mpm-5.4.85.dist-info}/licenses/LICENSE +0 -0
  172. {claude_mpm-5.4.55.dist-info → claude_mpm-5.4.85.dist-info}/licenses/LICENSE-FAQ.md +0 -0
  173. {claude_mpm-5.4.55.dist-info → claude_mpm-5.4.85.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,248 @@
1
+ ---
2
+ name: pm-bug-reporting
3
+ version: "1.0.0"
4
+ description: Bug reporting protocol for PM and agents to file GitHub issues
5
+ when_to_use: Framework bugs, agent errors, skill content errors detected
6
+ category: pm-workflow
7
+ tags: [bug-reporting, github, issues, pm-required]
8
+ ---
9
+
10
+ # PM Bug Reporting Protocol
11
+
12
+ ## When to Report Bugs
13
+
14
+ Report bugs when you encounter:
15
+ - **PM instruction errors** or missing guidance
16
+ - **Agent malfunction** or incorrect behavior
17
+ - **Skill content errors** or outdated information
18
+ - **Framework crashes** or unexpected behavior
19
+ - **Missing or incorrect documentation**
20
+ - **Configuration errors** or invalid defaults
21
+
22
+ ## GitHub Repositories
23
+
24
+ Route bugs to the correct repository:
25
+
26
+ | Bug Type | Repository | Owner/Repo |
27
+ |----------|------------|------------|
28
+ | Core MPM (CLI, startup, config, orchestration) | claude-mpm | bobmatnyc/claude-mpm |
29
+ | Agent bugs (wrong behavior, errors, missing capabilities) | claude-mpm-agents | bobmatnyc/claude-mpm-agents |
30
+ | Skill bugs (wrong info, outdated, missing content) | claude-mpm-skills | bobmatnyc/claude-mpm-skills |
31
+
32
+ ## Bug Report Template
33
+
34
+ When creating an issue, include:
35
+
36
+ ### Title
37
+ Brief, descriptive title (50 chars max)
38
+ - ✅ "PM delegates to non-existent agent"
39
+ - ✅ "Research skill missing web search examples"
40
+ - ❌ "Bug in system"
41
+ - ❌ "Fix this"
42
+
43
+ ### Labels
44
+ Always include:
45
+ - `bug` (required)
46
+ - `agent-reported` (required)
47
+ - Additional context labels:
48
+ - `high-priority` - Critical functionality broken
49
+ - `documentation` - Documentation error
50
+ - `agent-error` - Agent-specific issue
51
+ - `skill-error` - Skill content issue
52
+
53
+ ### Body Structure
54
+ ```markdown
55
+ ## What Happened
56
+ [Clear description of the bug]
57
+
58
+ ## Expected Behavior
59
+ [What should have happened]
60
+
61
+ ## Steps to Reproduce
62
+ 1. [First step]
63
+ 2. [Second step]
64
+ 3. [Third step]
65
+
66
+ ## Context
67
+ - Agent: [agent name if applicable]
68
+ - Skill: [skill name if applicable]
69
+ - Error Message: [full error if available]
70
+ - Version: [MPM version if known]
71
+
72
+ ## Impact
73
+ [How this affects users/workflow]
74
+ ```
75
+
76
+ ## Using gh CLI
77
+
78
+ ### Prerequisites Check
79
+ ```bash
80
+ gh auth status
81
+ ```
82
+
83
+ If not authenticated:
84
+ ```bash
85
+ gh auth login
86
+ ```
87
+
88
+ ### Creating Issues
89
+
90
+ **Delegate to ticketing agent** with:
91
+ ```
92
+ Task:
93
+ agent: ticketing
94
+ task: Create GitHub issue for [bug type]
95
+ context: |
96
+ Repository: bobmatnyc/claude-mpm[-agents|-skills]
97
+ Title: [brief title]
98
+ Labels: bug, agent-reported
99
+ Body: |
100
+ ## What Happened
101
+ [description]
102
+
103
+ ## Expected Behavior
104
+ [expected]
105
+
106
+ ## Steps to Reproduce
107
+ 1. [step 1]
108
+ 2. [step 2]
109
+
110
+ ## Context
111
+ - Agent: [agent name]
112
+ - Error: [error message]
113
+
114
+ ## Impact
115
+ [impact description]
116
+ ```
117
+
118
+ ## Examples
119
+
120
+ ### Core MPM Bug
121
+ ```
122
+ Task:
123
+ agent: ticketing
124
+ task: Create GitHub issue for core MPM bug
125
+ context: |
126
+ Repository: bobmatnyc/claude-mpm
127
+ Title: PM fails to load configuration on startup
128
+ Labels: bug, agent-reported, high-priority
129
+ Body: |
130
+ ## What Happened
131
+ PM fails to initialize when configuration.yaml contains invalid syntax.
132
+ No clear error message shown to user.
133
+
134
+ ## Expected Behavior
135
+ PM should display clear YAML syntax error with line number and fix suggestion.
136
+
137
+ ## Steps to Reproduce
138
+ 1. Add invalid YAML to .claude-mpm/configuration.yaml
139
+ 2. Run `mpm`
140
+ 3. Observe generic error without details
141
+
142
+ ## Context
143
+ - Component: Configuration loader
144
+ - Error: "Failed to load configuration"
145
+ - Version: 5.4.x
146
+
147
+ ## Impact
148
+ Users cannot diagnose configuration errors, requiring manual YAML validation.
149
+ ```
150
+
151
+ ### Agent Bug
152
+ ```
153
+ Task:
154
+ agent: ticketing
155
+ task: Create GitHub issue for agent bug
156
+ context: |
157
+ Repository: bobmatnyc/claude-mpm-agents
158
+ Title: Research agent fails to search with special characters
159
+ Labels: bug, agent-reported, agent-error
160
+ Body: |
161
+ ## What Happened
162
+ Research agent throws error when search query contains quotes or special chars.
163
+
164
+ ## Expected Behavior
165
+ Search queries should be properly escaped and executed.
166
+
167
+ ## Steps to Reproduce
168
+ 1. Delegate to research: "Search for 'React hooks'"
169
+ 2. Research agent attempts search
170
+ 3. Error: "Invalid search query"
171
+
172
+ ## Context
173
+ - Agent: research
174
+ - Error: grep command fails with unescaped quotes
175
+
176
+ ## Impact
177
+ Cannot search for quoted phrases or technical terms with special characters.
178
+ ```
179
+
180
+ ### Skill Bug
181
+ ```
182
+ Task:
183
+ agent: ticketing
184
+ task: Create GitHub issue for skill content error
185
+ context: |
186
+ Repository: bobmatnyc/claude-mpm-skills
187
+ Title: Git workflow skill contains outdated branch strategy
188
+ Labels: bug, agent-reported, documentation, skill-error
189
+ Body: |
190
+ ## What Happened
191
+ Skill recommends `git flow` branching model, which project no longer uses.
192
+ Current standard is trunk-based development.
193
+
194
+ ## Expected Behavior
195
+ Skill should document current trunk-based workflow.
196
+
197
+ ## Context
198
+ - Skill: git-workflow.md
199
+ - Section: "Branching Strategy"
200
+ - Line: 45-60
201
+
202
+ ## Impact
203
+ Agents follow outdated branching model, creating workflow friction.
204
+ ```
205
+
206
+ ## Escalation Path
207
+
208
+ When ticketing agent is unavailable or gh CLI fails:
209
+
210
+ 1. **Log locally** for manual reporting:
211
+ ```
212
+ echo "[BUG] $(date): [description]" >> .claude-mpm/logs/bugs.log
213
+ ```
214
+
215
+ 2. **Report to PM** for alternative action:
216
+ ```
217
+ PM should create ticket in primary ticketing system (Linear/JIRA)
218
+ with note to create GitHub issue once available
219
+ ```
220
+
221
+ 3. **User notification**:
222
+ ```
223
+ "Bug detected: [description]. Logged for manual GitHub issue creation."
224
+ ```
225
+
226
+ ## Success Criteria
227
+
228
+ Bug reporting successful when:
229
+ - ✅ Issue created in correct repository
230
+ - ✅ All required labels applied (`bug`, `agent-reported`)
231
+ - ✅ Body follows template structure
232
+ - ✅ Title is clear and concise
233
+ - ✅ Context includes agent/skill name if applicable
234
+ - ✅ Issue URL returned for tracking
235
+
236
+ ## PM Enforcement
237
+
238
+ PM MUST:
239
+ - Detect bugs during agent interactions
240
+ - Delegate bug reporting to ticketing agent
241
+ - NOT attempt to create GitHub issues directly
242
+ - Follow escalation path if ticketing unavailable
243
+ - Log all bug reports for audit trail
244
+
245
+ ## Related Skills
246
+ - [pm-ticketing-integration.md](pm-ticketing-integration.md) - Ticket delegation patterns
247
+ - [pm-delegation-patterns.md](pm-delegation-patterns.md) - General delegation guidance
248
+ - [ticketing-examples.md](ticketing-examples.md) - Ticketing delegation examples
@@ -0,0 +1,167 @@
1
+ ---
2
+ name: pm-delegation-patterns
3
+ version: "1.0.0"
4
+ description: Common delegation patterns for PM agent
5
+ when_to_use: delegation questions, agent selection, workflow patterns
6
+ category: pm-reference
7
+ tags: [delegation, agents, patterns, pm-required]
8
+ ---
9
+
10
+ # Common Delegation Patterns
11
+
12
+ ## Full Stack Feature
13
+
14
+ **Workflow**: Research → Analyzer → react-engineer + Engineer → Ops (deploy) → Ops (VERIFY) → api-qa + web-qa → Docs
15
+
16
+ **When**: Complete feature requiring frontend, backend, and deployment
17
+
18
+ **Example**:
19
+ ```
20
+ User: "Add user dashboard with analytics"
21
+ PM delegates:
22
+ 1. Research: Investigate dashboard frameworks and analytics libraries
23
+ 2. Code Analyzer: Review solution approach
24
+ 3. react-engineer: Build dashboard UI components
25
+ 4. Engineer: Implement analytics API endpoints
26
+ 5. Ops: Deploy to staging
27
+ 6. Ops: Verify deployment (health checks, logs)
28
+ 7. api-qa: Test API endpoints
29
+ 8. web-qa: Test dashboard UI
30
+ 9. Documentation: Update API docs and user guide
31
+ ```
32
+
33
+ ## API Development
34
+
35
+ **Workflow**: Research → Analyzer → Engineer → Deploy (if needed) → Ops (VERIFY) → web-qa (fetch tests) → Docs
36
+
37
+ **When**: Backend API implementation without frontend
38
+
39
+ **Example**:
40
+ ```
41
+ User: "Create REST API for user management"
42
+ PM delegates:
43
+ 1. Research: API design patterns, authentication
44
+ 2. Code Analyzer: Review API design
45
+ 3. Engineer: Implement API endpoints
46
+ 4. Ops: Deploy API to staging (if needed)
47
+ 5. Ops: Verify deployment
48
+ 6. web-qa: Run fetch tests on endpoints
49
+ 7. Documentation: Generate API documentation
50
+ ```
51
+
52
+ ## Web UI
53
+
54
+ **Workflow**: Research → Analyzer → web-ui/react-engineer → Ops (deploy) → Ops (VERIFY with Playwright) → web-qa → Docs
55
+
56
+ **When**: Frontend-only changes
57
+
58
+ **Example**:
59
+ ```
60
+ User: "Redesign landing page"
61
+ PM delegates:
62
+ 1. Research: UI/UX best practices, component libraries
63
+ 2. Code Analyzer: Review design approach
64
+ 3. react-engineer: Implement new landing page
65
+ 4. Ops: Deploy to staging
66
+ 5. Ops: Verify deployment with Playwright
67
+ 6. web-qa: Visual regression testing
68
+ 7. Documentation: Update component documentation
69
+ ```
70
+
71
+ ## Local Development
72
+
73
+ **Workflow**: Research → Analyzer → Engineer → **local-ops** (PM2/Docker) → **local-ops** (VERIFY logs+fetch) → QA → Docs
74
+
75
+ **When**: Working with localhost, PM2, Docker, or local processes
76
+
77
+ **Example**:
78
+ ```
79
+ User: "Set up local development server"
80
+ PM delegates:
81
+ 1. Research: Local development setup best practices
82
+ 2. Code Analyzer: Review setup approach
83
+ 3. Engineer: Configure development environment
84
+ 4. local-ops: Start server with PM2/Docker
85
+ 5. local-ops: Verify server running (lsof, curl, logs)
86
+ 6. QA: Test local endpoints
87
+ 7. Documentation: Update setup guide
88
+ ```
89
+
90
+ ## Bug Fix
91
+
92
+ **Workflow**: Research → Analyzer → Engineer → Deploy → Ops (VERIFY) → web-qa (regression) → version-control
93
+
94
+ **When**: Fixing reported bugs
95
+
96
+ **Example**:
97
+ ```
98
+ User: "Fix login error on Safari"
99
+ PM delegates:
100
+ 1. Research: Investigate Safari-specific issues
101
+ 2. Code Analyzer: Review fix approach
102
+ 3. Engineer: Implement fix
103
+ 4. Ops: Deploy fix to staging
104
+ 5. Ops: Verify deployment
105
+ 6. web-qa: Run regression tests, verify Safari fix
106
+ 7. version-control: Create PR with fix
107
+ ```
108
+
109
+ ## Vercel Site
110
+
111
+ **Workflow**: Research → Analyzer → Engineer → vercel-ops (deploy) → vercel-ops (VERIFY) → web-qa → Docs
112
+
113
+ **When**: Vercel-hosted applications
114
+
115
+ **Example**:
116
+ ```
117
+ User: "Deploy blog to Vercel"
118
+ PM delegates:
119
+ 1. Research: Vercel deployment best practices
120
+ 2. Code Analyzer: Review deployment config
121
+ 3. Engineer: Configure Vercel settings
122
+ 4. vercel-ops: Deploy to Vercel
123
+ 5. vercel-ops: Verify deployment (health check)
124
+ 6. web-qa: Test deployed site
125
+ 7. Documentation: Update deployment guide
126
+ ```
127
+
128
+ ## Railway App
129
+
130
+ **Workflow**: Research → Analyzer → Engineer → railway-ops (deploy) → railway-ops (VERIFY) → api-qa → Docs
131
+
132
+ **When**: Railway-hosted applications
133
+
134
+ **Example**:
135
+ ```
136
+ User: "Deploy API to Railway"
137
+ PM delegates:
138
+ 1. Research: Railway deployment patterns
139
+ 2. Code Analyzer: Review Railway config
140
+ 3. Engineer: Configure Railway settings
141
+ 4. railway-ops: Deploy to Railway
142
+ 5. railway-ops: Verify deployment
143
+ 6. api-qa: Test API endpoints
144
+ 7. Documentation: Update deployment docs
145
+ ```
146
+
147
+ ## Agent Selection by Trigger Keywords
148
+
149
+ | Keywords | Agent | Use Case |
150
+ |----------|-------|----------|
151
+ | localhost, PM2, docker-compose, port, process | **local-ops** | Local development |
152
+ | vercel, edge function, serverless | **vercel-ops** | Vercel platform |
153
+ | railway, nixpacks | **railway-ops** | Railway platform |
154
+ | gcp, google cloud, IAM, OAuth consent | **gcp-ops** | Google Cloud |
155
+ | clerk, auth middleware, OAuth provider | **clerk-ops** | Clerk authentication |
156
+ | browser, screenshot, click, navigate, DOM | **web-qa** | Browser testing |
157
+ | ticket, issue, PROJ-123, #123 | **ticketing** | Ticket operations |
158
+ | skill, stack, framework | **mpm-skills-manager** | Skill management |
159
+
160
+ ## Delegation Best Practices
161
+
162
+ 1. **Provide Context**: Include relevant background for agent
163
+ 2. **Clear Acceptance Criteria**: Define completion criteria
164
+ 3. **Wait for Completion**: Don't interrupt agent work
165
+ 4. **Collect Evidence**: Get specific artifacts from agents
166
+ 5. **Immediate File Tracking**: Track files right after agent creates them
167
+ 6. **Chain Verification**: QA verification after implementation
@@ -0,0 +1,113 @@
1
+ ---
2
+ name: pm-git-file-tracking
3
+ version: "1.0.0"
4
+ description: Protocol for tracking files immediately after agent creation
5
+ when_to_use: after agent creates files, before marking todo complete, git operations
6
+ category: pm-workflow
7
+ tags: [git, file-tracking, workflow, pm-required]
8
+ ---
9
+
10
+ # Git File Tracking Protocol
11
+
12
+ **Critical Principle**: Track files IMMEDIATELY after an agent creates them, not at session end.
13
+
14
+ ## File Tracking Decision Flow
15
+
16
+ ```
17
+ Agent completes work and returns to PM
18
+
19
+ Did agent create files? → NO → Mark todo complete, continue
20
+ ↓ YES
21
+ MANDATORY FILE TRACKING (BLOCKING)
22
+
23
+ Step 1: Run `git status` to see new files
24
+ Step 2: Check decision matrix (deliverable vs temp/ignored)
25
+ Step 3: Run `git add <files>` for all deliverables
26
+ Step 4: Run `git commit -m "..."` with proper context
27
+ Step 5: Verify tracking with `git status`
28
+
29
+ ONLY NOW: Mark todo as completed
30
+ ```
31
+
32
+ **BLOCKING REQUIREMENT**: PM cannot mark todo complete until files are tracked.
33
+
34
+ ## Decision Matrix: When to Track Files
35
+
36
+ | File Type | Track? | Reason |
37
+ |-----------|--------|--------|
38
+ | New source files (`.py`, `.js`, etc.) | ✅ YES | Production code must be versioned |
39
+ | New config files (`.json`, `.yaml`, etc.) | ✅ YES | Configuration changes must be tracked |
40
+ | New documentation (`.md` in `/docs/`) | ✅ YES | Documentation is part of deliverables |
41
+ | Documentation in project root (`.md`) | ❌ NO | Only core docs allowed (README, CHANGELOG, CONTRIBUTING) |
42
+ | New test files (`test_*.py`, `*.test.js`) | ✅ YES | Tests are critical artifacts |
43
+ | New scripts (`.sh`, `.py` in `/scripts/`) | ✅ YES | Automation must be versioned |
44
+ | Files in `/tmp/` directory | ❌ NO | Temporary by design (gitignored) |
45
+ | Files in `.gitignore` | ❌ NO | Intentionally excluded |
46
+ | Build artifacts (`dist/`, `build/`) | ❌ NO | Generated, not source |
47
+ | Virtual environments (`venv/`, `node_modules/`) | ❌ NO | Dependencies, not source |
48
+
49
+ ## Commit Message Format
50
+
51
+ ```bash
52
+ git commit -m "feat: add {description}
53
+
54
+ - Created {file_type} for {purpose}
55
+ - Includes {key_features}
56
+ - Part of {initiative}
57
+
58
+ 🤖 Generated with [Claude MPM](https://github.com/bobmatnyc/claude-mpm)
59
+
60
+ Co-Authored-By: Claude <noreply@anthropic.com>"
61
+ ```
62
+
63
+ ## Before Ending Any Session
64
+
65
+ **Final verification checklist**:
66
+
67
+ ```bash
68
+ # 1. Check for untracked files
69
+ git status
70
+
71
+ # 2. If any deliverable files found (should be rare):
72
+ git add <files>
73
+ git commit -m "feat: final session deliverables..."
74
+
75
+ # 3. Verify tracking complete
76
+ git status # Should show "nothing to commit, working tree clean"
77
+ ```
78
+
79
+ **Ideal State**: `git status` shows NO untracked deliverable files because PM tracked them immediately after each agent.
80
+
81
+ ## Example Workflow
82
+
83
+ ```bash
84
+ # After Engineer creates new OAuth files
85
+ git status
86
+ # Shows: src/auth/oauth2.js (untracked)
87
+ # src/routes/auth.js (untracked)
88
+
89
+ git add src/auth/oauth2.js src/routes/auth.js
90
+
91
+ git commit -m "feat: add OAuth2 authentication
92
+
93
+ - Created OAuth2 authentication module
94
+ - Added authentication routes
95
+ - Part of user login feature
96
+
97
+ 🤖 Generated with [Claude MPM](https://github.com/bobmatnyc/claude-mpm)
98
+
99
+ Co-Authored-By: Claude <noreply@anthropic.com>"
100
+
101
+ # Verify tracking complete
102
+ git status # Should show clean working tree
103
+ ```
104
+
105
+ ## Integration with Todo Workflow
106
+
107
+ **BLOCKING SEQUENCE**:
108
+ 1. Agent completes task and returns to PM
109
+ 2. PM checks if files were created
110
+ 3. If YES → Run file tracking protocol (cannot proceed until complete)
111
+ 4. Only after tracking verified → Mark todo as completed
112
+
113
+ This ensures no deliverables are lost between agent completion and session end.
@@ -0,0 +1,124 @@
1
+ ---
2
+ name: pm-pr-workflow
3
+ version: "1.0.0"
4
+ description: Branch protection and PR creation workflow
5
+ when_to_use: PR creation, branch operations, git push to main
6
+ category: pm-workflow
7
+ tags: [git, pr, branch-protection, pm-required]
8
+ ---
9
+
10
+ # PR Workflow and Branch Protection
11
+
12
+ ## Branch Protection Enforcement
13
+
14
+ **CRITICAL**: PM must enforce branch protection for main branch.
15
+
16
+ ### Detection (run before any main branch operation)
17
+
18
+ ```bash
19
+ git config user.email
20
+ ```
21
+
22
+ ### Routing Rules
23
+
24
+ - User is `bobmatnyc@users.noreply.github.com` → Can push directly to main (if explicitly requested)
25
+ - Any other user → MUST use feature branch + PR workflow
26
+
27
+ ### User Request Translation
28
+
29
+ When non-privileged users request main branch operations:
30
+
31
+ | User Request | PM Action |
32
+ |--------------|-----------|
33
+ | "commit to main" | "Creating feature branch workflow instead" |
34
+ | "push to main" | "Branch protection requires PR workflow" |
35
+ | "merge to main" | "Creating PR for review" |
36
+
37
+ **Error Prevention**: PM proactively guides non-privileged users to correct workflow (don't wait for git errors).
38
+
39
+ ## PR Workflow Delegation
40
+
41
+ **Default**: Main-based PRs (unless user explicitly requests stacked)
42
+
43
+ ### When User Requests PRs
44
+
45
+ - Single ticket → One PR (no question needed)
46
+ - Independent features → Main-based (no question needed)
47
+ - User says "stacked" or "dependent" → Stacked PRs (no question needed)
48
+
49
+ ### Recommend Main-Based When
50
+
51
+ - User doesn't specify preference
52
+ - Independent features or bug fixes
53
+ - Multiple agents working in parallel
54
+ - Simple enhancements
55
+
56
+ ### Recommend Stacked PRs When
57
+
58
+ - User explicitly requests "stacked" or "dependent" PRs
59
+ - Large feature with clear phase dependencies
60
+ - User is comfortable with rebase workflows
61
+
62
+ Always delegate to version-control agent with strategy parameters.
63
+
64
+ ## PR Creation Workflow
65
+
66
+ When creating PRs, delegate to version-control agent with:
67
+
68
+ ```
69
+ Task:
70
+ agent: "version-control"
71
+ task: "Create PR for {feature}"
72
+ context: |
73
+ Work completed: {summary}
74
+ Files changed: {file_list}
75
+ Tests: {test_status}
76
+ QA verification: {qa_evidence}
77
+ acceptance_criteria:
78
+ - Create feature branch from main
79
+ - Push all commits to feature branch
80
+ - Create PR with proper description
81
+ - Link ticket if applicable
82
+ - Request reviews if needed
83
+ ```
84
+
85
+ ## Common Patterns
86
+
87
+ ### Single Feature PR
88
+ ```bash
89
+ # Feature branch → PR → Main
90
+ feature/user-auth → PR #123 → main
91
+ ```
92
+
93
+ ### Stacked PRs (when requested)
94
+ ```bash
95
+ # Stacked feature development
96
+ feature/auth-base → PR #123 → main
97
+ feature/oauth (based on auth-base) → PR #124 → feature/auth-base
98
+ feature/session (based on oauth) → PR #125 → feature/oauth
99
+ ```
100
+
101
+ ### Bug Fix PR
102
+ ```bash
103
+ # Hotfix branch → PR → Main
104
+ fix/login-error → PR #126 → main
105
+ ```
106
+
107
+ ## Branch Protection Checklist
108
+
109
+ Before any main branch operation:
110
+ - [ ] Check git user email
111
+ - [ ] Verify user has main branch access
112
+ - [ ] If not privileged user, route to feature branch workflow
113
+ - [ ] Create clear user messaging about branch protection
114
+
115
+ ## Integration with Git File Tracking
116
+
117
+ All file tracking should happen on feature branches before PR creation:
118
+
119
+ 1. Agent creates files
120
+ 2. PM tracks files immediately (git add + commit)
121
+ 3. PM delegates PR creation to version-control
122
+ 4. version-control pushes branch and creates PR
123
+
124
+ This ensures all work is tracked before entering PR workflow.