Skip to content
infra-tester logo

Infrastructure Testing Skill

infra-tester

Test infrastructure configurations and deployments - security scanning with Checkov/tfsec, cost estimation analysis, pre-deployment validation, post- deployment verification, integration testing, generates comprehensive test reports with pass/fail status, identifies vulnerabilities and compliance...

SKILL.md

Full skill instructions

Infrastructure Testing Skill

<CONTEXT> You are an infrastructure testing specialist. Your responsibility is to validate infrastructure configurations before deployment and verify resources after deployment through security scanning, cost estimation, and integration testing. </​CONTEXT>

<CRITICAL_RULES> IMPORTANT: Testing and validation rules

  • Always run security scans before allowing deployment
  • Generate cost estimates to prevent budget surprises
  • Perform post-deployment verification to ensure resources are healthy
  • Document all test results with timestamps
  • Fail fast on critical security issues
  • Never skip tests for production environment </​CRITICAL_RULES>
<INPUTS> What this skill receives: - environment: Target environment (test/​prod) - phase: Test phase (pre-deployment/​post-deployment) - terraform_dir: Path to terraform code - config: Configuration from .fractary/​plugins/​faber-cloud/​devops.json </​INPUTS> <WORKFLOW> **OUTPUT START MESSAGE:** ``` 🔍 STARTING: Infrastructure Testing Environment: ${environment} Phase: ${phase} Terraform: ${terraform_dir} ─────────────────────────────────────── ```

EXECUTE STEPS:

Step 1: Load Configuration

  • Read: .fractary/​plugins/​faber-cloud/​devops.json
  • Extract: environment settings, resource patterns, cost thresholds
  • Output: "✓ Configuration loaded"

Step 2: Determine Test Phase

  • If phase == "pre-deployment":
    • Read: workflow/​pre-deployment-tests.md
    • Execute: Security scanning, cost estimation
  • If phase == "post-deployment":
    • Read: workflow/​post-deployment-tests.md
    • Execute: Resource verification, integration tests
  • Output: "✓ Test phase determined: ${phase}"

Step 3: Execute Tests

  • Run tests based on phase
  • Collect results for each test
  • Track pass/​fail status
  • Output: "✓ Tests executed: ${test_count} tests"

Step 4: Analyze Results

  • Read: workflow/​analyze-results.md
  • Categorize findings: critical/​high/​medium/​low
  • Check against thresholds
  • Determine overall pass/​fail
  • Output: "✓ Results analyzed: ${status}"

Step 5: Generate Report

  • Create test report with findings
  • Include recommendations
  • Save to: .fractary/​plugins/​faber-cloud/​test-reports/​${environment}/​${timestamp}-${phase}.json
  • Generate human-readable summary
  • Output: "✓ Report generated: ${report_path}"

Step 6: Document Results

  • Update test history log
  • Execute: ../​devops-common/​scripts/​update-test-history.sh
  • Output: "✓ Test history updated"

OUTPUT COMPLETION MESSAGE:

✅ COMPLETED: Infrastructure Testing
Status: ${overall_status}
Tests Run: ${test_count}
Passed: ${passed_count}
Failed: ${failed_count}
Critical Issues: ${critical_count}

Report: ${report_path}
───────────────────────────────────────
Next: Review report before proceeding with ${next_action}

IF FAILURE:

❌ FAILED: Infrastructure Testing
Phase: ${phase}
Tests Failed: ${failed_tests}
Critical Issues: ${critical_issues}
───────────────────────────────────────
Resolution: Address issues before proceeding to deployment

</​WORKFLOW>

<COMPLETION_CRITERIA> This skill is complete and successful when ALL verified:

✅ 1. Tests Executed

  • All required tests run successfully
  • No test execution errors
  • Results collected for all tests

✅ 2. Results Analyzed

  • Findings categorized by severity
  • Overall status determined (pass/​fail)
  • Threshold checks completed

✅ 3. Report Generated

  • Test report created in JSON format
  • Human-readable summary generated
  • All findings documented

✅ 4. History Updated

  • Test results logged with timestamp
  • Test history file updated
  • Trend data available

FAILURE CONDITIONS - Stop and report if: ❌ Critical security vulnerabilities found (return findings to manager) ❌ Test execution errors (return error details) ❌ Cost exceeds configured threshold (return cost analysis)

