Communitygithub.com

SamuelChien/mega-skills-collection

聚合并集中管理来自应用程序、系统、数据库、缓存和服务的性能指标。适用于整合多个来源的监控数据。触发短语如“聚合指标”、“集中监控”或“收集性能数据”。

mega-skills-collection 是什么?

该技能使 AI 助手能够无缝集中来自多种系统的性能指标(如应用程序、数据库、缓存和基础设施),并将其统一到 Prometheus、StatsD 或 CloudWatch 等工具中。它通过设计一致的指标命名约定、选择最佳聚合工具、配置数据收集以及设置仪表板和警报来简化性能监控。这有助于开发者快速从分散的数据源获得统一视图,从而更快地识别和解决性能问题。该技能适用于需要跨系统整合监控数据、优化可观测性技术栈或为关键性能阈值建立自动告警的场景。它支持 Prometheus、StatsD 和 CloudWatch,并可与其他部署和基础设施管理插件集成,以实现自动化工作流。主要输出包括配置文件、命名约定文档、仪表板定义和告警规则,确保性能数据得到妥善管理且易于分析。

兼容平台✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/SamuelChien/mega-skills-collection/tree/HEAD/aggregating-performance-metrics

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

指标聚合器

将来自应用程序、数据库、缓存和基础设施的性能指标统一聚合到 Prometheus、StatsD 或 CloudWatch,并采用统一的命名约定。

概述

此技能使 Claude 能够通过将来自不同系统的性能指标聚合到一个统一视图,从而简化性能监控。它简化了收集、集中和分析性能数据的过程,从而带来更深入的洞察并加快问题解决速度。

工作原理

  1. 指标分类设计:Claude 协助定义跨所有系统指标的一致且清晰的命名约定。
  2. 聚合工具选择:Claude 根据用户的环境和需求,帮助选择合适的指标聚合工具(例如 Prometheus、StatsD、CloudWatch)。
  3. 配置与集成:Claude 指导所选聚合工具的配置及其与各种数据源的集成。
  4. 仪表板和警报设置:Claude 帮助设置用于可视化指标的仪表板,并为关键性能指标定义警报。

何时使用此技能

此技能在以下情况下激活:

  • 需要集中来自多个应用程序和系统的性能指标。
  • 需要设计一致的指标命名约定。
  • 需要为您的需求选择合适的指标聚合工具。
  • 需要为性能监控设置仪表板和警报。

示例

示例 1:集中应用程序和系统指标

用户请求:“将应用程序和系统指标聚合到 Prometheus。”

该技能将:

  1. 指导用户定义应用程序指标(例如请求延迟、错误率)和系统指标(例如 CPU 使用率、内存利用率)。
  2. 帮助配置 Prometheus,使其从应用程序和系统端点抓取指标。

示例 2:为数据库性能设置警报

用户请求:“集中数据库指标并设置慢查询警报。”

该技能将:

  1. 帮助用户定义数据库性能指标(例如查询执行时间、连接池使用情况)。
  2. 指导用户配置聚合工具以从数据库收集这些指标。
  3. 协助在聚合工具中设置警报,以便在查询执行时间超过定义阈值时通知用户。

最佳实践

  • 命名约定:对所有指标使用一致且定义良好的命名约定,以确保清晰度和易于分析。
  • 粒度:为指标选择适当的粒度级别,以平衡详细程度和存储需求。
  • 保留策略:为指标定义保留策略,以管理存储空间并确保历史分析数据的可用性。

集成

此技能与负责管理基础设施、部署应用程序和监控系统运行状况的其他插件集成。例如,它可以在新应用程序部署后,与部署插件结合使用以自动配置指标收集。

前提条件

  • 可以访问指标收集工具(Prometheus、StatsD、CloudWatch)
  • 与指标来源的网络连接
  • 位于 ${CLAUDE_SKILL_DIR}/metrics/ 的指标存储配置
  • 了解指标分类

操作说明

  1. 设计统一的指标命名约定
  2. 为环境选择合适的聚合工具
  3. 配置来自所有来源的指标收集
  4. 设置集中式存储和保留策略
  5. 创建用于可视化的仪表板
  6. 为关键指标定义警报

