Agent skill

Create Agent Template

by harness in harness/harness-skills

Generate Harness Agent Template files for AI-powered automation agents.

Apache-2.0Auto-check passedDevelopment

Install Create Agent Template

skills CLI
$ npx skills add harness/harness-skills --skill create-agent-template -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install harness/harness-skills create-agent-template --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/harness/harness-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/create-agent-template .claude/skills/create-agent-template && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
create-agent-template
GitHub stars
115
Token cost
~2.2k tokens
SKILL.md length
522 words
Files
2 (incl. references)
Skills in repo
64
Repo updated
First seen
Licence
Apache-2.0

At a glance

Generate Harness Agent Template files for AI-powered automation agents.

  • Works in 4 steps: Identify the agent's purpose - What task… → Define inputs and configuration - What… → Generate three files - metadata.json… → …
  • Asked to create an agent template
  • SKILL.md covers Instructions, Overview, Directory Structure and metadata.json, plus 8 more sections
  • Calls git; needs API_KEY

What it does

Create Agent Template is an agent skill from harness/harness-skills. Generate Harness Agent Template files for AI-powered automation agents. Produces metadata.json, pipeline.yaml (v1 syntax), and wiki.MD files. Agents automate tasks like code review, security scanning, test generation, and documentation. This is a YAML generation skill. Use when asked to create an agent template, build an AI agent, create an automation agent, generate agent pipeline files, or set up a Harness agent. Trigger phrases: create agent template, agent template, AI agent, automation agent, build agent…

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/agent-examples.md`). Compatibility notes: No MCP server required. Generates YAML files locally.

It sits in Development, covering Building AI agents, Test generation and Code review. The repository describes itself as: A collection of structured AI agent skills that enable Claude Code, Cursor, GitHub Copilot, and other AI coding assistants to create, operate, debug, and govern Harness CI/CD… The licence is Apache-2.0.

When your agent uses it

  • Asked to create an agent template
  • Build an AI agent
  • Create an automation agent
  • Generate agent pipeline files

Example prompts

  • “/create-agent-template”

Requirements

  • A credential in API_KEY
  • Compatibility (from SKILL.md): No MCP server required. Generates YAML files locally.

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Identify the agent's purpose - What task should the agent automate (code review, security scanning, test generation, documentation)?
  2. Define inputs and configuration - What parameters does the agent need (repo, branch, connector, secrets)?
  3. Generate three files - metadata.json (template metadata), pipeline.yaml (v1 syntax), and wiki.MD (user documentation)
  4. Validate consistency - Ensure input references in pipeline.yaml match definitions in metadata.json

What it can do on your machine

Read from SKILL.md and the folder at commit c25faee. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    No MCP server required. Generates YAML files locally.

    From compatibility in the SKILL.md frontmatter.

Context cost

Create Agent Template loads about 2.2k tokens when it runs, and up to ~4.8k if it reads all its reference files. Until then it costs about 149 tokens; SKILL.md has 522 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~149
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from harness/harness-skills at commit c25faee, republished under its Apache-2.0 licence (© harness). 522 words, ~2,167 tokens.

Download SKILL.mdSave it as .claude/skills/create-agent-template/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
create-agent-template
description
Generate Harness Agent Template files for AI-powered automation agents. Produces metadata.json, pipeline.yaml (v1 syntax), and wiki.MD files. Agents automate tasks like code review, security scanning, test generation, and documentation. This is a YAML generation skill. Use when asked to create an agent template, build an AI agent, create an automation agent, generate agent pipeline files, or set up a Harness agent. Trigger phrases: create agent template, agent template, AI agent, automation agent, build agent, code review agent, security scanner agent, Harness agent.
compatibility
No MCP server required. Generates YAML files locally.
metadata.author
Harness
metadata.mcp-server
harness-mcp-v2
metadata.version
1.0.0
license
Apache-2.0

Create Agent Template Skill

Generate Harness Agent Template files for AI-powered automation agents.

Instructions

  1. Identify the agent's purpose - What task should the agent automate (code review, security scanning, test generation, documentation)?
  2. Define inputs and configuration - What parameters does the agent need (repo, branch, connector, secrets)?
  3. Generate three files - metadata.json (template metadata), pipeline.yaml (v1 syntax), and wiki.MD (user documentation)
  4. Validate consistency - Ensure input references in pipeline.yaml match definitions in metadata.json

Overview

Agent templates are modular pipeline definitions that encapsulate AI-powered automation. Each template produces three files:

FileRequiredPurpose
metadata.jsonYesTemplate name, description, version
pipeline.yamlYesPipeline definition (v1 syntax)
wiki.MDRecommendedUser-facing documentation

Directory Structure

templates/<agent-name>/
  metadata.json
  pipeline.yaml
  wiki.MD

metadata.json

json
{
  "name": "Agent Name",
  "description": "Brief description of what this agent does (1-2 sentences)",
  "version": "1.0.0"
}

Rules:

  • name: Sentence Case (Code Review, not code-review)
  • description: Under 200 characters, clear value proposition
  • version: Semantic versioning MAJOR.MINOR.PATCH

pipeline.yaml

Core Structure
yaml
version: 1
pipeline:
  clone:
    depth: 1
    ref:
      name: <+inputs.branch>
      type: branch
    repo: <+inputs.repo>
    connector: "<+inputs.gitConnector != null ? inputs.gitConnector.id : ''>"

  stages:
    - name: <stage-name>
      steps:
        - name: <step-name>
          run:
            container:
              image: <registry>/<image>:<tag>
            with:
              param: value
            env:
              SECRET_VAR: <+inputs.secretInput>
      platform:
        os: linux
        arch: arm64

  inputs:
    repo:
      type: string
      required: true
    branch:
      type: string
      default: main
    llmConnector:
      type: connector
    gitConnector:
      type: connector
Clone Configurations

Branch clone:

yaml
clone:
  depth: 1
  ref:
    name: <+inputs.branch>
    type: branch
  repo: <+inputs.repo>
  connector: "<+inputs.gitConnector != null ? inputs.gitConnector.id : ''>"

Pull request clone:

yaml
clone:
  depth: 1000
  ref:
    type: pull-request
    number: <+inputs.pullReq>
  repo: <+inputs.repo>
Input Types
TypeUsageExample
stringText valuesrepo name, branch, file paths
secretSensitive valuesAPI keys, tokens
connectorHarness connectorsGit connector, LLM connector
yaml
inputs:
  repo:
    type: string
    required: true
  branch:
    type: string
    default: main
    description: Branch to analyze
  apiKey:
    type: secret
    default: account.my_secret
  llmConnector:
    type: connector
    description: LLM provider connector
  gitConnector:
    type: connector
    description: Git repository connector
Step Types

Container plugin step:

yaml
- name: my-step
  run:
    container:
      image: registry/image:tag
    with:
      plugin_param: value
    env:
      API_KEY: <+inputs.apiKey>

Shell script step:

yaml
- name: shell-step
  run:
    shell: bash
    script: |-
      echo "Running script"
      git add -A
      git diff --cached
    env:
      MY_VAR: value
Expression Syntax
yaml
# Input references
<+inputs.variableName>

# Connector token
<+inputs.connectorName.token>

# Step outputs
<+pipeline.stages.STAGE.steps.STEP.output.outputVariables.VAR>

# Environment variables
<+env.HARNESS_ACCOUNT_ID>
<+env.HARNESS_ORG_ID>
<+env.HARNESS_PROJECT_ID>

# Alternative syntax for inputs in env blocks
${{inputs.repo}}

wiki.MD

markdown
# Agent Name

**Version:** 1.0.0
**Name:** Agent Name

## Overview

What this agent does and why it is useful.

---

## Key Capabilities

- **Capability 1**: Description
- **Capability 2**: Description

---

## How It Works

1. **Step 1**: Description
2. **Step 2**: Description
3. **Step 3**: Description

## Required Inputs

| Input | Type | Description | Default |
|-------|------|-------------|---------|
| `repo` | string | Repository identifier | -- |
| `branch` | string | Branch to analyze | main |

## Usage Example

\`\`\`yaml
inputs:
  repo: "my-org/my-repo"
  branch: "main"
\`\`\`

## Troubleshooting

### Common Issue 1
Solution description.

Complete Examples and Common Patterns

For complete agent examples (Code Review, Security Scanner, Documentation Generator) and reusable patterns (SCM detection, coding agent, PR creation), consult references/agent-examples.md.

Examples

Create a code review agent
/create-agent-template
Create an agent template for code review that analyzes pull requests,
provides feedback, and posts review comments
Create a security scanner agent
/create-agent-template
Generate a security scanner agent that finds vulnerabilities and
creates a report
Create a documentation generator
/create-agent-template
Create an agent that analyzes a codebase and generates documentation,
then opens a PR with the results
Create a test generator
/create-agent-template
Build an agent template that generates unit tests to improve code coverage

Error Handling

ErrorCauseSolution
Invalid metadataMissing name, description, or versionInclude all three required fields
Invalid versionNot semver formatUse MAJOR.MINOR.PATCH (e.g., 1.0.0)
Pipeline validation errorInvalid v1 YAML syntaxVerify pipeline structure follows v1 schema
Connector not foundReferenced connector does not existCreate the connector before running the agent
Undefined input reference<+inputs.x> used but x not defined in inputsAdd missing input definition

Performance Notes

  • Validate all three generated files (metadata.json, pipeline.yaml, wiki.MD) are consistent with each other.
  • Ensure the pipeline YAML uses correct v1 syntax with lowercase types and ${{ }} expressions.
  • Test that all input references in the pipeline match the inputs defined in metadata.json.
Show full SKILL.md (189 more words)Show less

Troubleshooting

Agent Not Executing
  1. Verify all required: true inputs have values
  2. Check connector inputs are valid and accessible
  3. Confirm container images exist and are accessible from the build infrastructure
SCM Provider Detection Failing
  1. Verify DRONE_REPO_SCM environment variable is available
  2. Check that connector tokens have correct permissions
  3. Test with a known SCM provider before adding multi-provider logic
PR Creation Failing
  1. Confirm git changes exist (git diff --cached is non-empty)
  2. Verify the token has write access to create branches and PRs
  3. Check that PLUGIN_REPO format matches the SCM provider expectations
Output Variables Not Available
  1. Write outputs using echo "KEY=value" >> $DRONE_OUTPUT
  2. Write secret outputs using echo "KEY=value" >> $HARNESS_OUTPUT_SECRET_FILE
  3. Reference with full path: <+pipeline.stages.STAGE.steps.STEP.output.outputVariables.KEY>

Best Practices

  • Never hardcode secrets -- use type: secret inputs
  • Use type: connector for authentication rather than raw tokens
  • Include meaningful descriptions on all inputs
  • Keep stages focused on single responsibilities
  • Always include the SCM detection pattern for multi-provider support
  • Store secret outputs with $HARNESS_OUTPUT_SECRET_FILE, not $DRONE_OUTPUT
  • Set depth: 1000 for PR clones to ensure full diff history
  • Set depth: 1 for branch clones to minimize clone time

© harness, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in skills/create-agent-template of harness/harness-skills.

  • SKILL.md
  • references/agent-examples.md

Open the folder on GitHubat commit c25faee

Compare with similar skills

Create Agent Template next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Create Agent Template compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Create Agent Template this skillharness/harness-skills115—~2.2kAutomated safety check: PassApache-2.0
Gated Module ImplementationAlephantAI/AIephant-AI-Agent-Gateway114—~2.7kAutomated safety check: PassGPL-3.0
Conducty Shiprobertbarclayy/conducty176—~1.9kAutomated safety check: PassMIT
Devnpc-live/clawfirm156—~642Automated safety check: PassNone
Coding Agentmastra-ai/mastra29k—~2.3kAutomated safety check: PassCustom licence
Agent Code Reviewwerf/trdl308—~1.1kAutomated safety check: PassApache-2.0

Similar skills

  • Gated Module Implementation

    AlephantAI/AIephant-AI-Agent-Gateway

    Plan-first, one-time human plan approval; batched execution in either Gated (human confirms between batches) or Auto-loop (continuous run after plan approval); strict task-state updates; automatic…

    114 GitHub stars~2.7k tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • Conducty Ship

    robertbarclayy/conducty

    Pre-merge / pre-deploy gate. An agent skill from robertbarclayy/conducty.

    176 GitHub stars~1.9k tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • Dev

    npc-live/clawfirm

    Software development workflow dispatcher. An agent skill from npc-live/clawfirm.

    156 GitHub stars~642 tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • Coding Agent

    mastra-ai/mastra

    Authoring playbook for building agents that write, edit, review, or refactor code.

    29k GitHub stars~2.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Adversarial verification layer for reviewing agent-generated or otherwise untrusted implementations.

    308 GitHub stars~1.1k tokensUpdated 9 days ago
    DevelopmentAuto-check passed
  • Generate Tests

    hidai25/eval-view

    Generate EvalView test cases — either from a SKILL.md file using LLM-powered generation, or by capturing real agent interactions through a proxy.

    137 GitHub stars~658 tokensUpdated 1 mo ago
    Testing & QAAuto-check passed

More from harness/harness-skills

All 64 skills in this repo
  • Audit Report

    harness/harness-skills

    Generate audit reports and compliance trails using Harness audit trail data via MCP v2 tools.

    115 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Chaos Dr Test

    harness/harness-skills

    A skill your agent uses when working with Chaos Engineering steps inside a Harness pipeline.

    115 GitHub stars~2.6k tokensUpdated yesterday
    Auto-check passed
  • Chaos Experiment

    harness/harness-skills

    A skill your agent uses when the user asks to create, edit, update, design, or configure a Harness Chaos Experiment — including faults, probes, actions, experiment YAML, fault injection, pod-delete…

    115 GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed
  • Cleanup Feature Flags

    harness/harness-skills

    Remove a launched Harness FME feature flag from application code, keeping the treatment FME serves today, and open a pull request.

    115 GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed
  • Configure Repo Scan

    harness/harness-skills

    Configure code scanning in Harness pipelines using STO security scanners.

    115 GitHub stars~2.2k tokensUpdated yesterday
    Auto-check passed
  • Create Metric

    harness/harness-skills

    Create a Harness FME metric: helps decide what to measure, suggests candidate metrics from application code, resolves traffic type and event type IDs, drafts the payload, then creates.

    115 GitHub stars~3.4k tokensUpdated yesterday
    Auto-check passed

Questions about Create Agent Template

What does Create Agent Template do?

Generate Harness Agent Template files for AI-powered automation agents. Create Agent Template is an agent skill from harness/harness-skills. Generate Harness Agent Template files for AI-powered automation agents.

When should I use Create Agent Template?

Create Agent Template fits situations like: asked to create an agent template; build an AI agent; create an automation agent; generate agent pipeline files.

How do I install Create Agent Template in Claude Code?

Run `npx skills add harness/harness-skills --skill create-agent-template -a claude-code`. Or copy the skill folder (skills/create-agent-template in harness/harness-skills) into .claude/skills/create-agent-template in your project. Claude Code loads it when a task matches its description.

How do I install Create Agent Template in Codex?

Run `npx skills add harness/harness-skills --skill create-agent-template -a codex`. Or copy the skill folder (skills/create-agent-template in harness/harness-skills) into .agents/skills/create-agent-template in your project. Codex loads it when a task matches its description.

Can I use Create Agent Template in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add harness/harness-skills --skill create-agent-template -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/create-agent-template, .gemini/skills/create-agent-template, .github/skills/create-agent-template and .opencode/skills/create-agent-template in your project.

What does Create Agent Template need to run?

Going by SKILL.md and its folder, Create Agent Template needs the command-line tools its instructions call (git) and credentials named API_KEY. Our summary lists: A credential in API_KEY. Compatibility (from SKILL.md): No MCP server required. Generates YAML files locally..

Does Create Agent Template access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Create Agent Template safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Create Agent Template use?

Create Agent Template is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Create Agent Template use?

About 2.2k tokens (SKILL.md is roughly 8.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.6k tokens, read only when the agent opens those files.

What are the alternatives to Create Agent Template?

Skills that share tags, products or a category with Create Agent Template: Gated Module Implementation (AlephantAI/AIephant-AI-Agent-Gateway, 114 stars), Conducty Ship (robertbarclayy/conducty, 176 stars), Dev (npc-live/clawfirm, 156 stars) and Coding Agent (mastra-ai/mastra, 29k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Create Agent Template?

harness (a GitHub organization) maintains it in harness/harness-skills, which has 115 GitHub stars. The repository holds 64 skills in this directory. The repository was last updated on October 6, 2026.

Source: harness/harness-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.