Harness Skills

June 10, 2026 · View on GitHub

Claude Code skills for the Harness.io CI/CD platform. Generate pipeline YAML, manage resources, debug failures, analyze costs, and more from natural language.

This repository is designed as a workflow system, not just a folder of prompts. The top-level instructions (CLAUDE.md, AGENTS.md, .github/copilot-instructions.md) establish shared behavior, while individual skills specialize in creation, debugging, governance, and reporting tasks.

Prerequisites

  • Harness MCP v2 Server - required for MCP-powered skills. Most skills in this repo depend on it for Harness API access.

Setup

Claude Code

Clone the repo and run Claude Code from the project directory. Skills are automatically discovered from CLAUDE.md and skills/*/SKILL.md:

git clone https://github.com/harness/harness-skills.git
cd harness-skills
claude

To add the Harness MCP server, configure it in your Claude Code settings (~/.claude/settings.json):

{
  "mcpServers": {
    "harness-mcp-v2": {
      "command": "npx",
      "args": ["-y", "harness-mcp-v2"],
      "env": {
        "HARNESS_API_KEY": "<your-api-key>"
      }
    }
  }
}

Invoke skills by name:

/create-pipeline
Create a CI pipeline for a Node.js app that builds, runs tests,
and pushes a Docker image to ECR

Cursor

  1. Clone the repo into your project or as a reference workspace:
git clone https://github.com/harness/harness-skills.git
  1. The repo includes .cursor/rules/harness.mdc, which Cursor automatically loads as a project rule.

  2. Configure the Harness MCP server in Cursor (~/.cursor/mcp.json):

{
  "mcpServers": {
    "harness-mcp-v2": {
      "command": "npx",
      "args": ["-y", "harness-mcp-v2"],
      "env": {
        "HARNESS_API_KEY": "<your-api-key>"
      }
    }
  }
}
  1. Reference individual skills in your prompts using @file:
@harness-skills/skills/create-pipeline/SKILL.md
Create a CI pipeline for my Go service

OpenAI Codex

  1. Clone the repo into your working directory:
git clone https://github.com/harness/harness-skills.git
  1. The repo includes AGENTS.md at the root, which Codex automatically reads as system instructions.

  2. Configure the Harness MCP server in your Codex MCP config:

{
  "mcpServers": {
    "harness-mcp-v2": {
      "command": "npx",
      "args": ["-y", "harness-mcp-v2"],
      "env": {
        "HARNESS_API_KEY": "<your-api-key>"
      }
    }
  }
}
  1. Reference individual skill files as context when prompting:
Using the instructions in harness-skills/skills/debug-pipeline/SKILL.md,
diagnose why my deploy pipeline failed

GitHub Copilot

  1. Clone the repo into your project:
git clone https://github.com/harness/harness-skills.git
  1. The repo includes .github/copilot-instructions.md, which Copilot automatically reads as project-level context in both GitHub.com and VS Code.

  2. For VS Code, configure the Harness MCP server in your workspace settings (.vscode/mcp.json):

{
  "servers": {
    "harness-mcp-v2": {
      "command": "npx",
      "args": ["-y", "harness-mcp-v2"],
      "env": {
        "HARNESS_API_KEY": "<your-api-key>"
      }
    }
  }
}
  1. Reference skill files in Copilot Chat using #file:
#file:harness-skills/skills/create-pipeline/SKILL.md
Create a CI pipeline for my Python service
  1. For GitHub Copilot on GitHub.com, attach skill files as context in Copilot Chat or add them as knowledge base references in your Copilot organization settings.

Windsurf / Other AI Editors

The skills in this repo are plain Markdown files with YAML frontmatter. They work with any AI coding tool that supports:

  1. System instructions - Use CLAUDE.md as project-level context.
  2. MCP servers - Connect the Harness MCP v2 server for API access.
  3. File context - Reference individual skills/*/SKILL.md files in prompts.

Operating Model

The best Harness skills follow the same control flow even when they target different resource types:

  1. Establish scope first - confirm account/org/project context before listing, creating, updating, or deleting resources.
  2. Verify dependencies before generating dependents - do not reference connectors, secrets, environments, infrastructure, or templates that have not been confirmed to exist.
  3. Discover schema before writing payloads - use harness_describe and API validation feedback instead of guessing field names or payload shape.