输出

  • 指标聚合配置文件
  • 统一命名约定文档
  • 关键指标的仪表板定义
  • 性能阈值的警报规则
  • 指标来源的集成指南

错误处理

如果指标聚合失败:

  • 验证与来源的网络连接
  • 检查身份验证凭据
  • 验证指标格式兼容性
  • 检查存储容量和保留策略
  • 确保聚合工具配置正确

资源

  • Prometheus 聚合文档
  • StatsD 协议规范
  • CloudWatch 指标 API 参考
  • 指标命名最佳实践

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

SamuelChien/mega-skills-collection

Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

SamuelChien/mega-skills-collection

Arquitecto de Soluciones Principal y Consultor Tecnológico de Andru.ia. Diagnostica y traza la hoja de ruta óptima para proyectos de IA en español.

SamuelChien/mega-skills-collection

Ingeniero de Sistemas de Andru.ia. Diseña, redacta y despliega nuevas habilidades (skills) dentro del repositorio siguiendo el Estándar de Diamante.

SamuelChien/mega-skills-collection

Estratega de Inteligencia de Dominio de Andru.ia. Analiza el nicho específico de un proyecto para inyectar conocimientos, regulaciones y estándares únicos del sector. Actívalo tras definir el nicho.

SamuelChien/mega-skills-collection

2D game development principles. Sprites, tilemaps, physics, camera.

SamuelChien/mega-skills-collection

3D game development principles. Rendering, shaders, physics, cameras.

SamuelChien/mega-skills-collection

Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences.

SamuelChien/mega-skills-collection

Accessibility audit skill for scanning, fixing, and verifying WCAG 2.2 Level A and AA compliance across React, Next.js, Vue, Angular, Svelte, and plain HTML codebases. Use when auditing accessibility, fixing a11y violations, checking color contrast, generating compliance reports, or integrating accessibility checks into CI/CD pipelines.

SamuelChien/mega-skills-collection

Ab Test Analyzer - Auto-activating skill for Data Analytics. Triggers on: ab test analyzer, ab test analyzer Part of the Data Analytics skill category.

SamuelChien/mega-skills-collection

A B Test Config Creator - Auto-activating skill for ML Deployment. Triggers on: a b test config creator, a b test config creator Part of the ML Deployment skill category.

SamuelChien/mega-skills-collection

When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "conversion experiment," "statistical significance," or "test this." For tracking implementation, see analytics-tracking.

SamuelChien/mega-skills-collection

Acceptance Criteria Creator - Auto-activating skill for Enterprise Workflows. Triggers on: acceptance criteria creator, acceptance criteria creator Part of the Enterprise Workflows skill category.

SamuelChien/mega-skills-collection

Use when a coding task should be driven end-to-end from issue intake through implementation, review, deployment, and acceptance verification with minimal human re-intervention.

SamuelChien/mega-skills-collection

Accessibility Audit Runner - Auto-activating skill for Frontend Development. Triggers on: accessibility audit runner, accessibility audit runner Part of the Frontend Development skill category.

SamuelChien/mega-skills-collection

You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct audits, identify barriers, and provide remediation guidance.

SamuelChien/mega-skills-collection

Web accessibility patterns for WCAG 2.2 compliance including ARIA, keyboard navigation, screen readers, and testing

SamuelChien/mega-skills-collection

Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Discord channel.

SamuelChien/mega-skills-collection

Create unified specification packages across Business, Development, and Design teams. Staged elaboration (L0 Vision → L1 Requirements → L2 Team Detail → L3 Acceptance Criteria) to build shared understanding. Does not write code.

SamuelChien/mega-skills-collection

Research a company or person and get actionable sales intel. Works standalone with web search, supercharged when you connect enrichment tools or your CRM. Trigger with "research [company]", "look up [person]", "intel on [prospect]", "who is [name] at [company]", or "tell me about [company]".

SamuelChien/mega-skills-collection

Validate messaging consistency across website, GitHub repos, and local documentation generating read-only discrepancy reports. Use when checking content alignment or finding mixed messaging. Trigger with phrases like "check consistency", "validate documentation", or "audit messaging".

相关技能