Receber por email
← Voltar para o catálogo

harness-registry

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

8estrelas
Atualizado há 7 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add SeongwoongCho/adaptive-harness

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/harness-registry/svg)](https://www.skillteca.com.br/skills/harness-registry)

Skills relacionadas

Ver todas de Desenvolvimento →

Alerta por categoria

Receba novas skills de Desenvolvimento toda segunda

1 email curto, só com as skills novas de Desenvolvimento. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

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:
  4. Update {plugin_root}/harnesses/{name}/metadata.json: set "pool": "stable"
  5. Update .adaptive-harness/harness-pool.json: move entry from experimental to stable
  6. Write atomically: write to .adaptive-harness/harness-pool.json.tmp then rename to .adaptive-harness/harness-pool.json
  7. Create backup .adaptive-harness/harness-pool.json.bak before writing
  8. 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):
  3. Update {plugin_root}/harnesses/{name}/metadata.json: set "pool": "experimental"
  4. Update .adaptive-harness/harness-pool.json: move entry from stable to experimental
  5. Write atomically (same pattern as promote)
  6. Record demotion event in .adaptive-harness/evaluation-logs/{name}/demotion-{timestamp}.json
  7. 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:

{
  "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:

# 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.

Compartilhar X LinkedIn