Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Harness Engineering Playbook

ASecurity

Implement OpenAI Harness Engineering practices in any repository. Use when setting up or refactoring agent-first workflows, writing or upgrading AGENTS.md and PLANS.md, creating deterministic smoke/test/lint/typecheck harness commands, defining strict architecture boundaries and data-shape contracts, wiring observability from day 1, and adding entropy-control checks plus CI automation for reliable autonomous runs.

4 stars
0 votes
0 copies
0 views
Added 9/27/2026
ai-agentsgobashrailsrefactoringgit

Security Analysis

A100/100

Pro scans all 16 files and shows the line behind each finding

Scanned 9/27/2026

$npx -y skills add broomva/skills --skill harness-engineering-playbook --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Harness Engineering Playbook?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Harness Engineering Playbook
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/broomva-harness-engineering-playbook/badge)](https://www.skillsdirectory.com/skills/broomva-harness-engineering-playbook)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: harness-engineering-playbook
category: governance
description: Implement OpenAI Harness Engineering practices in any repository. Use when setting up or refactoring agent-first workflows, writing or upgrading AGENTS.md and PLANS.md, creating deterministic smoke/test/lint/typecheck harness commands, defining strict architecture boundaries and data-shape contracts, wiring observability from day 1, and adding entropy-control checks plus CI automation for reliable autonomous runs.
---

# Harness Engineering Playbook

Use this skill to operationalize the practices from OpenAI's Harness Engineering guide in a repo that agents can run against repeatedly and safely.

## What To Load

- Use `references/openai-harness-practices.md` for the full practice-to-artifact mapping.
- Use `references/rollout-checklist.md` for phased adoption in active repos.
- Use `assets/templates/` when creating or updating harness files.

## Inputs

- Target repository path.
- Existing command surface (`make`, `npm`, `cargo`, `pytest`, etc.).
- Existing CI workflows and branch protections.

## Workflow

1. Baseline the repo and detect existing workflows.
2. Bootstrap harness artifacts and templates.
3. Apply all nine Harness Engineering practices.
4. Run harness audit checks and repair gaps.
5. Iterate after real agent runs.

## Step 1: Baseline The Repo

- Identify language/toolchain and canonical entrypoints.
- Inventory existing checks, scripts, and CI jobs.
- Record current pain points for agent runs: setup drift, unclear docs, flaky tests, missing trace IDs, slow loops.

Use a short baseline note inside `PLANS.md` so decisions remain durable.

## Step 2: Bootstrap Harness Artifacts

Run:

```bash
./scripts/bootstrap_harness.sh <repo-path>
```

This script installs safe defaults from `assets/templates/`:

- `AGENTS.md`
- `PLANS.md`
- `docs/ARCHITECTURE.md`
- `docs/OBSERVABILITY.md`
- `Makefile.harness` (+ `-include Makefile.harness` in `Makefile`)
- `scripts/harness/{smoke,test,lint,typecheck}.sh`
- `.github/workflows/harness.yml`

By default, existing files are not overwritten. Pass `--force` to replace template-managed files.

## Step 3: Apply The Nine Practices

Implement each practice directly in repo artifacts.

### 1. Make Easy To Do Hard Thing

- Ensure hard, high-value tasks are one command away (`make smoke`, `make check`, `make ci`).
- Keep setup and cleanup scripted.
- Make smoke checks cheap enough for frequent use.

### 2. Communicate Actionable Constraints With Compact Docs

- Keep `AGENTS.md` short, concrete, and command-first.
- Document non-obvious constraints and guardrails.
- Keep docs close to code and update with behavior changes.

### 3. Structure Codebase With Strict Boundaries And Flow

- Define module boundaries in `docs/ARCHITECTURE.md`.
- Parse and validate data at boundaries; use typed contracts for internal flow.
- Prefer one abstraction per module and one clear ownership path.

### 4. Build Observability In From Day 1

- Emit structured logs/events with correlation IDs.
- Capture key transitions in long-running workflows.
- Define minimum observable fields in `docs/OBSERVABILITY.md`.

### 5. Optimize For Agent Flow, Not Human Flow

- Treat context as a first-class system dependency.
- Use `PLANS.md` for multi-step/multi-hour tasks.
- Front-load durable context (scope, constraints, checkpoints) so restarts stay cheap.

### 6. Bring Your Own Harness

- Standardize repo-local wrappers (`Makefile.harness`, `scripts/harness/`).
- Wrap local infra actions in deterministic scripts.
- Make agent behavior reproducible across machines and runs.

### 7. Prototype In Natural Language First

- Draft logic and tests in prose before coding.
- Review edge cases in prose and lock acceptance criteria.
- Translate approved prose into code and tests.

### 8. Invest In Static Analysis And Linting

- Pin formatter/linter/typechecker versions where practical.
- Enforce checks in both local workflow and CI.
- Run static checks before long tests to shorten failure loops.

### 9. Manage Entropy

- Add periodic audits for docs drift, flaky checks, and dead scripts.
- Keep templates synchronized with real workflows.
- Remove stale abstractions quickly to keep agent context clean.

For a detailed artifact matrix, load `references/openai-harness-practices.md`.

## Step 4: Validate

Run:

```bash
./scripts/audit_harness.sh <repo-path>
```

Treat any `MISSING` or `FAIL` result as blocking before calling harness setup complete.

## Step 5: Iterate On Real Runs

- Observe one full agent run from clean checkout to merged change.
- Patch harness gaps immediately.
- Re-run audit.
- Keep `AGENTS.md`, `PLANS.md`, and architecture docs aligned with current behavior.

## Adaptation Rules

- Preserve existing project conventions and replace templates incrementally.
- Do not overwrite user-authored files without explicit approval.
- Keep command names stable; change internals behind wrappers.
- Favor deterministic, scriptable workflows over ad-hoc interactive steps.

Attribution

broomvabroomva
View sourceSee grades on GitHubMore from broomva →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →