agentleFS
harnessharness/harness-skills/AGENTS.md

harness-skills

AGENTS.md115 starsChanged 56 days agoApache-2.0View on GitHub

This repository contains Claude Code skills for working with Harness.io CI/CD platform. All skills use the Harness MCP v2 server's consolidated tool interface. All skills use the Harness MCP v2 server which provides 10 generic tools operating across 119+ resource types: Tools accept a resource_type parameter (e.g., pipeline, secret, template) to target specific Harness resources. Tools also support Harness UI URL auto-extraction for org_id, project_id, resource_type, and resource_id. Skills live in skills/<skill-name>/SKILL.md. Each skill folder may contain references/, scripts/, and…

The file

We split this AGENTS.md into the rules it gives an agent

9 rules. About 2 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈2

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All skills use the Harness MCP v2 server which provides 10 generic tools operating across 119+ resource types:

    line 7
  2. Common:

    When users need end-to-end setup, follow these dependency chains.

    line 129
  3. Distinctive:

    Use when a user wants to deploy a new service to Harness.

    line 133
  4. Distinctive:

    Use when a user is setting up a brand new Harness project from scratch:

    line 145
  5. Common:

    Key rule: Always check if a referenced resource (connector, secret, environment) exists before creating something that depends on it.

    line 156
  6. Distinctive:

    Before making any MCP API call that creates or modifies resources, always establish the user's scope:

    line 160
  7. Distinctive:

    Ask for org and project: if not already known. Most Harness resources are scoped to an org + project.

    line 162
  8. Very specific:

    When creating resources via harness_create, the Harness API validates the payload and returns specific error messages for malformed …

    line 169
  9. Very specific:

    When creating or modifying skills, run scripts/validate-skills.sh to check compliance.

    line 180

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Harness Skills

This repository contains Claude Code skills for working with Harness.io CI/CD platform. All skills use the Harness MCP v2 server's consolidated tool interface.

MCP v2 Server

All skills use the Harness MCP v2 server which provides 10 generic tools operating across 119+ resource types:

ToolPurpose
harness_listList resources with filters and pagination
harness_getGet a single resource by ID
harness_createCreate a resource (requires confirmation)
harness_updateUpdate a resource (requires confirmation)
harness_deleteDelete a resource (requires confirmation)
harness_executeRun, retry, interrupt, sync, toggle, approve, reject, test_connection
harness_searchCross-resource keyword search
harness_describeLocal metadata/schema lookup (no API call)
harness_diagnosePipeline failure analysis
harness_statusProject health overview

Tools accept a resource_type parameter (e.g., pipeline, secret, template) to target specific Harness resources. Tools also support Harness UI URL auto-extraction for org_id, project_id, resource_type, and resource_id.

Skill Directory

Skills live in skills/<skill-name>/SKILL.md. Each skill folder may contain references/, scripts/, and assets/ subdirectories.

Pipeline & Execution

SkillDescription
/create-pipelineGenerate v0 pipeline YAML (CI, CD, combined, approvals)
/create-pipeline-v1Generate v1 simplified pipeline YAML
/create-triggerCreate webhook, scheduled, and artifact triggers
/create-templateCreate reusable step, stage, pipeline, and step group templates
/run-pipelineExecute and monitor pipeline runs
/debug-pipelineDiagnose pipeline execution failures
/migrate-pipelineConvert v0 pipelines to v1 format

Infrastructure & Resources

SkillDescription
/create-serviceDefine services (Kubernetes, Helm, ECS) with artifact sources
/create-environmentCreate environments (PreProduction, Production) with overrides
/create-infrastructureDefine infrastructure (K8s, ECS, Serverless)
/create-connectorCreate connectors (GitHub, AWS, GCP, Azure, Docker, K8s)
/create-secretManage secrets (SecretText, SecretFile, SSHKey, WinRM)

Access Control & Users

SkillDescription
/manage-usersManage users, user groups, and service accounts
/manage-rolesRBAC roles, assignments, permissions, and resource groups

Feature Flags

SkillDescription
/manage-feature-flagsCreate, list, toggle, and delete feature flags
/fme-rollout-pipelineCompose FeatureFlag stages and FmeFlag* steps for flag rollouts

Database Operations

SkillDescription
/dbops-changesetGenerate, refine, review, and execute Liquibase changesets with Harness DBOPS

Platform Operations

SkillDescription
/manage-delegatesMonitor delegate health and manage registration tokens
/manage-iacmTerraform workspaces, drift detection, cost estimation, and approval workflows
/manage-cdeCloud development environments, workspace templates, and auto-hibernation
/manage-artifactsArtifact registry setup, security scanning, and cross-region replication
/create-sbomAdd SBOM Orchestration (generation/attestation) to existing pipelines
/enforce-sbomAdd SBOM Policy Enforcement (verify attestation + OPA policy sets)
/manage-supply-chainSBOM generation, artifact signing, and supply chain policy enforcement

Security

SkillDescription
/configure-repo-scanConfigure code scanning in pipelines with STO security scanners
/configure-secret-scanAdd secret detection scanning to pipelines to find exposed credentials and API keys (Gitleaks, Semgrep, Snyk, and more)
/configure-container-scanAdd container image scanning to pipelines using Harness STO scanners (Trivy, Grype, Snyk, and more)
/generate-slsaAdd SLSA Generation (provenance + optional Cosign attestation) to existing pipelines
/enforce-slsaAdd SLSA Verification (verify attestation + OPA policy sets on provenance) to pipelines
/sign-artifactAdd Artifact Signing (Cosign sign + optional .sig upload) to existing pipelines (SSCA)
/verify-signAdd Artifact Verification (verify Cosign signature) to existing pipelines (SSCA)
/configure-dast-scanAdd DAST scanning to pipelines for runtime application security testing (Traceable, Burp Suite, ZAP, Nikto, Nmap)
/exempt-vulnCreate STO security exemptions (waivers) for vulnerabilities; Project/Pipeline/Target scope from the Vuln tab, Project-only from the All Issues page
/approve-exemptApprove pending STO exemptions at current scope or elevate to Project/Org/Account; mixed per-row approval scopes supported
/configure-agent-pr-attestationInstall and configure the Claude Code PR attestation hook for signed in-toto attestations to the Harness Evidence Vault

Observability & Governance

SkillDescription
/analyze-costsCloud cost analysis, recommendations, and anomaly detection
/security-reportSecurity vulnerabilities, SBOMs, and compliance reports
/dora-metricsDORA metrics and engineering performance reports
/gitops-statusGitOps application health, sync status, and pod logs
/chaos-experimentCreate, edit, and reference chaos experiments (faults, probes, actions)
/chaos-dr-testCreate and edit DR Test pipelines with chaos steps
/scorecard-reviewIDP scorecards and service maturity review
/audit-reportAudit trails and compliance evidence (SOC2, GDPR, HIPAA)
/template-usageTemplate dependency tracking, impact analysis, and adoption
/create-policyCreate OPA governance policies for supply chain security
/manage-idpService catalog, self-service workflows, documentation, and developer onboarding (IDP)
/manage-slosSLO definition, error budgets, incident detection, and operational runbooks
/sei-analyticsSprint analytics, investment allocation, capacity forecasting, and release readiness
/ai-operationsPredictive failure analysis and intelligent alert correlation (AIDA)
/optimize-pipelinePipeline speed optimization, parallel testing, caching, and monorepo builds
/deployment-readinessPre-deployment readiness checks, environment drift, and canary decisions
/incident-responseDeployment-incident correlation, blast radius analysis, and postmortems
/pr-analysisPR pipeline impact, security review, and PR-to-production tracking

Agents

SkillDescription
/create-agent-templateGenerate AI agent templates (metadata.json, pipeline.yaml, wiki.MD)

Cross-Skill Workflows

When users need end-to-end setup, follow these dependency chains. Each step depends on the previous -- do not skip steps or create resources that reference connectors/secrets that don't exist yet.

New Microservice Setup

Use when a user wants to deploy a new service to Harness. Follow this exact order:

  1. Create connectors (/create-connector) -- GitHub connector for source code and manifests, Docker/ECR/GCR connector for container images, K8s/cloud connector for target infrastructure
  2. Create secrets (/create-secret) -- Authentication tokens, SSH keys, or credentials referenced by connectors
  3. Create service (/create-service) -- Reference the Git connector for manifests, reference the Docker connector for artifact source
  4. Create environment (/create-environment) -- PreProduction and/or Production with environment-specific variables
  5. Create infrastructure (/create-infrastructure) -- Reference the K8s/cloud connector for the target cluster. If no connector exists for the target, create one first
  6. Create pipeline (/create-pipeline) -- Build pipeline based on source code language and manifest type. Reference the service, environment, and infrastructure from previous steps
  7. Create trigger (/create-trigger) -- Automate the pipeline with webhook (PR/push) or artifact triggers

New Project Onboarding

Use when a user is setting up a brand new Harness project from scratch:

  1. Create project -- Use harness_create with resource_type: "project" and the target org_id
  2. Create connectors (/create-connector) -- All connectors needed for the project (Git, cloud, registry, cluster)
  3. Create secrets (/create-secret) -- All secret references for connector auth
  4. Create service (/create-service) -- Service definitions for each microservice
  5. Create environment (/create-environment) -- Dev, staging, production environments
  6. Create infrastructure (/create-infrastructure) -- Infrastructure definitions per environment
  7. Create pipeline (/create-pipeline) -- CI/CD pipelines for each service
  8. Create trigger (/create-trigger) -- Automate all pipelines

Key rule: Always check if a referenced resource (connector, secret, environment) exists before creating something that depends on it. If it doesn't exist, create it first. Ask the user for the org and project context before starting.

Scope & Context Convention

Before making any MCP API call that creates or modifies resources, always establish the user's scope:

  1. Ask for org and project if not already known. Most Harness resources are scoped to an org + project.
  2. Use harness_list to verify referenced resources exist before creating dependents (e.g., confirm a connector exists before referencing it in a service).
  3. Account-level resources (no org/project) are visible to all orgs and projects. Org-level resources are visible to all projects in that org. Project-level resources are only visible within that project.
  4. If the user provides a Harness UI URL, extract org_id, project_id, and resource_id from it -- MCP tools support URL auto-extraction.

Schema Validation Convention

When creating resources via harness_create, the Harness API validates the payload and returns specific error messages for malformed requests. Skills do NOT need to embed full API schemas. Instead:

  1. Each skill lists required fields in its Instructions section (identifier, name, type, yaml, etc.)
  2. Use harness_describe to discover the full schema for any resource type at runtime -- this is a local lookup with no API call:
    harness_describe(resource_type="service")
  3. On validation errors, read the API error message to identify the missing or invalid field, then fix and retry

Skill Standards

When creating or modifying skills, run scripts/validate-skills.sh to check compliance. See CONTRIBUTING.md for the full structure guide. Skills must have: frontmatter (name, description, metadata, license, compatibility), ## Instructions, ## Examples, ## Performance Notes, and ## Troubleshooting sections.

Schema References

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.