claude-mpm 5.4.105__py3-none-any.whl → 5.5.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. claude_mpm/cli/commands/hook_errors.py +60 -60
  2. claude_mpm/commands/mpm-config.md +8 -0
  3. claude_mpm/commands/mpm-doctor.md +8 -0
  4. claude_mpm/commands/mpm-help.md +8 -0
  5. claude_mpm/commands/mpm-init.md +8 -0
  6. claude_mpm/commands/mpm-monitor.md +8 -0
  7. claude_mpm/commands/mpm-organize.md +8 -0
  8. claude_mpm/commands/mpm-postmortem.md +8 -0
  9. claude_mpm/commands/mpm-session-resume.md +8 -0
  10. claude_mpm/commands/mpm-status.md +8 -0
  11. claude_mpm/commands/mpm-ticket-view.md +8 -0
  12. claude_mpm/commands/mpm-version.md +8 -0
  13. claude_mpm/commands/mpm.md +8 -0
  14. claude_mpm/hooks/claude_hooks/__pycache__/hook_handler.cpython-311.pyc +0 -0
  15. claude_mpm/hooks/claude_hooks/auto_pause_handler.py +0 -0
  16. claude_mpm/hooks/claude_hooks/event_handlers.py +0 -0
  17. claude_mpm/hooks/claude_hooks/hook_handler.py +10 -5
  18. claude_mpm/hooks/claude_hooks/hook_wrapper.sh +6 -11
  19. claude_mpm/hooks/claude_hooks/installer.py +69 -5
  20. claude_mpm/hooks/claude_hooks/response_tracking.py +0 -0
  21. claude_mpm/scripts/start_activity_logging.py +0 -0
  22. claude_mpm/services/pm_skills_deployer.py +84 -6
  23. claude_mpm/skills/bundled/pm/mpm/SKILL.md +38 -0
  24. claude_mpm/skills/bundled/pm/mpm-config/SKILL.md +29 -0
  25. claude_mpm/skills/bundled/pm/mpm-doctor/SKILL.md +53 -0
  26. claude_mpm/skills/bundled/pm/mpm-help/SKILL.md +35 -0
  27. claude_mpm/skills/bundled/pm/mpm-init/SKILL.md +125 -0
  28. claude_mpm/skills/bundled/pm/mpm-monitor/SKILL.md +32 -0
  29. claude_mpm/skills/bundled/pm/mpm-organize/SKILL.md +121 -0
  30. claude_mpm/skills/bundled/pm/mpm-postmortem/SKILL.md +22 -0
  31. claude_mpm/skills/bundled/pm/mpm-session-resume/SKILL.md +31 -0
  32. claude_mpm/skills/bundled/pm/mpm-status/SKILL.md +37 -0
  33. claude_mpm/skills/bundled/pm/mpm-ticket-view/SKILL.md +110 -0
  34. claude_mpm/skills/bundled/pm/mpm-version/SKILL.md +21 -0
  35. {claude_mpm-5.4.105.dist-info → claude_mpm-5.5.0.dist-info}/METADATA +3 -3
  36. {claude_mpm-5.4.105.dist-info → claude_mpm-5.5.0.dist-info}/RECORD +37 -25
  37. {claude_mpm-5.4.105.dist-info → claude_mpm-5.5.0.dist-info}/WHEEL +0 -0
  38. {claude_mpm-5.4.105.dist-info → claude_mpm-5.5.0.dist-info}/entry_points.txt +0 -0
  39. {claude_mpm-5.4.105.dist-info → claude_mpm-5.5.0.dist-info}/licenses/LICENSE +0 -0
  40. {claude_mpm-5.4.105.dist-info → claude_mpm-5.5.0.dist-info}/licenses/LICENSE-FAQ.md +0 -0
  41. {claude_mpm-5.4.105.dist-info → claude_mpm-5.5.0.dist-info}/top_level.txt +0 -0
@@ -50,9 +50,16 @@ from claude_mpm.core.mixins import LoggerMixin
50
50
  # Security constants
51
51
  MAX_YAML_SIZE = 10 * 1024 * 1024 # 10MB limit to prevent YAML bombs
52
52
 
