Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

monitoringmonitoring 开发

Agent Skill

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

总安装

1,067

周安装

44

GitHub Stars

20

下载量

348
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/sgcarstrends/sgcarstrends --skill monitoring

简介

monitoring 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态和变更事项进行整理时使用。

  • 适用于监控系统集成、日志收集和告警配置等场景,帮助 Agent 维护项目稳定性。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限范围和操作边界。
  • 建议安装前核实维护状态,避免触发联网、命令执行或文件读写等敏感操作。
  • 具体用法请参考原始 README 和仓库文档,确保符合实际使用环境的安全策略。

SKILL.md

Monitoring Skill

Monitor Vercel deployments, check logs, and track errors.

Viewing Logs

Vercel Dashboard

  1. Go to Vercel Dashboard → Project → Logs
  2. Filter by:

- Function logs - Build logs - Edge function logs - Time range

Vercel CLI

# View recent logs
vercel logs <deployment-url>

# Stream logs in real-time
vercel logs <deployment-url> --follow

# Filter by status
vercel logs <deployment-url> --status error

Vercel Analytics

Web Vitals

Monitor in Vercel Dashboard → Analytics:

  • LCP (Largest Contentful Paint)
  • FID (First Input Delay)
  • CLS (Cumulative Layout Shift)
  • TTFB (Time to First Byte)

Speed Insights

Already integrated in the app:

// apps/web/src/app/layout.tsx
import { Analytics } from "@vercel/analytics/next";
import { SpeedInsights } from "@vercel/speed-insights/next";

const RootLayout = ({ children }) => (
  <html>
    <body>
      {children}
      <Analytics />
      <SpeedInsights />
    </body>
  </html>
);

Logging Patterns

The codebase uses standard console.log/error/warn for logging:

// Workflow logging pattern
console.log("[WORKFLOW] Posts cache invalidated");
console.log("[COE]", coeResult);

// Error logging pattern
console.error("Error getting post view count:", error);
console.error("Download failed:", { url, status });

Log Prefixes Used:

  • [WORKFLOW] - Workflow execution events
  • [COE] - COE data processing
  • [CARS] - Car data processing

Health Checks

The app has a health check endpoint at /api/health:

// apps/web/src/app/api/health/route.ts
export const GET = () => {
  return NextResponse.json(
    { status: "ok", timestamp: new Date().toISOString() },
    {
      status: 200,
      headers: {
        "Cache-Control": "public, s-maxage=60, stale-while-revalidate=300",
      },
    },
  );
};

Test health endpoint:

curl -f https://sgcarstrends.com/api/health || echo "Web unhealthy"

Workflow Error Handling

Workflows use Vercel WDK's built-in error handling:

// apps/web/src/workflows/cars/index.ts
import { FatalError, RetryableError } from "workflow";

// Retryable errors (will be retried automatically)
if (message.includes("429")) {
  throw new RetryableError("AI rate limited", { retryAfter: "1m" });
}

// Fatal errors (will not be retried)
if (message.includes("401") || message.includes("403")) {
  throw new FatalError("AI authentication failed");
}

Error Types:

  • RetryableError - Temporary failures (rate limits, network issues)
  • FatalError - Permanent failures (auth errors, invalid config)

Debugging Production Issues

1. Check Vercel Logs

# Get deployment URL
vercel ls

# Check logs
vercel logs <url> --follow

2. Check Build Output

  1. Vercel Dashboard → Deployments
  2. Click on deployment
  3. View "Build Logs"

3. Test Endpoint

curl -v https://sgcarstrends.com/api/health

4. Check Function Runtime

Vercel Dashboard → Project → Settings → Functions

  • View runtime version
  • Check memory allocation
  • Review timeout settings

Common Issues

IssueInvestigationSolution
High latencyCheck Vercel Analytics, slow queriesOptimize queries, add caching
Build failuresCheck build logsFix build errors, update dependencies
Function timeoutCheck function logsOptimize code, increase timeout
Cold startsCheck function invocationsConsider edge functions
Workflow failuresCheck Vercel logs for workflow IDReview error type, check retries

Vercel Function Configuration

// API route config
export const config = {
  maxDuration: 60, // seconds (Pro plan allows up to 60s)
};

Cron Job Monitoring

Workflows are triggered by Vercel Cron:

// apps/web/vercel.json
{
  "crons": [
    { "path": "/api/workflows/cars", "schedule": "0 10 * * *" },
    { "path": "/api/workflows/coe", "schedule": "0 10 * * *" },
    { "path": "/api/workflows/deregistrations", "schedule": "0 10 * * *" }
  ]
}

Monitor cron executions:

  1. Vercel Dashboard → Project → Cron Jobs
  2. View execution history and status
  3. Check logs for each execution

Best Practices

  1. Use Log Prefixes: Add [CONTEXT] prefix for easy filtering
  2. Log Meaningful Data: Include relevant context (month, record counts)
  3. Don't Log Secrets: Never log passwords, tokens, API keys
  4. Use Vercel Analytics: Monitor performance metrics
  5. Check Cron Jobs: Monitor scheduled workflow executions

References

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.68%
按下载量换算117

Claude

28.57%
按下载量换算99

Cursor

21.7%
按下载量换算76

Gemini CLI

9.47%
按下载量换算33

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills