AGENT SKILL

tracking-application-response-times

Track and optimize application response times across API endpoints, database queries, and service calls. Use when monitoring performance or identifying bottlenecks. Trigger with phrases like "track response times", "monitor API performance", or "analyze latency".

使用场景后端与接口
License 许可
MIT
最近更新
2025-12-18
Stars
★ 29
Forks
9

01 前言 Front Matter

name
tracking-application-response-times
license
MIT
version
1.0.0
description
Track and optimize application response times across API endpoints, database queries, and service calls. Use when monitoring performance or identifying bottlenecks. Trigger with phrases like "track response times", "monitor API performance", or "analyze latency".
allowed-tools
[ "Read", "Write", "Edit", "Grep", "Glob", "Bash(monitoring:*)", "Bash(metrics:*)" ]

02 资源文件 6

03 SKILL.md 正文

Overview

This skill empowers Claude to proactively monitor and improve application performance by tracking response times across various layers. It provides detailed metrics and insights to identify and resolve performance bottlenecks.

How It Works

  1. Initiate Tracking: The user requests response time tracking.
  2. Configure Monitoring: The plugin automatically begins monitoring API endpoints, database queries, external service calls, frontend rendering, and background jobs.
  3. Report Metrics: The plugin generates reports including P50, P95, P99 percentiles, average, and maximum response times.

When to Use This Skill

This skill activates when you need to:

  • Identify performance bottlenecks in your application.
  • Monitor service level objectives (SLOs) related to response times.
  • Receive alerts about performance degradation.

Examples

Example 1: Diagnosing Slow API Endpoint

User request: "Track response times for the user authentication API endpoint."

The skill will:

  1. Activate the response-time-tracker plugin.
  2. Monitor the specified API endpoint and report response time metrics, highlighting potential bottlenecks.

Example 2: Monitoring Database Query Performance

User request: "Monitor database query performance for the product catalog."

The skill will:

  1. Activate the response-time-tracker plugin.
  2. Track the execution time of database queries related to the product catalog and provide performance insights.

Best Practices

  • Granularity: Track response times at a granular level (e.g., individual API endpoints, specific database queries) for more precise insights.
  • Alerting: Configure alerts for significant deviations from baseline performance to proactively address potential issues.
  • Contextualization: Correlate response time data with other metrics (e.g., CPU usage, memory consumption) to identify root causes.

Integration

This skill can be integrated with other monitoring and alerting tools to provide a comprehensive view of application performance. It can also be used in conjunction with optimization tools to automatically address identified bottlenecks.

Prerequisites

  • Access to application monitoring infrastructure
  • Response time data collection in {baseDir}/metrics/response-times/
  • APM tools or custom instrumentation
  • Performance SLO definitions

Instructions

  1. Configure monitoring for API endpoints and database queries
  2. Collect response time metrics (P50, P95, P99 percentiles)
  3. Analyze trends and identify performance degradation
  4. Compare against performance baselines and SLOs
  5. Identify bottlenecks and root causes
  6. Generate optimization recommendations

Output

  • Response time reports with percentile metrics
  • Performance trend visualizations
  • Bottleneck identification analysis
  • SLO compliance status
  • Optimization recommendations with priorities

Error Handling

If response time tracking fails:

  • Verify monitoring agent installation
  • Check instrumentation configuration
  • Validate metric export endpoints
  • Ensure data storage availability
  • Review sampling configuration

Resources

  • APM tool documentation
  • Response time monitoring best practices
  • Percentile-based SLO definitions
  • Performance optimization guides

04 同仓库更多 Skills

BbgnsurfTech
BbgnsurfTech/claude-skills-collection

testing-visual-regression

Detect visual changes in UI components using screenshot comparison. Use when detecting unintended UI changes or pixel differences. Trigger with phrases like "test visual changes", "compare screenshots", or "detect UI regressions".

测试与质量
★ 29
BbgnsurfTech
BbgnsurfTech/claude-skills-collection

generating-unit-tests

Automatically generate comprehensive unit tests from source code covering happy paths, edge cases, and error conditions. Use when creating test coverage for functions, classes, or modules. Trigger with phrases like "generate unit tests", "create tests for", or "add test coverage".

测试与质量
★ 29
BbgnsurfTech
BbgnsurfTech/claude-skills-collection

generating-test-reports

Generate comprehensive test reports with metrics, coverage, and visualizations. Use when performing specialized testing. Trigger with phrases like "generate test report", "create test documentation", or "show test metrics".

行政与办公人员测试与质量
★ 29
BbgnsurfTech
BbgnsurfTech/claude-skills-collection

orchestrating-test-execution

Coordinate parallel test execution across multiple environments and frameworks. Use when performing specialized testing. Trigger with phrases like "orchestrate tests", "run parallel tests", or "coordinate test execution".

测试与质量
★ 29
BbgnsurfTech
BbgnsurfTech/claude-skills-collection

managing-test-environments

Provision and manage isolated test environments with configuration and data. Use when performing specialized testing. Trigger with phrases like "manage test environment", "provision test env", or "setup test infrastructure".

测试与质量
★ 29
BbgnsurfTech
BbgnsurfTech/claude-skills-collection

generating-test-doubles

Generate mocks, stubs, spies, and fakes for dependency isolation. Use when creating mocks, stubs, or test isolation fixtures. Trigger with phrases like "generate mocks", "create test doubles", or "setup stubs".

测试与质量
★ 29