environments

Enforce environment parity across dev, staging, and production with CI fitness functions.

Updated May 28, 2026
One-click install
npx skills add https://github.com/syntropic137/harness-app-template --skill environments-syntropic137
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: environments
Source: https://github.com/syntropic137/harness-app-template/tree/main/.claude/skills/environments
Command: npx skills add https://github.com/syntropic137/harness-app-template --skill environments-syntropic137

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Environment drift between development, staging, and production leads to production-only bugs, unpredictable deploys, and lengthy onboarding, as differences in runtime, dependencies, and configuration create untested code paths that only surface during incidents.

Core Features & Use Cases

  • Cross-environment parity enforcement: Ensure dev, CI, staging, and production use identical runtime versions, dependency lockfiles, and artifact builds to eliminate drift-related bugs.
  • Declarative environment management: Store container manifests, runtime pins, and infrastructure-as-code in the repo so any contributor or CI runner can reproduce the environment without tribal knowledge.
  • Use Case: A team deploying a polyglot service can use this skill to enforce that the same artifact built in CI is promoted through staging to production, with per-PR preview environments that auto-teardown to avoid stale resources and cost overruns.

Quick Start

Use the environments skill to audit your project's environment parity across dev, staging, and production, identify drift in runtime versions or dependency lockfiles, and generate a CI fitness function to enforce your team's committed parity rules.

Frequently Asked Questions about environments

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

FAQPage Schema
How do I prevent environment drift between development, staging, and production?

Environment drift is prevented by enforcing cross-environment parity through identical runtime versions, dependency lockfiles, and artifact promotion. Using declarative environment manifests ensures all stages use the same configurations, eliminating untested code paths.

What is a CI fitness function for environment parity?

A CI fitness function for environment parity is a mechanically enforced rule that audits your project's environment manifests. It ensures dev, CI, staging, and production environments remain consistent by automatically failing the pipeline if runtime versions or dependency lockfiles drift.

How do I manage ephemeral per-PR preview environments without resource sprawl?

Ephemeral per-PR preview environments are managed using declarative manifests that provision and teardown environments automatically. This prevents stale resources and cost overruns by ensuring the preview environment is destroyed when the pull request is closed or merged.

Does artifact promotion work for polyglot software projects with multiple runtime versions?

Artifact promotion works for polyglot software projects by ensuring the exact same artifact built in CI is promoted through staging to production. Declarative environment manifests pin runtime versions and dependency lockfiles to maintain consistency across all deployment stages.

How do I ensure secret loader parity across different deployment stages?

Secret loader parity is ensured by declaring secret loading configurations within your environment manifests. This guarantees that development, CI, staging, and production all utilize the same secret loading mechanisms, preventing configuration-related deployment failures.

When should I use declarative environment manifests instead of manual configuration?

Declarative environment manifests should be used when you need to eliminate tribal knowledge and enable any contributor or CI runner to reproduce the environment. They are essential for maintaining build and runtime isolation across complex, polyglot deployment stages.