AGENT SKILL

manage-cde

Manage Harness Cloud Development Environments (CDE) via MCP. Configure on-demand development environments with pre-installed tooling, design standardized workspace templates for teams, set up auto-hibernation and cost controls, and manage environment lifecycle. Use when asked to set up cloud dev environments, create workspace templates, configure remote development, or manage CDE lifecycle and costs. Trigger phrases: cloud dev environment, CDE, remote development, workspace template, dev environment, gitpod, codespace, auto-hibernation, developer workspace, ephemeral environment.

License 许可
Apache-2.0
最近更新
2026-06-06
Stars
★ 0
Forks
0

01 前言 Front Matter

name
manage-cde
license
Apache-2.0
metadata
{ "author": "Harness", "version": "1.0.0", "mcp-server": "harness-mcp-v2" }
description
Manage Harness Cloud Development Environments (CDE) via MCP. Configure on-demand development environments with pre-installed tooling, design standardized workspace templates for teams, set up auto-hibernation and cost controls, and manage environment lifecycle. Use when asked to set up cloud dev environments, create workspace templates, configure remote development, or manage CDE lifecycle and costs. Trigger phrases: cloud dev environment, CDE, remote development, workspace template, dev environment, gitpod, codespace, auto-hibernation, developer workspace, ephemeral environment.
compatibility
Requires Harness MCP v2 server (harness-mcp-v2)

03 SKILL.md 正文

Manage CDE

Configure on-demand Cloud Development Environments with workspace templates, auto-hibernation, and cost controls in Harness.

Instructions

Step 1: Establish Scope

Confirm the user's org, project, team, and technology stack.

Call MCP tool: harness_list
Parameters:
  resource_type: "project"
  org_id: "<organization>"

Step 2: Identify the CDE Task

Determine which workflow the user needs:

  1. On-Demand Environment Setup -- Environment templates with resource allocation and lifecycle
  2. Workspace Standardization -- Pre-configured templates per team/stack with consistent tooling

Step 3: Configure On-Demand Environments

Gather from the user:

  • Technology stack and runtime version
  • Cloud provider (AWS, GCP, Azure)
  • IDE preference (VS Code browser, VS Code SSH, JetBrains Gateway)
  • Git provider for auto-clone on start

Design the environment template:

Resource allocation:

  • Default size (e.g., 4 vCPU, 8GB RAM) with upgrade options
  • Persistent storage for workspace files
  • Ephemeral storage that clears on stop

Lifecycle configuration:

  • Provisioning trigger: developer request, PR creation, or branch push
  • Start time target (under 30 seconds recommended)
  • Auto-stop after idle timeout (default 30 minutes)
  • Persistent mode option for long-running work

Integrations:

  • Secret injection from Harness Secrets, Vault, or cloud secret managers
  • Supporting services (databases, caches, message queues) via Docker Compose or Kubernetes
  • Custom access URL pattern (e.g., {user}-{env}.dev.company.com)

Cost controls:

  • Daily cost cap per environment
  • Team-level monthly budget
  • Auto-hibernation for idle environments

Step 4: Create Workspace Templates

When standardizing across teams, create templates per role/stack:

Backend Service Developer:

  • Runtime, build tools, testing frameworks
  • Database clients, API testing tools
  • Pre-configured debugger and linter

Frontend Developer:

  • Node.js runtime, package manager
  • Browser dev tools, component library
  • Hot-reload and preview server

Full-Stack Developer:

  • Combined backend + frontend tooling
  • Docker Compose for local service mesh
  • API mocking tools

Platform / DevOps Engineer:

  • kubectl, Helm, Terraform, cloud CLIs
  • Monitoring and observability tools
  • Infrastructure testing frameworks

Each template should include:

  • Base image and pre-installed tools
  • IDE extensions/plugins list
  • Git hooks and code formatting config
  • Environment variables and secrets

Examples

  • "Set up cloud dev environments for our backend team" -- Configure on-demand CDEs with Java/Go tooling and auto-hibernation
  • "Create workspace templates for frontend and backend developers" -- Standardized templates with stack-specific tooling
  • "Configure auto-hibernation to reduce CDE costs" -- Set idle timeout and daily cost caps
  • "Provision a dev environment when a PR is created" -- Configure PR-triggered ephemeral environments