These repo-level playbooks live in:

Workflow Modes

Workflow modeRepresentative skillsUse when
Create and scaffold/create-pipeline, /create-service, /create-connector, /create-templateYou need to define or generate new Harness resources and their YAML or MCP payloads.
Run and debug/run-pipeline, /debug-pipeline, /migrate-pipeline, /manage-delegatesYou already have resources and need to execute, diagnose, or repair behavior.
Govern and secure/manage-roles, /manage-users, /create-policy, /security-report, /audit-reportYou need RBAC, policy, compliance, or security workflows with blast-radius awareness.
Analyze and report/dora-metrics, /analyze-costs, /scorecard-review, /template-usageYou need structured reports, summaries, recommendations, or adoption analysis.

End-to-End Workflows

New microservice setup

Use these skills in order:

  1. /create-connector
  2. /create-secret
  3. /create-service
  4. /create-environment
  5. /create-infrastructure
  6. /create-pipeline
  7. /create-trigger

Debug a failed deployment

Typical sequence:

  1. /run-pipeline to identify the latest execution or reproduce the issue
  2. /debug-pipeline to classify the failure and inspect root cause
  3. /template-usage if shared templates may have propagated the issue
  4. /manage-delegates if the failure points to delegate capacity or connectivity

Skills

Pipeline & Template Creation

SkillDescription
/create-pipelineGenerate v0 Pipeline YAML (CI, CD, approvals, matrix strategies)
/create-pipeline-v1Generate v1 simplified Pipeline YAML - Alpha: internal testing only
/create-templateCreate reusable Step, Stage, Pipeline, or StepGroup templates
/create-triggerCreate webhook, scheduled, and artifact triggers
/create-agent-templateCreate AI-powered agent templates - Alpha: internal testing only

Resource Management

SkillDescription
/create-serviceCreate service definitions (K8s, Helm, ECS, Lambda)
/create-environmentCreate environment definitions with overrides
/create-infrastructureCreate infrastructure definitions
/create-connectorCreate connectors (Git, cloud, registries, clusters)
/create-secretCreate secrets (text, file, SSH, WinRM)

Access Control & Feature Flags (MCP)

SkillDescription
/manage-usersManage users, user groups, and service accounts
/manage-rolesManage role assignments and RBAC
/manage-feature-flagsCreate, list, toggle, and delete feature flags

Operations & Debugging (MCP)

SkillDescription
/run-pipelineExecute pipelines, monitor progress, handle approvals
/debug-pipelineAnalyze execution failures, diagnose root causes
/migrate-pipelineConvert pipelines from v0 to v1 format
/optimize-pipelinePipeline speed optimization, parallel testing, caching, monorepo builds
/deployment-readinessPre-deployment readiness checks, environment drift, canary decisions
/incident-responseDeployment-incident correlation, blast radius, postmortems
/pr-analysisPR pipeline impact, security review, PR-to-production tracking
/template-usageTrack template dependencies and adoption
/manage-delegatesMonitor delegate health and manage tokens

Security

SkillDescription
/configure-repo-scanScan your code repositories for SAST and SCA vulnerabilities
/configure-secret-scanDetect exposed secrets and credentials in your code repositories
/configure-container-scanScan your container images for vulnerabilities
/configure-dast-scanTest your running applications for security vulnerabilities with DAST
/exempt-vulnExempt vulnerabilities with security waivers at Target, project or pipeline scope
/approve-exemptApprove pending STO exemptions at current scope or elevate to project/org/account; mixed scopes per batch
/generate-slsaGenerate and attest SLSA provenance for your artifacts
/enforce-slsaVerify SLSA provenance attestations and enforce OPA policies on your artifacts
/create-sbomGenerate and attest SBOM for your artifacts and code repositories
/enforce-sbomVerify SBOM attestations and enforce OPA policies on your artifacts and code repositories
/sign-artifactSign your artifacts to ensure integrity and authenticity in your supply chain
/verify-signVerify artifact integrity and authenticity before deployment

Platform Intelligence (MCP)

