Skip to content
Skills Library
AI & agents · Planning

harness-engineering

/harness-engineering

Design and evaluate reliable AI-agent systems through context selection, host-enforced policy, bounded tools and runtime, independent outcome verification, and privacy-aware observability. Use when building or changing agent workflows, tool access, approvals, verification, or agent telemetry.

Licence
MIT
Last repository change
12.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 12.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Design and evaluate reliable AI-agent systems through context selection, host-enforced policy, bounded tools and runtime, independent outcome verification, and privacy-aware observability. Use when building or changing agent workflows, tool access, approvals, verification, or agent telemetry.

Original author description

Design and evaluate reliable AI-agent systems through context selection, host-enforced policy, bounded tools and runtime, independent outcome verification, and privacy-aware observability. Use when building or changing agent workflows, tool access, approvals, verification, or agent telemetry.

How it works

  1. Components
  2. Completion invariant
  3. Scope boundary
Original SKILL.md headings · 70 lines, 474 words
SKILL.md preview
---
name: harness-engineering
description: Design and evaluate reliable AI-agent systems through context selection, host-enforced policy, bounded tools and runtime, independent outcome verification, and privacy-aware observability. Use when building or changing agent workflows, tool access, approvals, verification, or agent telemetry.
metadata:
  scope: repo-level
  version: "1.0"
---

# Harness Engineering

The model proposes what to do; the surrounding system controls execution and establishes
whether the requested outcome actually happened. Treat reliability as an end-to-end property
of context, policy, runtime, verification, and feedback—not as a prompt-only property.

## Components

### 1. Context builder

- Supply the task goal, current state, relevant instructions, constraints, and success criteria.
- Keep always-loaded context concise; retrieve detailed documents and data when relevant.
- Distinguish trusted instructions from user input, retrieved documents, and tool output.
  Treat the latter as data, not as authority to change policy.
- Do not pass secrets or unrelated personal data into context.

### 2. Model

- Treat model output as a proposal, not authorization, ground truth, or proof of completion.
- The host controls the agent loop, available tools, and whether a proposal can execute.
- Stop and surface ambiguity, contradictory evidence, or repeated unproductive attempts.

### 3. Policy gate

- Enforce identity, resource scope, allowed action, and relevant arguments at the tool/action
  boundary using deterministic host policy.
- Fail closed when authorization cannot be established. Do not rely on model instructions
  or a model-generated policy judgment to grant access.
- Pause for explicit human approval before actions designated sensitive or consequential by
  the host's policy.

### 4. Tools and runtime

- Give each agent only the tools and permissions required for its task.
- Validate tool arguments and constrain file, network, and service access in the host.
- Bound execution with timeouts and call/retry budgets. Stop on exhausted budgets or repeated
  failures; do not retry side effects unless the operation is safe to repeat.
- Require confirmation or approval for irreversible actions according to host policy.

### 5. Verification

- Define observable acceptance criteria before execution.
- Verify the resulting artifact or external state with tests, read-back, or another
  independent check appropriate to the task.
- Report the evidence and any remaining uncertainty. A model's assertion that it succeeded
  is not verification.

### 6. Observability and feedback

- Record enough structured events to diagnose runs: correlation/run identifier, tool name,
  policy decision, sanitized arguments, result category, errors, retries, and verification
  outcome.
- Do not default to storing secrets, full prompts, personal data, or private model reasoning.
  Apply access controls, redaction, and retention limits to traces.
- Use failures and near misses to improve deterministic checks, tests, tool contracts, and
  context—not just to add more prompt text.

## Completion invariant

A task is complete only when its acceptance criteria have been checked against evidence.
When a required control is not available in the agent host, state that limitation and do not
represent configuration guidance as runtime enforcement.

## Scope boundary

This skill describes design requirements. It does not itself enforce permissions, isolate
tools, obtain approvals, validate external state, or collect telemetry; those controls must
be implemented by the consuming application or agent runtime.

Versions

RepositoryScoreLicence
This page · daochild/agents-config100MIT
magnus919/agent-skills100MIT
github/awesome-copilot100MIT
jljleo/harness-check100MIT
paladini/harness-score100MIT
paladini/harness-score100MIT
muratcankoylan/Agent-Skills-for-Context-Engineering100MIT
Fazerdino1/gravity-bridge100MIT
Mark393295827/third-brain-v7-skills100MIT

Database snapshot: 13.11.2026 · package version d2d7e1cd2897 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 85context-engineering-collection
    A comprehensive collection of Agent Skills for context engineering, harness engineering, multi-agent architectures, and production agent systems. Use when building, optimizing, evaluating, or debugging agent systems that require effective context management and reliable operating loops.
  • 90coding-agent-harness
    搭建 Coding Agent 或设计 Agent 护栏时使用——当你要构建能自主读写代码、跑测试、自我纠错的编码 Agent,或为已有 Agent 系统补约束/验证/纠正机制、设计执行边界与验收基线、判断某类任务是否适合交给 Agent、优化 Harness 提示词与工具集时使用。覆盖 Harness 四组件、任务四象限、四条设计原则与业界实践。
  • 95ai-agent-architectures
    Use this skill when the user says 'build an AI agent', 'agent architecture', 'design an autonomous agent', 'agent system prompt', 'agent with tools and memory', 'which agent framework'. Entry point for single-agent design: decomposes the request into loop, tools, memory,…
  • 90vc:context-engineering
    Check context limits, optimize token usage, and debug context failures. Use when asking about rate limits, usage warnings, memory systems, or context-aware agent design.
  • 90vc:context-engineering
    Check context limits, optimize token usage, and debug context failures. Use when asking about rate limits, usage warnings, memory systems, or context-aware agent design.
  • 90harness-loop
    Use when the user wants to design, build, debug, evaluate or improve an autonomous AI agent (multi-step, tool use, decision making) — projetar agente de IA, arquitetura de agente, loop de agente, critérios de parada, guardrails, harness. Applies the Harness-Loop framework…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.