# install

Adopt this skill: https://proskills.md/skills/other/pierry-harness-kit-skills-install

Page: https://proskills.md/skills/other/pierry-harness-kit-skills-install
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: skills/install/SKILL.md
size: 3275
sha: 3dcdd29538115f292879026e42588ea1a04fd175
upstream: https://github.com/pierry/harness-kit/blob/main/skills/install/SKILL.md

````text
---
name: install
description: Install the harness-kit pipeline into the current project. Copies agents, slash commands, skills, and hooks into the project's .claude/, plus AGENTS.md and CLAUDE.md at the repo root. Run after adding the harness-kit plugin from the marketplace.
user_invocable: true
---

Install harness-kit into the user's project. Plugin ships full harness; this skill lays it down via bundled installer.

## What it writes

Installer copies into the **target project** (`${CLAUDE_PROJECT_DIR}`):

- `.claude/agents/`, product-manager + staff-software-engineer (sensors, evals, guides, skills)
- `.claude/commands/`, `/product-manager:*`, `/sse:*`, `/pipeline:*`, `/context:*`
- `.claude/runtime/`, per-agent hooks + scripts (outputs/ stay target-side state)
- `.claude/hooks/` + `.claude/scripts/`, pipeline tracking, token accounting, opt-in pipeline status bar
- `.claude/shared/`, cross-agent guides
- `.claude/conventions/`, scaffold for project overrides
- `.claude/settings.json`, wires hooks (existing one backed up first). No statusLine: user keeps own global one. Pipeline bar only with `HK_STATUSLINE=1`
- `AGENTS.md` at repo root; `CLAUDE.md` if absent

This modifies files in the user's repo. Tell user what runs before running. Existing `.claude/settings.json` backed up to `.claude/settings.json.bak.<stamp>`.

## Run

Requires `git` + `python3` (installer checks, exits if missing).

```bash
bash "${CLAUDE_PLUGIN_ROOT}/setup/install.sh" "${CLAUDE_PROJECT_DIR}"
```

Relay installer output verbatim. On `missing agents` / `git not found` / `python3 not found`, surface exact line.

## Eval judge

Installer runs non-interactive here, so it defaults judge to `local` on first install (reinstall keeps existing `.claude/hk-config.json`). First install only: ask user (AskUserQuestion) which eval judge:

- **local (default)**: fresh Claude evaluator scores rubrics. No extra cost. Nothing to do.
- **jev**: Jev by TypeSafe AI scores weighted rubrics. Different model family (reduces self-preference bias), typed scores. Paid API, needs key from https://console.typesafe.ai/keys.

On `jev`: follow `.claude/commands/hk/eval.md` `jev` section in target project (env var name or key via stdin, never echoed). Mention switch later with `/hk:eval jev | local`.

## Graph engineering

First install only: ask (AskUserQuestion) graph mode, default **off**:
- **off**: plain pipeline, nothing extra.
- **manifest**: REQ ids, `trace/{feature_id}.yml`, scope gate that blocks out-of-scope files, link status PROPOSED/VALIDATED/STALE. No infra, no key.
- **full**: manifest + embedded FalkorDB graph: Graphiti (free NVIDIA build key) + Joern CPG. Python 3.12+.

Apply with `.claude/commands/hk/graph.md` in target project.

## After

Tell user: **restart Claude Code** to load agents, commands, hooks. Then:

- `/golden-path`, the golden path: idea → merged PR in one command
- `/product-manager:prd | :prp | :run`
- `/sse:plan | :dev | :test | :pr | :run | :sdd`
- `/pipeline:continue | :reset`
- `/context:pack | :graph` (optional, need repomix / graphify)
- `/hk:eval jev | local` (eval judge, default local)
- `/hk:graph off | manifest | full` (graph engineering, default off)

Update later: `/plugin update harness-kit` then `/harness-kit:update`.
````

## File: README.md
upstream: https://github.com/pierry/harness-kit/blob/main/README.md

````text
<div align="center">

# harness-kit

You describe a feature. Claude Code writes the spec, the plan, the code, and the tests, and opens the PR. Nothing moves forward until it passes a check.

![harness-kit demo](demo/preview.gif)

</div>

# Start

*1 min read*

harness-kit is a set of Claude Code agents that carry one idea through three phases: Spec, Build, and Ship. Every step writes a markdown file, a script checks its structure, a judge scores it, and only a passing step unlocks the next. You decide twice: the direction, and the PR.

| Without it | With it |
|---|---|
| The problem lives in a chat thread | A written problem with a numeric success metric |
| "Done" is whatever the agent decided | Acceptance criteria you can check one by one |
| Review is reading a diff and hoping | Every document scored and retried until it passes |

