amplitude-automation
它能做什么
这个工具可以帮你与产品分析平台 Amplitude 进行交互。你可以发送事件数据、查看用户的活动历史、查找用户、管理用户分群(cohort),并查看事件分类。
适用场景
- ✓当你想在 Amplitude 中记录某个特定用户行为时。
- ✓当你需要查看某个用户执行过的所有事件时。
- ✓当你想把用户添加到或移出预先设定的用户分群(cohort)时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/amplitude-automation/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“为用户“user123”发送事件“purchase_completed”,产品详情为“Book”,价格为“50”。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具通过名为 Rube MCP 的服务连接到 Amplitude,并使用特定指令完成发送事件或获取用户信息等任务。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Amplitude Automation via Rube MCP
Automate Amplitude product analytics through Composio's Amplitude toolkit via Rube MCP.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active Amplitude connection via
RUBE_MANAGE_CONNECTIONSwith toolkitamplitude - Always call
RUBE_SEARCH_TOOLSfirst to get current tool schemas
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLSresponds - Call
RUBE_MANAGE_CONNECTIONSwith toolkitamplitude - If connection is not ACTIVE, follow the returned auth link to complete Amplitude authentication
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Send Events
When to use: User wants to track events or send event data to Amplitude
Tool sequence:
AMPLITUDE_SEND_EVENTS- Send one or more events to Amplitude [Required]
Key parameters:
events: Array of event objects, each containing:event_type: Name of the event (e.g., 'page_view', 'purchase')user_id: Unique user identifier (required if nodevice_id)device_id: Device identifier (required if nouser_id)event_properties: Object with custom event propertiesuser_properties: Object with user properties to settime: Event timestamp in milliseconds since epoch
Pitfalls:
- At least one of
user_idordevice_idis required per event event_typeis required for every event; cannot be emptytimemust be in milliseconds (13-digit epoch), not seconds- Batch limit applies; check schema for maximum events per request
- Events are processed asynchronously; successful API response does not mean data is immediately queryable
2. Get User Activity
When to use: User wants to view event history for a specific user
Tool sequence:
AMPLITUDE_FIND_USER- Find user by ID or property [Prerequisite]AMPLITUDE_GET_USER_ACTIVITY- Retrieve user's event stream [Required]
Key parameters:
user: Amplitude internal user ID (from FIND_USER)offset: Pagination offset for event listlimit: Maximum number of events to return
Pitfalls:
userparameter requires Amplitude's internal user ID, NOT your application's user_id- Must call FIND_USER first to resolve your user_id to Amplitude's internal ID
- Activity is returned in reverse chronological order by default
- Large activity histories require pagination via
offset
3. Find and Identify Users
When to use: User wants to look up users or set user properties
Tool sequence:
AMPLITUDE_FIND_USER- Search for a user by various identifiers [Required]AMPLITUDE_IDENTIFY- Set or update user properties [Optional]
Key parameters:
- For FIND_USER:
user: Search term (user_id, email, or Amplitude ID)
- For IDENTIFY:
user_id: Your application's user identifierdevice_id: Device identifier (alternative to user_id)user_properties: Object with$set,$unset,$add,$appendoperations
Pitfalls:
- FIND_USER searches across user_id, device_id, and Amplitude ID
- IDENTIFY uses special property operations (
$set,$unset,$add,$append) $setoverwrites existing values;$setOnceonly sets if not already set- At least one of
user_idordevice_idis required for IDENTIFY - User property changes are eventually consistent; not immediate
4. Manage Cohorts
When to use: User wants to list cohorts, view cohort details, or update cohort membership
Tool sequence:
AMPLITUDE_LIST_COHORTS- List all saved cohorts [Required]AMPLITUDE_GET_COHORT- Get detailed cohort information [Optional]AMPLITUDE_UPDATE_COHORT_MEMBERSHIP- Add/remove users from a cohort [Optional]AMPLITUDE_CHECK_COHORT_STATUS- Check async cohort operation status [Optional]
Key parameters:
- For LIST_COHORTS: No required parameters
- For GET_COHORT:
cohort_id(from list results) - For UPDATE_COHORT_MEMBERSHIP:
cohort_id: Target cohort IDmemberships: Object withaddand/orremovearrays of user IDs
- For CHECK_COHORT_STATUS:
request_idfrom update response
Pitfalls:
- Cohort IDs are required for all cohort-specific operations
- UPDATE_COHORT_MEMBERSHIP is asynchronous; use CHECK_COHORT_STATUS to verify
…
常见问题
使用它需要特殊的密码吗?
你需要把 Amplitude 账户连接到 Rube MCP。这通常需要点击一个授权链接,但不需要单独的 API 密钥。
什么是“cohort”?
“cohort”指具有共同特征或行为的一组用户。你可以用这个工具管理哪些用户属于这些分群。
发送的信息会立即显示在 Amplitude 中吗?
不一定。Amplitude 会在后台处理数据,因此事件或用户更新可能需要一段时间才能用于查询。
详情
作者的原始描述
Automate Amplitude tasks via Rube MCP (Composio): events, user activity, cohorts, user identification. Always search tools first for current schemas.
热度
- GitHub 星标
- 48k
- 排名
- #3736
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。