Official agent skill

Harness Engineering

by github in github/awesome-copilot

Adopt repository-level harness engineering for coding agents.

OfficialMITAuto-check passedTesting & QA

Install Harness Engineering

skills CLI
$ npx skills add github/awesome-copilot --skill harness-engineering -a claude-code

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

GitHub CLI
$ gh skill install github/awesome-copilot harness-engineering --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/github/awesome-copilot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/harness-engineering .claude/skills/harness-engineering && 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
harness-engineering
GitHub stars
40k
Token cost
~2k tokens
SKILL.md length
903 words
Files
1
Skills in repo
417
Repo updated
First seen
Licence
MIT

At a glance

Adopt repository-level harness engineering for coding agents.

  • Works in 6 steps: Choose the Harness Surface → Write Agent Instructions → Add Enforceable Checks → …
  • A user wants to prevent repeated AI coding-agent mistakes by turning failures into durable instructions
  • SKILL.md covers Core Principles, Discovery, Adoption Workflow and Review Workflow, plus 2 more sections
  • Reaches github.com

What it does

Harness Engineering is an agent skill from github/awesome-copilot, published by the product's own GitHub organization. Adopt repository-level harness engineering for coding agents. Use when a user wants to prevent repeated AI coding-agent mistakes by turning failures into durable instructions, drift checks, regression tests, failure memory, and adoption reports tailored to the target repository.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Agent instruction files. It works with GitHub. The repository describes itself as: Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot. The licence is MIT.

When your agent uses it

  • A user wants to prevent repeated AI coding-agent mistakes by turning failures into durable instructions
  • Regression tests
  • Adoption reports tailored to the target repository

Example prompts

  • “/harness-engineering”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Choose the Harness Surface
  2. Write Agent Instructions
  3. Add Enforceable Checks
  4. Record Failure Memory
  5. Add Drift Checks
  6. Report the Adoption

What it can do on your machine

Read from SKILL.md and the folder at commit 727ff2e. 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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

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

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

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

  • Credentials

    Names no API keys, tokens, secrets or passwords.

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

Context cost

Harness Engineering loads about 2k tokens when it runs. Until then it costs about 75 tokens; SKILL.md has 903 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~75
When it runs · the whole SKILL.md, loaded when a task matches
~2k

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 github/awesome-copilot at commit 727ff2e, republished under its MIT licence (© github). 903 words, ~1,971 tokens.

