Communitygithub.com

SamuelChien/mega-skills-collection

從應用程式、系統、資料庫、快取和服務中匯總並集中效能指標。在需要整合多來源監控資料時使用。觸發語句如「匯總指標」、「集中監控」或「收集效能資料」。

mega-skills-collection 是什麼?

此技能將 Claude 化身為一個強大的指標匯總與集中化管理工具,專門用於處理來自應用程式、資料庫、快取和基礎設施的效能資料。它旨在解決開發人員與維運工程師在面對分散的監控系統時,資料不一致、難以統一分析的痛點。此技能支援與 Prometheus、StatsD 和 CloudWatch 等主流監控工具整合,並引導使用者建立統一的命名慣例。使用此技能時,Claude 會協助進行指標分類學設計、選擇合適的匯總工具、配置資料來源整合,以及設定儀表板和警報規則。它特別適用於需要從異質環境(如多個微服務、不同資料庫)收集資料並統一看板的場景,能大幅提升監控資料的可讀性與問題排查效率,並遵循業界最佳實踐來平衡資料粒度與儲存成本。

相容平台✓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".

相關技能