Performance Notes

  • Start time under 30 seconds requires pre-built images -- avoid installing tools at startup.
  • Auto-hibernation timeout should balance developer productivity (too short = friction) with cost (too long = waste).
  • Persistent storage should be sized for the repo plus build artifacts -- undersizing causes build failures.
  • Pre-pull common base images to reduce cold start times.

Troubleshooting

Environment Slow to Start

  • Check if the base image is being pulled from a remote registry -- use a local cache or pre-pull
  • Reduce the number of tools installed at startup -- bake them into the base image
  • Verify network connectivity to the Git provider for auto-clone

Environment Auto-Stopping Too Aggressively

  • Increase the idle timeout for developers doing research or design work
  • Enable persistent mode for long-running tasks
  • Check that IDE keepalive signals are reaching the CDE controller

Cost Overruns

  • Review environments that have been running for more than 24 hours
  • Check for orphaned environments from deleted branches
  • Verify auto-hibernation is enabled for all non-production environments

04 同仓库更多 Skills

AdmiralGallade
AdmiralGallade/harness-repository

verify-sign

Add an Artifact Verification (SscaArtifactVerification) step to an existing Harness pipeline to verify Cosign signatures on container or local-stage artifacts. Supports CI, Security, and CD Deploy (containerized step group). Supports Third-Party registries (Docker, ECR, GCR, GAR, ACR), Harness Artifact Registry (HAR), and Harness Local Stage artifacts. Only works with existing pipelines. Use when asked to verify signed artifacts, verify artifact signature, verify-sign, validate Cosign signature, or configure SscaArtifactVerification. Trigger phrases: verify sign, verify artifact, artifact verification, verify signature, verify-sign, SscaArtifactVerification, verify signed image, verify Cosign, HAR verification.

★ 0
AdmiralGallade
AdmiralGallade/harness-repository

template-usage

Track Harness template dependencies, usage, and adoption via MCP v2 tools. Find which pipelines or other templates reference a given template, analyze update impact, identify unused templates, and compare version adoption. Use when asked about template usage, template references, template dependencies, impact analysis before updating a template, finding unused templates, or tracking template adoption across projects. Trigger phrases: template usage, who uses template, template references, template dependencies, template impact, unused templates, template adoption. Do NOT use for creating or updating templates (use create-template instead).

★ 0
AdmiralGallade
AdmiralGallade/harness-repository

sign-artifact

Add an Artifact Signing (SscaArtifactSigning) step to an existing Harness pipeline to Cosign-sign container or local-stage artifacts with keyless, key-based, or Vault signing. Supports Third-Party registries (Docker, ECR, GCR, GAR, ACR), Harness Artifact Registry (HAR), and Harness Local Stage artifacts. Place after image build/push; optionally upload .sig to the registry. Only works with existing pipelines. Use when asked to sign artifacts, add artifact signing, Cosign sign image, attach signature to registry, or configure SscaArtifactSigning. Trigger phrases: sign artifact, artifact signing, sign image, Cosign sign, add signing step, SscaArtifactSigning, attach signature, sign container image, HAR signing.

★ 0
AdmiralGallade
AdmiralGallade/harness-repository

sei-analytics

Advanced engineering analytics via Harness Software Engineering Insights (SEI) MCP. Configure sprint velocity and estimation accuracy tracking, engineering investment allocation breakdowns, sprint planning with capacity forecasts, and release readiness assessments. Use when asked about sprint analytics, investment allocation, sprint planning, capacity forecasting, or release readiness. Do NOT use for DORA metrics (use dora-metrics instead). Trigger phrases: sprint velocity, sprint analytics, investment allocation, capacity planning, sprint forecast, release readiness, engineering productivity, estimation accuracy, sprint planning, scope creep, code quality trends.

★ 0
AdmiralGallade
AdmiralGallade/harness-repository

security-report

Generate security compliance reports using Harness SCS and STO via MCP. Analyze vulnerabilities, SBOMs, and manage exemptions. Use when user says "security report", "vulnerabilities", "SBOM", "security scan", "compliance check", or asks about application security.

★ 0
AdmiralGallade
AdmiralGallade/harness-repository

scorecard-review

Review service maturity scorecards and compliance using Harness IDP via MCP. Check production readiness, security, and documentation scores. Use when user says "scorecard", "service maturity", "production readiness", "compliance score", or asks about service health scores.

★ 0