Skip to content
monitoring-apis logo

Monitoring APIs

monitoring-apis

Build real-time API monitoring dashboards with metrics, alerts, and health checks. Use when tracking API health and performance metrics. Trigger with phrases like "monitor the API", "add API metrics", or "setup API monitoring".

SKILL.md

Full skill instructions

Prerequisites

Before using this skill, ensure you have:

  • API design specifications or requirements documented
  • Development environment with necessary frameworks installed
  • Database or backend services accessible for integration
  • Authentication and authorization strategies defined
  • Testing tools and environments configured

Instructions

Step 1: Design API Structure

Plan the API architecture and endpoints:

  1. Use Read tool to examine existing API specifications from {baseDir}/​api-specs/
  2. Define resource models, endpoints, and HTTP methods
  3. Document request/​response schemas and data types
  4. Identify authentication and authorization requirements
  5. Plan error handling and validation strategies

Step 2: Implement API Components

Build the API implementation:

  1. Generate boilerplate code using Bash(api:monitor-*) with framework scaffolding
  2. Implement endpoint handlers with business logic
  3. Add input validation and schema enforcement
  4. Integrate authentication and authorization middleware
  5. Configure database connections and ORM models

Step 3: Add API Features

Enhance with production-ready capabilities:

  • Implement rate limiting and throttling policies
  • Add request/​response logging with correlation IDs
  • Configure error handling with standardized responses
  • Set up health check and monitoring endpoints
  • Enable CORS and security headers

Step 4: Test and Document

Validate API functionality:

  1. Write integration tests covering all endpoints
  2. Generate OpenAPI/​Swagger documentation automatically
  3. Create usage examples and authentication guides
  4. Test with various HTTP clients (curl, Postman, REST Client)
  5. Perform load testing to validate performance targets

Output

The skill generates production-ready API artifacts:

API Implementation

Generated code structure:

  • {baseDir}/​src/​routes/ - Endpoint route definitions
  • {baseDir}/​src/​controllers/ - Business logic handlers
  • {baseDir}/​src/​models/ - Data models and schemas
  • {baseDir}/​src/​middleware/ - Authentication, validation, logging
  • {baseDir}/​src/​config/ - Configuration and environment variables

API Documentation

Comprehensive API docs including:

  • OpenAPI 3.0 specification with complete endpoint definitions
  • Authentication and authorization flow diagrams
  • Request/​response examples for all endpoints
  • Error code reference with troubleshooting guidance
  • SDK generation instructions for multiple languages

Testing Artifacts

Complete test suite:

  • Unit tests for individual controller functions
  • Integration tests for end-to-end API workflows
  • Load test scripts for performance validation
  • Mock data generators for realistic testing
  • Postman/​Insomnia collection for manual testing

Configuration Files

Production-ready configs:

  • Environment variable templates (.env.example)
  • Database migration scripts
  • Docker Compose for local development
  • CI/​CD pipeline configuration
  • Monitoring and alerting setup

Error Handling

Common issues and solutions:

Schema Validation Failures

  • Error: Request body does not match expected schema
  • Solution: Add detailed validation error messages; provide schema documentation; implement request sanitization

Authentication Errors

  • Error: Invalid or expired authentication tokens
  • Solution: Implement proper token refresh flows; add clear error messages indicating auth failure reason; document token lifecycle

Rate Limit Exceeded

  • Error: API consumer exceeded allowed request rate
  • Solution: Return 429 status with Retry-After header; implement exponential backoff guidance; provide rate limit info in response headers

Database Connection Issues

  • Error: Cannot connect to database or query timeout
  • Solution: Implement connection pooling; add health checks; configure proper timeouts; implement circuit breaker pattern for resilience

Resources

API Development Frameworks

  • Express.js and Fastify for Node.js APIs
  • Flask and FastAPI for Python APIs
  • Spring Boot for Java APIs
  • Gin and Echo for Go APIs

API Standards and Best Practices

  • OpenAPI Specification 3.0+ for API documentation
  • JSON:API specification for RESTful API conventions
  • OAuth 2.0 and OpenID Connect for authentication
  • HTTP/​2 and HTTP/​3 for performance optimization

