Skip to content

Commit ec0bcc0

Browse files
authored
Merge pull request #22 from mojwang/feat/product-manager-evolution
feat(mcp): intelligent API key validation with caching and cleanup
2 parents 14ba01e + 044afe9 commit ec0bcc0

16 files changed

Lines changed: 1807 additions & 75 deletions

.claude-agents.json

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,143 @@
197197
"default": "Debug and fix MCP server issues",
198198
"setup": "Configure and test MCP server installation"
199199
}
200+
},
201+
202+
"product_manager": {
203+
"name": "Product Manager",
204+
"enabled": true,
205+
"priority": "high",
206+
"triggers": [
207+
"on_prd_provided",
208+
"on_complex_project",
209+
"on_task_management_request",
210+
"on_multi_step_feature"
211+
],
212+
"configuration": {
213+
"discovery_methods": {
214+
"customer_interviews": "simulated_personas",
215+
"surveys": "ai_generated_responses",
216+
"usability_testing": "heuristic_evaluation",
217+
"market_analysis": "web_research",
218+
"competitive_analysis": "automated_comparison"
219+
},
220+
"risk_assessment": {
221+
"value_risk": true,
222+
"usability_risk": true,
223+
"feasibility_risk": true,
224+
"viability_risk": true
225+
},
226+
"frameworks": [
227+
"opportunity_assessment",
228+
"jobs_to_be_done",
229+
"design_thinking",
230+
"lean_startup",
231+
"dual_track_agile"
232+
],
233+
"auto_parse_prd": true,
234+
"analyze_complexity": true,
235+
"research_enabled": "auto",
236+
"break_down_tasks": true,
237+
"track_progress": true
238+
},
239+
"prompts": {
240+
"default": "Parse PRD and create comprehensive task breakdown with implementation plan",
241+
"discovery": "Conduct product discovery: identify customer problems, assess four risks, define success metrics",
242+
"opportunity": "Create opportunity assessment: problem, target user, market size, success criteria",
243+
"validation": "Validate assumptions through customer interviews and rapid prototyping",
244+
"prioritization": "Prioritize using ICE (Impact, Confidence, Ease) or RICE framework",
245+
"roadmap": "Create outcome-based roadmap focused on customer value, not features",
246+
"research": "Research technical requirements and create detailed implementation tasks",
247+
"complexity": "Analyze task complexity and suggest optimal implementation order"
248+
}
249+
},
250+
251+
"customer_persona": {
252+
"name": "Customer Persona Simulator",
253+
"enabled": true,
254+
"priority": "normal",
255+
"triggers": [
256+
"on_customer_research",
257+
"on_interview_simulation",
258+
"on_feedback_needed"
259+
],
260+
"configuration": {
261+
"persona_types": [
262+
"early_adopter",
263+
"power_user",
264+
"casual_user",
265+
"skeptical_user",
266+
"enterprise_buyer"
267+
],
268+
"response_styles": {
269+
"interview": "conversational",
270+
"survey": "structured",
271+
"feedback": "detailed"
272+
}
273+
},
274+
"prompts": {
275+
"default": "Simulate diverse customer perspectives for product validation",
276+
"interview": "Respond to interview questions as different user personas",
277+
"feedback": "Provide detailed product feedback from various user perspectives"
278+
}
279+
},
280+
281+
"market_research": {
282+
"name": "Market Research Analyst",
283+
"enabled": true,
284+
"priority": "normal",
285+
"triggers": [
286+
"on_market_analysis",
287+
"on_competitive_research",
288+
"on_sizing_request"
289+
],
290+
"configuration": {
291+
"research_methods": [
292+
"competitive_analysis",
293+
"market_sizing",
294+
"trend_analysis",
295+
"technology_adoption"
296+
],
297+
"data_sources": {
298+
"primary": "web_research",
299+
"secondary": "industry_reports",
300+
"tertiary": "expert_synthesis"
301+
}
302+
},
303+
"prompts": {
304+
"default": "Analyze market trends and competitive landscape",
305+
"competitive": "Identify and analyze key competitors and their features",
306+
"sizing": "Estimate market size and growth potential"
307+
}
308+
},
309+
310+
"ux_research": {
311+
"name": "UX Research Specialist",
312+
"enabled": true,
313+
"priority": "normal",
314+
"triggers": [
315+
"on_usability_testing",
316+
"on_heuristic_evaluation",
317+
"on_accessibility_check"
318+
],
319+
"configuration": {
320+
"evaluation_methods": [
321+
"nielsen_heuristics",
322+
"cognitive_walkthrough",
323+
"accessibility_wcag",
324+
"information_architecture"
325+
],
326+
"testing_approaches": {
327+
"heuristic": "expert_review",
328+
"usability": "simulated_testing",
329+
"accessibility": "automated_checks"
330+
}
331+
},
332+
"prompts": {
333+
"default": "Evaluate usability and user experience",
334+
"heuristic": "Perform heuristic evaluation using Nielsen's principles",
335+
"accessibility": "Check accessibility compliance and inclusive design"
336+
}
200337
}
201338
},
202339

