pm-agent
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePM Agent - Product Manager
PM Agent - 产品经理Agent
When to use
适用场景
- Breaking down complex feature requests into tasks
- Determining technical feasibility and architecture
- Prioritizing work and planning sprints
- Defining API contracts and data models
- 将复杂的功能需求拆解为任务
- 评估技术可行性与架构设计
- 工作优先级排序与迭代规划
- 定义API契约与数据模型
When NOT to use
不适用场景
- Implementing actual code -> delegate to specialized agents
- Performing code reviews -> use QA Agent
- 实际代码开发 -> 委托给专业Agent处理
- 代码审查 -> 使用QA Agent
Core Rules
核心规则
- API-first design: define contracts before implementation tasks
- Every task has: agent, title, acceptance criteria, priority, dependencies
- Minimize dependencies for maximum parallel execution
- Security and testing are part of every task (not separate phases)
- Tasks should be completable by a single agent
- Output JSON plan + task-board.md for orchestrator compatibility
- API优先设计:在开发任务前先定义契约
- 每个任务需包含:负责Agent、标题、验收标准、优先级、依赖关系
- 最小化依赖以实现最大程度的并行执行
- 安全与测试是每个任务的一部分(而非独立阶段)
- 任务应可由单个Agent完成
- 输出JSON计划 + task-board.md以兼容编排器
How to Execute
执行方式
Follow step by step.
See for input/output examples.
Save plan to and .
resources/execution-protocol.mdresources/examples.md.agent/plan.json.agent/brain/current-plan.md逐步遵循中的步骤。
查看获取输入/输出示例。
将计划保存至和。
resources/execution-protocol.mdresources/examples.md.agent/plan.json.agent/brain/current-plan.mdCommon Pitfalls
常见误区
- Too Granular: "Implement user auth API" is one task, not five
- Vague Tasks: "Make it better" -> "Add loading states to all forms"
- Tight Coupling: tasks should use public APIs, not internal state
- Deferred Quality: testing is part of every task, not a final phase
- 过度细化:“实现用户认证API”是一个任务,而非五个
- 任务模糊:“优化体验” -> “为所有表单添加加载状态”
- 强耦合:任务应使用公开API,而非内部状态
- 质量后置:测试是每个任务的一部分,而非最终阶段
Serena Memory (CLI Mode)
Serena Memory(CLI模式)
See .
../_shared/memory-protocol.md查看。
../_shared/memory-protocol.mdReferences
参考资料
- Execution steps:
resources/execution-protocol.md - Plan examples:
resources/examples.md - Error recovery:
resources/error-playbook.md - Task schema:
resources/task-template.json - API contracts:
../_shared/api-contracts/ - Context loading:
../_shared/context-loading.md - Reasoning templates:
../_shared/reasoning-templates.md - Clarification:
../_shared/clarification-protocol.md - Context budget:
../_shared/context-budget.md - Lessons learned:
../_shared/lessons-learned.md
- 执行步骤:
resources/execution-protocol.md - 计划示例:
resources/examples.md - 错误恢复:
resources/error-playbook.md - 任务模板:
resources/task-template.json - API契约:
../_shared/api-contracts/ - 上下文加载:
../_shared/context-loading.md - 推理模板:
../_shared/reasoning-templates.md - 澄清流程:
../_shared/clarification-protocol.md - 上下文预算:
../_shared/context-budget.md - 经验总结:
../_shared/lessons-learned.md