Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计提醒

tracekit-alerts跟踪工具警报

Agent Skill

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

总安装

196

周安装

8

GitHub Stars

1

下载量

63
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/tracekit-dev/tracekit-for-ai --skill tracekit-alerts

简介

用于处理 GitHub 仓库、Issue 和 Pull Request 协作信息。

  • 适合围绕代码变更或协作事项进行整理时使用。
  • 可结合来源仓库和原始 README 继续核验具体用法。
  • 安装命令:npx skills add https://github.com/tracekit-dev/tracekit-for-ai --skill tracekit-alerts
  • 建议确认权限范围和是否执行命令后再使用

SKILL.md

TraceKit Alerts

Auth Bootstrap

Do not tell the user to go sign up, log in separately, or manually create an API key before setup. First check for existing TraceKit auth. If ~/.tracekitconfig does not contain the production profile or TRACEKIT_API_KEY is missing, apply the tracekit-auth skill first. Use ./scripts/run-tracekit-auth.sh status to check, then guide the user through the TraceKit email verification flow with register and verify. That flow signs the user into an existing account for that email or creates the account automatically, then saves the returned credentials for the rest of the setup.

When To Use

Use this skill when the user asks to:

  • Set up alerts or notifications in TraceKit
  • Get notified on errors or error spikes
  • Monitor latency or performance degradation
  • Detect error spikes automatically
  • Set up uptime monitoring
  • Configure Slack notifications for errors
  • Create alerting rules via API or the dashboard
  • Manage alert fatigue or notification routing

Non-Negotiable Rules

  1. Never hardcode API keys or webhook URLs in code or config files. Use TRACEKIT_AUTH_TOKEN env var for API access.
  2. Always include a test notification step after setting up a channel to verify delivery.
  3. Always recommend starting with the starter kit before customizing - it provides sensible defaults for the most common scenarios.

Prerequisites

  • Any TraceKit SDK (backend or frontend) must be installed and sending data to the dashboard.
  • For Slack integration: Slack workspace admin access (or permission to approve the TraceKit app).
  • If no SDK is set up yet, complete the appropriate SDK skill first (see tracekit-apm-setup skill).

Detection

Before applying this skill, check the project:

  1. Check for any TraceKit SDK in the project - scan package.json, go.mod, requirements.txt, composer.json, pom.xml, .csproj, or Gemfile.
  2. If no SDK detected, redirect to the tracekit-apm-setup skill to install an SDK first. Alerts need data flowing into TraceKit before they can trigger.
  3. Alerts are SDK-agnostic - no SDK-specific configuration needed. Alerts operate on data already in the dashboard.

Step 1: Set Up Notification Channel (Dashboard)

Start with Slack (the most common integration), then optionally add other channels.

Slack Channel Setup

  1. Navigate to https://app.tracekit.dev/settings/channels.
  2. Click Add Channel > Slack.
  3. Click Add to Slack - this opens the Slack OAuth flow.
  4. Authorize the TraceKit app in your Slack workspace.
  5. Select the target channel (e.g., #engineering-alerts).
  6. Click Send Test Notification to verify the connection.
  7. Confirm the test message appears in your Slack channel.

Other Notification Channels

TraceKit supports additional channels - set them up the same way via Settings > Channels:

  • Email: Enter one or more email addresses. No external app approval needed.
  • Webhook: Provide a URL that accepts POST requests with JSON payload. Useful for custom integrations (e.g., Zapier, internal tools).
  • PagerDuty: Enter your PagerDuty integration key. Alerts create PagerDuty incidents with appropriate severity.

For most teams, start with Slack and add others as needed.

Step 2: Starter Kit - Recommended Alerts

Create these 4 alerts to cover the most common monitoring scenarios. Each alert has been tuned for sensible defaults that avoid alert fatigue while catching real issues.

Alert 1: Error Spike

Detects sudden increases in error volume compared to the rolling baseline.

SettingValue
NameError Spike
MetricError count
ConditionExceeds 5x rolling average
Time window5 minutes
ChannelSlack #engineering-alerts
SeverityCritical

How to create:

  1. Navigate to https://app.tracekit.dev/alerts/rules.
  2. Click Create Rule.
  3. Select metric: Error count.
  4. Set condition: Exceeds 5x baseline with a 5-minute window.
  5. Select channel: your Slack channel.
  6. Set severity: Critical.
  7. Save and activate.

Alert 2: P95 Latency

Catches performance degradation before it impacts most users.

SettingValue
NameP95 Latency
MetricTransaction P95 response time
ConditionExceeds 2000ms
Time window10 minutes
ChannelSlack #engineering-alerts
SeverityWarning

How to create:

  1. Navigate to https://app.tracekit.dev/alerts/rules.
  2. Click Create Rule.
  3. Select metric: Transaction P95.
  4. Set condition: Threshold > 2000ms with a 10-minute window.
  5. Select channel: your Slack channel.
  6. Set severity: Warning.
  7. Save and activate.

Alert 3: Uptime Drop

Detects availability drops by monitoring successful request rate.

SettingValue
NameUptime Drop
MetricSuccessful request rate
ConditionFalls below 99.5%
Time window15 minutes
ChannelSlack + Email (critical)
SeverityCritical

How to create:

  1. Navigate to https://app.tracekit.dev/alerts/rules.
  2. Click Create Rule.
  3. Select metric: Successful request rate (%).
  4. Set condition: Below 99.5% with a 15-minute window.
  5. Select channels: both your Slack channel and an email address.
  6. Set severity: Critical.
  7. Save and activate.

Alert 4: New Error Type

Catches new bugs immediately by alerting on error messages never seen before.

SettingValue
NameNew Error Type
MetricFirst occurrence
ConditionError message not previously seen
Time windowImmediate
ChannelSlack #engineering-alerts
SeverityWarning

How to create:

  1. Navigate to https://app.tracekit.dev/alerts/rules.
  2. Click Create Rule.
  3. Select type: First occurrence of new issue.
  4. Select channel: your Slack channel.
  5. Set severity: Warning.
  6. Save and activate.

Step 3: Create Custom Alerts (Dashboard Walkthrough)

Beyond the starter kit, create custom alerts for your specific needs:

  1. Navigate to https://app.tracekit.dev/alerts/rules.
  2. Click Create Rule.
  3. Select metric type:

- Error count - total errors in a time window - Transaction P95/P99 - latency percentiles - Throughput - requests per minute - Successful request rate - availability percentage - Custom metric - any metric you send via the SDK

  1. Set conditions:

- Threshold (absolute value, e.g., > 100 errors) - Relative (compared to baseline, e.g., > 3x average) - Window (1 minute to 24 hours)

  1. Select notification channels - one or more channels can be assigned.
  2. Set severity:

- Critical - immediate action required - Warning - investigate soon - Info - informational, no action needed

  1. Save and activate the rule.

You can also set a resolve notification - TraceKit will send a follow-up message when the metric returns to normal. This reduces the need to manually check if an issue has recovered.

Step 4: Programmatic Alerts (Dashboard and API)

For teams that manage infrastructure as code, create and manage alerts programmatically.

Dashboard

The recommended way to manage alerts is through the TraceKit dashboard at https://app.tracekit.dev/alerts. The dashboard provides a full UI for creating, editing, listing, and deleting alert rules.

Note: The TraceKit CLI (tracekit) supports webhook create/list/delete commands for managing webhook channels, but does not have alerts subcommands. Use the dashboard or the REST API below to manage alert rules programmatically.

API

Create an alert rule via the REST API:

curl -X POST https://app.tracekit.dev/api/v1/alerts \
  -H "Authorization: Bearer $TRACEKIT_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Error Spike",
    "metric": "error_count",
    "threshold": {
      "type": "relative",
      "value": 5,
      "window": "5m"
    },
    "channels": ["slack:engineering-alerts"],
    "severity": "critical"
  }'

