Maintenance of the harness, not of the app — bring a Keelokit project up to a newer Keelokit version: the house rules, the doctor and the guard, CI, git hooks and base configs, merged with Copier on a branch, without touching the product's code (apps, migrations, E2E, translations). Use when the user says "upgrade keelokit", "update the harness", "actualizá keelokit", "actualizá el harness", "traé la última versión del template", after `claude plugin update`, or when the dashboard or doctor s...
2 stars
0 votes
0 copies
3 views
Added September 29, 2026
developmentpythongobashgit
Security analysis
A92/100
mediumInstalls packages at runtime which could introduce malicious dependencies
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Harness Upgrade?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/leosimini-harness-upgrade)
---
name: harness-upgrade
description: Maintenance of the harness, not of the app — bring a Keelokit project up to a newer Keelokit version: the house rules, the doctor and the guard, CI, git hooks and base configs, merged with Copier on a branch, without touching the product's code (apps, migrations, E2E, translations). Use when the user says "upgrade keelokit", "update the harness", "actualizá keelokit", "actualizá el harness", "traé la última versión del template", after `claude plugin update`, or when the dashboard or doctor shows the harness is behind the plugin.
---
# Harness upgrade — new harness, same product
A project keeps its own copy of the harness: the version of the Keelokit template it was generated
from (`_commit` in `.keelokit/answers.yml`). Updating the plugin doesn't change that copy; this
skill does. Say it that way to the user: it brings Keelokit's new rules and checks into the
project, on a branch, and never rewrites their product.
The template owns infrastructure (CI, lint/format/ts base configs, `scripts/verify.sh`, git
hooks, `.keelokit/` except the project's own choices: `rules.local.toml`, `exceptions.toml`,
`guard-allow.toml`, `critical.toml`, `risky.toml`, `profile.toml`, `verify-routing.toml`, `red-causes.toml`, `verify-clock.toml` and `ux.toml`).
The product owns its code (apps' `src/`, e2e, prisma schema
and migrations, locale files, packages' `src/`) and its knowledge (`docs/context/`, `docs/prd.md`,
`docs/escapes.md`, `backlog/`, `README.md`, `CHANGELOG.md`) — Copier never overwrites those once
they exist.
1. Working tree clean (`git status`), on a branch: `git switch -c chore/keelokit-upgrade`.
2. See where you are: `grep _commit .keelokit/answers.yml`. Pick the target tag (latest by default).
3. Run:
```bash
uvx copier==9.18.2 update -a .keelokit/answers.yml --defaults --conflict rej --vcs-ref <tag>
```
`-a .keelokit/answers.yml` is required (Keelokit keeps its answers there). If `_src_path` in that
file is a local path, the project can only upgrade from that machine — point it at the git
source (`gh:<owner>/keelokit`) first.
From a version before 0.10.0 the update brings new files and checks, none of which breaks the
project. The doctor warns (not fails) about a missing `.gitattributes` `eol=lf`; CI-2 fails only for a
CI job *you added* that `.keelokit/verify-map.toml` lacks (add it to the map, same commit; the map is the
template's, so the update merges its new rows into yours); and
`docs/prelaunch-debt-ledger.md`, `docs/ci.md`, `.keelokit/bin/ci.py`, `status.py` and the agent brief
arrive as new files. `verify` now also takes a per-machine lock; the CI gains a nightly
trigger, a manual trigger and a `ci-report` job.
An update that brings `.keelokit/risky.toml` (HARN-021) brings the cold breaker rule for risky stories with it:
it holds only for stories closed after the commit that lands the file on the trunk, so no existing story is
flagged and none is edited. Read its `paths` with the person and add the project's own risky code.
4. Resolve every `*.rej`: keep the project's intent, take the template's structure; delete the
`.rej` files. Read the Keelokit CHANGELOG entries between the two versions for what changed and
why.
5. `pnpm install`, then `pnpm verify --all` and `python3 .keelokit/bin/doctor.py`. New house rules
may fail on purpose: meet them, or register an exception with the user's approval.
Coming from a version before `run-local` (the harness has no `.keelokit/bin/run-local.sh`
yet) with a `mobile` trait: the script arrives with the upgrade, but `profile.toml` is the
project's, so no `[local]` block comes with it and the doctor warns (RUN-1). Offer
`/keelokit:run-local`, which detects it and writes the block after a yes.
An adopted project (`mode: harness` in `.keelokit/answers.yml`) whose `[ledger]` has no `enforce` gets
`enforce = "warn"` written in the same change: absent means `block`, which a repo used to commits without
trailers isn't ready for.
6. Give the upgrade its own story, then commit it. The upgrade changes risky paths (`.keelokit/bin/**`,
`.keelokit/harness/**`, CI, hooks, `state.toml`), so once `.keelokit/risky.toml` is on the trunk a
`No-story:` commit is `RISKY_NO_STORY`, an error in warn mode too; it is judged like any risky change instead:
```bash
python3 .keelokit/bin/ledger.py upkeep harness-upgrade <from> <to> # prints the id, e.g. UPG-001
git add -A && git commit -m "chore: upgrade Keelokit <from> → <to>" -m "Part-of: UPG-001"
```
`upkeep` writes a small risky story (`upkeep = "harness-upgrade"`, touches `.keelokit`, an empty
`## Breaker rounds`) in `[ledger] stories`, numbered after the last UPG one; it needs no scenarios or tests (the
doctor skips them for upkeep stories). Keep the `Part-of:` in the message's last paragraph, with any
`Co-Authored-By:`/`Claude-Session:` lines.
Then ask the ledger whether it is an upkeep story: `python3 .keelokit/bin/ledger.py upkeep --json`. It is one
only when the upgrade's commits change nothing outside `.keelokit/` and `.githooks/` (and the story file). A new
file Copier creates under a product path (`docs/prelaunch-debt-ledger.md` from a version before 0.10.0, a `docs/`
page) is the product's from then on: commit it apart, before the upgrade, with `No-story: docs`. When the upgrade
also changes CI, scripts, base configs or other rendered files (most generated projects), `upkeep --json` shows
the story as `null` with the reason: it is an ordinary risky story. Run the cold breaker round
(`/keelokit:build-story` step 5b) and give it a scenario and its test as the doctor asks; do not ask for a
Decision alone.
7. Close the story, one of two ways, and report: rules added/changed, conflicts resolved, the story's id, and
anything the user must decide.
- **The person decides** (only when `upkeep --json` names the story's kind: a pure harness upgrade). Ask the
person to write,
themselves, under `## Breaker rounds` in the story file:
`- Decision · <their name> · <YYYY-MM-DD> · <what they accepted>`. Their name must be one of `risky.toml`'s
`deciders` when it lists any. **Never write that line yourself, nor suggest its text as theirs**: a Decision is a
person's record, and an agent's name is refused. Then commit the story file with a body and
`Story: UPG-001` (`git commit -m "chore: close UPG-001" -m "<what was accepted>" -m "Story: UPG-001"`).
- **A cold breaker round**: run one on the upgrade commit as `/keelokit:build-story` step 5 does (a new breaker,
the diff only), record `- Round 1 · head <full sha> · clean` (or its findings; fixes go in more `Part-of:`
commits and a new round), then the `Story: UPG-001` commit.
The Decision accepts the story as its first close has it; anything risky after that close needs a new story.
In a pull request the CI judges the upgrade with the base's ledger and doctor, the version you upgrade from, never
the upgrade's own (HARN-026); the new ones judge from the first push to main. A base whose ledger has the breaker
rule but predates HARN-024 (an unreleased commit between them; no released version is one) knows no upkeep story:
there a Decision alone is `BREAKER_MISSING`, so close the story with the cold breaker round.