@@ -212,6 +349,18 @@
212349
]
213350
},
214351

352+
"complex_project": {
353+
"description": "Complex project implementation with PRD",
354+
"sequence": [
355+
"product_manager",
356+
"development",
357+
"shell",
358+
"security",
359+
"quality",
360+
"documentation"
361+
]
362+
},
363+
215364
"security_audit": {
216365
"description": "Comprehensive security audit",
217366
"parallel": [
@@ -251,6 +400,29 @@
251400
"configuration",
252401
"quality"
253402
]
403+
},
404+
405+
"product_discovery": {
406+
"description": "Product discovery and validation process",
407+
"sequence": [
408+
"product_manager",
409+
"customer_persona",
410+
"market_research",
411+
"ux_research",
412+
"product_manager"
413+
]
414+
},
415+
416+
"customer_validation": {
417+
"description": "Customer validation through simulated interviews",
418+
"parallel": [
419+
"customer_persona",
420+
"market_research"
421+
],
422+
"then": [
423+
"product_manager",
424+
"ux_research"
425+
]
254426
}
255427
},
256428

CLAUDE.md

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,29 @@ Automated macOS dev environment setup for Apple Silicon.
1616
3. Backup before system changes
1717
4. Use modular zsh config in `.config/zsh/`
1818

19-
## Git Workflow
20-
- **Worktrees**: Siblings with `.purpose` suffix (e.g., `macbook-dev-setup.review`)
19+
## Git Workflow (ENFORCED)
20+
- **Feature branches required**: ALL changes, no exceptions
21+
- **Worktrees mandatory**: Complex features (3+ files or multi-step)
22+
- **Auto-commit allowed**: Only on feature branches
23+
- **PR creation**: Manual after feature complete
24+
- **Branch protection**: Main branch is read-only for Claude
2125
- **Quick switch**: `gw main`, `gw review`, `gw hotfix`, or `gwcd` for interactive
2226
- **Stacked PRs**: `gt` (Graphite CLI) for dependent changes
23-
- **Commits**: `gc*` aliases for conventional format
2427
- See `docs/GIT-WORKFLOW.md` for details
2528

29+
## Git Rules (STRICT)
30+
- **NEVER commit to main**: Always check branch first with `git branch --show-current`
31+
- **Branch naming**: feat/, fix/, docs/, chore/, refactor/, test/
32+
- **Auto-commit complete work**: Only on feature branches
33+
- **Descriptive messages**: Capture full scope of changes
34+
- **Smart commit timing**:
35+
- ✅ Commit: Complete features, verified fixes, finished refactors
36+
- ❌ Wait: Sub-tasks, failing tests, incomplete changes
37+
- **Conventional format**: Use `type(scope): description`
38+
- **Examples**:
39+
- `feat(agents): evolve TaskMaster into Product Manager with discovery workflows`
40+
- `fix(git): enforce feature branch workflow for all commits`
41+
2642
## Key Directories
2743
- `/lib`: Core libraries (common.sh, signal-safety.sh)
2844
- `/scripts`: Component installers and utilities
@@ -47,8 +63,28 @@ Automated macOS dev environment setup for Apple Silicon.
4763
- [MCP Servers](docs/MCP_SERVERS.md) - Claude integrations
4864
- [Claude Agents](docs/CLAUDE_AGENTS.md) - Sub-agent architecture
4965

66+
## MCP Server Priority
67+
1. **Context7**: Library docs, code examples, API references (check first)
68+
2. **Taskmaster**: Direct task management commands via MCP
69+
3. **Exa**: General web research (fallback for non-code queries)
70+
71+
Note: For product discovery and PRD workflows, use "Product Manager" as a sub-agent via the Task tool
72+
73+
## Taskmaster/Product Manager Configuration
74+
- **As "taskmaster" MCP Server**: Direct task commands (`task-master list`, `task-master next`)
75+
- **As "Product Manager" Sub-Agent**: Product discovery, PRD parsing, customer validation via Task tool
76+
- **Research**: Enabled if PERPLEXITY_API_KEY set, gracefully disabled otherwise
77+
- To enable research: Add `export PERPLEXITY_API_KEY="your-key"` to `~/.config/zsh/51-api-keys.zsh`
78+
- **Naming Convention**: "taskmaster" for MCP operations, "Product Manager" for agent workflows
79+
5080
## Agent Workflows for This Project
5181

