claude-mpm 5.4.59__py3-none-any.whl → 5.4.64__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 (129) hide show
  1. claude_mpm/VERSION +1 -1
  2. claude_mpm/agents/CLAUDE_MPM_TEACHER_OUTPUT_STYLE.md +5 -0
  3. claude_mpm/cli/startup.py +14 -9
  4. claude_mpm/scripts/start_activity_logging.py +0 -0
  5. claude_mpm/services/agents/deployment/agent_template_builder.py +8 -0
  6. claude_mpm/skills/bundled/collaboration/brainstorming/SKILL.md +79 -0
  7. claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/SKILL.md +178 -0
  8. claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/references/agent-prompts.md +577 -0
  9. claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/references/coordination-patterns.md +467 -0
  10. claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/references/examples.md +537 -0
  11. claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/references/troubleshooting.md +730 -0
  12. claude_mpm/skills/bundled/collaboration/git-worktrees.md +317 -0
  13. claude_mpm/skills/bundled/collaboration/requesting-code-review/SKILL.md +112 -0
  14. claude_mpm/skills/bundled/collaboration/requesting-code-review/references/code-reviewer-template.md +146 -0
  15. claude_mpm/skills/bundled/collaboration/requesting-code-review/references/review-examples.md +412 -0
  16. claude_mpm/skills/bundled/collaboration/stacked-prs.md +251 -0
  17. claude_mpm/skills/bundled/collaboration/writing-plans/SKILL.md +81 -0
  18. claude_mpm/skills/bundled/collaboration/writing-plans/references/best-practices.md +362 -0
  19. claude_mpm/skills/bundled/collaboration/writing-plans/references/plan-structure-templates.md +312 -0
  20. claude_mpm/skills/bundled/debugging/root-cause-tracing/SKILL.md +152 -0
  21. claude_mpm/skills/bundled/debugging/root-cause-tracing/references/advanced-techniques.md +668 -0
  22. claude_mpm/skills/bundled/debugging/root-cause-tracing/references/examples.md +587 -0
  23. claude_mpm/skills/bundled/debugging/root-cause-tracing/references/integration.md +438 -0
  24. claude_mpm/skills/bundled/debugging/root-cause-tracing/references/tracing-techniques.md +391 -0
  25. claude_mpm/skills/bundled/debugging/systematic-debugging/CREATION-LOG.md +119 -0
  26. claude_mpm/skills/bundled/debugging/systematic-debugging/SKILL.md +148 -0
  27. claude_mpm/skills/bundled/debugging/systematic-debugging/references/anti-patterns.md +483 -0
  28. claude_mpm/skills/bundled/debugging/systematic-debugging/references/examples.md +452 -0
  29. claude_mpm/skills/bundled/debugging/systematic-debugging/references/troubleshooting.md +449 -0
  30. claude_mpm/skills/bundled/debugging/systematic-debugging/references/workflow.md +411 -0
  31. claude_mpm/skills/bundled/debugging/systematic-debugging/test-academic.md +14 -0
  32. claude_mpm/skills/bundled/debugging/systematic-debugging/test-pressure-1.md +58 -0
  33. claude_mpm/skills/bundled/debugging/systematic-debugging/test-pressure-2.md +68 -0
  34. claude_mpm/skills/bundled/debugging/systematic-debugging/test-pressure-3.md +69 -0
  35. claude_mpm/skills/bundled/debugging/verification-before-completion/SKILL.md +131 -0
  36. claude_mpm/skills/bundled/debugging/verification-before-completion/references/gate-function.md +325 -0
  37. claude_mpm/skills/bundled/debugging/verification-before-completion/references/integration-and-workflows.md +490 -0
  38. claude_mpm/skills/bundled/debugging/verification-before-completion/references/red-flags-and-failures.md +425 -0
  39. claude_mpm/skills/bundled/debugging/verification-before-completion/references/verification-patterns.md +499 -0
  40. claude_mpm/skills/bundled/infrastructure/env-manager/INTEGRATION.md +611 -0
  41. claude_mpm/skills/bundled/infrastructure/env-manager/README.md +596 -0
  42. claude_mpm/skills/bundled/infrastructure/env-manager/SKILL.md +260 -0
  43. claude_mpm/skills/bundled/infrastructure/env-manager/examples/nextjs-env-structure.md +315 -0
  44. claude_mpm/skills/bundled/infrastructure/env-manager/references/frameworks.md +436 -0
  45. claude_mpm/skills/bundled/infrastructure/env-manager/references/security.md +433 -0
  46. claude_mpm/skills/bundled/infrastructure/env-manager/references/synchronization.md +452 -0
  47. claude_mpm/skills/bundled/infrastructure/env-manager/references/troubleshooting.md +404 -0
  48. claude_mpm/skills/bundled/infrastructure/env-manager/references/validation.md +420 -0
  49. claude_mpm/skills/bundled/main/artifacts-builder/SKILL.md +86 -0
  50. claude_mpm/skills/bundled/main/internal-comms/SKILL.md +43 -0
  51. claude_mpm/skills/bundled/main/internal-comms/examples/3p-updates.md +47 -0
  52. claude_mpm/skills/bundled/main/internal-comms/examples/company-newsletter.md +65 -0
  53. claude_mpm/skills/bundled/main/internal-comms/examples/faq-answers.md +30 -0
  54. claude_mpm/skills/bundled/main/internal-comms/examples/general-comms.md +16 -0
  55. claude_mpm/skills/bundled/main/mcp-builder/SKILL.md +160 -0
  56. claude_mpm/skills/bundled/main/mcp-builder/reference/design_principles.md +412 -0
  57. claude_mpm/skills/bundled/main/mcp-builder/reference/evaluation.md +602 -0
  58. claude_mpm/skills/bundled/main/mcp-builder/reference/mcp_best_practices.md +915 -0
  59. claude_mpm/skills/bundled/main/mcp-builder/reference/node_mcp_server.md +916 -0
  60. claude_mpm/skills/bundled/main/mcp-builder/reference/python_mcp_server.md +752 -0
  61. claude_mpm/skills/bundled/main/mcp-builder/reference/workflow.md +1237 -0
  62. claude_mpm/skills/bundled/main/skill-creator/SKILL.md +189 -0
  63. claude_mpm/skills/bundled/main/skill-creator/references/best-practices.md +500 -0
  64. claude_mpm/skills/bundled/main/skill-creator/references/creation-workflow.md +464 -0
  65. claude_mpm/skills/bundled/main/skill-creator/references/examples.md +619 -0
  66. claude_mpm/skills/bundled/main/skill-creator/references/progressive-disclosure.md +437 -0
  67. claude_mpm/skills/bundled/main/skill-creator/references/skill-structure.md +231 -0
  68. claude_mpm/skills/bundled/php/espocrm-development/SKILL.md +170 -0
  69. claude_mpm/skills/bundled/php/espocrm-development/references/architecture.md +602 -0
  70. claude_mpm/skills/bundled/php/espocrm-development/references/common-tasks.md +821 -0
  71. claude_mpm/skills/bundled/php/espocrm-development/references/development-workflow.md +742 -0
  72. claude_mpm/skills/bundled/php/espocrm-development/references/frontend-customization.md +726 -0
  73. claude_mpm/skills/bundled/php/espocrm-development/references/hooks-and-services.md +764 -0
  74. claude_mpm/skills/bundled/php/espocrm-development/references/testing-debugging.md +831 -0
  75. claude_mpm/skills/bundled/pm/pm-delegation-patterns/SKILL.md +167 -0
  76. claude_mpm/skills/bundled/pm/pm-git-file-tracking/SKILL.md +113 -0
  77. claude_mpm/skills/bundled/pm/pm-pr-workflow/SKILL.md +124 -0
  78. claude_mpm/skills/bundled/pm/pm-ticketing-integration/SKILL.md +154 -0
  79. claude_mpm/skills/bundled/pm/pm-verification-protocols/SKILL.md +198 -0
  80. claude_mpm/skills/bundled/react/flexlayout-react.md +742 -0
  81. claude_mpm/skills/bundled/rust/desktop-applications/SKILL.md +226 -0
  82. claude_mpm/skills/bundled/rust/desktop-applications/references/architecture-patterns.md +901 -0
  83. claude_mpm/skills/bundled/rust/desktop-applications/references/native-gui-frameworks.md +901 -0
  84. claude_mpm/skills/bundled/rust/desktop-applications/references/platform-integration.md +775 -0
  85. claude_mpm/skills/bundled/rust/desktop-applications/references/state-management.md +937 -0
  86. claude_mpm/skills/bundled/rust/desktop-applications/references/tauri-framework.md +770 -0
  87. claude_mpm/skills/bundled/rust/desktop-applications/references/testing-deployment.md +961 -0
  88. claude_mpm/skills/bundled/tauri/tauri-async-patterns.md +495 -0
  89. claude_mpm/skills/bundled/tauri/tauri-build-deploy.md +599 -0
  90. claude_mpm/skills/bundled/tauri/tauri-command-patterns.md +535 -0
  91. claude_mpm/skills/bundled/tauri/tauri-error-handling.md +613 -0
  92. claude_mpm/skills/bundled/tauri/tauri-event-system.md +648 -0
  93. claude_mpm/skills/bundled/tauri/tauri-file-system.md +673 -0
  94. claude_mpm/skills/bundled/tauri/tauri-frontend-integration.md +767 -0
  95. claude_mpm/skills/bundled/tauri/tauri-performance.md +669 -0
  96. claude_mpm/skills/bundled/tauri/tauri-state-management.md +573 -0
  97. claude_mpm/skills/bundled/tauri/tauri-testing.md +384 -0
  98. claude_mpm/skills/bundled/tauri/tauri-window-management.md +628 -0
  99. claude_mpm/skills/bundled/testing/condition-based-waiting/SKILL.md +119 -0
  100. claude_mpm/skills/bundled/testing/condition-based-waiting/references/patterns-and-implementation.md +253 -0
  101. claude_mpm/skills/bundled/testing/test-driven-development/SKILL.md +145 -0
  102. claude_mpm/skills/bundled/testing/test-driven-development/references/anti-patterns.md +543 -0
  103. claude_mpm/skills/bundled/testing/test-driven-development/references/examples.md +741 -0
  104. claude_mpm/skills/bundled/testing/test-driven-development/references/integration.md +470 -0
  105. claude_mpm/skills/bundled/testing/test-driven-development/references/philosophy.md +458 -0
  106. claude_mpm/skills/bundled/testing/test-driven-development/references/workflow.md +639 -0
  107. claude_mpm/skills/bundled/testing/test-quality-inspector/SKILL.md +458 -0
  108. claude_mpm/skills/bundled/testing/test-quality-inspector/examples/example-inspection-report.md +411 -0
  109. claude_mpm/skills/bundled/testing/test-quality-inspector/references/assertion-quality.md +317 -0
  110. claude_mpm/skills/bundled/testing/test-quality-inspector/references/inspection-checklist.md +270 -0
  111. claude_mpm/skills/bundled/testing/test-quality-inspector/references/red-flags.md +436 -0
  112. claude_mpm/skills/bundled/testing/testing-anti-patterns/SKILL.md +140 -0
  113. claude_mpm/skills/bundled/testing/testing-anti-patterns/references/completeness-anti-patterns.md +572 -0
  114. claude_mpm/skills/bundled/testing/testing-anti-patterns/references/core-anti-patterns.md +411 -0
  115. claude_mpm/skills/bundled/testing/testing-anti-patterns/references/detection-guide.md +569 -0
  116. claude_mpm/skills/bundled/testing/testing-anti-patterns/references/tdd-connection.md +695 -0
  117. claude_mpm/skills/bundled/testing/webapp-testing/SKILL.md +184 -0
  118. claude_mpm/skills/bundled/testing/webapp-testing/decision-tree.md +459 -0
  119. claude_mpm/skills/bundled/testing/webapp-testing/playwright-patterns.md +479 -0
  120. claude_mpm/skills/bundled/testing/webapp-testing/reconnaissance-pattern.md +687 -0
  121. claude_mpm/skills/bundled/testing/webapp-testing/server-management.md +758 -0
  122. claude_mpm/skills/bundled/testing/webapp-testing/troubleshooting.md +868 -0
  123. {claude_mpm-5.4.59.dist-info → claude_mpm-5.4.64.dist-info}/METADATA +1 -1
  124. {claude_mpm-5.4.59.dist-info → claude_mpm-5.4.64.dist-info}/RECORD +128 -11
  125. {claude_mpm-5.4.59.dist-info → claude_mpm-5.4.64.dist-info}/WHEEL +0 -0
  126. {claude_mpm-5.4.59.dist-info → claude_mpm-5.4.64.dist-info}/entry_points.txt +0 -0
  127. {claude_mpm-5.4.59.dist-info → claude_mpm-5.4.64.dist-info}/licenses/LICENSE +0 -0
  128. {claude_mpm-5.4.59.dist-info → claude_mpm-5.4.64.dist-info}/licenses/LICENSE-FAQ.md +0 -0
  129. {claude_mpm-5.4.59.dist-info → claude_mpm-5.4.64.dist-info}/top_level.txt +0 -0