Testing and Monitoring Tools

  • Postman and Insomnia for API testing
  • Swagger UI for interactive API documentation
  • Artillery and k6 for load testing
  • Prometheus and Grafana for monitoring

Security Best Practices

  • OWASP API Security Top 10 guidelines
  • JWT best practices for token-based auth
  • Rate limiting strategies to prevent abuse
  • Input validation and sanitization techniques

More skills from BbgnsurfTech

quality-manager-qms-iso13485 logo
BbgnsurfTech/claude-skills-collection

quality-manager-qms-iso13485

ISO 13485 Quality Management System specialist for medical device companies. Provides QMS implementation, maintenance, process optimization, and compliance expertise. Use for QMS design, documentation control, management review, internal auditing, corrective actions, and ISO 13485 certification a...

25 0
View
performing-visual-regression-testing logo
BbgnsurfTech/claude-skills-collection

performing-visual-regression-testing

This skill enables Claude to execute visual regression tests using tools like Percy, Chromatic, and BackstopJS. It captures screenshots, compares them against baselines, and analyzes visual differences to identify unintended UI changes. Use this skill when the user requests visual testing, UI cha...

25 0
View
uv logo
BbgnsurfTech/claude-skills-collection

uv

Expert guidance for Astral's uv - an extremely fast Python package and project manager. Use when working with Python projects, managing dependencies, creating scripts with PEP 723 metadata, installing tools, managing Python versions, or configuring package indexes. Covers project initialization, ...

25 0
View
ms365-tenant-manager logo
BbgnsurfTech/claude-skills-collection

ms365-tenant-manager

Comprehensive Microsoft 365 tenant administration skill for setup, configuration, user management, security policies, and organizational structure optimization for Global Administrators

25 0
View
finding-arbitrage-opportunities logo
BbgnsurfTech/claude-skills-collection

finding-arbitrage-opportunities

Identify profitable arbitrage opportunities across exchanges and DEXs in real-time. Use when discovering profitable arbitrage across exchanges. Trigger with phrases like "find arbitrage", "scan for arb opportunities", or "check arbitrage".

25 0
View
marketing-demand-acquisition logo
BbgnsurfTech/claude-skills-collection

marketing-demand-acquisition

Multi-channel demand generation, paid media optimization, SEO strategy, and partnership programs for Series A+ startups. Includes CAC calculator, channel playbooks, HubSpot integration, and international expansion tactics. Use when planning demand generation campaigns, optimizing paid media, buil...

25 0
View
web-artifacts-builder logo
BbgnsurfTech/claude-skills-collection

web-artifacts-builder

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

25 0
View
xdg-base-directory logo
BbgnsurfTech/claude-skills-collection

xdg-base-directory

When an application needs to store config, data, cache, or state files. When designing where user-specific files should live. When code writes to ~/.appname or hardcoded home paths. When implementing cross-platform file storage with platformdirs.

25 0
View
managing-database-testing logo
BbgnsurfTech/claude-skills-collection

managing-database-testing

This skill manages database testing by generating test data, wrapping tests in transactions, and validating database schemas. It is used to create robust and reliable database interactions. Claude uses this skill when the user requests database testing utilities, including test data generation, t...

25 0
View
processing-computer-vision-tasks logo
BbgnsurfTech/claude-skills-collection

processing-computer-vision-tasks

This skill enables Claude to process and analyze images using computer vision techniques. It's used to perform tasks such as object detection, image classification, and image segmentation. Use this skill when a user requests analysis of an image, asks for identification of objects within an image...

25 0
View
lead-research-assistant logo
BbgnsurfTech/claude-skills-collection

lead-research-assistant

Identifies high-quality leads for your product or service by analyzing your business, searching for target companies, and providing actionable contact strategies. Perfect for sales, business development, and marketing professionals.

25 0
View
pydeseq2 logo
BbgnsurfTech/claude-skills-collection

pydeseq2

Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.

25 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View