pm-agent

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

PM 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

核心规则

  1. API-first design: define contracts before implementation tasks
  2. Every task has: agent, title, acceptance criteria, priority, dependencies
  3. Minimize dependencies for maximum parallel execution
  4. Security and testing are part of every task (not separate phases)
  5. Tasks should be completable by a single agent
  6. Output JSON plan + task-board.md for orchestrator compatibility
  1. API优先设计:在开发任务前先定义契约
  2. 每个任务需包含:负责Agent、标题、验收标准、优先级、依赖关系
  3. 最小化依赖以实现最大程度的并行执行
  4. 安全与测试是每个任务的一部分(而非独立阶段)
  5. 任务应可由单个Agent完成
  6. 输出JSON计划 + task-board.md以兼容编排器

How to Execute

执行方式

Follow
resources/execution-protocol.md
step by step. See
resources/examples.md
for input/output examples. Save plan to
.agent/plan.json
and
.agent/brain/current-plan.md
.
逐步遵循
resources/execution-protocol.md
中的步骤。 查看
resources/examples.md
获取输入/输出示例。 将计划保存至
.agent/plan.json
.agent/brain/current-plan.md

Common 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.md

References

参考资料

  • 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