List all alert rules:

curl https://app.tracekit.dev/api/v1/alerts \
  -H "Authorization: Bearer $TRACEKIT_AUTH_TOKEN"

Update an alert rule:

curl -X PATCH https://app.tracekit.dev/api/v1/alerts/alert_abc123 \
  -H "Authorization: Bearer $TRACEKIT_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "threshold": {
      "type": "relative",
      "value": 10,
      "window": "10m"
    }
  }'

Auth token scope: The token must have alerts:write scope for creating and modifying alerts. Get your token from Dashboard > Settings > Auth Tokens.

Step 5: Verification

After setting up the starter kit alerts, verify they work:

  1. Create all 4 starter kit alerts using the dashboard walkthrough above.
  2. Trigger a test error in your application - call an endpoint that throws an exception, or use the SDK's captureException method.
  3. Wait 1-2 minutes for the error spike alert to evaluate the time window.
  4. Check your Slack channel for the alert notification.
  5. Click the notification link - it should take you directly to the error in the TraceKit dashboard.
  6. Verify the alert details show the correct metric, threshold, and severity.

If the alert does not fire, see Troubleshooting below.

Troubleshooting

Alert not firing

  • Check alert is active: Navigate to Alerts > Rules and verify the alert status is "Active" (not "Disabled" or "Muted").
  • Check threshold is realistic: For testing, temporarily lower the threshold (e.g., error count > 1 instead of > 5x baseline). Your test environment may not have enough baseline data for relative thresholds.
  • Check time window: A 15-minute window means the condition must persist for 15 minutes before firing. Use a shorter window (1-5 minutes) for testing.

Slack not receiving notifications

  • Verify channel connection: Go to Settings > Channels and check the Slack channel shows a green "Connected" status.
  • Send a test notification: Click "Test" next to the channel. If the test fails, re-authorize the TraceKit app in Slack.
  • Check Slack permissions: The TraceKit app must have permission to post to the selected channel. Try a public channel first.

Too many alerts (alert fatigue)

  • Increase thresholds: Error spike at 5x baseline may be too sensitive for noisy services. Try 10x.
  • Widen time windows: A 5-minute window fires more frequently than a 15-minute window.
  • Use resolve notifications: Enable "Send resolved" so you know when issues clear without manually checking.
  • Consolidate channels: Route critical alerts to Slack and info alerts to email to reduce Slack noise.
  • Mute during deploys: Use the API to temporarily mute alerts during deployment windows.

API authentication error

  • Check auth token: Ensure TRACEKIT_AUTH_TOKEN is set and the token has alerts:write scope.
  • Check token expiry: Auth tokens expire after 90 days by default. Create a new token if expired.
  • Check endpoint URL: The API base URL is https://app.tracekit.dev/api/v1/ - ensure no trailing slash issues.

Next Steps

Once alerting is configured, consider:

  • Distributed Tracing - See full trace context in alert details to understand cross-service failures (see tracekit-distributed-tracing skill)
  • Code Monitoring - Set live breakpoints when alerts fire to capture production state without redeploying (see tracekit-code-monitoring skill)
  • Releases - Track crash-free rates per release and alert on regressions (see tracekit-releases skill)

References

  • Alert rules docs: https://app.tracekit.dev/docs/alerts
  • Notification channels docs: https://app.tracekit.dev/docs/channels
  • CLI reference: https://app.tracekit.dev/docs/cli
  • Dashboard: https://app.tracekit.dev

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.37%
按下载量换算22

Claude

30.25%
按下载量换算19

Cursor

19.57%
按下载量换算12

Gemini CLI

11.04%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills