create-environment

Generate Harness environment YAML configurations and push them via MCP.

1|Updated Apr 16, 2026
One-click install
npx skills add https://github.com/thisrohangupta/cursor-harness-plugin --skill create-environment-thisrohangupta
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-environment
Source: https://github.com/thisrohangupta/cursor-harness-plugin/tree/main/skills/create-environment
Command: npx skills add https://github.com/thisrohangupta/cursor-harness-plugin --skill create-environment-thisrohangupta

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires harness-mcp-v2, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of creating and managing Harness environments for deployment targets, allowing users to define PreProduction and Production environments with ease.

Core Features & Use Cases

  • Environment Creation: Automatically generate Harness Environment YAML for various deployment targets.
  • Variable Management: Support for environment variables and manifest overrides.
  • Multi-Environment Setup: Ability to configure and manage dev, staging, and prod environments.
  • Use Case: Simplify the process of setting up and managing development, staging, and production environments within the Harness platform.

Quick Start

Create a new PreProduction environment named 'staging' with the command 'create-environment -t PreProduction -n staging'.

Frequently Asked Questions about create-environment

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

FAQPage Schema
How do I automate Harness environment creation for deployment targets?

You can automate Harness environment creation by generating YAML configurations and pushing them to the Harness platform via MCP. This Skill simplifies setting up deployment targets like PreProduction and Production environments.

Can I set up multiple dev, staging, and prod environments in Harness using YAML?

Yes, you can configure and manage multiple dev, staging, and prod environments in Harness using YAML. The Skill supports multi-environment setup, allowing you to define PreProduction and Production targets with environment variables and manifest overrides.

Do I need the Harness MCP v2 server to manage environment YAML configurations?

Yes, the Harness MCP v2 server is a required dependency for creating and managing environments. The Skill relies on this MCP server to push generated YAML configurations directly to the Harness platform.

What is the best way to create a PreProduction environment in Harness?

The best way to create a PreProduction environment in Harness is by using the create-environment command with the appropriate flags, such as specifying the type and name. This generates the necessary YAML and pushes it via MCP.

How do environment variables and manifest overrides work in Harness environment management?

Environment variables and manifest overrides are supported during Harness environment creation to customize deployment targets. The Skill generates the required YAML configuration that defines these variables for your specific PreProduction or Production environments.

Are there limitations when using MCP to generate Harness environment YAML?

The primary limitation is the strict dependency on the Harness MCP v2 server for environment creation and management. This Skill is specifically tailored for the Harness ecosystem and applies to deployment workflows requiring environment setup within that platform.