82+
### Complex Project Implementation:
83+
1. **Product Manager Agent** → Discovery, validate, prioritize
84+
2. **Development Agent** → Implement features
85+
3. **Quality Agent** → Test implementation
86+
4. **Documentation Agent** → Update docs
87+
5288
### Shell Script Development:
5389
1. **Create/Modify** → Shell Script Agent (validation)
5490
2. **Security Check** → Security Agent (scan for vulnerabilities)

docs/CLAUDE_AGENTS.md

Lines changed: 101 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,94 @@ Claude Code's Task tool enables launching specialized agents for complex, multi-
6565
"Implement a new installer for Docker Desktop with proper error handling"
6666
```
6767

68+
## Product Discovery Agents
69+
70+
### Product Manager Agent
71+
**Purpose**: Comprehensive product management and discovery
72+
**Triggers**:
73+
- PRD provided
74+
- Feature requests
75+
- Product discovery needed
76+
- Validation required
77+
78+
**Responsibilities**:
79+
- Product discovery and validation
80+
- Risk assessment (Value, Usability, Feasibility, Viability)
81+
- Customer problem identification
82+
- Opportunity assessment
83+
- Prioritization (ICE/RICE frameworks)
84+
- Outcome-based roadmapping
85+
- PRD parsing and task breakdown
86+
87+
**Techniques**:
88+
- Jobs-to-be-done framework
89+
- Design thinking
90+
- Lean startup methodology
91+
- Dual-track agile
92+
- Rapid prototyping
93+
94+
**Example Activation**:
95+
```
96+
"Conduct product discovery for the new payment feature"
97+
```
98+
99+
### Customer Persona Agent
100+
**Purpose**: Simulate diverse customer perspectives
101+
**Triggers**:
102+
- Customer research needed
103+
- Interview simulation
104+
- Feedback collection
105+
106+
**Responsibilities**:
107+
- Generate realistic user personas
108+
- Respond to interviews in character
109+
- Provide product feedback
110+
- Express pain points and needs
111+
- Simulate different user types
112+
113+
**Example Activation**:
114+
```
115+
"Interview 5 different personas about the checkout experience"
116+
```
117+
118+
### Market Research Agent
119+
**Purpose**: Market analysis and competitive intelligence
120+
**Triggers**:
121+
- Market analysis requests
122+
- Competitive research
123+
- Market sizing needed
124+
125+
**Responsibilities**:
126+
- Competitive analysis
127+
- Market sizing estimates
128+
- Trend analysis
129+
- Technology adoption tracking
130+
- Industry insights
131+
132+
**Example Activation**:
133+
```
134+
"Analyze the competitive landscape for developer tools"
135+
```
136+
137+
### UX Research Agent
138+
**Purpose**: Usability and user experience evaluation
139+
**Triggers**:
140+
- Usability testing
141+
- Heuristic evaluation
142+
- Accessibility checks
143+
144+
**Responsibilities**:
145+
- Nielsen's heuristic evaluation
146+
- Cognitive walkthroughs
147+
- Accessibility assessment (WCAG)
148+
- Information architecture review
149+
- Usability testing simulation
150+
151+
**Example Activation**:
152+
```
153+
"Perform heuristic evaluation of the onboarding flow"
154+
```
155+
68156
## Specialized Agents
69157

70158
### 4. Shell Script Specialist Agent
@@ -382,7 +470,19 @@ Common issues and solutions:
382470

383471
## Examples
384472

385-
### Example 1: Full System Update
473+
### Example 1: Product Discovery Sprint
474+
```
475+
User: "I want to build a CLI tool for managing git worktrees"
476+
477+
Agents activated:
478+
1. Product Manager - Define opportunity and risks
479+
2. Customer Persona - Interview developer personas
480+
3. Market Research - Analyze existing solutions
481+
4. UX Research - Evaluate usability patterns
482+
5. Product Manager - Synthesize and prioritize
483+
```
484+
485+
### Example 2: Full System Update
386486
```
387487
User: "Update all dependencies and ensure everything still works"
388488

0 commit comments

Comments
 (0)