Skip to content
Back to skills

Harness Registry

ASecurity

Manage the adaptive-harness pool: list, inspect, promote, demote harnesses. Use when user asks about harness status or wants to manage the pool.

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 26, 2026
toolsbashdebuggingcode-reviewapiperformance

Works with

  • claude code
  • api

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add SeongwoongCho/adaptive-harness --skill harness-registry --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Harness Registry?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Harness Registry
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/seongwoongcho-harness-registry/badge)](https://www.skillsdirectory.com/skills/seongwoongcho-harness-registry)

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

Download with Pro
SKILL.md
---
name: harness-registry
description: "Manage the adaptive-harness pool: list, inspect, promote, demote harnesses. Use when user asks about harness status or wants to manage the pool."
---

# Harness Registry

## Purpose

You manage the adaptive-harness harness pool. Use this skill when the user asks about harness status, wants to inspect a specific harness, or wants to promote/demote harnesses between stable and experimental pools.

## Plugin Root

First, read the plugin root path: `Read(".adaptive-harness/.plugin-root")`. Store this as `{plugin_root}`. All plugin-internal file paths below use this prefix. Project state paths (`.adaptive-harness/`) are relative to the user's project directory.

---

## Operations

### List All Harnesses

Read `.adaptive-harness/harness-pool.json` and display all harnesses with their pool status and performance stats:

```
Read(".adaptive-harness/harness-pool.json")
```

Display format:
```
STABLE POOL
  tdd-driven          weight=1.02  successes=14  failures=2   runs=16
  systematic-debugging weight=0.98  successes=9   failures=3   runs=12
  rapid-prototype     weight=1.05  successes=21  failures=1   runs=22
  careful-refactor    weight=0.95  successes=7   failures=4   runs=11
  research-iteration  weight=1.00  successes=5   failures=0   runs=5
  code-review         weight=1.01  successes=18  failures=1   runs=19
  migration-safe      weight=0.99  successes=6   failures=1   runs=7

EXPERIMENTAL POOL
  (none)
```

If `.adaptive-harness/harness-pool.json` does not exist, report that the state directory is missing or broken. It will be auto-initialized with --general defaults on next session start. The user can trigger initialization immediately by running `/adaptive-harness:run <task>`.

### Inspect a Specific Harness

When user asks "inspect {harness-name}" or "show me the {harness-name} harness":

Read and display:
- `{plugin_root}/agents/{name}.md` — agent persona (registered in Claude Code agent registry)
- `{plugin_root}/harnesses/{name}/skill.md` — workflow
- `{plugin_root}/harnesses/{name}/contract.yaml` — execution contract
- `{plugin_root}/harnesses/{name}/metadata.json` — current pool status and stats

Present in a structured format showing trigger conditions, tool policy, stopping criteria, cost budget, and failure modes.

### Promote Experimental → Stable

When user says "promote {harness-name}" or when queried about a harness meeting promotion criteria:

1. Read `.adaptive-harness/harness-pool.json`
2. Check the harness's `consecutive_successes` count (requires ≥5 by default, configurable in `.adaptive-harness/config.yaml` under `evolution_settings.promotion_threshold`)
3. If criteria met:
   - Update `{plugin_root}/harnesses/{name}/metadata.json`: set `"pool": "stable"`
   - Update `.adaptive-harness/harness-pool.json`: move entry from `experimental` to `stable`
   - Write atomically: write to `.adaptive-harness/harness-pool.json.tmp` then rename to `.adaptive-harness/harness-pool.json`
   - Create backup `.adaptive-harness/harness-pool.json.bak` before writing
4. Report: "Promoted {name} from experimental to stable pool. Consecutive successes: N."

### Demote Stable → Experimental

When user says "demote {harness-name}" or when a harness performance drops below threshold:

1. Check the harness's recent performance (last 10 runs from evaluation logs in `.adaptive-harness/evaluation-logs/{harness-name}/`)
2. If performance below threshold (default: score < 0.5 for 3+ consecutive runs):
   - Update `{plugin_root}/harnesses/{name}/metadata.json`: set `"pool": "experimental"`
   - Update `.adaptive-harness/harness-pool.json`: move entry from `stable` to `experimental`
   - Write atomically (same pattern as promote)
   - Record demotion event in `.adaptive-harness/evaluation-logs/{name}/demotion-{timestamp}.json`
3. Report: "Demoted {name} to experimental pool. Recent scores: [0.42, 0.38, 0.41]."

### Check Promotion Eligibility

When user asks "which harnesses are ready for promotion":

1. Read `.adaptive-harness/harness-pool.json`
2. For each experimental harness, check `consecutive_successes` against threshold
3. List eligible harnesses and their stats
4. Suggest running promotion for eligible ones

---

## Pool State Schema

`.adaptive-harness/harness-pool.json` structure:
```json
{
  "stable": {
    "tdd-driven": {
      "weight": 1.02,
      "successes": 14,
      "failures": 2,
      "total_runs": 16,
      "consecutive_successes": 3
    }
  },
  "experimental": {
    "custom-harness": {
      "weight": 1.0,
      "successes": 2,
      "failures": 1,
      "total_runs": 3,
      "consecutive_successes": 2,
      "base_harness": "tdd-driven"
    }
  },
  "last_updated": "2026-03-14T12:00:00Z",
  "last_merged_session": "session-1234567890-001"
}
```

---

## Atomic Write Pattern

Always use atomic writes when modifying `.adaptive-harness/harness-pool.json`:

```bash
# Write to temp, then atomically rename
cp .adaptive-harness/harness-pool.json .adaptive-harness/harness-pool.json.bak
# Write new content to .adaptive-harness/harness-pool.json.tmp
# Then: mv .adaptive-harness/harness-pool.json.tmp .adaptive-harness/harness-pool.json
```

Use a Bash tool call for the atomic rename step.

Attribution

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

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.