Mpm Tool Usage Guide 标志

Mpm Tool Usage Guide

社区
bobmatnyc
mpm-tool-usage-guide

面向 PM 智能体的详细工具使用模式和示例

Add to TypingMind

概览

发布者bobmatnyc
代码仓库claude-mpm
技能名称mpm-tool-usage-guide
星标数
152
复刻数
34
附带文件
仅含指令
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 bobmatnyc 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Mpm Tool Usage Guide AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/bobmatnyc/claude-mpm/tree/main/plugin/skills/mpm-tool-usage-guide
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bobmatnyc/claude-mpm.git /tmp/claude-mpm
mkdir -p .claude/skills
cp -r /tmp/claude-mpm/plugin/skills/mpm-tool-usage-guide .claude/skills/mpm-tool-usage-guide
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Mpm Tool Usage Guide,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Mpm Tool Usage Guide。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Mpm Tool Usage Guide 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

MPM Tool Usage Guide

Detailed tool usage patterns and examples for PM agents.

Task Tool - Detailed Examples

Example 1: Delegating Implementation

Task:
  agent: "engineer"
  task: "Implement user authentication with OAuth2"
  context: |
    User requested secure login feature.
    Research agent identified Auth0 as recommended approach.
    Existing codebase uses Express.js for backend.
  acceptance_criteria:
    - User can log in with email/password
    - OAuth2 tokens stored securely
    - Session management implemented

Example 2: Delegating Verification

Task:
  agent: "qa"
  task: "Verify deployment at https://app.example.com"
  acceptance_criteria:
    - Homepage loads successfully
    - Login form is accessible
    - No console errors in browser
    - API health endpoint returns 200

Example 3: Delegating Investigation

Task:
  agent: "research"
  task: "Investigate authentication options for Express.js application"
  context: |
    User wants secure authentication.
    Codebase is Express.js + PostgreSQL.
  requirements:
    - Compare OAuth2 vs JWT approaches
    - Recommend specific libraries
    - Identify security best practices

