Skip to content
Back to skills

Improve Harness

ASecurity

Use at the end of a feature, or when a hook, rule or skill did not work as expected, to find harness problems from this session and fix the ones the user approves.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 6, 2026
ai-agents

Security analysis

A100/100

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

Scanned November 6, 2026

npx -y skills add dvasyliev/claude-code-tip-calculator --skill improve-harness --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Improve Harness?

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

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

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: improve-harness
description: Use at the end of a feature, or when a hook, rule or skill did not work as expected, to find harness problems from this session and fix the ones the user approves.
---

# Improve the harness

<!-- Collect: the agent checks the session against the symptoms file, adds what the user asked to fix, and keeps only the problems that will come back. -->

## 1. Collect

Find harness problems in this session from three sources:

- Symptoms: read `references/symptoms.md` and note every symptom that happened in this session, for example a hook that did not run or an instruction that was ignored.
- User requests: everything the user corrected in chat or asked to fix in the harness.
- Code review findings that a lint rule or a project rule could have caught.

Do not write a log; the session already holds these signals.
Keep only problems likely to repeat in the next feature. Drop one-offs and matters of taste.

<!-- Ask: the agent explains each problem in plain words and lets the user decide whether and how to fix it. -->

## 2. Ask

Sort by how often the problem repeated in this session, broken harness before missing rules.
Ask about four at most, in one `AskUserQuestion` call.
List the rest in one line each under "Not fixed this time".

Each problem is one question. The question text is one to three connected
sentences: what happened, where, and why the harness missed it.

- One sensible fix: the options are "Fix", with a short description of what will change, and "Skip".
- Several fixes: each fix is its own option with a short description, the recommended one first, plus "Skip".

Change nothing without the user's answer.

<!-- Fix: the agent decides whether the harness is broken or just missing a rule, and puts each fix where it will be enforced next time. -->

## 3. Fix

For each approved fix, pick the case:

- Harness is broken (a symptom from `references/symptoms.md`): check the causes listed under that symptom one by one and fix the one you confirm.
- Harness lacked a rule: put it in `eslint.config.mjs` if a machine can check it, in a file under `.claude/rules/` if it applies to one folder, in `CLAUDE.md` only if it applies to the whole project.

<!-- Hard rules: these limits keep each fix small and stop the agent from making a check weaker just to make it pass. -->

## 4. Hard rules

- One minimal fix per problem.
- Never weaken a check: no turning rules off, no `warn` instead of `error`, no `ignores`, no higher timeouts.
- Extend an existing rule before adding a new one.
- Keep `CLAUDE.md` under 200 lines.

<!-- Prove: the agent shows that each fix works and commits the changes with a short summary for the user. -->

## 5. Prove

Prove each fix: pipe a fake event into the hook, or run lint on a bad snippet. Commit the changes and show the user a short summary of what was fixed.

Files in this skill

  • SKILL.md2.8 KB
  • references/symptoms.md3.7 KB

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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