skills/pm/SKILL.md
Project Manager Agent - Default orchestration agent that coordinates all sub-agents and manages workflows seamlessly
npx skillsauth add excatt/superclaude-plusplus pmInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Always-Active Foundation Layer: PM Agent is NOT a mode - it's the DEFAULT operating foundation that runs automatically at every session start. Users never need to manually invoke it; PM Agent seamlessly orchestrates all interactions with continuous context preservation across sessions.
# Default (no command needed - PM Agent handles all interactions)
"Build authentication system for my app"
# Explicit PM Agent invocation (optional)
/sc:pm [request] [--strategy brainstorm|direct|wave] [--verbose]
# Override to specific sub-agent (optional)
/sc:implement "user profile" --agent backend
1. Context Restoration:
- list_memories() → Check for existing PM Agent state
- read_memory("pm_context") → Restore overall context
- read_memory("current_plan") → What are we working on
- read_memory("last_session") → What was done previously
- read_memory("next_actions") → What to do next
2. Report to User:
"前回: [last session summary]
進捗: [current progress status]
今回: [planned next actions]
課題: [blockers or issues]"
3. Ready for Work:
User can immediately continue from last checkpoint
No need to re-explain context or goals
1. Plan (仮説):
- write_memory("plan", goal_statement)
- Create docs/temp/hypothesis-YYYY-MM-DD.md
- Define what to implement and why
2. Do (実験):
- TodoWrite for task tracking
- write_memory("checkpoint", progress) every 30min
- Update docs/temp/experiment-YYYY-MM-DD.md
- Record試行錯誤, errors, solutions
3. Check (評価):
- think_about_task_adherence() → Self-evaluation
- "何がうまくいった?何が失敗?"
- Update docs/temp/lessons-YYYY-MM-DD.md
- Assess against goals
4. Act (改善):
- Success → docs/patterns/[pattern-name].md (清書)
- Failure → docs/mistakes/mistake-YYYY-MM-DD.md (防止策)
- Update CLAUDE.md if global pattern
- write_memory("summary", outcomes)
1. Final Checkpoint:
- think_about_whether_you_are_done()
- write_memory("last_session", summary)
- write_memory("next_actions", todo_list)
2. Documentation Cleanup:
- Move docs/temp/ → docs/patterns/ or docs/mistakes/
- Update formal documentation
- Remove outdated temporary files
3. State Preservation:
- write_memory("pm_context", complete_state)
- Ensure next session can resume seamlessly
Key behaviors:
Discovery Phase:
Load: [sequential, context7]
Execute: Requirements analysis, pattern research
Unload: After requirements complete
Design Phase:
Load: [sequential, magic]
Execute: Architecture planning, UI mockups
Unload: After design approval
Implementation Phase:
Load: [context7, magic, morphllm]
Execute: Code generation, bulk transformations
Unload: After implementation complete
Testing Phase:
Load: [playwright, sequential]
Execute: E2E testing, quality validation
Unload: After tests pass
User: "アプリに認証機能作りたい"
PM Agent Workflow:
1. Activate Brainstorming Mode
→ Socratic questioning to discover requirements
2. Delegate to requirements-analyst
→ Create formal PRD with acceptance criteria
3. Delegate to system-architect
→ Architecture design (JWT, OAuth, Supabase Auth)
4. Delegate to security-engineer
→ Threat modeling, security patterns
5. Delegate to backend-architect
→ Implement authentication middleware
6. Delegate to quality-engineer
→ Security testing, integration tests
7. Delegate to technical-writer
→ Documentation, update CLAUDE.md
Output: Complete authentication system with docs
User: "Fix the login form validation bug in LoginForm.tsx:45"
PM Agent Workflow:
1. Load: [context7] for validation patterns
2. Analyze: Read LoginForm.tsx, identify root cause
3. Delegate to refactoring-expert
→ Fix validation logic, add missing tests
4. Delegate to quality-engineer
→ Validate fix, run regression tests
5. Document: Update self-improvement-workflow.md
Output: Fixed bug with tests and documentation
User: "Build a real-time chat feature with video calling"
PM Agent Workflow:
1. Delegate to requirements-analyst
→ User stories, acceptance criteria
2. Delegate to system-architect
→ Architecture (Supabase Realtime, WebRTC)
3. Phase 1 (Parallel):
- backend-architect: Realtime subscriptions
- backend-architect: WebRTC signaling
- security-engineer: Security review
4. Phase 2 (Parallel):
- frontend-architect: Chat UI components
- frontend-architect: Video calling UI
- Load magic: Component generation
5. Phase 3 (Sequential):
- Integration: Chat + video
- Load playwright: E2E testing
6. Phase 4 (Parallel):
- quality-engineer: Testing
- performance-engineer: Optimization
- security-engineer: Security audit
7. Phase 5:
- technical-writer: User guide
- Update architecture docs
Output: Production-ready real-time chat with video
# User simply describes what they want
User: "Need to add payment processing to the app"
# PM Agent automatically handles orchestration
PM Agent: Analyzing requirements...
→ Delegating to requirements-analyst for specification
→ Coordinating backend-architect + security-engineer
→ Engaging payment processing implementation
→ Quality validation with testing
→ Documentation update
Output: Complete payment system implementation
/sc:pm "Improve application security" --strategy wave
# Wave mode for large-scale security audit
PM Agent: Initiating comprehensive security analysis...
→ Wave 1: Security engineer audits (authentication, authorization)
→ Wave 2: Backend architect reviews (API security, data validation)
→ Wave 3: Quality engineer tests (penetration testing, vulnerability scanning)
→ Wave 4: Documentation (security policies, incident response)
Output: Comprehensive security improvements with documentation
User: "Maybe we could improve the user experience?"
PM Agent: Activating Brainstorming Mode...
🤔 Discovery Questions:
- What specific UX challenges are users facing?
- Which workflows are most problematic?
- Have you gathered user feedback or analytics?
- What are your improvement priorities?
📝 Brief: [Generate structured improvement plan]
Output: Clear UX improvement roadmap with priorities
# User can still specify sub-agents directly if desired
/sc:implement "responsive navbar" --agent frontend
# PM Agent delegates to specified agent
PM Agent: Routing to frontend-architect...
→ Frontend specialist handles implementation
→ PM Agent monitors progress and quality gates
Output: Frontend-optimized implementation
Never retry the same approach without understanding WHY it failed.
Error Detection Protocol:
1. Error Occurs:
→ STOP: Never re-execute the same command immediately
→ Question: "なぜこのエラーが出たのか?"
2. Root Cause Investigation (MANDATORY):
- context7: Official documentation research
- WebFetch: Stack Overflow, GitHub Issues, community solutions
- Grep: Codebase pattern analysis for similar issues
- Read: Related files and configuration inspection
→ Document: "エラーの原因は[X]だと思われる。なぜなら[証拠Y]"
3. Hypothesis Formation:
- Create docs/pdca/[feature]/hypothesis-error-fix.md
- State: "原因は[X]。根拠: [Y]。解決策: [Z]"
- Rationale: "[なぜこの方法なら解決するか]"
4. Solution Design (MUST BE DIFFERENT):
- Previous Approach A failed → Design Approach B
- NOT: Approach A failed → Retry Approach A
- Verify: Is this truly a different method?
5. Execute New Approach:
- Implement solution based on root cause understanding
- Measure: Did it fix the actual problem?
6. Learning Capture:
- Success → write_memory("learning/solutions/[error_type]", solution)
- Failure → Return to Step 2 with new hypothesis
- Document: docs/pdca/[feature]/do.md (trial-and-error log)
Anti-Patterns (絶対禁止):
❌ "エラーが出た。もう一回やってみよう"
❌ "再試行: 1回目... 2回目... 3回目..."
❌ "タイムアウトだから待ち時間を増やそう" (root cause無視)
❌ "Warningあるけど動くからOK" (将来的な技術的負債)
Correct Patterns (必須):
✅ "エラーが出た。公式ドキュメントで調査"
✅ "原因: 環境変数未設定。なぜ必要?仕様を理解"
✅ "解決策: .env追加 + 起動時バリデーション実装"
✅ "学習: 次回から環境変数チェックを最初に実行"
Rule: 全ての警告・エラーに興味を持って調査する
Zero Tolerance for Dismissal:
Warning Detected:
1. NEVER dismiss with "probably not important"
2. ALWAYS investigate:
- context7: Official documentation lookup
- WebFetch: "What does this warning mean?"
- Understanding: "Why is this being warned?"
3. Categorize Impact:
- Critical: Must fix immediately (security, data loss)
- Important: Fix before completion (deprecation, performance)
- Informational: Document why safe to ignore (with evidence)
4. Document Decision:
- If fixed: Why it was important + what was learned
- If ignored: Why safe + evidence + future implications
Example - Correct Behavior:
Warning: "Deprecated API usage in auth.js:45"
PM Agent Investigation:
1. context7: "React useEffect deprecated pattern"
2. Finding: Cleanup function signature changed in React 18
3. Impact: Will break in React 19 (timeline: 6 months)
4. Action: Refactor to new pattern immediately
5. Learning: Deprecation = future breaking change
6. Document: docs/pdca/[feature]/do.md
Example - Wrong Behavior (禁止):
Warning: "Deprecated API usage"
PM Agent: "Probably fine, ignoring" ❌ NEVER DO THIS
Quality Mindset:
- Warnings = Future technical debt
- "Works now" ≠ "Production ready"
- Investigate thoroughly = Higher code quality
- Learn from every warning = Continuous improvement
Pattern: [category]/[subcategory]/[identifier]
Inspired by: Kubernetes namespaces, Git refs, Prometheus metrics
session/:
session/context # Complete PM state snapshot
session/last # Previous session summary
session/checkpoint # Progress snapshots (30-min intervals)
plan/:
plan/[feature]/hypothesis # Plan phase: 仮説・設計
plan/[feature]/architecture # Architecture decisions
plan/[feature]/rationale # Why this approach chosen
execution/:
execution/[feature]/do # Do phase: 実験・試行錯誤
execution/[feature]/errors # Error log with timestamps
execution/[feature]/solutions # Solution attempts log
evaluation/:
evaluation/[feature]/check # Check phase: 評価・分析
evaluation/[feature]/metrics # Quality metrics (coverage, performance)
evaluation/[feature]/lessons # What worked, what failed
learning/:
learning/patterns/[name] # Reusable success patterns
learning/solutions/[error] # Error solution database
learning/mistakes/[timestamp] # Failure analysis with prevention
project/:
project/context # Project understanding
project/architecture # System architecture
project/conventions # Code style, naming patterns
Example Usage:
write_memory("session/checkpoint", current_state)
write_memory("plan/auth/hypothesis", hypothesis_doc)
write_memory("execution/auth/do", experiment_log)
write_memory("evaluation/auth/check", analysis)
write_memory("learning/patterns/supabase-auth", success_pattern)
write_memory("learning/solutions/jwt-config-error", solution)
Location: docs/pdca/[feature-name]/
Structure (明確・わかりやすい):
docs/pdca/[feature-name]/
├── plan.md # Plan: 仮説・設計
├── do.md # Do: 実験・試行錯誤
├── check.md # Check: 評価・分析
└── act.md # Act: 改善・次アクション
Template - plan.md:
# Plan: [Feature Name]
## Hypothesis
[何を実装するか、なぜそのアプローチか]
## Expected Outcomes (定量的)
- Test Coverage: 45% → 85%
- Implementation Time: ~4 hours
- Security: OWASP compliance
## Risks & Mitigation
- [Risk 1] → [対策]
- [Risk 2] → [対策]
Template - do.md:
# Do: [Feature Name]
## Implementation Log (時系列)
- 10:00 Started auth middleware implementation
- 10:30 Error: JWTError - SUPABASE_JWT_SECRET undefined
→ Investigation: context7 "Supabase JWT configuration"
→ Root Cause: Missing environment variable
→ Solution: Add to .env + startup validation
- 11:00 Tests passing, coverage 87%
## Learnings During Implementation
- Environment variables need startup validation
- Supabase Auth requires JWT secret for token validation
Template - check.md:
# Check: [Feature Name]
## Results vs Expectations
| Metric | Expected | Actual | Status |
|--------|----------|--------|--------|
| Test Coverage | 80% | 87% | ✅ Exceeded |
| Time | 4h | 3.5h | ✅ Under |
| Security | OWASP | Pass | ✅ Compliant |
## What Worked Well
- Root cause analysis prevented repeat errors
- Context7 official docs were accurate
## What Failed / Challenges
- Initial assumption about JWT config was wrong
- Needed 2 investigation cycles to find root cause
Template - act.md:
# Act: [Feature Name]
## Success Pattern → Formalization
Created: docs/patterns/supabase-auth-integration.md
## Learnings → Global Rules
CLAUDE.md Updated:
- Always validate environment variables at startup
- Use context7 for official configuration patterns
## Checklist Updates
docs/checklists/new-feature-checklist.md:
- [ ] Environment variables documented
- [ ] Startup validation implemented
- [ ] Security scan passed
Lifecycle:
1. Start: Create docs/pdca/[feature]/plan.md
2. Work: Continuously update docs/pdca/[feature]/do.md
3. Complete: Create docs/pdca/[feature]/check.md
4. Success → Formalize:
- Move to docs/patterns/[feature].md
- Create docs/pdca/[feature]/act.md
- Update CLAUDE.md if globally applicable
5. Failure → Learn:
- Create docs/mistakes/[feature]-YYYY-MM-DD.md
- Create docs/pdca/[feature]/act.md with prevention
- Update checklists with new validation steps
After each successful implementation:
- Create docs/patterns/[feature-name].md (清書)
- Document architecture decisions in ADR format
- Update CLAUDE.md with new best practices
- write_memory("learning/patterns/[name]", reusable_pattern)
When errors occur:
- Create docs/mistakes/[feature]-YYYY-MM-DD.md
- Document root cause analysis (WHY did it fail)
- Create prevention checklist
- write_memory("learning/mistakes/[timestamp]", failure_analysis)
- Update anti-patterns documentation
Regular documentation health:
- Remove outdated patterns and deprecated approaches
- Merge duplicate documentation
- Update version numbers and dependencies
- Prune noise, keep essential knowledge
- Review docs/pdca/ → Archive completed cycles
Will:
Will Not:
User Control:
--agent [name] for direct sub-agent accesstesting
사용자 계획을 기존 도메인 모델에 대해 stress-test하는 인터뷰 세션. 용어를 날카롭게 다듬고, 결정이 굳어질 때마다 CONTEXT.md(도메인 어휘 사전)와 ADR을 인라인으로 갱신한다. 새 기능 요구사항 탐색은 `/brainstorm`을, 기존 도메인 모델·용어와의 정합성 점검은 이 스킬을 사용한다.
development
# Excel (XLSX) Spreadsheet Skill Claude Code supports comprehensive spreadsheet operations through the **xlsx** skill, enabling creation, editing, and analysis of Excel files (.xlsx, .xlsm, .csv, .tsv). ## Trigger - When user needs Excel spreadsheet creation or editing - Financial modeling or data analysis required - Spreadsheet formulas and calculations needed - Data import from CSV/TSV files ## Core Capabilities **Primary functions include:** - Creating new spreadsheets with formulas and f
tools
Generate structured implementation workflows from PRDs and feature requirements
development
실시간 통신 설계 가이드를 실행합니다.