Token导航 LogoToken导航TokenDH.com
待分类操作浏览器github未标认证来源可访问许可证需确认审计通过

managing-subscriptions管理订阅

Agent Skill

managing-subscriptions 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

318

周安装

13

GitHub Stars

26

下载量

103
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:managing-subscriptions(管理订阅)
来源仓库:https://github.com/posthog/ai-plugin
仓库路径:skills/managing-subscriptions
安装命令:
npx skills add https://github.com/posthog/ai-plugin --skill managing-subscriptions
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/posthog/ai-plugin --skill managing-subscriptions

简介

处理 GitHub 仓库与协作事项,如 Issue、Pull Request 等。

  • 适合在需要整理代码变更或团队沟通时使用。
  • 可结合来源仓库进一步核验具体功能细节。
  • 安装前建议确认权限范围与项目维护状态。
  • 注意避免自动执行可能影响生产的操作。managing-subscriptions 属于待分类类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Managing subscriptions

This skill guides you through managing PostHog subscriptions. Subscriptions deliver scheduled snapshots of insights or dashboards via email, Slack, or webhook.

When to use this skill

Use this skill when the user:

  • Wants to "track", "follow", "subscribe to", or "get updates" about an insight or dashboard
  • Asks for "daily updates", "weekly reports", or "send me this every morning"
  • Wants to know what subscriptions they have
  • Asks to stop, pause, or unsubscribe from something
  • Wants to change who receives an update or how often

Subscriptions vs alerts

Subscriptions and alerts serve different purposes:

  • Subscriptions deliver a snapshot on a fixed schedule (daily, weekly, etc.) regardless of the data
  • Alerts fire only when a condition is met (threshold crossed, anomaly detected)

If the user says "notify me when this drops below 100", use alerts. If the user says "send me this every morning", use subscriptions.

Workflow

Listing existing subscriptions

Before creating a new subscription, check if one already exists.

Use subscriptions-list with optional filters:

  • Filter by insight: pass the insight query parameter with the insight ID
  • Filter by dashboard: pass the dashboard query parameter with the dashboard ID
  • Filter by channel: pass target_type as email, slack, or webhook

Creating a subscription

Step 1: Ask the user how they want to receive it

Always ask the user whether they want email or Slack delivery before creating a subscription. Do not assume a channel — ask explicitly:

Would you like to receive this via email or Slack?

If the user says Slack, you must verify the integration is available (see step 2). If the user doesn't have a preference, suggest email as the simplest option.

Step 2: Verify channel availability

Email requires no setup — it works out of the box. You just need the user's email address. Get it from the user context or from org-members-list.

Slack requires a connected Slack integration. Before creating a Slack subscription:

  1. Call integrations-list and look for an integration where kind is "slack"
  2. If a Slack integration exists, note its id — you'll need it as integration_id
  3. If no Slack integration exists, tell the user: Slack isn't connected to this project yet. You can set it up in Project settings > Integrations. In the meantime, would you like to receive this via email instead?

Slack setup requires an OAuth flow in the browser — it cannot be done via MCP.

Webhook requires the user to provide a URL. Verify it looks like a valid URL before submitting.

Step 3: Identify the target

Get the insight ID or dashboard ID. If the user provides a URL like /project/2/insights/pKxzopBG, fetch the insight first with insight-get to get the numeric ID.

Step 4: Determine delivery settings from the user's request

User saysParameters
"every day" / "daily" / "every morning"frequency: "daily"
"every week" / "weekly"frequency: "weekly"
"every Monday"frequency: "weekly", byweekday: ["monday"]
"every month" / "monthly"frequency: "monthly"
"twice a week"frequency: "weekly", interval: 1, byweekday: ["monday", "thursday"]

Step 5: Create with subscriptions-create

For an insight subscription via email:

{
  "insight": 12345,
  "target_type": "email",
  "target_value": "user@example.com",
  "frequency": "daily",
  "start_date": "2025-01-01T09:00:00Z"
}

For a dashboard subscription (requires selecting which insights to include, max 6):

{
  "dashboard": 67,
  "dashboard_export_insights": [101, 102, 103],
  "target_type": "email",
  "target_value": "user@example.com",
  "frequency": "weekly",
  "byweekday": ["monday"],
  "start_date": "2025-01-01T09:00:00Z"
}

For Slack delivery, include the integration_id from step 2:

{
  "insight": 12345,
  "target_type": "slack",
  "target_value": "#general",
  "integration_id": 789,
  "frequency": "daily",
  "start_date": "2025-01-01T09:00:00Z"
}

Updating a subscription

Use subscriptions-partial-update with the subscription ID. Common updates:

  • Change frequency: {"frequency": "weekly", "byweekday": ["monday"]}
  • Add recipients: Update target_value with the full comma-separated list
  • Change channel: Update target_type and target_value together

Deactivating a subscription

Subscriptions are soft-deleted. Use subscriptions-partial-update:

{
  "id": 456,
  "deleted": true
}

Defaults

When the user doesn't specify details:

  • Frequency: "daily"
  • Channel: email to the current user
  • Start date: now (ISO 8601)
  • Title: auto-generated from the insight/dashboard name if not specified

Error handling

  • Duplicate check: If a subscription already exists for the same insight/dashboard and channel, inform the user and offer to update it rather than creating a duplicate
  • Slack not connected: If a Slack subscription is requested but no Slack integration exists, explain that Slack must be connected in Project settings > Integrations first, then offer email as an alternative. Do not attempt to create the subscription — it will fail with a validation error
  • Slack integration wrong team: The Slack integration must belong to the same PostHog team. If integrations-list returns Slack integrations but creation still fails, the integration may be misconfigured
  • Dashboard insights: Dashboard subscriptions require at least 1 and at most 6 insights selected via dashboard_export_insights. If the user doesn't specify which insights, fetch the dashboard with dashboard-get and select the first 6 insights from its tiles

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.14%
按下载量换算37

Claude

31.18%
按下载量换算32

Cursor

18.29%
按下载量换算19

Gemini CLI

9.69%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills