create-agent

Generate and configure Harness AI agent YAML specifications with MCP connectors.

80|16|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/harness/harness-skills --skill create-agent-harness
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-agent
Source: https://github.com/harness/harness-skills/tree/main/skills/create-agent
Command: npx skills add https://github.com/harness/harness-skills --skill create-agent-harness

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creates and updates Harness AI agent instances — standalone templates used as building blocks in pipelines for automated code workflows, agentic tasks, and pipeline automation.

Core Features & Use Cases

  • Interactive workflow to design or update an agent, including requirements gathering and YAML review.
  • YAML-based agent spec generation (version: 1) with an agent.step.run block, container image, and an inputs section for llmConnector and anthropicModel, plus optional MCP connectors.
  • Reusable agent templates that can be deployed across multiple pipelines, enabling automation tasks, governance, and autonomous workflows.

Quick Start

Start by running the create-agent skill to generate a baseline agent specification and customize it for your Harness project.

Frequently Asked Questions about create-agent

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

FAQPage Schema
How do I create a Harness AI agent for pipeline automation?

To create a Harness AI agent, use an interactive workflow that gathers requirements and generates a standalone YAML specification with an agent.step.run block. This template includes container image definitions and inputs for llmConnector and anthropicModel.

What is a Harness AI agent specification used for?

A Harness AI agent specification is a standalone YAML template serving as a building block within pipelines. It enables automated code workflows, agentic tasks, and pipeline governance by defining reusable automation components.

How do I bind connectors to an agent using MCPs in Harness?

You bind connectors to a Harness AI agent by defining optional MCP connectors and rules within the agent task block. The configuration workflow handles this binding during the interactive YAML specification generation process.

Can I reuse agent templates across multiple Harness pipelines?

Yes, agent templates generated as standalone YAML specs can be deployed across multiple Harness pipelines. This enables consistent automation tasks, governance enforcement, and autonomous workflows throughout your software engineering projects.

Does the Harness AI agent YAML spec support custom inputs?

Yes, the Harness AI agent YAML spec supports custom inputs. The specification requires inputs for llmConnector and anthropicModel, and allows optional MCP connector configurations to define the agent's runtime behavior and tool access.

What's the best way to update an existing Harness AI agent?

The best way to update an existing Harness AI agent is through the interactive configuration workflow. It facilitates requirements gathering and YAML review to modify the existing agent.step.run block, inputs, and connector bindings.