ai-agent-team: Command for Claude Code

.claude/commands/pm-start.md

pm-start is a command for Claude Code from peterfei/ai-agent-team. It costs 21 tokens per session (941 once invoked), scanned A, original, MIT.

A command that starts a separate product-management work thread from a supplied task description. It then begins the product analysis in that new thread.

In plain words
What is it for?
Use it to start work such as designing a system or feature from a product perspective. It requires a task description after the command.
Why use it?
It keeps a product task and its discussion together in a dedicated thread instead of mixing them with unrelated work.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths.

This is peterfei/ai-agent-team's own configuration. It tells Claude Code how to work on ai-agent-team itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-agent-team configures →

Reuse

Borrowing it

Nothing to install: this file belongs to peterfei/ai-agent-team. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/peterfei/ai-agent-team/main/.claude/commands/pm-start.md
Clone the repo
git clone --depth 1 https://github.com/peterfei/ai-agent-team

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pm-start

README.md
[![agentmods](https://agentmods.dev/badge/commands/peterfei/ai-agent-team/pm-start/github.svg)](https://agentmods.dev/commands/peterfei/ai-agent-team/pm-start)
Your own site
<a href="https://agentmods.dev/commands/peterfei/ai-agent-team/pm-start"><img src="https://agentmods.dev/badge/commands/peterfei/ai-agent-team/pm-start/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pm-start

Your own site · 80×15
<a href="https://agentmods.dev/commands/peterfei/ai-agent-team/pm-start"><img src="https://agentmods.dev/badge/commands/peterfei/ai-agent-team/pm-start.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 941 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.00941
Opus 5.5 $0.00008 $0.00376
Sonnet 5.5 $0.00004 $0.00188
Haiku 4.5 $0.00002 $0.00094

Measured 1mo ago against content hash 96cb5a2f0c81, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pm-start scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/pm-start.md · 159 lines

What it actually says

产品经理 - 线程工作流

此命令会创建独立线程并立即以产品经理身份开始工作。

使用方法

/pm-start "设计用户认证系统"

注意:请务必提供任务描述。请勿在输入 /pm-start 后直接回车,否则将创建无标题任务。


⚠️ 重要:执行流程

当用户调用此命令时,您必须按以下步骤执行:

第1步:创建线程

调用 mcp__thread-manager__create_thread 工具:

{
  title: "[用户提供的任务标题]",
  description: "产品经理任务 - [任务标题]",
  tags: ["product", "pm"],
  switchTo: true
}

第2步:简洁通知(不要展示完整 message)

只输出一行简短通知:

✨ 已创建产品线程:"[标题]" (ID: [前8位])

重要:

  • ❌ 不要展示完整的 thread-manager 返回的 message
  • ❌ 不要展示启动命令
  • ❌ 不要展示统计信息
  • ✅ 只显示一行创建通知

第3步:立即开始产品工作 ⭐ 最重要

不要停止!立即切换到产品经理角色并开始工作:

  1. 加载产品经理 prompt

    • 读取 .claude/agents/product_manager.md
    • 以产品经理的身份和能力工作
  2. 执行任务

    • 按照产品经理的工作流程处理用户的任务
    • 输出完整的产品分析/需求文档
    • 就像用户直接调用了 /pm [任务] 一样
  3. 记录到线程

    • 所有对话自动记录到刚创建的线程中
    • Git 分支已自动切换(如果有)

示例执行流程

用户输入:
/pm-start "设计用户认证系统"

Claude 的完整响应:

✨ 已创建产品线程:"设计用户认证系统" (ID: abc12345)

---

## 产品需求分析 - 用户认证系统

### 执行摘要

**功能名称**:用户认证系统
**业务目标**:提供安全便捷的用户登录体验
...

[继续输出完整的产品分析文档]

关键点:

  • ✅ 创建线程后立即继续工作
  • ✅ 不需要用户再次调用 /pm
  • ✅ 一次命令完成"创建线程 + 执行任务"

与 /pm 的区别

命令 工作方式 线程记录
/pm "任务" 在当前会话工作 记录到当前线程(或无线程)
/pm-start "任务" 创建新线程 + 在当前会话工作 记录到新创建的线程

共同点:都会立即开始产品工作,输出完整分析

区别:/pm-start 会先创建一个独立线程来记录所有对话


后续恢复

用户可以在以后恢复此线程:

# 查看所有线程
/threads

# 恢复此线程(完全上下文隔离)
exit
clt abc12345

❌ 错误示例(不要这样做)

# 错误1:只创建线程就停止
用户: /pm-start "设计认证系统"
Claude: ✨ 已创建产品线程...
        [停止,什么都不做]
❌ 这是错误的!

# 错误2:要求用户重新调用
Claude: 线程已创建,请执行 exit 然后 clt abc123
❌ 这也是错误的!

# 正确做法:
Claude: ✨ 已创建产品线程...

        ## 产品需求分析
        [立即开始输出产品分析]
✅ 这才是正确的!

技术说明

  • 线程已激活并切换(switchTo: true)
  • Git 分支自动创建和切换
  • 当前会话的所有对话记录到新线程
  • 下次可通过 session-id 完全恢复上下文
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 159 lines · 0 tokens per session scan A 96cb5a2f0c81

Subscribe to this mod's changes

pm-start is a command published in the GitHub repository peterfei/ai-agent-team (448 stars, last pushed 4mo ago), licensed MIT. It adds 21 tokens to every session and 941 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other commands, from other repositories

refresh

Auto-enumerate the agent-runnable To-Do set and write it to state/todo-ids.json. No arguments. The operator's only job upstream is to mark rows in Notion with Exec=Agent; refresh then fetches them via the Notion REST API and the sidecar is the enumeration substrate for run.

AutomateLab-tech/agency-os · 0 tokens

tree

Emit a compact indented view of the active task hierarchy and refresh state/task-tree.json. This is the primary tool for understanding the board's shape before adding new work.

AutomateLab-tech/agency-os · 0 tokens

start

Move To-Do -> In Progress and emit the kickoff brief.

AutomateLab-tech/agency-os · 0 tokens

scaffold

The single-shot setup command. Builds the entire Notion workspace from scratch — Hub page, Tasks database with the full schema below, General Guidance page, Resources page, default corpus pages (General, Recurring), and every linked DB view. There is no public Notion template to duplicate; this command IS the setup.…

AutomateLab-tech/agency-os · 0 tokens

suggest

Add a row in Suggestion status. Structure check runs inside suggest — the subagent enforces it, not just the orchestrator. The orchestrator decides the shape (which parent, whether a container is needed); suggest verifies that decision was made rather than silently creating a root-level row.

AutomateLab-tech/agency-os · 0 tokens

discuss

Begin clarification on a Suggestion. Flips status to Discussion and prepares the agent to ask clarifying questions.

AutomateLab-tech/agency-os · 0 tokens