preview-environments

Provision and tear down per-PR Kubernetes environments in GitHub workflows.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/marquesfelip/agents-and-skills --skill preview-environments
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: preview-environments
Source: https://github.com/marquesfelip/agents-and-skills/tree/main/skills/preview-environments
Command: npx skills add https://github.com/marquesfelip/agents-and-skills --skill preview-environments

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ephemeral per-PR environments eliminate the bottleneck of validating feature branches by provisioning isolated runtimes for each PR, ensuring main deployments stay stable while changes are tested in parallel.

Core Features & Use Cases

  • Automated provisioning of per-PR environments on PR open/synchronize
  • Isolated Kubernetes namespaces per PR for clean rollbacks
  • Auto-teardown on PR close or merge, plus TTL-based cleanup
  • Secure and scoped secrets injection for preview deployments
  • Integrated smoke testing and health checks against the preview environment
  • Cost controls and resource limits to prevent runaway usage

Quick Start

Open or update a PR to auto-provision a per-PR preview environment and start validating changes immediately.

Frequently Asked Questions about preview-environments

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create ephemeral preview environments for pull requests in Kubernetes?

Ephemeral preview environments provision isolated Kubernetes namespaces per PR, automatically triggered by GitHub workflows on PR open or update, enabling isolated testing of feature branches without impacting main deployments.

How do you handle secrets in per-PR preview environments securely?

Secure secrets handling in per-PR environments involves scoped secrets injection for preview deployments, ensuring sensitive data is isolated to the specific PR namespace and not exposed across parallel feature branch validations.

Does this ephemeral environment approach work with GitHub workflows and CI/CD pipelines?

Yes, this ephemeral environment approach integrates with GitHub workflows by automatically provisioning isolated runtimes when PRs are opened or updated, fitting directly into CI/CD pipelines for parallel validation and smoke testing.

What is the best way to control costs and clean up ephemeral Kubernetes environments?

Cost control for ephemeral Kubernetes environments is managed through automatic teardown on PR close or merge, combined with TTL-based cleanup and resource limits to prevent runaway usage from abandoned preview deployments.

Can I run smoke tests and health checks against an isolated PR environment?

Yes, you can run integrated smoke testing and health checks against the isolated PR environment to validate feature branches in parallel before merging changes into the main deployment.