Token导航 LogoToken导航

Agent Skill · 前端设计

api-observability-setup-axiom-pino-sentry(API observability 设置 axiom pino Sentry)

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

api-observability-setup-axiom-pino-sentry 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 8,797。

总安装 259周安装 11GitHub Stars 5下载 91核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/agents-inc/skills --skill api-observability-setup-axiom-pino-sentry

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

一站式部署 Pino + Axiom + Sentry 可观测性栈。自动配置 Next.js 项目的 withAxiom 与 withSentryConfig 包装器。支持 CI/CD 环境下源码映射文件自动上传功能。

安装方式:通过 GitHub 仓库添加,命令为 npx skills add https://github.com/agents-inc/skills --skill api-observability-setup-axiom-pino-sentry。

适用宿主包括 Codex、Claude、Cursor 和 Gemini CLI。

来源仓库内路径:skills/api-observability-setup-axiom-pino-sentry

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/agents-inc/skills --skill api-observability-se…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

api-observability-setup-axiom-pino-sentry 怎么安装?

在终端执行 npx skills add https://github.com/agents-inc/skills --skill api-observability-setup-axiom-…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

api-observability-setup-axiom-pino-sentry 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

api-observability-setup-axiom-pino-sentry 需要什么权限?

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

api-observability-setup-axiom-pino-sentry 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

api-observability-setup-axiom-pino-sentry 用的人多吗?

公开数据是累计安装 259 次,近一周安装 11 次,下载 91 次,GitHub 5 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

api-observability-setup-axiom-pino-sentry 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
api-observability-setup-axiom-pino-sentry

API observability 设置 axiom pino Sentry · 本页

2595接触敏感数据未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Observability Setup (Pino + Axiom + Sentry)

Quick Guide: One-time project setup for observability. Install pino, next-axiom, @sentry/nextjs. Configure Axiom dataset + Vercel integration. Set up Sentry DSN and config files. Wrap next.config.ts with withAxiom then withSentryConfig. Add instrumentation.ts for runtime-specific Sentry init. Source maps are uploaded automatically when SENTRY_AUTH_TOKEN is set in CI.

Detailed Resources:

- examples/core.md - Dependencies, env vars, next.config.ts, instrumentation - examples/sentry-config.md - Sentry configuration files (client, server, edge) - examples/pino-logger.md - Pino logger setup with redaction - examples/axiom-integration.md - Web Vitals and dashboard queries - examples/ci-cd.md - GitHub Actions source maps upload - examples/health-check.md - Health check endpoints


<critical_requirements>

CRITICAL: Before Using This Skill

All code must follow project conventions in CLAUDE.md (kebab-case, named exports, import ordering, import type, named constants)

(You MUST create separate Axiom datasets for each environment - development, staging, production)

(You MUST configure all three Sentry config files - sentry.client.config.ts, sentry.server.config.ts, sentry.edge.config.ts)

(You MUST add source maps upload to CI/CD - Sentry needs source maps for readable stack traces)

(You MUST install pino-pretty as a devDependency only - never use in production)

</critical_requirements>


Auto-detection: pino, next-axiom, @sentry/nextjs, Axiom, Sentry, observability setup, logging setup, error tracking setup, source maps, sentry.client.config, sentry.server.config, sentry.edge.config, withAxiom, withSentryConfig

When to use:

  • Setting up a new project that needs logging and error tracking
  • Adding observability to an existing project without it
  • Migrating from another logging/error tracking solution to Axiom + Sentry

When NOT to use:

  • Adding new log statements to existing code (ongoing usage, not initial setup)
  • Configuring alerts, monitors, or dashboards after initial setup
  • Debugging production issues with existing observability

Key patterns covered:

  • Dependency installation (Pino, next-axiom, @sentry/nextjs, pino-pretty)
  • Environment variables template (.env.example)
  • next.config.ts with withAxiom() and withSentryConfig() wrappers
  • Sentry configuration files (client, server, edge)
  • instrumentation.ts for Sentry initialization
  • GitHub Actions for source maps upload
  • Pino logger with development/production modes
  • Health check endpoints
  • Initial Axiom dashboard setup

Philosophy

Observability is not optional for production apps. Without logging and error tracking, debugging production issues becomes guesswork. The Pino + Axiom + Sentry stack provides:

  • Pino: Fast structured JSON logging (5x faster than Winston)
  • Axiom: Unified logs, traces, and metrics with Vercel integration
  • Sentry: Error tracking with source maps and release tracking

This skill covers one-time setup only. For ongoing usage patterns (log levels, structured fields, correlation IDs, alert configuration), use your observability usage skill.


Core Patterns

Pattern 1: Dependency Installation

Install all observability packages with correct dependency types.

# Production dependencies
npm install pino next-axiom @sentry/nextjs

# Development dependencies (pretty printing for local dev)
npm install -D pino-pretty

Why: pino-pretty as devDependency prevents production bundle bloat (~500KB), all core packages are production dependencies for runtime use.

For detailed code examples with good/bad comparisons, see examples/core.md.


Pattern 2: Environment Variables Template

Create .env.example with all required observability variables documented. Group by service, use comments to explain where to get each value, and maintain separate datasets per environment.

Key variables needed:

  • NEXT_PUBLIC_AXIOM_DATASET - Dataset name (e.g., myapp-dev, myapp-prod)
  • NEXT_PUBLIC_AXIOM_TOKEN - API token with ingest permission
  • NEXT_PUBLIC_SENTRY_DSN - Sentry DSN from project settings
  • SENTRY_AUTH_TOKEN - For source maps upload in CI
  • SENTRY_ORG / SENTRY_PROJECT - Organization and project slugs

