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.
- claude_mpm/VERSION +1 -1
- claude_mpm/agents/CLAUDE_MPM_TEACHER_OUTPUT_STYLE.md +5 -0
- claude_mpm/cli/startup.py +14 -9
- claude_mpm/scripts/start_activity_logging.py +0 -0
- claude_mpm/services/agents/deployment/agent_template_builder.py +8 -0
- claude_mpm/skills/bundled/collaboration/brainstorming/SKILL.md +79 -0
- claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/SKILL.md +178 -0
- claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/references/agent-prompts.md +577 -0
- claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/references/coordination-patterns.md +467 -0
- claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/references/examples.md +537 -0
- claude_mpm/skills/bundled/collaboration/dispatching-parallel-agents/references/troubleshooting.md +730 -0
- claude_mpm/skills/bundled/collaboration/git-worktrees.md +317 -0
- claude_mpm/skills/bundled/collaboration/requesting-code-review/SKILL.md +112 -0
- claude_mpm/skills/bundled/collaboration/requesting-code-review/references/code-reviewer-template.md +146 -0
- claude_mpm/skills/bundled/collaboration/requesting-code-review/references/review-examples.md +412 -0
- claude_mpm/skills/bundled/collaboration/stacked-prs.md +251 -0
- claude_mpm/skills/bundled/collaboration/writing-plans/SKILL.md +81 -0
- claude_mpm/skills/bundled/collaboration/writing-plans/references/best-practices.md +362 -0
- claude_mpm/skills/bundled/collaboration/writing-plans/references/plan-structure-templates.md +312 -0
- claude_mpm/skills/bundled/debugging/root-cause-tracing/SKILL.md +152 -0
- claude_mpm/skills/bundled/debugging/root-cause-tracing/references/advanced-techniques.md +668 -0
- claude_mpm/skills/bundled/debugging/root-cause-tracing/references/examples.md +587 -0
- claude_mpm/skills/bundled/debugging/root-cause-tracing/references/integration.md +438 -0
- claude_mpm/skills/bundled/debugging/root-cause-tracing/references/tracing-techniques.md +391 -0
- claude_mpm/skills/bundled/debugging/systematic-debugging/CREATION-LOG.md +119 -0
- claude_mpm/skills/bundled/debugging/systematic-debugging/SKILL.md +148 -0
- claude_mpm/skills/bundled/debugging/systematic-debugging/references/anti-patterns.md +483 -0
- claude_mpm/skills/bundled/debugging/systematic-debugging/references/examples.md +452 -0
- claude_mpm/skills/bundled/debugging/systematic-debugging/references/troubleshooting.md +449 -0
- claude_mpm/skills/bundled/debugging/systematic-debugging/references/workflow.md +411 -0
- claude_mpm/skills/bundled/debugging/systematic-debugging/test-academic.md +14 -0
- claude_mpm/skills/bundled/debugging/systematic-debugging/test-pressure-1.md +58 -0
- claude_mpm/skills/bundled/debugging/systematic-debugging/test-pressure-2.md +68 -0
- claude_mpm/skills/bundled/debugging/systematic-debugging/test-pressure-3.md +69 -0
- claude_mpm/skills/bundled/debugging/verification-before-completion/SKILL.md +131 -0
- claude_mpm/skills/bundled/debugging/verification-before-completion/references/gate-function.md +325 -0
- claude_mpm/skills/bundled/debugging/verification-before-completion/references/integration-and-workflows.md +490 -0
- claude_mpm/skills/bundled/debugging/verification-before-completion/references/red-flags-and-failures.md +425 -0
- claude_mpm/skills/bundled/debugging/verification-before-completion/references/verification-patterns.md +499 -0
- claude_mpm/skills/bundled/infrastructure/env-manager/INTEGRATION.md +611 -0
- claude_mpm/skills/bundled/infrastructure/env-manager/README.md +596 -0
- claude_mpm/skills/bundled/infrastructure/env-manager/SKILL.md +260 -0
- claude_mpm/skills/bundled/infrastructure/env-manager/examples/nextjs-env-structure.md +315 -0
- claude_mpm/skills/bundled/infrastructure/env-manager/references/frameworks.md +436 -0
- claude_mpm/skills/bundled/infrastructure/env-manager/references/security.md +433 -0
- claude_mpm/skills/bundled/infrastructure/env-manager/references/synchronization.md +452 -0
- claude_mpm/skills/bundled/infrastructure/env-manager/references/troubleshooting.md +404 -0
- claude_mpm/skills/bundled/infrastructure/env-manager/references/validation.md +420 -0
- claude_mpm/skills/bundled/main/artifacts-builder/SKILL.md +86 -0
- claude_mpm/skills/bundled/main/internal-comms/SKILL.md +43 -0
- claude_mpm/skills/bundled/main/internal-comms/examples/3p-updates.md +47 -0
- claude_mpm/skills/bundled/main/internal-comms/examples/company-newsletter.md +65 -0
- claude_mpm/skills/bundled/main/internal-comms/examples/faq-answers.md +30 -0
- claude_mpm/skills/bundled/main/internal-comms/examples/general-comms.md +16 -0
- claude_mpm/skills/bundled/main/mcp-builder/SKILL.md +160 -0
- claude_mpm/skills/bundled/main/mcp-builder/reference/design_principles.md +412 -0
- claude_mpm/skills/bundled/main/mcp-builder/reference/evaluation.md +602 -0
- claude_mpm/skills/bundled/main/mcp-builder/reference/mcp_best_practices.md +915 -0
- claude_mpm/skills/bundled/main/mcp-builder/reference/node_mcp_server.md +916 -0
- claude_mpm/skills/bundled/main/mcp-builder/reference/python_mcp_server.md +752 -0
- claude_mpm/skills/bundled/main/mcp-builder/reference/workflow.md +1237 -0
- claude_mpm/skills/bundled/main/skill-creator/SKILL.md +189 -0
- claude_mpm/skills/bundled/main/skill-creator/references/best-practices.md +500 -0
- claude_mpm/skills/bundled/main/skill-creator/references/creation-workflow.md +464 -0
- claude_mpm/skills/bundled/main/skill-creator/references/examples.md +619 -0
- claude_mpm/skills/bundled/main/skill-creator/references/progressive-disclosure.md +437 -0
- claude_mpm/skills/bundled/main/skill-creator/references/skill-structure.md +231 -0
- claude_mpm/skills/bundled/php/espocrm-development/SKILL.md +170 -0
- claude_mpm/skills/bundled/php/espocrm-development/references/architecture.md +602 -0
- claude_mpm/skills/bundled/php/espocrm-development/references/common-tasks.md +821 -0
- claude_mpm/skills/bundled/php/espocrm-development/references/development-workflow.md +742 -0
- claude_mpm/skills/bundled/php/espocrm-development/references/frontend-customization.md +726 -0
- claude_mpm/skills/bundled/php/espocrm-development/references/hooks-and-services.md +764 -0
- claude_mpm/skills/bundled/php/espocrm-development/references/testing-debugging.md +831 -0
- claude_mpm/skills/bundled/pm/pm-delegation-patterns/SKILL.md +167 -0
- claude_mpm/skills/bundled/pm/pm-git-file-tracking/SKILL.md +113 -0
- claude_mpm/skills/bundled/pm/pm-pr-workflow/SKILL.md +124 -0
- claude_mpm/skills/bundled/pm/pm-ticketing-integration/SKILL.md +154 -0
- claude_mpm/skills/bundled/pm/pm-verification-protocols/SKILL.md +198 -0
- claude_mpm/skills/bundled/react/flexlayout-react.md +742 -0
- claude_mpm/skills/bundled/rust/desktop-applications/SKILL.md +226 -0
- claude_mpm/skills/bundled/rust/desktop-applications/references/architecture-patterns.md +901 -0
- claude_mpm/skills/bundled/rust/desktop-applications/references/native-gui-frameworks.md +901 -0
- claude_mpm/skills/bundled/rust/desktop-applications/references/platform-integration.md +775 -0
- claude_mpm/skills/bundled/rust/desktop-applications/references/state-management.md +937 -0
- claude_mpm/skills/bundled/rust/desktop-applications/references/tauri-framework.md +770 -0
- claude_mpm/skills/bundled/rust/desktop-applications/references/testing-deployment.md +961 -0
- claude_mpm/skills/bundled/tauri/tauri-async-patterns.md +495 -0
- claude_mpm/skills/bundled/tauri/tauri-build-deploy.md +599 -0
- claude_mpm/skills/bundled/tauri/tauri-command-patterns.md +535 -0
- claude_mpm/skills/bundled/tauri/tauri-error-handling.md +613 -0
- claude_mpm/skills/bundled/tauri/tauri-event-system.md +648 -0
- claude_mpm/skills/bundled/tauri/tauri-file-system.md +673 -0
- claude_mpm/skills/bundled/tauri/tauri-frontend-integration.md +767 -0
- claude_mpm/skills/bundled/tauri/tauri-performance.md +669 -0
- claude_mpm/skills/bundled/tauri/tauri-state-management.md +573 -0
- claude_mpm/skills/bundled/tauri/tauri-testing.md +384 -0
- claude_mpm/skills/bundled/tauri/tauri-window-management.md +628 -0
- claude_mpm/skills/bundled/testing/condition-based-waiting/SKILL.md +119 -0
- claude_mpm/skills/bundled/testing/condition-based-waiting/references/patterns-and-implementation.md +253 -0
- claude_mpm/skills/bundled/testing/test-driven-development/SKILL.md +145 -0
- claude_mpm/skills/bundled/testing/test-driven-development/references/anti-patterns.md +543 -0
- claude_mpm/skills/bundled/testing/test-driven-development/references/examples.md +741 -0
- claude_mpm/skills/bundled/testing/test-driven-development/references/integration.md +470 -0
- claude_mpm/skills/bundled/testing/test-driven-development/references/philosophy.md +458 -0
- claude_mpm/skills/bundled/testing/test-driven-development/references/workflow.md +639 -0
- claude_mpm/skills/bundled/testing/test-quality-inspector/SKILL.md +458 -0
- claude_mpm/skills/bundled/testing/test-quality-inspector/examples/example-inspection-report.md +411 -0
- claude_mpm/skills/bundled/testing/test-quality-inspector/references/assertion-quality.md +317 -0
- claude_mpm/skills/bundled/testing/test-quality-inspector/references/inspection-checklist.md +270 -0
- claude_mpm/skills/bundled/testing/test-quality-inspector/references/red-flags.md +436 -0
- claude_mpm/skills/bundled/testing/testing-anti-patterns/SKILL.md +140 -0
- claude_mpm/skills/bundled/testing/testing-anti-patterns/references/completeness-anti-patterns.md +572 -0
- claude_mpm/skills/bundled/testing/testing-anti-patterns/references/core-anti-patterns.md +411 -0
- claude_mpm/skills/bundled/testing/testing-anti-patterns/references/detection-guide.md +569 -0
- claude_mpm/skills/bundled/testing/testing-anti-patterns/references/tdd-connection.md +695 -0
- claude_mpm/skills/bundled/testing/webapp-testing/SKILL.md +184 -0
- claude_mpm/skills/bundled/testing/webapp-testing/decision-tree.md +459 -0
- claude_mpm/skills/bundled/testing/webapp-testing/playwright-patterns.md +479 -0
- claude_mpm/skills/bundled/testing/webapp-testing/reconnaissance-pattern.md +687 -0
- claude_mpm/skills/bundled/testing/webapp-testing/server-management.md +758 -0
- claude_mpm/skills/bundled/testing/webapp-testing/troubleshooting.md +868 -0
- {claude_mpm-5.4.59.dist-info → claude_mpm-5.4.64.dist-info}/METADATA +1 -1
- {claude_mpm-5.4.59.dist-info → claude_mpm-5.4.64.dist-info}/RECORD +128 -11
- {claude_mpm-5.4.59.dist-info → claude_mpm-5.4.64.dist-info}/WHEEL +0 -0
- {claude_mpm-5.4.59.dist-info → claude_mpm-5.4.64.dist-info}/entry_points.txt +0 -0
- {claude_mpm-5.4.59.dist-info → claude_mpm-5.4.64.dist-info}/licenses/LICENSE +0 -0
- {claude_mpm-5.4.59.dist-info → claude_mpm-5.4.64.dist-info}/licenses/LICENSE-FAQ.md +0 -0
- {claude_mpm-5.4.59.dist-info → claude_mpm-5.4.64.dist-info}/top_level.txt +0 -0
claude_mpm/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.4.
|
|
1
|
+
5.4.64
|
claude_mpm/cli/startup.py
CHANGED
|
@@ -325,24 +325,29 @@ def deploy_output_style_on_startup():
|
|
|
325
325
|
professional_source = package_dir / "CLAUDE_MPM_OUTPUT_STYLE.md"
|
|
326
326
|
teacher_source = package_dir / "CLAUDE_MPM_TEACHER_OUTPUT_STYLE.md"
|
|
327
327
|
|
|
328
|
-
# Target directory (
|
|
329
|
-
|
|
330
|
-
|
|
328
|
+
# Target directory (USER-LEVEL for global availability)
|
|
329
|
+
# Claude Code reads output styles from ~/.claude/settings/output-styles/
|
|
330
|
+
user_home = Path.home()
|
|
331
|
+
output_styles_dir = user_home / ".claude" / "settings" / "output-styles"
|
|
331
332
|
professional_target = output_styles_dir / "claude-mpm-style.md"
|
|
332
333
|
teacher_target = output_styles_dir / "claude-mpm-teacher.md"
|
|
333
334
|
|
|
334
335
|
# Create directory if it doesn't exist
|
|
335
336
|
output_styles_dir.mkdir(parents=True, exist_ok=True)
|
|
336
337
|
|
|
337
|
-
# Check if already deployed (
|
|
338
|
-
|
|
338
|
+
# Check if already deployed AND up-to-date (compare sizes to detect changes)
|
|
339
|
+
professional_up_to_date = (
|
|
339
340
|
professional_target.exists()
|
|
340
|
-
and
|
|
341
|
-
and professional_target.stat().st_size
|
|
342
|
-
|
|
341
|
+
and professional_source.exists()
|
|
342
|
+
and professional_target.stat().st_size == professional_source.stat().st_size
|
|
343
|
+
)
|
|
344
|
+
teacher_up_to_date = (
|
|
345
|
+
teacher_target.exists()
|
|
346
|
+
and teacher_source.exists()
|
|
347
|
+
and teacher_target.stat().st_size == teacher_source.stat().st_size
|
|
343
348
|
)
|
|
344
349
|
|
|
345
|
-
if
|
|
350
|
+
if professional_up_to_date and teacher_up_to_date:
|
|
346
351
|
# Show feedback that output styles are ready
|
|
347
352
|
print("✓ Output styles ready", flush=True)
|
|
348
353
|
return
|
|
File without changes
|
|
@@ -586,6 +586,14 @@ class AgentTemplateBuilder:
|
|
|
586
586
|
tags_str = ",".join(metadata["tags"])
|
|
587
587
|
frontmatter_lines.append(f"tags: {tags_str}")
|
|
588
588
|
|
|
589
|
+
# CRITICAL: Preserve skills field from template for selective skill deployment
|
|
590
|
+
# Skills are used by startup.py to determine which skills to deploy
|
|
591
|
+
skills = template_data.get("skills", [])
|
|
592
|
+
if skills and isinstance(skills, list):
|
|
593
|
+
frontmatter_lines.append("skills:")
|
|
594
|
+
for skill in skills:
|
|
595
|
+
frontmatter_lines.append(f"- {skill}")
|
|
596
|
+
|
|
589
597
|
frontmatter_lines.extend(
|
|
590
598
|
[
|
|
591
599
|
"---",
|
|
@@ -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
|