health-checks
Post-deployment validation and health check scripts for validating HTTP endpoints, APIs, MCP servers, SSL/TLS certificates, and performance metrics. Use when deploying applications, validating deployments, testing endpoints, checking SSL certificates, running performance tests, or when user mentions health checks, deployment validation, endpoint testing, performance testing, or uptime monitoring.
What this skill does
# Health Checks Post-deployment validation and health check scripts for comprehensive deployment verification. ## Overview This skill provides functional health check scripts, templates, and examples for validating deployments across multiple protocols and services. All scripts include proper error handling, retry logic, timeout configuration, and detailed reporting. ## Scripts All scripts are located in `scripts/` and are fully functional (not placeholders). ### Core Health Check Scripts 1. **http-health-check.sh** - HTTP/HTTPS endpoint validation with status codes, response times, and content verification 2. **api-health-check.sh** - RESTful API endpoint testing with JSON response validation and authentication 3. **mcp-server-health-check.sh** - MCP server validation including tool discovery and execution tests 4. **ssl-tls-validator.sh** - SSL/TLS certificate validation with expiration checking and cipher suite verification 5. **performance-tester.sh** - Load testing and performance metrics collection with concurrent request handling ### Usage Examples ```bash # Basic HTTP health check bash scripts/http-health-check.sh https://example.com # API health check with authentication bash scripts/api-health-check.sh https://api.example.com/v1 "Bearer token123" # MCP server validation bash scripts/mcp-server-health-check.sh http://localhost:3000/mcp # SSL certificate check bash scripts/ssl-tls-validator.sh example.com 443 # Performance testing with 100 concurrent requests bash scripts/performance-tester.sh https://example.com 100 10 ``` ## Templates All templates are located in `templates/` and provide configuration examples. ### Configuration Templates 1. **health-check-config.json** - Health check configuration template with endpoints, thresholds, and retry policies 2. **health-check-config.yaml** - YAML version of health check configuration 3. **monitoring-dashboard.json** - Grafana/Prometheus dashboard configuration for health metrics 4. **alerts-config.json** - Alert rules configuration for health check failures 5. **ci-cd-health-check.yaml** - CI/CD pipeline integration template (GitHub Actions/GitLab CI) 6. **docker-healthcheck.json** - Docker HEALTHCHECK instruction templates ### Template Usage ```bash # Copy and customize configuration cp templates/health-check-config.json my-config.json # Use in CI/CD pipeline cp templates/ci-cd-health-check.yaml .github/workflows/health-check.yml ``` ## Examples All examples are located in `examples/` and demonstrate real-world usage patterns. ### Example Files 1. **basic-usage.md** - Simple health check workflows for common scenarios 2. **advanced-validation.md** - Complex validation scenarios with multiple endpoints and dependencies 3. **ci-cd-integration.md** - Integrating health checks into deployment pipelines 4. **monitoring-setup.md** - Setting up continuous monitoring with health checks 5. **troubleshooting.md** - Common issues and debugging strategies ## Instructions ### Running Health Checks 1. **Single Endpoint Check** ```bash # Check HTTP endpoint bash scripts/http-health-check.sh https://myapp.com # Check API endpoint with authentication bash scripts/api-health-check.sh https://api.myapp.com/health "Bearer $TOKEN" ``` 2. **Comprehensive Deployment Validation** ```bash # Validate all services after deployment bash scripts/http-health-check.sh https://frontend.myapp.com bash scripts/api-health-check.sh https://api.myapp.com/health bash scripts/mcp-server-health-check.sh https://mcp.myapp.com bash scripts/ssl-tls-validator.sh myapp.com 443 bash scripts/performance-tester.sh https://myapp.com 50 5 ``` 3. **Configuration-Based Checks** ```bash # Create configuration file from template cp templates/health-check-config.json deployment-checks.json # Edit configuration with your endpoints # Then run validation script that reads config ``` ### Integration Patterns **CI/CD Pipeline Integration** - Copy `templates/ci-cd-health-check.yaml` to your pipeline configuration - Customize endpoint URLs and thresholds - Run health checks as post-deployment step **Docker Container Health Checks** - Use `templates/docker-healthcheck.json` for Dockerfile HEALTHCHECK - Configure interval, timeout, and retries - Monitor container health status **Monitoring and Alerting** - Use `templates/monitoring-dashboard.json` for Grafana dashboards - Configure `templates/alerts-config.json` for automated alerts - Set up continuous health monitoring ## Requirements - `curl` - For HTTP/HTTPS requests - `jq` - For JSON parsing and validation - `openssl` - For SSL/TLS certificate validation - `bc` - For performance calculations (optional) - `timeout` command - For request timeouts (GNU coreutils) **Optional Requirements:** - `ab` (Apache Bench) - Enhanced performance testing - `hey` - Modern HTTP load generator - `prometheus` - For metrics collection - `grafana` - For dashboard visualization ## Exit Codes All scripts follow standard exit code conventions: - `0` - All health checks passed - `1` - Health check failed (endpoint down, invalid response, etc.) - `2` - Invalid arguments or missing dependencies - `3` - Timeout or network error - `4` - SSL/TLS validation failed - `5` - Performance threshold exceeded ## Best Practices 1. **Always validate after deployment** - Run health checks immediately after deploying 2. **Set appropriate timeouts** - Configure timeouts based on expected response times 3. **Use retries with backoff** - Implement exponential backoff for transient failures 4. **Monitor continuously** - Don't just check once, monitor continuously 5. **Alert on failures** - Set up alerts for health check failures 6. **Test in staging first** - Validate health checks in staging environment 7. **Document thresholds** - Clearly document acceptable response times and error rates --- **Location**: /home/gotime2022/.claude/plugins/marketplaces/ai-dev-marketplace/plugins/deployment/skills/health-checks/
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.