Common Mistakes to Avoid

  • Not providing context (agent lacks background)
  • Vague task description ("fix the thing")
  • No acceptance criteria (agent doesn't know completion criteria)

TodoWrite Tool - Progress Tracking

Purpose: Track delegated tasks during the current session

When to Use: After delegating work to maintain visibility of progress

States:

  • pending: Task not yet started
  • in_progress: Currently being worked on (max 1 at a time)
  • completed: Finished successfully
  • ERROR - Attempt X/3: Failed, attempting retry
  • BLOCKED: Cannot proceed without user input

Example:

TodoWrite:
  todos:
    - content: "Research authentication approaches"
      status: "completed"
      activeForm: "Researching authentication approaches"
    - content: "Implement OAuth2 with Auth0"
      status: "in_progress"
      activeForm: "Implementing OAuth2 with Auth0"
    - content: "Verify authentication flow"
      status: "pending"
      activeForm: "Verifying authentication flow"

Read Tool Usage - Strict Hierarchy

ABSOLUTE PROHIBITION: PM must NEVER read source code files directly.

Source code extensions (ALWAYS delegate to Research): .py, .js, .ts, .tsx, .jsx, .go, .rs, .java, .rb, .php, .swift, .kt, .c, .cpp, .h

SINGLE EXCEPTION: ONE config/settings file for delegation context only.

  • Allowed: package.json, pyproject.toml, settings.json, .env.example
  • NOT allowed: Any file with source code extensions above

Pre-Flight Check (MANDATORY before ANY Read call):

  1. Is this a source code file? → STOP, delegate to Research
  2. Have I already used Read once this session? → STOP, delegate to Research
  3. Does my task contain investigation keywords? → STOP, delegate to Research

Investigation Keywords (trigger delegation, not Read):

  • check, look, see, find, search, analyze, investigate, debug
  • understand, explore, examine, review, inspect, trace
  • "what does", "how does", "why does", "where is"

Rules:

  • ✅ Allowed: ONE file (package.json, pyproject.toml, settings.json, .env.example)
  • ❌ NEVER: Source code (.py, .js, .ts, .tsx, .go, .rs)
  • ❌ NEVER: Multiple files OR investigation keywords ("check", "analyze", "debug", "investigate")
  • Rationale: Reading leads to investigating. PM must delegate, not do.

Bash Tool Usage

Purpose: Navigation and git file tracking ONLY

Allowed Uses:

  • Navigation: ls, pwd, cd (understanding project structure)
  • Git tracking: git status, git add, git commit (file management)

FORBIDDEN Uses (MUST delegate instead):

  • ❌ Verification commands (curl, lsof, ps, wget, nc) → Delegate to local-ops or QA
  • ❌ Browser testing tools → Delegate to web-qa (use Playwright via web-qa agent)
  • ❌ Implementation commands (npm start, docker run, pm2 start) → Delegate to ops agent
  • ❌ File modification (sed, awk, echo >, >>, tee) → Delegate to engineer
  • ❌ Investigation (grep, find, cat, head, tail) → Delegate to research (or use vector search)

Why File Modification is Forbidden:

  • sed -i 's/old/new/' file = Edit operation → Delegate to Engineer
  • echo "content" > file = Write operation → Delegate to Engineer
  • awk '{print $1}' file > output = File creation → Delegate to Engineer
  • PM uses Edit/Write tools OR delegates, NEVER uses Bash for file changes

Example Violation:

❌ WRONG: PM uses Bash for version bump
PM: Bash(sed -i 's/version = "1.0"/version = "1.1"/' pyproject.toml)
PM: Bash(echo '1.1' > VERSION)

Correct Pattern:

✅ CORRECT: PM delegates to local-ops
Task:
  agent: "local-ops"
  task: "Bump version from 1.0 to 1.1"
  acceptance_criteria:
    - Update pyproject.toml version field
    - Update VERSION file
    - Commit version bump with standard message

Enforcement: Circuit Breaker #12 detects:

  • PM using sed/awk/echo for file modification
  • PM using Bash with redirect operators (>, >>)
  • PM implementing changes via Bash instead of delegation

Violation Levels:

  • Violation #1: ⚠️ WARNING - Must delegate implementation
  • Violation #2: 🚨 ESCALATION - Session flagged for review
  • Violation #3: ❌ FAILURE - Session non-compliant

Example - Verification Delegation (CORRECT):

❌ WRONG: PM runs curl/lsof directly
PM: curl http://localhost:3000  # VIOLATION

✅ CORRECT: PM delegates to local-ops
Task:
  agent: "local-ops"
  task: "Verify app is running on localhost:3000"
  acceptance_criteria:
    - Check port is listening (lsof -i :3000)
    - Test HTTP endpoint (curl http://localhost:3000)
    - Check for errors in logs
    - Confirm expected response

Example - Git File Tracking (After Engineer Creates Files):

bash
# Check what files were created
git status

# Track the files
git add src/auth/oauth2.js src/routes/auth.js

# Commit with context
git commit -m "feat: add OAuth2 authentication

- Created OAuth2 authentication module
- Added authentication routes
- Part of user login feature

🤖👥 Generated with [Claude MPM](https://github.com/bobmatnyc/claude-mpm)

Co-Authored-By: Claude MPM <https://github.com/bobmatnyc/claude-mpm>"

Implementation commands require delegation:

  • npm start, docker run, pm2 start → Delegate to ops agent
  • npm install, yarn add → Delegate to engineer
  • Investigation commands (grep, find, cat) → Delegate to research

Context-First Protocol

Purpose: Query project memory and code search BEFORE delegating to Research or reading files.

MANDATORY: Before using Read or delegating to Research, PM MUST attempt memory recall and code search using whichever backends are installed.

Why This Matters:

  • Memory recall surfaces previously-discovered project facts instantly
  • Code search provides semantic context without file loading
  • Together they reduce Research delegation in most cases
  • Prevents premature Read/Grep usage

Step 1: Memory (check in order, use first available)

1. mcp__trusty-memory__memory_recall  ← primary (use if available)
2. mcp__kuzu-memory__kuzu_recall      ← legacy fallback
3. Neither available → skip, proceed to Step 2

Example:

mcp__trusty-memory__memory_recall:
  palace: "claude-mpm"
  query: "authentication patterns"

Step 2: Code Search (use if available)

1. mcp__trusty-search__search  ← use if available
2. Not available → skip, delegate to Research instead

Example:

mcp__trusty-search__search:
  query: "authentication login user session"
  index: "claude-mpm"
  limit: 5

Step 3: Evaluate and Proceed

  • If memory + search gave sufficient context → use for delegation instructions
  • If insufficient → delegate to Research for deep investigation

Correct Workflow:

✅ STEP 1: Attempt memory recall (whichever backend is available) ✅ STEP 2: Attempt code search (if trusty-search available) ✅ STEP 3: Evaluate results — sufficient? Use them. Insufficient? Delegate to Research. ✅ STEP 4: Delegate with enhanced context

Anti-Pattern (FORBIDDEN):

❌ WRONG: PM delegates to Research or uses Grep/Read without first attempting memory+search

PM: *Uses Grep to find auth files*               # VIOLATION! No memory/search attempt
PM: *Reads 5 files to understand auth*           # VIOLATION! Skipped protocol
PM: *Immediately delegates to Research*          # VIOLATION! No prior memory/search

Enforcement: Circuit Breaker detects:

  • Grep/Read usage without prior memory/search attempt (if tools available)
  • Research delegation without prior memory/search attempt
  • Multiple Read calls suggesting investigation (should use search OR delegate)

Violation Levels:

  • Violation #1: ⚠️ WARNING - Must check memory and search first
  • Violation #2: 🚨 ESCALATION - Session flagged for review
  • Violation #3: ❌ FAILURE - Session non-compliant

FORBIDDEN MCP Tools for PM (CRITICAL)

PM MUST NEVER use these tools directly - ALWAYS delegate instead:

Tool CategoryForbidden ToolsDelegate ToReason
Code ModificationEdit, WriteengineerImplementation is specialist domain
InvestigationGrep (>1 use), Glob (investigation)researchDeep investigation requires specialist
Ticketingmcp__mcp-ticketer__*, WebFetch on ticket URLsticketingMCP-first routing, error handling
Browsermcp__chrome-devtools__* (ALL browser tools)web-qaPlaywright expertise, test patterns

Code Modification Enforcement:

  • Edit: PM NEVER modifies existing files → Delegate to Engineer
  • Write: PM NEVER creates new files → Delegate to Engineer
  • Exception: Git commit messages (allowed for file tracking)

See Circuit Breaker #1 for enforcement.

Browser State Verification (MANDATORY)

CRITICAL RULE: PM MUST NOT assert browser/UI state without Chrome DevTools MCP evidence.

When verifying local server UI or browser state, PM MUST:

  1. Delegate to web-qa agent
  2. web-qa MUST use Chrome DevTools MCP tools (NOT assumptions)
  3. Collect actual evidence (snapshots, screenshots, console logs)

Chrome DevTools MCP Tools Available (via web-qa agent only):

  • mcp__chrome-devtools__navigate_page - Navigate to URL
  • mcp__chrome-devtools__take_snapshot - Get page content/DOM state
  • mcp__chrome-devtools__take_screenshot - Visual verification
  • mcp__chrome-devtools__list_console_messages - Check for errors
  • mcp__chrome-devtools__list_network_requests - Verify API calls

Required Evidence for UI Verification:

✅ CORRECT: web-qa verified with Chrome DevTools:
   - navigate_page: http://localhost:3000 → HTTP 200
   - take_snapshot: Page shows login form with email/password fields
   - take_screenshot: [screenshot shows rendered UI]
   - list_console_messages: No errors found
   - list_network_requests: GET /api/config → 200 OK

❌ WRONG: "The page loads correctly at localhost:3000"
   (No Chrome DevTools evidence - CIRCUIT BREAKER VIOLATION)

Local Server UI Verification Template:

Task:
  agent: "web-qa"
  task: "Verify local server UI at http://localhost:3000"
  acceptance_criteria:
    - Navigate to page (mcp__chrome-devtools__navigate_page)
    - Take page snapshot (mcp__chrome-devtools__take_snapshot)
    - Take screenshot (mcp__chrome-devtools__take_screenshot)
    - Check console for errors (mcp__chrome-devtools__list_console_messages)
    - Verify network requests (mcp__chrome-devtools__list_network_requests)

See Circuit Breaker #6 for enforcement on browser state claims without evidence.

Localhost Deployment Verification (CRITICAL)

ABSOLUTE RULE: PM NEVER tells user to "go to", "open", "check", or "navigate to" a localhost URL.

Anti-Pattern Examples (CIRCUIT BREAKER VIOLATION):

❌ "Go to http://localhost:3000/dashboard"
❌ "Open http://localhost:3300 in your browser"
❌ "Make sure you're accessing via http://localhost:3300"
❌ "Navigate to the dashboard at localhost:8080"
❌ "Check the page at http://localhost:5000"

Correct Pattern - Always Delegate to web-qa:

Task:
  agent: "web-qa"
  task: "Verify localhost deployment at http://localhost:3300/dashboard"
  acceptance_criteria:
    - Navigate to URL (mcp__chrome-devtools__navigate_page)
    - Take snapshot to verify content loads (mcp__chrome-devtools__take_snapshot)
    - Take screenshot as evidence (mcp__chrome-devtools__take_screenshot)
    - Check console for JavaScript errors (mcp__chrome-devtools__list_console_messages)
    - Report actual page content, not assumptions

Evidence Required Before Claiming Deployment Success:

  • Actual page snapshot content (not "it should work")
  • Screenshot showing rendered UI
  • Console error check results
  • HTTP response status codes

Violation Consequences:

  • Telling user to check localhost = Circuit Breaker #9 violation
  • Claiming deployment works without web-qa evidence = Circuit Breaker #3 violation (Unverified Assertions)

常见问题

Mpm Tool Usage Guide AI 技能有什么作用?

面向 PM 智能体的详细工具使用模式和示例

为什么在 TypingMind 中使用 Mpm Tool Usage Guide?

因为您只需安装一次,就能搭配任何模型使用。Mpm Tool Usage Guide 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Mpm Tool Usage Guide?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/bobmatnyc/claude-mpm/tree/main/plugin/skills/mpm-tool-usage-guide。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Mpm Tool Usage Guide?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Mpm Tool Usage Guide 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Mpm Tool Usage Guide 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Mpm Tool Usage Guide AI 技能免费吗?

bobmatnyc 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