For complete template with all variables, see examples/core.md.


Pattern 3: next.config.ts with withAxiom and withSentryConfig

Wrap Next.js config with withAxiom for logging integration, then withSentryConfig for source map handling.

Key configuration points:

  • withAxiom wraps first (inner), Sentry wraps outer
  • silent:!process.env.CI suppresses source map upload logs locally
  • Source maps are hidden by default in v9+ (no hideSourceMaps needed)
  • Use sourcemaps.deleteSourcemapsAfterUpload to clean up after upload
import { withSentryConfig } from "@sentry/nextjs";
import { withAxiom } from "next-axiom";

const nextConfig = {
  /* your config */
};

export default withSentryConfig(withAxiom(nextConfig), {
  org: process.env.SENTRY_ORG,
  project: process.env.SENTRY_PROJECT,
  authToken: process.env.SENTRY_AUTH_TOKEN,
  silent: !process.env.CI,
});

For complete configuration example, see examples/core.md.


Pattern 4: Sentry Configuration Files

Create all three Sentry config files for client, server, and edge runtimes.

Required files:

  • sentry.client.config.ts - Client-side with replay integration
  • sentry.server.config.ts - Server-side with local variables capture
  • sentry.edge.config.ts - Edge runtime with limited features

Key considerations:

  • Use named constants for sample rates
  • Environment-specific configuration (debug mode, sample rates)
  • Filter expected errors with beforeSend
  • v9+: hideSourceMaps and enableTracing removed, source maps hidden by default

For complete file templates, see examples/sentry-config.md.


Pattern 5: Instrumentation File

Create instrumentation.ts for proper Sentry initialization in Next.js. Uses dynamic imports to load the correct config for each runtime.

import * as Sentry from "@sentry/nextjs";

export async function register() {
  if (process.env.NEXT_RUNTIME === "nodejs") {
    await import("./sentry.server.config");
  }

  if (process.env.NEXT_RUNTIME === "edge") {
    await import("./sentry.edge.config");
  }
}

// Next.js 15+ error handling hook
export const onRequestError = Sentry.captureRequestError;

Why: Dynamic imports prevent loading wrong config for runtime, onRequestError hook captures Server Component errors automatically (Next.js 15+).


Pattern 6: Web Vitals Component

Add <AxiomWebVitals /> component to root layout for automatic Core Web Vitals (LCP, INP, CLS) reporting to Axiom.

Note: Web Vitals are only sent from production deployments, not local development.

For implementation example, see examples/axiom-integration.md.


Pattern 7: GitHub Actions Source Maps Upload

Configure CI/CD to upload source maps to Sentry on deployment. Key requirements:

  • SENTRY_AUTH_TOKEN in build environment enables automatic upload
  • Use getsentry/action-release@v3 for release creation
  • Tie version to git SHA for release tracking

For complete workflow template, see examples/ci-cd.md.


Pattern 8: Health Check Endpoint

Add health check endpoints that integrate with your observability stack:

  • Shallow check - Fast response for load balancer probes, includes version for Sentry release correlation
  • Deep check - Verifies dependencies, logs failures via Pino for Axiom dashboard visibility

For implementation examples, see examples/health-check.md.


Pattern 9: Pino Logger Setup

Configure Pino with development/production modes:

  • Development: pino-pretty for human-readable output
  • Production: JSON for log aggregation ingestion
  • Base fields for context in every log
  • Redaction of sensitive fields

For complete configuration, see examples/pino-logger.md.


Pattern 10: Axiom Dashboard Setup

After setting up, create initial dashboards in Axiom:

  • Request volume per minute
  • Error rate percentage
  • Response time P95
  • Top errors
  • Web Vitals metrics

For APL query examples, see examples/axiom-integration.md.


<decision_framework>

Decision Framework

See reference.md for complete decision trees:

  • Log Destinations: Where logs should go in each environment
  • Sentry vs Axiom for Errors: Which system handles which error types

</decision_framework>


<red_flags>

RED FLAGS

See reference.md for complete list.

High Priority:

  • Committing Axiom tokens or Sentry DSN to version control
  • Using pino-pretty in production
  • Missing source maps upload in CI
  • Same Axiom dataset for all environments

Common Mistakes:

  • Forgetting to wrap next.config.ts with withAxiom
  • Missing instrumentation.ts
  • Using removed Sentry options (hideSourceMaps, enableTracing, disableServerWebpackPlugin)
  • Hardcoding sample rates instead of named constants

</red_flags>


<critical_reminders>

CRITICAL REMINDERS

All code must follow project conventions in CLAUDE.md

(You MUST create separate Axiom datasets for each environment - development, staging, production)

(You MUST configure all three Sentry config files - sentry.client.config.ts, sentry.server.config.ts, sentry.edge.config.ts)

(You MUST add source maps upload to CI/CD - Sentry needs source maps for readable stack traces)

(You MUST install pino-pretty as a devDependency only - never use in production)

Failure to follow these rules will result in missing logs, unreadable errors, and security vulnerabilities.

</critical_reminders>

平台分布

Codex

35.23%
按下载量换算32

Claude

29.35%
按下载量换算27

Cursor

19.48%
按下载量换算18

Gemini CLI

9.75%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

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

安装前确认

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

继续浏览同类 Skills