@@ -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.
@@ -0,0 +1,154 @@
1
+ ---
2
+ name: pm-ticketing-integration
3
+ version: "1.0.0"
4
+ description: Ticket-driven development protocol
5
+ when_to_use: ticket IDs mentioned, issue URLs, work tracking
6
+ category: pm-workflow
7
+ tags: [tickets, integration, workflow, pm-required]
8
+ ---
9
+
10
+ # Ticketing Integration Protocol
11
+
12
+ ## Detection Rules
13
+
14
+ PM detects ticket context from:
15
+ - Ticket ID patterns: `PROJ-123`, `#123`, `MPM-456`, `JJF-62`
16
+ - Ticket URLs: `github.com/.../issues/123`, `linear.app/.../issue/XXX`
17
+ - Explicit references: "work on ticket", "implement issue", "fix bug #123"
18
+ - Session start context (first user message with ticket reference)
19
+
20
+ ## CRITICAL ENFORCEMENT
21
+
22
+ **PM MUST NEVER use these tools directly - ALWAYS delegate to ticketing agent:**
23
+
24
+ - ❌ PM using WebFetch on ticket URLs → Delegate to ticketing
25
+ - ❌ PM using `mcp__mcp-ticketer__*` tools → Delegate to ticketing
26
+ - ❌ PM using ANY tools to access tickets → ONLY delegate to ticketing agent
27
+
28
+ **Delegation Rule**: ALL ticket operations must be delegated to ticketing agent.
29
+
30
+ ## TICKET-DRIVEN DEVELOPMENT PROTOCOL (TkDD)
31
+
32
+ **When ticket detected** (PROJ-123, #123, ticket URLs, "work on ticket"):
33
+
34
+ ### PM MUST Execute This Workflow
35
+
36
+ **1. Work Start** → Delegate to ticketing:
37
+ ```
38
+ Task:
39
+ agent: "ticketing"
40
+ task: "Start work on ticket {ticket_id}"
41
+ acceptance_criteria:
42
+ - Transition ticket to 'in_progress'
43
+ - Add comment: "Work started by Claude MPM"
44
+ - Confirm state change
45
+ ```
46
+
47
+ **2. Each Phase** → Comment with deliverables:
48
+ ```
49
+ Task:
50
+ agent: "ticketing"
51
+ task: "Update ticket {ticket_id} with progress"
52
+ context: |
53
+ Phase completed: {phase_name}
54
+ Deliverables: {deliverable_summary}
55
+ acceptance_criteria:
56
+ - Add comment with phase completion details
57
+ - Include links to commits/PRs if applicable
58
+ ```
59
+
60
+ **3. Work Complete** → Transition to done/closed:
61
+ ```
62
+ Task:
63
+ agent: "ticketing"
64
+ task: "Complete ticket {ticket_id}"
65
+ context: |
66
+ Work summary: {summary}
67
+ QA verification: {qa_evidence}
68
+ Files changed: {file_list}
69
+ acceptance_criteria:
70
+ - Transition to 'done' or 'closed'
71
+ - Add comprehensive completion comment
72
+ - Link PR if created
73
+ ```
74
+
75
+ **4. Blockers** → Comment blocker details:
76
+ ```
77
+ Task:
78
+ agent: "ticketing"
79
+ task: "Report blocker on ticket {ticket_id}"
80
+ context: |
81
+ Blocker: {blocker_description}
82
+ Impact: {impact}
83
+ Waiting on: {dependency}
84
+ acceptance_criteria:
85
+ - Update ticket state to 'blocked'
86
+ - Add blocker details in comment
87
+ - Notify relevant stakeholders if applicable
88
+ ```
89
+
90
+ ## Documentation Routing with Ticket Context
91
+
92
+ ### When Ticket Context Provided
93
+
94
+ When user starts session with ticket reference:
95
+ - PM delegates to ticketing agent to attach work products
96
+ - Research findings → Attached as comments to ticket
97
+ - Specifications → Attached as files or formatted comments
98
+ - Still create local docs as backup in `{docs_path}/`
99
+ - All agent delegations include ticket context
100
+
101
+ ### When NO Ticket Context
102
+
103
+ - All documentation goes to `{docs_path}/` (default: `docs/research/`)
104
+ - No ticket attachment operations
105
+ - Named with pattern: `{topic}-{date}.md`
106
+
107
+ ## Ticket Context Propagation
108
+
109
+ When ticket is detected, PM includes ticket context in all delegations:
110
+
111
+ ```
112
+ Task:
113
+ agent: "{any_agent}"
114
+ task: "{task_description}"
115
+ context: |
116
+ Ticket: {ticket_id}
117
+ Ticket summary: {summary_from_ticketing_agent}
118
+ {other_context}
119
+ acceptance_criteria:
120
+ {criteria}
121
+ ```
122
+
123
+ This ensures all agents know work is ticket-driven and can reference it.
124
+
125
+ ## Example TkDD Workflow
126
+
127
+ ```
128
+ User: "Work on ticket PROJ-123"
129
+
130
+ PM delegates to ticketing: Get ticket details
131
+
132
+ PM delegates to ticketing: Transition to 'in_progress', comment "Work started"
133
+
134
+ PM delegates to research: Investigate approach (with ticket context)
135
+
136
+ PM delegates to ticketing: Comment "Research phase complete: {findings}"
137
+
138
+ PM delegates to engineer: Implement feature (with ticket context)
139
+
140
+ PM delegates to ticketing: Comment "Implementation complete: {files}"
141
+
142
+ PM delegates to QA: Verify implementation
143
+
144
+ PM delegates to ticketing: Transition to 'done', comment "Work complete: {summary}"
145
+ ```
146
+
147
+ ## Violation Prevention
148
+
149
+ **Circuit Breaker**: PM using ticket tools directly triggers:
150
+ - Violation #1: ⚠️ WARNING - Must delegate immediately
151
+ - Violation #2: 🚨 ESCALATION - Session flagged for review
152
+ - Violation #3: ❌ FAILURE - Session non-compliant
153
+
154
+ This enforcement ensures PM maintains pure coordination role.