53
- # Required PM skills that MUST be deployed for PM agent to function properly
54
- # These are framework management skills that PM uses for orchestration
53
+ # Tier 1: Required PM skills that MUST be deployed for PM agent to function properly
54
+ # These are core framework management skills for basic PM operation
55
55
  REQUIRED_PM_SKILLS = [
56
+ # Core command-based skills (new consolidated CLI)
57
+ "mpm",
58
+ "mpm-init",
59
+ "mpm-status",
60
+ "mpm-help",
61
+ "mpm-doctor",
62
+ # Legacy framework management skills
56
63
  "mpm-git-file-tracking",
57
64
  "mpm-pr-workflow",
58
65
  "mpm-ticketing-integration",
@@ -66,6 +73,23 @@ REQUIRED_PM_SKILLS = [
66
73
  "mpm-session-management",
67
74
  ]
68
75
 
76
+ # Tier 2: Recommended skills (deployed with standard install)
77
+ # These provide enhanced functionality for common workflows
78
+ RECOMMENDED_PM_SKILLS = [
79
+ "mpm-config",
80
+ "mpm-ticket-view",
81
+ "mpm-session-resume",
82
+ "mpm-postmortem",
83
+ ]
84
+
85
+ # Tier 3: Optional skills (deployed with full install)
86
+ # These provide additional features for advanced use cases
87
+ OPTIONAL_PM_SKILLS = [
88
+ "mpm-monitor",
89
+ "mpm-version",
90
+ "mpm-organize",
91
+ ]
92
+
69
93
 
70
94
  @dataclass
71
95
  class PMSkillInfo:
@@ -383,17 +407,45 @@ class PMSkillsDeployerService(LoggerMixin):
383
407
  self.logger.info(f"Discovered {len(skills)} bundled PM skills")
384
408
  return skills
385
409
 
410
+ def _get_skills_for_tier(self, tier: str) -> List[str]:
411
+ """Get list of skills to deploy based on tier.
412
+
413
+ Args:
414
+ tier: Deployment tier - "minimal", "standard", or "full"
415
+
416
+ Returns:
417
+ List of skill names to deploy
418
+
419
+ Raises:
420
+ ValueError: If tier is invalid
421
+ """
422
+ if tier == "minimal":
423
+ return REQUIRED_PM_SKILLS
424
+ if tier == "standard":
425
+ return REQUIRED_PM_SKILLS + RECOMMENDED_PM_SKILLS
426
+ if tier == "full":
427
+ return REQUIRED_PM_SKILLS + RECOMMENDED_PM_SKILLS + OPTIONAL_PM_SKILLS
428
+ raise ValueError(
429
+ f"Invalid tier '{tier}'. Must be 'minimal', 'standard', or 'full'"
430
+ )
431
+
386
432
  def deploy_pm_skills(
387
433
  self,
388
434
  project_dir: Path,
389
435
  force: bool = False,
436
+ tier: str = "standard",
390
437
  progress_callback: Optional[Callable[[str, int, int], None]] = None,
391
438
  ) -> DeploymentResult:
392
- """Deploy bundled PM skills to project directory.
439
+ """Deploy bundled PM skills to project directory with tier-based selection.
393
440
 
394
441
  Copies PM skills from bundled templates to .claude/skills/{name}/SKILL.md
395
442
  and updates registry with version and checksum information.
396
443
 
444
+ Deployment Tiers:
445
+ - "minimal": Only REQUIRED_PM_SKILLS (Tier 1 - core functionality)
446
+ - "standard": REQUIRED_PM_SKILLS + RECOMMENDED_PM_SKILLS (Tier 1+2 - common workflows)
447
+ - "full": All skills (Tier 1+2+3 - advanced features)
448
+
397
449
  Conflict Resolution:
398
450
  - mpm-* skills from src WIN (overwrite existing)
399
451
  - Non-mpm-* skills in .claude/skills/ are untouched
@@ -401,16 +453,42 @@ class PMSkillsDeployerService(LoggerMixin):
401
453
  Args:
402
454
  project_dir: Project root directory
403
455
  force: If True, redeploy even if skill already exists
456
+ tier: Deployment tier - "minimal", "standard" (default), or "full"
404
457
  progress_callback: Optional callback(skill_name, current, total) for progress
405
458
 
406
459
  Returns:
407
460
  DeploymentResult with deployment status and details
408
461
 
409
462
  Example:
410
- >>> result = deployer.deploy_pm_skills(Path("/project"), force=True)
463
+ >>> # Standard deployment (Tier 1 + Tier 2)
464
+ >>> result = deployer.deploy_pm_skills(Path("/project"))
411
465
  >>> print(f"Deployed: {len(result.deployed)} to .claude/skills/")
466
+ >>>
467
+ >>> # Minimal deployment (Tier 1 only)
468
+ >>> result = deployer.deploy_pm_skills(Path("/project"), tier="minimal")
469
+ >>>
470
+ >>> # Full deployment (all tiers)
471
+ >>> result = deployer.deploy_pm_skills(Path("/project"), tier="full")
412
472
  """
413
- skills = self._discover_bundled_pm_skills()
473
+ # Get tier-based skill filter
474
+ try:
475
+ tier_skills = self._get_skills_for_tier(tier)
476
+ except ValueError as e:
477
+ return DeploymentResult(
478
+ success=False,
479
+ deployed=[],
480
+ skipped=[],
481
+ errors=[{"skill": "all", "error": str(e)}],
482
+ message=str(e),
483
+ )
484
+
485
+ # Discover all bundled skills, then filter by tier
486
+ all_skills = self._discover_bundled_pm_skills()
487
+ skills = [s for s in all_skills if s["name"] in tier_skills]
488
+
489
+ self.logger.info(
490
+ f"Deploying {len(skills)}/{len(all_skills)} skills for tier '{tier}'"
491
+ )
414
492
  deployed = []
415
493
  skipped = []
416
494
  errors = []
@@ -526,7 +604,7 @@ class PMSkillsDeployerService(LoggerMixin):
526
604
 
527
605
  success = len(errors) == 0
528
606
  message = (
529
- f"Deployed {len(deployed)} skills, skipped {len(skipped)}, "
607
+ f"Deployed {len(deployed)} skills (tier: {tier}), skipped {len(skipped)}, "
530
608
  f"{len(errors)} errors"
531
609
  )
532
610
 
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: mpm
3
+ description: Access Claude MPM functionality and manage multi-agent orchestration
4
+ user-invocable: true
5
+ version: "1.0.0"
6
+ category: mpm-command
7
+ tags: [mpm-command, system, pm-required]
8
+ ---
9
+
10
+ # /mpm
11
+
12
+ Access Claude MPM functionality and manage your multi-agent orchestration.
13
+
14
+ ## Available MPM Commands
15
+
16
+ - `/mpm-agents` - Show available agents and versions
17
+ - `/mpm-doctor` - Run diagnostic checks
18
+ - `/mpm-help` - Show command help
19
+ - `/mpm-status` - Show MPM status
20
+ - `/mpm-ticket` - Ticketing workflow management (organize, proceed, status, update, project)
21
+ - `/mpm-config` - Manage configuration
22
+ - `/mpm-resume` - Create session resume files
23
+ - `/mpm-version` - Display version information for project, agents, and skills
24
+
25
+ ## What is Claude MPM?
26
+
27
+ Claude MPM extends Claude Code with:
28
+ - **Multi-agent orchestration** - Delegate work to specialized agents
29
+ - **Project-specific PM instructions** - Tailored guidance for your project
30
+ - **Agent memory management** - Context-aware agent interactions
31
+ - **WebSocket monitoring** - Real-time system monitoring
32
+ - **Hook system for automation** - Automate workflows and tasks
33
+
34
+ ## Quick Start
35
+
36
+ Use `/mpm-help` to explore commands or `/mpm-status` to check system health.
37
+
38
+ For more information, use `/mpm-help [command]` for specific command details.
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: mpm-config
3
+ description: Manage Claude MPM configuration
4
+ user-invocable: true
5
+ version: "1.0.0"
6
+ category: mpm-command
7
+ tags: [mpm-command, config, pm-recommended]
8
+ ---
9
+
10
+ # /mpm-config
11
+
12
+ Unified configuration management with auto-detection.
13
+
14
+ ## Usage
15
+ ```
16
+ /mpm-config [auto|view|validate|status] [options]
17
+ ```
18
+
19
+ **Modes:**
20
+ - `auto` (default): Auto-detect toolchain and configure agents/skills
21
+ - `view`: Display current configuration
22
+ - `validate`: Check configuration validity
23
+ - `status`: Show configuration health
24
+
25
+ **Key Options:**
26
+ - `--yes`: Auto-deploy without confirmation
27
+ - `--preview`: Show recommendations only
28
+
29
+ See docs/commands/config.md for full options.
@@ -0,0 +1,53 @@
1
+ ---
2
+ name: mpm-doctor
3
+ description: Run diagnostic checks on Claude MPM installation
4
+ user-invocable: true
5
+ version: "1.0.0"
6
+ category: mpm-command
7
+ tags: [mpm-command, system, pm-required, diagnostics, troubleshooting]
8
+ ---
9
+
10
+ # /mpm-doctor
11
+
12
+ Run comprehensive diagnostics on Claude MPM installation.
13
+
14
+ ## Usage
15
+
16
+ ```
17
+ /mpm-doctor [--verbose] [--fix]
18
+ ```
19
+
20
+ ## Options
21
+
22
+ - `--verbose`: Show detailed diagnostic output
23
+ - `--fix`: Attempt to automatically fix detected issues
24
+
25
+ ## What It Checks
26
+
27
+ - **Installation**: MPM package installation and version
28
+ - **Configuration**: Config file validity and required settings
29
+ - **WebSocket**: WebSocket server connectivity and health
30
+ - **Agents**: Agent availability and configuration
31
+ - **Memory**: Memory system health and accessibility
32
+ - **Hooks**: Hook system setup and functionality
33
+
34
+ ## When to Use
35
+
36
+ - After initial MPM installation (verify setup)
37
+ - When experiencing issues with commands or delegation
38
+ - Before reporting bugs (gather diagnostic information)
39
+ - After configuration changes (verify correctness)
40
+ - When WebSocket monitoring isn't working
41
+
42
+ ## Example Output
43
+
44
+ ```
45
+ ✅ MPM Installation: OK (v5.4.105)
46
+ ✅ Configuration: Valid
47
+ ⚠️ WebSocket Server: Not running (start with /mpm-monitor start)
48
+ ✅ Agents: 15 available
49
+ ✅ Memory System: Healthy
50
+ ✅ Hooks: Configured
51
+ ```
52
+
53
+ See docs/commands/doctor.md for details.
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: mpm-help
3
+ description: Display help for Claude MPM commands
4
+ user-invocable: true
5
+ version: "1.0.0"
6
+ category: mpm-command
7
+ tags: [mpm-command, system, pm-required, documentation]
8
+ ---
9
+
10
+ # /mpm-help
11
+
12
+ Show help for MPM commands. Delegates to PM agent.
13
+
14
+ ## Usage
15
+
16
+ ```
17
+ /mpm-help [command]
18
+ ```
19
+
20
+ ## Examples
21
+
22
+ ```
23
+ /mpm-help # Show all available commands
24
+ /mpm-help mpm-init # Show detailed help for mpm-init
25
+ /mpm-help mpm-ticket # Show ticketing workflow help
26
+ ```
27
+
28
+ ## What It Provides
29
+
30
+ - **Command listing**: All available MPM commands
31
+ - **Command details**: Syntax, options, and usage examples
32
+ - **Delegation patterns**: Which agent handles which command
33
+ - **Workflow guidance**: Common command sequences and workflows
34
+
35
+ See docs/commands/help.md for full command reference.
@@ -0,0 +1,125 @@
1
+ ---
2
+ name: mpm-init
3
+ description: Initialize or update project for Claude Code and MPM
4
+ user-invocable: true
5
+ version: "1.0.0"
6
+ category: mpm-command
7
+ tags: [mpm-command, system, pm-required, setup]
8
+ ---
9
+
10
+ # /mpm-init
11
+
12
+ Initialize or intelligently update project for Claude Code and Claude MPM.
13
+
14
+ ## Usage
15
+
16
+ ```
17
+ /mpm-init [update|context|resume|catchup] [options]
18
+ ```
19
+
20
+ ## Core Modes
21
+
22
+ ### Project Setup
23
+
24
+ ```
25
+ /mpm-init # Auto-detect: offer update or create
26
+ /mpm-init update # Quick update (30-day git activity)
27
+ /mpm-init --update # Full documentation refresh
28
+ /mpm-init --force # Force recreate from scratch
29
+ ```
30
+
31
+ **Delegates to Agentic Coder Optimizer agent** for:
32
+ - CLAUDE.md creation/update (with priority rankings 🔴🟡🟢⚪)
33
+ - AST analysis and code structure docs
34
+ - Single-path workflows (ONE way to do ANYTHING)
35
+ - Tool configuration, memory system, gitignore management
36
+
37
+ **Smart Update Mode:** Auto-detects existing CLAUDE.md and offers update vs recreate.
38
+
39
+ ### Context Analysis
40
+
41
+ ```
42
+ /mpm-init context [--days N] # Intelligent git history analysis (default: 7 days)
43
+ /mpm-init catchup # Quick commit history (last 25 commits, no analysis)
44
+ ```
45
+
46
+ **context:** Delegates to Research agent for deep analysis of:
47
+ - Active work streams (from commit patterns)
48
+ - Intent and motivation (from messages)
49
+ - Risks and blockers
50
+ - Recommended next actions
51
+
52
+ **catchup:** Direct CLI execution, instant output.
53
+
54
+ ### Resume from Logs
55
+
56
+ ```
57
+ /mpm-init resume [--list] [--session-id ID]
58
+ ```
59
+
60
+ Reads stop event logs from `.claude-mpm/resume-logs/` and `.claude-mpm/responses/` showing:
61
+ - What was being worked on
62
+ - Tasks completed, files modified
63
+ - Next steps, stop reason, token usage
64
+ - Git context (branch, status)
65
+
66
+ ## Key Options
67
+
68
+ **Configuration:**
69
+ - `--project-type TYPE`: web, api, cli, library
70
+ - `--framework NAME`: react, django, fastapi, etc.
71
+ - `--ast-analysis` / `--no-ast-analysis`: Enable/disable code analysis
72
+ - `--comprehensive` / `--minimal`: Full setup vs CLAUDE.md only
73
+
74
+ **Organization:**
75
+ - `--organize`: Organize misplaced files
76
+ - `--preserve-custom`: Keep custom sections (default)
77
+ - `--review`: Review without changes
78
+
79
+ ## What Gets Created
80
+
81
+ **New Projects:**
82
+ - ✅ CLAUDE.md (priority-ranked instructions)
83
+ - ✅ Single-path workflows (make build/test/deploy)
84
+ - ✅ Tool configs (linting, formatting, testing)
85
+ - ✅ Memory system (.claude-mpm/memories/)
86
+ - ✅ DEVELOPER.md, CODE_STRUCTURE.md (with AST)
87
+ - ✅ .gitignore updates (auto-adds .claude-mpm/)
88
+
89
+ **Updates:**
90
+ - ✅ Smart merging (preserves custom sections)
91
+ - ✅ Automatic archival (docs/_archive/)
92
+ - ✅ Change tracking
93
+
94
+ ## Examples
95
+
96
+ ```bash
97
+ # Quick start
98
+ /mpm-init # Auto-detect mode
99
+
100
+ # Quick update (lightweight)
101
+ /mpm-init update # 30-day activity report
102
+
103
+ # Resume work
104
+ /mpm-init context --days 14 # Analyze last 2 weeks
105
+ /mpm-init resume # Show latest session from logs
106
+ /mpm-init catchup # Quick commit history
107
+
108
+ # Full configuration
109
+ /mpm-init --project-type web --framework react --comprehensive
110
+ ```
111
+
112
+ ## Implementation Notes
113
+
114
+ **Delegation patterns:**
115
+ - **Project init/update:** → Agentic Coder Optimizer agent
116
+ - **context:** → PM → Research agent (structured analysis)
117
+ - **catchup:** → Direct CLI (git log wrapper)
118
+ - **resume:** → PM (reads logs, no delegation)
119
+
120
+ **Token budgets:**
121
+ - context analysis: 10-30s processing time
122
+ - resume display: ~10-20k tokens
123
+ - catchup: instant, minimal tokens
124
+
125
+ See docs/commands/init.md for comprehensive documentation.
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: mpm-monitor
3
+ description: Control monitoring server and dashboard
4
+ user-invocable: true
5
+ version: "1.0.0"
6
+ category: mpm-command
7
+ tags: [mpm-command, system, pm-optional]
8
+ ---
9
+
10
+ # /mpm-monitor
11
+
12
+ Manage Socket.IO monitoring server for real-time dashboard.
13
+
14
+ ## Usage
15
+ ```
16
+ /mpm-monitor [start|stop|restart|status|port] [options]
17
+ ```
18
+
19
+ **Subcommands:**
20
+ - `start`: Start server (auto-selects port 8765-8785)
21
+ - `stop`: Stop running server
22
+ - `status`: Show server status
23
+ - `port <PORT>`: Start on specific port
24
+
25
+ **Key Options:**
26
+ - `--port PORT`: Specific port
27
+ - `--force`: Force kill to reclaim port
28
+ - `--foreground`: Run in foreground (default: background)
29
+
30
+ Dashboard: http://localhost:8766
31
+
32
+ See docs/commands/monitor.md for details.
@@ -0,0 +1,121 @@
1
+ ---
2
+ name: mpm-organize
3
+ description: Organize project files with intelligent consolidation
4
+ user-invocable: true
5
+ version: "1.0.0"
6
+ category: mpm-command
7
+ tags: [mpm-command, system, pm-optional]
8
+ ---
9
+
10
+ # /mpm-organize
11
+
12
+ Organize ALL project files with intelligent detection, consolidation, and pruning.
13
+
14
+ ## Usage
15
+ ```
16
+ /mpm-organize [--dry-run] [--force] [options]
17
+ ```
18
+
19
+ **Delegates to Project Organizer agent** for comprehensive file organization.
20
+
21
+ ## Scope
22
+
23
+ **Default:** Organizes ALL project files
24
+ - Documentation (.md, .rst, .txt)
25
+ - Source code (proper module structure)
26
+ - Tests (organized test suites)
27
+ - Scripts (scripts/ directory)
28
+ - Configuration (appropriate locations)
29
+
30
+ **Protected files (never moved):** README.md, package.json, pyproject.toml, Makefile, .gitignore, etc.
31
+
32
+ ## Key Options
33
+
34
+ **Safety:**
35
+ - `--dry-run`: Preview without changes (recommended first run)
36
+ - `--force`: Proceed with uncommitted changes
37
+ - `--no-backup`: Skip backup (not recommended)
38
+
39
+ **Scope:**
40
+ - `--docs-only`: Only documentation (legacy behavior)
41
+ - `--code-only` / `--tests-only` / `--scripts-only`: Specific file types
42
+
43
+ **Operations:**
44
+ - `--consolidate-only`: Merge duplicates only
45
+ - `--prune-only`: Remove stale files only
46
+ - `--no-prune`: Keep all files (no deletions)
47
+
48
+ ## What It Does
49
+
50
+ 1. **Pattern Detection:** Scans for existing organization (PROJECT_ORGANIZATION.md, framework conventions)
51
+ 2. **Consolidation:** Merges duplicates (READMEs, guides, utilities)
52
+ 3. **Pruning:** Archives/removes stale content (>6 months old, empty files)
53
+ 4. **Categorization:** Sorts docs into research/user/developer
54
+ 5. **Safe Movement:** Uses `git mv` to preserve history
55
+ 6. **Backup:** Creates backup_project_YYYYMMDD_HHMMSS.tar.gz
56
+
57
+ ## Standard Structure
58
+
59
+ ```
60
+ docs/
61
+ ├── research/ # Spikes, analysis, notes
62
+ ├── user/ # Guides, tutorials, FAQs
63
+ └── developer/ # API docs, architecture, contributing
64
+
65
+ src/<package>/ # Proper module structure
66
+ tests/ # Mirrored source structure
67
+ scripts/ # Automation tools
68
+ config/ # Configuration (if needed)
69
+ ```
70
+
71
+ ## Examples
72
+
73
+ ```bash
74
+ # Preview changes (recommended first)
75
+ /mpm-organize --dry-run
76
+
77
+ # Organize everything with backup
78
+ /mpm-organize
79
+
80
+ # Documentation only
81
+ /mpm-organize --docs-only --dry-run
82
+
83
+ # Consolidate without pruning
84
+ /mpm-organize --consolidate-only --no-prune
85
+
86
+ # Save report
87
+ /mpm-organize --report /tmp/organize-report.md
88
+ ```
89
+
90
+ ## Expected Output
91
+
92
+ ```
93
+ 🔍 Analyzing project structure...
94
+ ✓ Detected PROJECT_ORGANIZATION.md - using project standards
95
+ ✓ Found 23 documentation files, 15 test files, 8 scripts
96
+
97
+ 📁 Proposed Changes:
98
+
99
+ Consolidate:
100
+ → Merge README_OLD.md + README_BACKUP.md → docs/user/README.md
101
+
102
+ Organize:
103
+ docs/research/ ← spike-oauth.md (from root)
104
+ tests/unit/ ← test_auth.py (from root)
105
+ scripts/ ← deploy.sh (from root)
106
+
107
+ Prune:
108
+ ✂ Remove TODO_2023.md (stale 18 months)
109
+
110
+ 📊 Summary: 8 to move, 2 to merge, 3 to prune
111
+ ```
112
+
113
+ ## Safety Features
114
+
115
+ - Full project backup before changes
116
+ - Git integration (preserves history)
117
+ - Import validation (ensures moves won't break code)
118
+ - Protected files never touched
119
+ - Conservative pruning (archive when unsure)
120
+
121
+ See docs/commands/organize.md for full documentation.
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: mpm-postmortem
3
+ description: Analyze session errors and suggest improvements
4
+ user-invocable: true
5
+ version: "1.0.0"
6
+ category: mpm-command
7
+ tags: [mpm-command, analysis, pm-recommended]
8
+ ---
9
+
10
+ # /mpm-postmortem
11
+
12
+ Analyze session errors and generate improvement suggestions.
13
+
14
+ ## Usage
15
+ ```
16
+ /mpm-postmortem [--auto-fix] [--create-prs] [--dry-run]
17
+ ```
18
+
19
+ Analyzes errors from: scripts, skills, agents, user code.
20
+ Generates: fixes, updates, PR recommendations, suggestions.
21
+
22
+ See docs/commands/postmortem.md for details.
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: mpm-session-resume
3
+ description: Load context from paused session
4
+ user-invocable: true
5
+ version: "1.0.0"
6
+ category: mpm-command
7
+ tags: [mpm-command, session, pm-recommended]
8
+ ---
9
+
10
+ # /mpm-session-resume
11
+
12
+ Load and display context from most recent paused session.
13
+
14
+ ## Usage
15
+ ```
16
+ /mpm-resume
17
+ ```
18
+
19
+ **What it shows:**
20
+ - Session summary and time elapsed
21
+ - Completed work and current tasks
22
+ - Git context and recent commits
23
+ - Next recommended actions
24
+
25
+ **Session location:** `.claude-mpm/sessions/session-*.md`
26
+
27
+ **Token usage:** ~20-40k tokens (10-20% of context budget)
28
+
29
+ **Note:** Reads existing sessions (created automatically at 70% context). Does NOT create new files.
30
+
31
+ See docs/features/session-auto-resume.md for details.
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: mpm-status
3
+ description: Display Claude MPM system status
4
+ user-invocable: true
5
+ version: "1.0.0"
6
+ category: mpm-command
7
+ tags: [mpm-command, system, pm-required, diagnostics]
8
+ ---
9
+
10
+ # /mpm-status
11
+
12
+ Show MPM system status. Delegates to PM agent.
13
+
14
+ ## Usage
15
+
16
+ ```
17
+ /mpm-status
18
+ ```
19
+
20
+ ## What It Shows
21
+
22
+ Displays comprehensive system information:
23
+ - **Version**: MPM version and installation details
24
+ - **Services**: WebSocket server status, monitoring dashboard
25
+ - **Agents**: Available agents and their versions
26
+ - **Memory**: Memory system statistics and health
27
+ - **Configuration**: Current MPM configuration settings
28
+ - **Project Info**: Project-specific context and setup
29
+
30
+ ## When to Use
31
+
32
+ - Check if MPM is properly installed and configured
33
+ - Verify agent availability before delegation
34
+ - Debug system issues or unexpected behavior
35
+ - Get quick overview of system health
36
+
37
+ See docs/commands/status.md for details.