Use it for features worth doing right. Skip it for one-line fixes and throwaway spikes. To see it move first, [pull an idea through the pipeline](https://pierry.github.io/harness-kit/play/) in your browser.

```
/plugin marketplace add Pierry/harness-kit
/plugin install harness-kit@harness-kit
```

Restart Claude Code, open your repo, run `/harness-kit:install`, and restart again. It asks which eval judge to use and whether to turn on graph engineering; the defaults are fine. You need `python3`, `git`, and the [gh CLI](https://cli.github.com/). To update: `/plugin update harness-kit`, restart, `/harness-kit:update`.

# Phase 1: Spec

*1 min read*

You type a four-line brief, or build one in the [brief builder](https://pierry.github.io/harness-kit/brief/).

```
/golden-path

Squad: checkout
Problem: Returning guests abandon checkout when a card is declined once.
Hypothesis: If we add one-tap retry, completion rises 5 points.
Success metric: checkout completion, from 71% to 76% within 30 days
```

It writes the PRD (problem, customers, metrics, rollout, risks) and you approve the direction: a wrong problem caught here costs one rewrite, not a feature. Then it writes the PRP, the engineering spec, with the files to change and acceptance criteria.

With Jev, Jev scores both documents instead of Claude. With graph engineering, each criterion gets a stable id like `REQ-001` and `trace/{feature}.yml` is created.

# Phase 2: Build

*1 min read*

It writes the plan (files, order, risks, tests), implements it in small commits that follow your conventions and linters, and runs your tests. Each step loops until it passes:

```mermaid
flowchart LR
    write[agent writes] --> check{structure ok and score 8.0+?}
    check -->|no, up to 3x| write
    check -->|yes| next[next step]
```

The score comes from small yes/no checks, such as "every metric has a baseline", so a failure names exactly what to fix. With graph engineering, the plan records each file it expects to touch, and dev fails if it touches any other file without a written reason.

# Phase 3: Ship

*1 min read*

It writes the PR (summary, test plan, links) and you approve it; it opens as a draft. A monitor clears the pipeline when it merges.

With graph engineering, the PR carries a table linking each requirement to its code and the test that proves it, and the next feature marks those links VALIDATED or STALE. Every approved step logs its score to the [quality dashboard](https://pierry.github.io/harness-kit/quality/phase-report.html), so you can see quality move over time. The cockpit shows it all live in a terminal: `npm i -g @pieerry/harness-kit`, then `hk-tui`.

# Options

*1 min read*

| Setup | Best for | Adds | Cost |
|---|---|---|---|
| Plain (default) | most features | the gated pipeline | nothing extra |
| Jev judge | a judge that is not Claude grading Claude | [Jev](https://typesafe.ai) scores, Claude takes over when unsure | about $0.04 per million tokens |
| Graph engineering | shared or audited code | requirement ids, trace file, scope gate | free |
| Graph and Jev | both | both | about $0.04 per million tokens |

Switch any time: `/hk:eval jev` or `local`, and `/hk:graph manifest`, `full`, or `off`. `full` adds a local graph of your decisions and call graph (FalkorDB with Graphiti on free NVIDIA models, and Joern), with no Docker. Install with `HK_STATUSLINE=1` if you want the pipeline in your status line. When installed, [semble](https://github.com/MinishLab/semble), [repowise](https://github.com/repowise-dev/repowise), and [context7](https://github.com/upstash/context7) sharpen code search; otherwise it uses grep.

| You want | Run |
|---|---|
| Idea to merged PR, approving each step | `/golden-path` |
| Stop only at the two decisions | `/pipeline:run "<idea>"` |
| Spec only | `/product-manager:run` |
| Build from a spec you have | `/sse:run` (`--local` to skip the PR) |
| Design a hard system first | `/system-design:run` |
| Resume | `/pipeline:continue` |

# Learn more

*1 min read*

The [wiki](https://github.com/Pierry/harness-kit/wiki), also in [Portuguese and Spanish](https://pierry.github.io/harness-kit/wiki/), has [Getting Started](https://github.com/Pierry/harness-kit/wiki/Getting-Started) with every step in detail, how scoring works in [Evals](https://github.com/Pierry/harness-kit/wiki/Evals) and [Jev and System One](https://github.com/Pierry/harness-kit/wiki/Jev-and-System-One), traceability in [Graph Engineering](https://github.com/Pierry/harness-kit/wiki/Graph-Engineering) and [Graph Theory](https://github.com/Pierry/harness-kit/wiki/Graph-Theory), and the sources in [References](https://github.com/Pierry/harness-kit/wiki/References). The method is harness engineering from [Birgitta Böckeler](https://martinfowler.com/articles/harness-engineering.html). The three agents (`product-manager`, `staff-software-engineer`, `system-architect`) are mapped in [AGENTS.md](./AGENTS.md).

One honest limit: neither judge is checked against human ratings yet, so treat 8.0 as a signal, not a measurement. Issues and PRs welcome. MIT license.
````
