claude-mpm 4.15.6__py3-none-any.whl → 4.21.3__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 (209) hide show
  1. claude_mpm/VERSION +1 -1
  2. claude_mpm/agents/BASE_ENGINEER.md +286 -0
  3. claude_mpm/agents/BASE_PM.md +272 -23
  4. claude_mpm/agents/PM_INSTRUCTIONS.md +49 -0
  5. claude_mpm/agents/agent_loader.py +4 -4
  6. claude_mpm/agents/templates/engineer.json +5 -1
  7. claude_mpm/agents/templates/php-engineer.json +10 -4
  8. claude_mpm/agents/templates/python_engineer.json +8 -3
  9. claude_mpm/agents/templates/rust_engineer.json +12 -7
  10. claude_mpm/agents/templates/svelte-engineer.json +225 -0
  11. claude_mpm/cli/commands/__init__.py +2 -0
  12. claude_mpm/cli/commands/mpm_init/__init__.py +73 -0
  13. claude_mpm/cli/commands/mpm_init/core.py +525 -0
  14. claude_mpm/cli/commands/mpm_init/display.py +341 -0
  15. claude_mpm/cli/commands/mpm_init/git_activity.py +427 -0
  16. claude_mpm/cli/commands/mpm_init/modes.py +397 -0
  17. claude_mpm/cli/commands/mpm_init/prompts.py +442 -0
  18. claude_mpm/cli/commands/mpm_init_cli.py +396 -0
  19. claude_mpm/cli/commands/mpm_init_handler.py +67 -1
  20. claude_mpm/cli/commands/skills.py +488 -0
  21. claude_mpm/cli/executor.py +2 -0
  22. claude_mpm/cli/parsers/base_parser.py +7 -0
  23. claude_mpm/cli/parsers/mpm_init_parser.py +42 -0
  24. claude_mpm/cli/parsers/skills_parser.py +137 -0
  25. claude_mpm/cli/startup.py +57 -0
  26. claude_mpm/commands/mpm-auto-configure.md +52 -0
  27. claude_mpm/commands/mpm-help.md +6 -0
  28. claude_mpm/commands/mpm-init.md +112 -6
  29. claude_mpm/commands/mpm-resume.md +372 -0
  30. claude_mpm/commands/mpm-version.md +113 -0
  31. claude_mpm/commands/mpm.md +2 -0
  32. claude_mpm/config/agent_config.py +2 -2
  33. claude_mpm/constants.py +12 -0
  34. claude_mpm/core/config.py +42 -0
  35. claude_mpm/core/factories.py +1 -1
  36. claude_mpm/core/interfaces.py +56 -1
  37. claude_mpm/core/optimized_agent_loader.py +3 -3
  38. claude_mpm/hooks/__init__.py +8 -0
  39. claude_mpm/hooks/claude_hooks/response_tracking.py +35 -1
  40. claude_mpm/hooks/session_resume_hook.py +121 -0
  41. claude_mpm/models/resume_log.py +340 -0
  42. claude_mpm/services/agents/auto_config_manager.py +1 -1
  43. claude_mpm/services/agents/deployment/agent_configuration_manager.py +1 -1
  44. claude_mpm/services/agents/deployment/agent_record_service.py +1 -1
  45. claude_mpm/services/agents/deployment/agent_validator.py +17 -1
  46. claude_mpm/services/agents/deployment/async_agent_deployment.py +1 -1
  47. claude_mpm/services/agents/deployment/local_template_deployment.py +1 -1
  48. claude_mpm/services/agents/local_template_manager.py +1 -1
  49. claude_mpm/services/agents/recommender.py +47 -0
  50. claude_mpm/services/cli/resume_service.py +617 -0
  51. claude_mpm/services/cli/session_manager.py +87 -0
  52. claude_mpm/services/cli/session_pause_manager.py +504 -0
  53. claude_mpm/services/cli/session_resume_helper.py +372 -0
  54. claude_mpm/services/core/base.py +26 -11
  55. claude_mpm/services/core/interfaces.py +56 -1
  56. claude_mpm/services/core/models/agent_config.py +3 -0
  57. claude_mpm/services/core/models/process.py +4 -0
  58. claude_mpm/services/core/path_resolver.py +1 -1
  59. claude_mpm/services/diagnostics/models.py +21 -0
  60. claude_mpm/services/event_bus/relay.py +23 -7
  61. claude_mpm/services/infrastructure/resume_log_generator.py +439 -0
  62. claude_mpm/services/local_ops/__init__.py +2 -0
  63. claude_mpm/services/mcp_config_manager.py +7 -131
  64. claude_mpm/services/mcp_gateway/auto_configure.py +31 -25
  65. claude_mpm/services/mcp_gateway/core/process_pool.py +19 -10
  66. claude_mpm/services/mcp_gateway/tools/external_mcp_services.py +26 -21
  67. claude_mpm/services/memory/failure_tracker.py +19 -4
  68. claude_mpm/services/session_manager.py +205 -1
  69. claude_mpm/services/unified/deployment_strategies/local.py +1 -1
  70. claude_mpm/services/version_service.py +104 -1
  71. claude_mpm/skills/__init__.py +21 -0
  72. claude_mpm/skills/agent_skills_injector.py +324 -0
  73. claude_mpm/skills/bundled/LICENSE_ATTRIBUTIONS.md +79 -0
  74. claude_mpm/skills/bundled/api-documentation.md +393 -0
  75. claude_mpm/skills/bundled/async-testing.md +571 -0
  76. claude_mpm/skills/bundled/code-review.md +143 -0
  77. claude_mpm/skills/bundled/collaboration/brainstorming/SKILL.md +79 -0
  78. claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/SKILL.md +178 -0
  79. claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/references/agent-prompts.md +577 -0
  80. claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/references/coordination-patterns.md +467 -0
  81. claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/references/examples.md +537 -0
  82. claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/references/troubleshooting.md +730 -0
  83. claude_mpm/skills/bundled/collaboration/requesting-code-review/SKILL.md +112 -0
  84. claude_mpm/skills/bundled/collaboration/requesting-code-review/references/code-reviewer-template.md +146 -0
  85. claude_mpm/skills/bundled/collaboration/requesting-code-review/references/review-examples.md +412 -0
  86. claude_mpm/skills/bundled/collaboration/writing-plans/SKILL.md +81 -0
  87. claude_mpm/skills/bundled/collaboration/writing-plans/references/best-practices.md +362 -0
  88. claude_mpm/skills/bundled/collaboration/writing-plans/references/plan-structure-templates.md +312 -0
  89. claude_mpm/skills/bundled/database-migration.md +199 -0
  90. claude_mpm/skills/bundled/debugging/root-cause-tracing/SKILL.md +152 -0
  91. claude_mpm/skills/bundled/debugging/root-cause-tracing/references/advanced-techniques.md +668 -0
  92. claude_mpm/skills/bundled/debugging/root-cause-tracing/references/examples.md +587 -0
  93. claude_mpm/skills/bundled/debugging/root-cause-tracing/references/integration.md +438 -0
  94. claude_mpm/skills/bundled/debugging/root-cause-tracing/references/tracing-techniques.md +391 -0
  95. claude_mpm/skills/bundled/debugging/systematic-debugging/CREATION-LOG.md +119 -0
  96. claude_mpm/skills/bundled/debugging/systematic-debugging/SKILL.md +148 -0
  97. claude_mpm/skills/bundled/debugging/systematic-debugging/references/anti-patterns.md +483 -0
  98. claude_mpm/skills/bundled/debugging/systematic-debugging/references/examples.md +452 -0
  99. claude_mpm/skills/bundled/debugging/systematic-debugging/references/troubleshooting.md +449 -0
  100. claude_mpm/skills/bundled/debugging/systematic-debugging/references/workflow.md +411 -0
  101. claude_mpm/skills/bundled/debugging/systematic-debugging/test-academic.md +14 -0
  102. claude_mpm/skills/bundled/debugging/systematic-debugging/test-pressure-1.md +58 -0
  103. claude_mpm/skills/bundled/debugging/systematic-debugging/test-pressure-2.md +68 -0
  104. claude_mpm/skills/bundled/debugging/systematic-debugging/test-pressure-3.md +69 -0
  105. claude_mpm/skills/bundled/debugging/verification-before-completion/SKILL.md +131 -0
  106. claude_mpm/skills/bundled/debugging/verification-before-completion/references/gate-function.md +325 -0
  107. claude_mpm/skills/bundled/debugging/verification-before-completion/references/integration-and-workflows.md +490 -0
  108. claude_mpm/skills/bundled/debugging/verification-before-completion/references/red-flags-and-failures.md +425 -0
  109. claude_mpm/skills/bundled/debugging/verification-before-completion/references/verification-patterns.md +499 -0
  110. claude_mpm/skills/bundled/docker-containerization.md +194 -0
  111. claude_mpm/skills/bundled/express-local-dev.md +1429 -0
  112. claude_mpm/skills/bundled/fastapi-local-dev.md +1199 -0
  113. claude_mpm/skills/bundled/git-workflow.md +414 -0
  114. claude_mpm/skills/bundled/imagemagick.md +204 -0
  115. claude_mpm/skills/bundled/json-data-handling.md +223 -0
  116. claude_mpm/skills/bundled/main/artifacts-builder/SKILL.md +86 -0
  117. claude_mpm/skills/bundled/main/internal-comms/SKILL.md +43 -0
  118. claude_mpm/skills/bundled/main/internal-comms/examples/3p-updates.md +47 -0
  119. claude_mpm/skills/bundled/main/internal-comms/examples/company-newsletter.md +65 -0
  120. claude_mpm/skills/bundled/main/internal-comms/examples/faq-answers.md +30 -0
  121. claude_mpm/skills/bundled/main/internal-comms/examples/general-comms.md +16 -0
  122. claude_mpm/skills/bundled/main/mcp-builder/SKILL.md +160 -0
  123. claude_mpm/skills/bundled/main/mcp-builder/reference/design_principles.md +412 -0
  124. claude_mpm/skills/bundled/main/mcp-builder/reference/evaluation.md +602 -0
  125. claude_mpm/skills/bundled/main/mcp-builder/reference/mcp_best_practices.md +915 -0
  126. claude_mpm/skills/bundled/main/mcp-builder/reference/node_mcp_server.md +916 -0
  127. claude_mpm/skills/bundled/main/mcp-builder/reference/python_mcp_server.md +752 -0
  128. claude_mpm/skills/bundled/main/mcp-builder/reference/workflow.md +1237 -0
  129. claude_mpm/skills/bundled/main/mcp-builder/scripts/connections.py +157 -0
  130. claude_mpm/skills/bundled/main/mcp-builder/scripts/evaluation.py +425 -0
  131. claude_mpm/skills/bundled/main/skill-creator/SKILL.md +189 -0
  132. claude_mpm/skills/bundled/main/skill-creator/references/best-practices.md +500 -0
  133. claude_mpm/skills/bundled/main/skill-creator/references/creation-workflow.md +464 -0
  134. claude_mpm/skills/bundled/main/skill-creator/references/examples.md +619 -0
  135. claude_mpm/skills/bundled/main/skill-creator/references/progressive-disclosure.md +437 -0
  136. claude_mpm/skills/bundled/main/skill-creator/references/skill-structure.md +231 -0
  137. claude_mpm/skills/bundled/main/skill-creator/scripts/init_skill.py +303 -0
  138. claude_mpm/skills/bundled/main/skill-creator/scripts/package_skill.py +113 -0
  139. claude_mpm/skills/bundled/main/skill-creator/scripts/quick_validate.py +72 -0
  140. claude_mpm/skills/bundled/nextjs-local-dev.md +807 -0
  141. claude_mpm/skills/bundled/pdf.md +141 -0
  142. claude_mpm/skills/bundled/performance-profiling.md +567 -0
  143. claude_mpm/skills/bundled/php/espocrm-development/SKILL.md +170 -0
  144. claude_mpm/skills/bundled/php/espocrm-development/references/architecture.md +602 -0
  145. claude_mpm/skills/bundled/php/espocrm-development/references/common-tasks.md +821 -0
  146. claude_mpm/skills/bundled/php/espocrm-development/references/development-workflow.md +742 -0
  147. claude_mpm/skills/bundled/php/espocrm-development/references/frontend-customization.md +726 -0
  148. claude_mpm/skills/bundled/php/espocrm-development/references/hooks-and-services.md +764 -0
  149. claude_mpm/skills/bundled/php/espocrm-development/references/testing-debugging.md +831 -0
  150. claude_mpm/skills/bundled/refactoring-patterns.md +180 -0
  151. claude_mpm/skills/bundled/rust/desktop-applications/SKILL.md +226 -0
  152. claude_mpm/skills/bundled/rust/desktop-applications/references/architecture-patterns.md +901 -0
  153. claude_mpm/skills/bundled/rust/desktop-applications/references/native-gui-frameworks.md +901 -0
  154. claude_mpm/skills/bundled/rust/desktop-applications/references/platform-integration.md +775 -0
  155. claude_mpm/skills/bundled/rust/desktop-applications/references/state-management.md +937 -0
  156. claude_mpm/skills/bundled/rust/desktop-applications/references/tauri-framework.md +770 -0
  157. claude_mpm/skills/bundled/rust/desktop-applications/references/testing-deployment.md +961 -0
  158. claude_mpm/skills/bundled/security-scanning.md +327 -0
  159. claude_mpm/skills/bundled/systematic-debugging.md +473 -0
  160. claude_mpm/skills/bundled/test-driven-development.md +378 -0
  161. claude_mpm/skills/bundled/testing/condition-based-waiting/SKILL.md +119 -0
  162. claude_mpm/skills/bundled/testing/condition-based-waiting/references/patterns-and-implementation.md +253 -0
  163. claude_mpm/skills/bundled/testing/test-driven-development/SKILL.md +145 -0
  164. claude_mpm/skills/bundled/testing/test-driven-development/references/anti-patterns.md +543 -0
  165. claude_mpm/skills/bundled/testing/test-driven-development/references/examples.md +741 -0
  166. claude_mpm/skills/bundled/testing/test-driven-development/references/integration.md +470 -0
  167. claude_mpm/skills/bundled/testing/test-driven-development/references/philosophy.md +458 -0
  168. claude_mpm/skills/bundled/testing/test-driven-development/references/workflow.md +639 -0
  169. claude_mpm/skills/bundled/testing/testing-anti-patterns/SKILL.md +140 -0
  170. claude_mpm/skills/bundled/testing/testing-anti-patterns/references/completeness-anti-patterns.md +572 -0
  171. claude_mpm/skills/bundled/testing/testing-anti-patterns/references/core-anti-patterns.md +411 -0
  172. claude_mpm/skills/bundled/testing/testing-anti-patterns/references/detection-guide.md +569 -0
  173. claude_mpm/skills/bundled/testing/testing-anti-patterns/references/tdd-connection.md +695 -0
  174. claude_mpm/skills/bundled/testing/webapp-testing/SKILL.md +184 -0
  175. claude_mpm/skills/bundled/testing/webapp-testing/decision-tree.md +459 -0
  176. claude_mpm/skills/bundled/testing/webapp-testing/examples/console_logging.py +35 -0
  177. claude_mpm/skills/bundled/testing/webapp-testing/examples/element_discovery.py +44 -0
  178. claude_mpm/skills/bundled/testing/webapp-testing/examples/static_html_automation.py +34 -0
  179. claude_mpm/skills/bundled/testing/webapp-testing/playwright-patterns.md +479 -0
  180. claude_mpm/skills/bundled/testing/webapp-testing/reconnaissance-pattern.md +687 -0
  181. claude_mpm/skills/bundled/testing/webapp-testing/scripts/with_server.py +129 -0
  182. claude_mpm/skills/bundled/testing/webapp-testing/server-management.md +758 -0
  183. claude_mpm/skills/bundled/testing/webapp-testing/troubleshooting.md +868 -0
  184. claude_mpm/skills/bundled/vite-local-dev.md +1061 -0
  185. claude_mpm/skills/bundled/web-performance-optimization.md +2305 -0
  186. claude_mpm/skills/bundled/xlsx.md +157 -0
  187. claude_mpm/skills/registry.py +97 -9
  188. claude_mpm/skills/skills_registry.py +348 -0
  189. claude_mpm/skills/skills_service.py +739 -0
  190. claude_mpm/tools/code_tree_analyzer/__init__.py +45 -0
  191. claude_mpm/tools/code_tree_analyzer/analysis.py +299 -0
  192. claude_mpm/tools/code_tree_analyzer/cache.py +131 -0
  193. claude_mpm/tools/code_tree_analyzer/core.py +380 -0
  194. claude_mpm/tools/code_tree_analyzer/discovery.py +403 -0
  195. claude_mpm/tools/code_tree_analyzer/events.py +168 -0
  196. claude_mpm/tools/code_tree_analyzer/gitignore.py +308 -0
  197. claude_mpm/tools/code_tree_analyzer/models.py +39 -0
  198. claude_mpm/tools/code_tree_analyzer/multilang_analyzer.py +224 -0
  199. claude_mpm/tools/code_tree_analyzer/python_analyzer.py +284 -0
  200. claude_mpm/utils/agent_dependency_loader.py +2 -2
  201. {claude_mpm-4.15.6.dist-info → claude_mpm-4.21.3.dist-info}/METADATA +211 -33
  202. {claude_mpm-4.15.6.dist-info → claude_mpm-4.21.3.dist-info}/RECORD +206 -64
  203. claude_mpm/agents/INSTRUCTIONS_OLD_DEPRECATED.md +0 -602
  204. claude_mpm/cli/commands/mpm_init.py +0 -2008
  205. claude_mpm/tools/code_tree_analyzer.py +0 -1825
  206. {claude_mpm-4.15.6.dist-info → claude_mpm-4.21.3.dist-info}/WHEEL +0 -0
  207. {claude_mpm-4.15.6.dist-info → claude_mpm-4.21.3.dist-info}/entry_points.txt +0 -0
  208. {claude_mpm-4.15.6.dist-info → claude_mpm-4.21.3.dist-info}/licenses/LICENSE +0 -0
  209. {claude_mpm-4.15.6.dist-info → claude_mpm-4.21.3.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,79 @@
1
+ ---
2
+ name: Brainstorming Ideas Into Designs
3
+ description: Interactive idea refinement using Socratic method to develop fully-formed designs
4
+ when_to_use: when partner describes any feature or project idea, before writing code or implementation plans
5
+ version: 2.2.0
6
+ progressive_disclosure:
7
+ level: 1
8
+ references: []
9
+ note: Already optimal at 75 lines - intentionally compact, no references needed
10
+ ---
11
+
12
+ # Brainstorming Ideas Into Designs
13
+
14
+ ## Overview
15
+
16
+ Transform rough ideas into fully-formed designs through structured questioning and alternative exploration.
17
+
18
+ **Core principle:** Ask questions to understand, explore alternatives, present design incrementally for validation.
19
+
20
+ **Announce at start:** "I'm using the Brainstorming skill to refine your idea into a design."
21
+
22
+ ## The Process
23
+
24
+ ### Phase 1: Understanding
25
+ - Check current project state in working directory
26
+ - Ask ONE question at a time to refine the idea
27
+ - Prefer multiple choice when possible
28
+ - Gather: Purpose, constraints, success criteria
29
+
30
+ ### Phase 2: Exploration
31
+ - Propose 2-3 different approaches
32
+ - For each: Core architecture, trade-offs, complexity assessment
33
+ - Ask your human partner which approach resonates
34
+
35
+ ### Phase 3: Design Presentation
36
+ - Present in 200-300 word sections
37
+ - Cover: Architecture, components, data flow, error handling, testing
38
+ - Ask after each section: "Does this look right so far?"
39
+
40
+ ### Phase 4: Worktree Setup (for implementation)
41
+ When design is approved and implementation will follow:
42
+ - Announce: "I'm using the Using Git Worktrees skill to set up an isolated workspace."
43
+ - Switch to skills/collaboration/using-git-worktrees
44
+ - Follow that skill's process for directory selection, safety verification, and setup
45
+ - Return here when worktree ready
46
+
47
+ ### Phase 5: Planning Handoff
48
+ Ask: "Ready to create the implementation plan?"
49
+
50
+ When your human partner confirms (any affirmative response):
51
+ - Announce: "I'm using the Writing Plans skill to create the implementation plan."
52
+ - Switch to skills/collaboration/writing-plans skill
53
+ - Create detailed plan in the worktree
54
+
55
+ ## When to Revisit Earlier Phases
56
+
57
+ **You can and should go backward when:**
58
+ - Partner reveals new constraint during Phase 2 or 3 → Return to Phase 1 to understand it
59
+ - Validation shows fundamental gap in requirements → Return to Phase 1
60
+ - Partner questions approach during Phase 3 → Return to Phase 2 to explore alternatives
61
+ - Something doesn't make sense → Go back and clarify
62
+
63
+ **Don't force forward linearly** when going backward would give better results.
64
+
65
+ ## Related Skills
66
+
67
+ **During exploration:**
68
+ - When approaches have genuine trade-offs: skills/architecture/preserving-productive-tensions
69
+
70
+ **Before proposing changes to existing code:**
71
+ - Understand why it exists: skills/research/tracing-knowledge-lineages
72
+
73
+ ## Remember
74
+ - One question per message during Phase 1
75
+ - Apply YAGNI ruthlessly
76
+ - Explore 2-3 alternatives before settling
77
+ - Present incrementally, validate as you go
78
+ - Go backward when needed - flexibility > rigid progression
79
+ - Announce skill usage at start
@@ -0,0 +1,178 @@
1
+ ---
2
+ name: Dispatching Parallel Agents
3
+ description: Use multiple Claude agents to investigate and fix independent problems concurrently
4
+ when_to_use: when facing 3+ independent failures that can be investigated without shared state or dependencies
5
+ version: 2.0.0
6
+ progressive_disclosure:
7
+ entry_point:
8
+ summary: "Dispatch one agent per independent problem domain to solve multiple unrelated failures concurrently"
9
+ when_to_use: "When you have 3+ independent failures in different test files/subsystems with no shared state or dependencies"
10
+ quick_start: "1. Identify independent domains 2. Create focused agent tasks 3. Dispatch in parallel 4. Review summaries 5. Verify no conflicts and integrate"
11
+ references:
12
+ - coordination-patterns.md
13
+ - agent-prompts.md
14
+ - examples.md
15
+ - troubleshooting.md
16
+ ---
17
+
18
+ # Dispatching Parallel Agents
19
+
20
+ ## Overview
21
+
22
+ When you have multiple unrelated failures (different test files, different subsystems, different bugs), investigating them sequentially wastes time. Each investigation is independent and can happen in parallel.
23
+
24
+ **Core principle:** Dispatch one agent per independent problem domain. Let them work concurrently.
25
+
26
+ ## When to Use This Skill
27
+
28
+ Activate this skill when you're facing:
29
+ - **3+ test files failing** with different root causes
30
+ - **Multiple subsystems broken** independently
31
+ - **Each problem is self-contained** - can be understood without context from others
32
+ - **No shared state** between investigations
33
+ - **Clear domain boundaries** - fixing one won't affect others
34
+
35
+ **Don't use when:**
36
+ - Failures are related (fix one might fix others)
37
+ - Need to understand full system state first
38
+ - Agents would interfere with each other (editing same files)
39
+ - Exploratory debugging (don't know what's broken yet)
40
+
41
+ ## The Iron Law
42
+
43
+ ```
44
+ One agent, one problem domain, one clear outcome.
45
+ Never overlap scopes. Never share state. Always integrate consciously.
46
+ ```
47
+
48
+ ## Core Principles
49
+
50
+ ### Independence is Key
51
+ Problems must be truly independent - no shared files, no related root causes, no dependencies between fixes.
52
+
53
+ ### Focus Over Breadth
54
+ Each agent gets narrow scope: one test file, one subsystem, one clear goal. Broad tasks lead to confusion.
55
+
56
+ ### Clear Output Required
57
+ Every agent must return a summary: what was found, what was fixed, what changed. No silent fixes.
58
+
59
+ ### Conscious Integration
60
+ Don't blindly merge agent work. Review summaries, check conflicts, run full suite, verify compatibility.
61
+
62
+ ## Quick Start
63
+
64
+ ### 1. Identify Independent Domains
65
+
66
+ Group failures by what's broken:
67
+ ```
68
+ File A tests: Tool approval flow
69
+ File B tests: Batch completion behavior
70
+ File C tests: Abort functionality
71
+ ```
72
+
73
+ Each domain is independent - fixing tool approval doesn't affect abort tests.
74
+
75
+ ### 2. Create Focused Agent Tasks
76
+
77
+ Each agent gets:
78
+ - **Specific scope:** One test file or subsystem
79
+ - **Clear goal:** Make these tests pass
80
+ - **Constraints:** Don't change other code
81
+ - **Expected output:** Summary of what you found and fixed
82
+
83
+ **→** [agent-prompts.md](references/agent-prompts.md) for prompt templates and examples
84
+
85
+ ### 3. Dispatch in Parallel
86
+
87
+ ```typescript
88
+ // In Claude Code / AI environment
89
+ Task("Fix agent-tool-abort.test.ts failures")
90
+ Task("Fix batch-completion-behavior.test.ts failures")
91
+ Task("Fix tool-approval-race-conditions.test.ts failures")
92
+ // All three run concurrently
93
+ ```
94
+
95
+ **→** [coordination-patterns.md](references/coordination-patterns.md) for dispatch strategies
96
+
97
+ ### 4. Review and Integrate
98
+
99
+ When agents return:
100
+ - Read each summary - understand what changed
101
+ - Verify fixes don't conflict - check for same file edits
102
+ - Run full test suite - ensure compatibility
103
+ - Spot check changes - agents can make systematic errors
104
+
105
+ **→** [troubleshooting.md](references/troubleshooting.md) for conflict resolution
106
+
107
+ ## Decision Tree
108
+
109
+ ```
110
+ Multiple failures?
111
+ └→ Are they independent?
112
+ ├→ NO (related) → Single agent investigates all
113
+ └→ YES → Can they work in parallel?
114
+ ├→ NO (shared state) → Sequential agents
115
+ └→ YES → Parallel dispatch ✓
116
+ ```
117
+
118
+ ## Key Benefits
119
+
120
+ 1. **Parallelization** - Multiple investigations happen simultaneously
121
+ 2. **Focus** - Each agent has narrow scope, less context to track
122
+ 3. **Independence** - Agents don't interfere with each other
123
+ 4. **Speed** - N problems solved in time of 1
124
+
125
+ ## Navigation
126
+
127
+ ### Pattern Reference
128
+ - **[Coordination Patterns](references/coordination-patterns.md)** - Dispatch strategies, domain identification, integration workflows
129
+
130
+ ### Agent Management
131
+ - **[Agent Prompts](references/agent-prompts.md)** - Prompt structure, templates, common mistakes, constraints
132
+
133
+ ### Learning Resources
134
+ - **[Examples](references/examples.md)** - Real-world scenarios, case studies, time savings analysis
135
+
136
+ ### Problem Solving
137
+ - **[Troubleshooting](references/troubleshooting.md)** - Conflict resolution, verification strategies, common pitfalls
138
+
139
+ ### Related Skills
140
+ - **[pm-workflow](../pm-workflow/)** - PM coordination and task management
141
+ - **[test-driven-development](../../testing/test-driven-development/)** - TDD patterns that benefit from parallel fixing
142
+ - **[verification-before-completion](../../productivity/verification-before-completion/)** - Integration verification
143
+
144
+ ## Key Reminders
145
+
146
+ 1. **Independence is mandatory** - Related failures need single-agent investigation
147
+ 2. **Focus beats breadth** - Narrow scope per agent prevents confusion
148
+ 3. **Always verify integration** - Don't blindly merge agent work
149
+ 4. **Clear outputs required** - Every agent returns summary of changes
150
+ 5. **Parallelization has overhead** - Only worth it for 3+ independent problems
151
+
152
+ ## Red Flags - STOP
153
+
154
+ **STOP immediately if:**
155
+ - Agents are editing the same files (scope overlap)
156
+ - Fixes from one agent break another's work (hidden dependencies)
157
+ - You can't clearly separate problem domains (not independent)
158
+ - Agents return no summary (can't verify changes)
159
+ - Integration requires major refactoring (conflicts)
160
+
161
+ **When in doubt:** Start with one agent, understand the landscape, then dispatch if truly independent.
162
+
163
+ ## Integration with Other Skills
164
+
165
+ **Prerequisite:** Basic understanding of problem domains and test structure
166
+ **Complementary:** [pm-workflow](../pm-workflow/) for coordinating multiple agents
167
+ **Domain-specific:** Testing skills for understanding test failures
168
+
169
+ ## Real-World Impact
170
+
171
+ From debugging session (2025-10-03):
172
+ - **6 failures** across 3 test files
173
+ - **3 agents** dispatched in parallel
174
+ - **All investigations** completed concurrently
175
+ - **Zero conflicts** between agent changes
176
+ - **Time saved:** 3 problems solved in parallel vs sequentially
177
+
178
+ **→** [examples.md](references/examples.md) for detailed case study