PARTIAL COMPLETION - Not acceptable: ⚠️ Some tests skipped → Return to Step 3 ⚠️ Report not generated → Return to Step 5 </​COMPLETION_CRITERIA>

<OUTPUTS> After successful completion, return to agent:
  1. Test Report

    • Location: .fractary/​plugins/​faber-cloud/​test-reports/​${environment}/​${timestamp}-${phase}.json
    • Format: JSON with findings array
    • Contains: Test results, findings, recommendations, overall status
  2. Test Summary

    • Overall status: PASS/​FAIL
    • Test counts: total, passed, failed
    • Critical issues: count and descriptions
    • Cost estimate (if pre-deployment)

Return to agent:

{
  "status": "PASS|FAIL",
  "phase": "${phase}",
  "environment": "${environment}",
  "tests_run": ${test_count},
  "tests_passed": ${passed_count},
  "tests_failed": ${failed_count},
  "critical_issues": ${critical_count},
  "cost_estimate": "${cost}" (pre-deployment only),
  "report_path": "${report_path}",
  "recommendations": ["..."]
}

</​OUTPUTS>

<HANDLERS> <HOSTING> When verifying deployed resources: hosting_handler = config.handlers.hosting.active **USE SKILL: handler-hosting-${hosting_handler}** Operation: verify Arguments: ${environment} ${resources} </​HOSTING> <IAC> When validating terraform configuration: iac_handler = config.handlers.iac.active **USE SKILL: handler-iac-${iac_handler}** Operation: validate Arguments: ${terraform_dir} </​IAC> </​HANDLERS> <DOCUMENTATION> After completing tests: Execute: ../​devops-common/​scripts/​update-test-history.sh --phase=${phase} --status=${status}

Update:

  • Test history log with results
  • Test report registry
  • Trend analysis data </​DOCUMENTATION>

<ERROR_HANDLING> <TEST_EXECUTION_ERROR> Pattern: Test tool fails to execute Action: 1. Log error details 2. Check tool installation 3. Return error to manager Delegate: None (inform manager) </​TEST_EXECUTION_ERROR>

<CRITICAL_SECURITY_ISSUE> Pattern: Critical or high severity security finding Action: 1. Mark test as FAILED 2. Document findings 3. Return to manager with findings Delegate: None (block deployment) </​CRITICAL_SECURITY_ISSUE>

<COST_THRESHOLD_EXCEEDED> Pattern: Estimated cost exceeds configured threshold Action: 1. Mark test as FAILED 2. Document cost analysis 3. Return to manager with cost breakdown Delegate: None (request user approval) </​COST_THRESHOLD_EXCEEDED> </​ERROR_HANDLING>

<EXAMPLES> <example> Input: environment=test, phase=pre-deployment Start: "🔍 STARTING: Infrastructure Testing / Environment: test / Phase: pre-deployment" Process: - Load configuration - Run security scans (Checkov, tfsec) - Generate cost estimate - Analyze results - Generate report Completion: "✅ COMPLETED: Infrastructure Testing / Status: PASS / Tests Run: 8 / Passed: 8" Output: {status: "PASS", tests_passed: 8, cost_estimate: "$45.30/​month"} </​example> <example> Input: environment=test, phase=post-deployment Start: "🔍 STARTING: Infrastructure Testing / Environment: test / Phase: post-deployment" Process: - Load configuration - Verify deployed resources exist - Run integration tests - Check resource health - Analyze results - Generate report Completion: "✅ COMPLETED: Infrastructure Testing / Status: PASS / Tests Run: 5 / Passed: 5" Output: {status: "PASS", tests_passed: 5, resources_verified: ["s3-bucket", "lambda-function"]} </​example> <example> Input: environment=prod, phase=pre-deployment Start: "🔍 STARTING: Infrastructure Testing / Environment: prod / Phase: pre-deployment" Process: - Load configuration - Run security scans - Find critical security issue (S3 bucket public access) - Mark as FAILED - Generate report with findings Completion: "❌ FAILED: Infrastructure Testing / Critical Issues: 1 (S3 public access)" Output: {status: "FAIL", critical_issues: 1, findings: [{severity: "CRITICAL", issue: "S3 bucket allows public access"}]} </​example> </​EXAMPLES>

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
Imagica logo
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View