SkillDescription
/analyze-costsCloud cost analysis and optimization (CCM)
/security-reportVulnerability reports, SBOMs, compliance (SCS/STO)
/dora-metricsDORA metrics and engineering performance (SEI)
/sei-analyticsSprint analytics, investment allocation, capacity forecasting, release readiness
/manage-slosSLO definition, error budgets, incident detection, runbooks (SRM)
/ai-operationsPredictive failure analysis and intelligent alert correlation (AIDA)
/gitops-statusGitOps application health and sync status
/chaos-experimentCreate and run chaos experiments
/scorecard-reviewService maturity scorecards (IDP)
/manage-idpService catalog, self-service workflows, documentation, onboarding (IDP)
/manage-iacmTerraform workspaces, drift detection, cost estimation (IaCM)
/manage-cdeCloud development environments and workspace templates (CDE)
/manage-artifactsArtifact registry, security scanning, replication (AR)
/manage-supply-chainSBOM generation, artifact signing, supply chain policies (SSCA)
/audit-reportAudit trails and compliance reports
/create-policyCreate OPA governance policies for supply chain security

Project Structure

harness-skills/
├── skills/
│   ├── create-pipeline/
│   │   ├── SKILL.md
│   │   └── references/
│   ├── create-template/
│   │   └── SKILL.md
│   ├── debug-pipeline/
│   │   └── SKILL.md
│   └── ...                      # Skill definitions
├── references/                  # Shared repo-level playbooks
├── templates/                   # Shared repo-level output templates
├── scripts/
│   └── validate-skills.sh       # Structural validation
├── examples/
│   ├── v0/                      # v0 pipeline examples
│   ├── v1/                      # v1 pipeline examples
│   ├── templates/               # Template examples
│   ├── triggers/                # Trigger examples
│   ├── services/                # Service definition examples
│   ├── environments/            # Environment examples
│   ├── connectors/              # Connector examples
│   └── ...
├── .cursor/rules/harness.mdc    # Auto-loaded by Cursor
├── .github/copilot-instructions.md
├── AGENTS.md                    # Auto-loaded by OpenAI Codex
├── CLAUDE.md                    # Auto-loaded by Claude Code
├── CONTRIBUTING.md              # Contribution guidelines
├── LICENSE
└── README.md

Shared Playbooks and Templates

Use root-level shared assets for behavior that should stay consistent across many skills:

  • references/ - reusable operating guidance such as scope establishment, dependency verification, and schema-validation loops
  • templates/ - reusable output contracts such as operation summaries and report formats

Use per-skill references/ or templates/ when the content is domain-specific and should not be imported broadly.

Skill Anatomy

Each skill is a directory under skills/ containing a SKILL.md with YAML frontmatter and a consistent markdown body:

---
name: my-skill
description: >-
  Explain what the skill does, when to use it, when not to use it, and likely
  trigger phrases. Keep it under 1024 characters.
metadata:
  author: Harness
  version: 1.0.0
  mcp-server: harness-mcp-v2
license: Apache-2.0
compatibility: Requires Harness MCP v2 server (harness-mcp-v2)
---

# My Skill

One or two sentences describing the operating mode and expected outcome.

## Instructions

Phase-based steps for Claude to follow.

## Examples

Invocation examples and, for complex skills, brief worked examples.

## Performance Notes

Validation checks, tradeoffs, or speed/accuracy guidance.

## Troubleshooting

Common errors, recovery steps, and expected fallbacks.

For complex skills, add references/ or templates/ under the skill directory rather than bloating SKILL.md.

MCP Tools

MCP-powered skills use the Harness MCP v2 server, which provides 10 generic tools dispatched by resource_type:

ToolPurpose
harness_listList resources
harness_getGet resource details
harness_createCreate a resource
harness_updateUpdate a resource
harness_deleteDelete a resource
harness_executeExecute an action
harness_searchSearch across resources
harness_describeGet resource schema
harness_diagnoseDiagnose issues
harness_statusCheck system status

Schema References

Contributing

See CONTRIBUTING.md for skill authoring standards, validation rules, and contribution workflow.

License

This project is licensed under the Apache License 2.0.

Copyright 2026 Harness Inc.