Download SKILL.mdSave it as .claude/skills/harness-engineering/SKILL.md (or your agent's skills folder).
name
harness-engineering
description
Adopt repository-level harness engineering for coding agents. Use when a user wants to prevent repeated AI coding-agent mistakes by turning failures into durable instructions, drift checks, regression tests, failure memory, and adoption reports tailored to the target repository.

Harness Engineering

Harness engineering turns repeated coding-agent mistakes into durable repository artifacts:

text
Harness = Instructions + Constraints + Feedback + Memory + Evaluation + Governance

Use this skill when the user asks to:

  • make a repository more reliable for GitHub Copilot or other coding agents
  • add durable agent instructions, repository rules, or guardrails
  • prevent repeated AI coding-agent mistakes
  • record known failure paths and the checks that prevent recurrence
  • add lightweight drift checks for project rules
  • review, refresh, or update an existing agent harness

Do not use this skill for ordinary feature implementation unless the user asks to improve the repository's agent operating environment.

Core Principles

  • Treat the target repository as the source of truth.
  • Inspect before editing. Preserve the existing stack, package manager, CI, docs, naming, and architecture.
  • Add the smallest useful harness. Prefer updating existing files over adding duplicate guidance.
  • Make important rules enforceable where practical through tests, linters, type checks, CI, pre-commit hooks, or drift scripts.
  • Use manual review points only when automation would be brittle or misleading.
  • Record high-risk failures that should not recur, and name the check or review point that catches recurrence.
  • Do not copy generic templates blindly. Adapt every artifact to real evidence in the target repository.

Discovery

Before proposing or making harness changes, inspect the repository for existing rules and evidence.

Read these files and folders when they exist:

  • README.md
  • AGENTS.md
  • .github/copilot-instructions.md
  • .github/instructions/
  • .github/workflows/
  • CONTRIBUTING.md
  • package manifests such as package.json, pyproject.toml, go.mod, Cargo.toml, pom.xml, or build.gradle
  • existing docs under docs/
  • existing scripts under scripts/
  • existing tests and CI checks

Then summarize:

  • stack, package manager, and entry points
  • existing development and verification commands
  • current agent instructions or repository conventions
  • known failures, incidents, flaky paths, or repeated review comments
  • gaps where project rules are not enforced

Adoption Workflow

Follow this sequence:

  1. Choose the harness surface that fits the target repository.
  2. Write target-specific agent instructions.
  3. Add enforceable checks for high-value rules.
  4. Record failure memory for high-risk or recurring failures.
  5. Add drift checks for guidance that can silently become stale.
  6. Report the adoption with evidence, assumptions, and follow-up.
1. Choose the Harness Surface

Pick only the surfaces that fit the target repository:

NeedPreferred artifact
Always-on agent behaviorAGENTS.md or .github/copilot-instructions.md
File-scoped guidance.github/instructions/*.instructions.md
Recurring project checksscripts/check_*.py, shell scripts, or package scripts
CI enforcementexisting workflow files or a small new workflow
Known failuresdocs/failures/*.md
Architecture or process decisionsdocs/decisions/*.md
Adoption evidencedocs/harness/adoption-report.md or similar

If the repository already has an equivalent location, update it instead of creating a parallel system.

2. Write Agent Instructions

Agent instructions should be concrete and operational. Include:

  • project purpose and major ownership boundaries
  • setup, test, lint, build, and verification commands
  • package manager and dependency rules
  • safe editing rules, generated file rules, and forbidden paths
  • testing expectations for changed code
  • PR and commit conventions if the repo has them
  • how to record new failures or decisions

Avoid broad personality guidance, generic best practices, and rules that cannot be checked or reviewed.

3. Add Enforceable Checks

Convert high-value rules into checks. Good harness checks are:

  • narrow enough to avoid false positives
  • fast enough to run locally and in CI
  • named clearly so agents can run them before finishing
  • documented with the rule they protect

Examples:

text
Rule: Do not edit generated API clients.
Check: script scans diffs for generated paths and fails with a clear message.

Rule: Every failure memory note names a regression check.
Check: script validates docs/failures/*.md for a "Detection" section.

Rule: Profile docs and templates must stay aligned.
Check: test compares profile README files to expected template files.
Show full SKILL.md (377 more words)Show less
4. Record Failure Memory

Record failures when they are user-visible, high-risk, or likely to recur. Use a new file under docs/failures/ unless an existing note already covers the same root cause.

Recommended structure:

markdown
# Short Failure Title

## Summary

What failed, who saw it, and why it matters.

## Root Cause

The technical or process cause. Avoid blame.

## Prevention

Instruction, test, drift check, CI gate, fixture, or manual review point that
prevents or detects recurrence.

## Evidence

Links to issue, PR, test, log, command output, or file paths.

If no automated check is practical, record the manual review point and why automation would be unsafe or misleading.

5. Add Drift Checks

Use drift checks for guidance that can silently become stale. Common examples:

  • docs mention commands that no longer exist
  • profile snippets and generated examples diverge
  • failure notes omit regression checks
  • decision records are missing for structural changes
  • CI references stale scripts or package commands

Prefer small scripts using the repository's existing language. If the repo has no scripting convention, Python with only the standard library is a portable default.

6. Report the Adoption

Finish substantial harness work with an adoption report that includes:

  • files changed
  • rules added or updated
  • checks added or reused
  • commands run and results
  • assumptions and manual follow-up
  • failure memory created or intentionally skipped
  • how effectiveness will be measured

Review Workflow

When asked to review a harness change, take an opposing perspective. Look for:

  • generic rules copied without evidence from the target repository
  • duplicate or conflicting instruction files
  • broad checks that are likely to fail on valid changes
  • unenforced high-risk rules
  • missing failure memory for repeated mistakes or runtime failures
  • generated docs not refreshed after source changes
  • CI gates that do not run the relevant checks
  • target repository conventions being overwritten by harness defaults

Report findings first, ordered by severity, with file and line references when available. Do not modify files during a review unless the user explicitly asks for fixes.

Output Contract

Before finishing harness adoption work, verify:

  • the target repository was inspected before edits
  • new guidance is specific to the target repository
  • changed checks can be run locally or have a documented manual substitute
  • failure memory was recorded when required, or the final response explains why it was skipped
  • generated docs or indexes are refreshed
  • the final report names every command run and its result

Optional Reference

The prompt-first workflow in https://github.com/baskduf/harness-starter-kit is a reference implementation of these ideas. Use it as reference material only when the user asks for it or when the repository already includes it. The target repository remains the source of truth.

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

Files

Just SKILL.md in skills/harness-engineering of github/awesome-copilot.

Open the folder on GitHubat commit 727ff2e

Compare with similar skills

Harness Engineering 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.

Harness Engineering compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Harness Engineering this skillgithub/awesome-copilot40k—~2kAutomated safety check: PassMIT
Dev IssueFHIR/fhir-codegen154—~4kAutomated safety check: PassMIT
Skill Aligntechygarg/lattice198—~2kAutomated safety check: PassMIT
Mariadb Operator PR Reviewmariadb-operator/mariadb-operator1k—~3.3kAutomated safety check: PassApache-2.0
Setup Matt Pocock Skillsywwynm/EverythingDone1449 repos~1.7kAutomated safety check: PassGPL-3.0
AI Self ImprovementJocysCom/FocusLogger213—~1.1kAutomated safety check: PassGPL-3.0

Similar skills

  • Dev Issue

    FHIR/fhir-codegen

    Publishes a slot's feature request or bug report to GitHub as an issue, and keeps that issue in sync, in the role of a release-minded engineer.

    154 GitHub stars~4k tokensUpdated 1 mo ago
    Testing & QAAuto-check passed
  • Skill Align

    techygarg/lattice

    Audit and fix all Lattice documentation, README, docs/, PROJECT.md, GitHub issue templates, and CLAUDE.md to ensure they are fully aligned with the current skill inventory.

    198 GitHub stars~2k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Mariadb Operator PR Review

    mariadb-operator/mariadb-operator

    Perform a structured maintainer-style PR review for the mariadb-operator repository.

    1k GitHub stars~3.3k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Setup Matt Pocock Skills

    ywwynm/EverythingDone

    Sets up an Agent skills block in AGENTS.md/CLAUDE.md and docs/agents/ so the engineering skills know this repo's issue tracker (GitHub or local markdown), triage label vocabulary, and domain doc…

    144 GitHub starsUsed in 9 repos~1.7k tokens
    Agent WorkflowsAuto-check passed
  • AI Self Improvement

    JocysCom/FocusLogger

    Update, create, improve, and synchronise this repository's AI agent instructions and related assets (including skills).

    213 GitHub stars~1.1k tokensUpdated 3 mo ago
    Agent WorkflowsAuto-check passed
  • AI Ready

    johnpapa/ai-ready

    ANALYSIS SKILL — Analyze any repository and generate AI-ready configuration — a canonical AGENTS.md, thin per-tool pointer files, skills, CI workflows, issue templates.

    222 GitHub stars~5.4k tokensUpdated 9 days ago
    Agent WorkflowsAuto-check passed

More from github/awesome-copilot

All 417 skills in this repo
  • Acquire Codebase Knowledge

    github/awesome-copilot

    Official

    Maps an unfamiliar codebase into seven evidence-backed documents in docs/codebase/, using a scan script and templates, for onboarding or architecture write-ups.

    40k GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed
  • Azure Architecture Autopilot

    github/awesome-copilot

    Official

    Designs Azure infrastructure from a natural-language description, or diagrams an existing resource group, then refines the design through conversation and deploys it with Bicep.

    40k GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Draw.io Diagram Generator

    github/awesome-copilot

    Official

    Generates, edits and validates draw.io files with correct mxGraph XML, covering flowcharts, architecture, sequence, ER and UML class diagrams.

    40k GitHub starsUsed in 1 repo~4.9k tokens
    Auto-check passed
  • Credit Risk Data Cleaning

    github/awesome-copilot

    Official

    Cleans raw credit data and screens variables before loan modeling, dropping unstable, noisy or redundant features and writing an Excel report of every step.

    40k GitHub starsUsed in 1 repo~1.5k tokens
    Auto-check passed
  • Daily Focus Board

    github/awesome-copilot

    Official

    Builds a warm, browser-based daily focus board the user updates by talking to their agent, with Eisenhower priorities, a brain-dump box and kind not-today carryover.

    40k GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Python Pypi Package Builder

    github/awesome-copilot

    Official

    End-to-end skill for building, testing, linting, versioning, and publishing a production-grade Python library to PyPI.

    40k GitHub starsUsed in 1 repo~4.6k tokens
    Auto-check passed

Works with

Questions about Harness Engineering

What does Harness Engineering do?

Adopt repository-level harness engineering for coding agents. Harness Engineering is an agent skill from github/awesome-copilot, published by the product's own GitHub organization. Adopt repository-level harness engineering for coding agents.

When should I use Harness Engineering?

Harness Engineering fits situations like: A user wants to prevent repeated AI coding-agent mistakes by turning failures into durable instructions; regression tests; adoption reports tailored to the target repository.

How do I install Harness Engineering in Claude Code?

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

How do I install Harness Engineering in Codex?

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

Can I use Harness Engineering 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 github/awesome-copilot --skill harness-engineering -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/harness-engineering, .gemini/skills/harness-engineering, .github/skills/harness-engineering and .opencode/skills/harness-engineering in your project.

What does Harness Engineering need to run?

SKILL.md names no scripts, command-line tools or credentials: Harness Engineering is instructions for the agent only. Our summary lists: Python 3.

Does Harness Engineering access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Harness Engineering 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 Harness Engineering use?

Harness Engineering is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Harness Engineering use?

About 2k tokens (SKILL.md is roughly 7.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Harness Engineering?

Skills that share tags, products or a category with Harness Engineering: Dev Issue (FHIR/fhir-codegen, 154 stars), Skill Align (techygarg/lattice, 198 stars), Mariadb Operator PR Review (mariadb-operator/mariadb-operator, 1k stars) and Setup Matt Pocock Skills (ywwynm/EverythingDone, 144 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Harness Engineering?

github (a GitHub organization, an official publisher) maintains it in github/awesome-copilot, which has 39,748 GitHub stars. The repository holds 417 skills in this directory. The repository was last updated on October 7, 2026.

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