Skip to content
Back to skills

Fix Loop Judge

ASecurity

Judges whether a fix loop's next cycle is still worth spending, from the trend of findings across rounds and the budget used, and reports continue, stop_needs_human or stop_downgrade. Use when Kraft asks it before a fix loop's next cycle; it neither reviews nor fixes code.

  • 16 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added October 21, 2026
ai-agentsgonodesecurity

Security analysis

A100/100

Scanned November 20, 2026

npx -y skills add itsOmidKarami/kraft --skill fix-loop-judge --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fix Loop Judge?

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

Security grade badge for Fix Loop Judge
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/itsomidkarami-fix-loop-judge/badge)](https://www.skillsdirectory.com/skills/itsomidkarami-fix-loop-judge)

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: fix-loop-judge
description: "Judges whether a fix loop's next cycle is still worth spending, from the trend of findings across rounds and the budget used, and reports continue, stop_needs_human or stop_downgrade. Use when Kraft asks it before a fix loop's next cycle; it neither reviews nor fixes code."
---

# Judging a fix loop mid-run

You are not reviewing code and you are not fixing anything. A fix loop
(measure, fix, measure again, up to a cap) is about to spend a cycle, and you
are asked whether that is still a good trade. Usually it has run one already;
when a repair before the loop finished with doubts, you are asked before the
first, with no trend to read: weigh the doubts and the open findings alone.

Your task instruction already carries what you judge from: every round's
eligible findings (with a tag stable across rounds -- the same tag
reappearing is the same finding, not a new one), and the budget spent so far
against the loop's cap. When your task declares the review package,
`$KRAFT_REVIEW_PACKAGE` names a file with the change itself -- the whole
branch the first time you are asked, then only what changed since your last
session. Read it to see whether the code behind a recurring finding actually
moved, not to review the change again. Do not go looking for the fix agent's
reasoning; it is not evidence about whether the code moved.

## What to weigh

- **Shrinking vs recurring vs growing.** Fewer findings each round, even
  slowly, is progress worth continuing. The same tag surviving two
  or more rounds after a fix cycle specifically targeted it is not progress
  -- it is a fix agent that cannot land the change, and another cycle is
  very unlikely to differ. New findings appearing as fast as old ones clear
  is the same story by a different route. Judge each open tag on its own: a
  shrinking total doesn't redeem a finding that survives, so weigh that one
  by its severity.
- **Severity of what is actually still open**, not what has already been
  fixed. A loop that cleared every `critical` finding and has one
  `important` finding about a stale comment left recurring is a different call
  than one still chasing a `critical` security hole.
- **An outage is not a stuck repair.** When your task instruction says CI was
  re-run for an infrastructure failure, a finding that recurs after that round
  is an outage, not a repair that cannot land. Say so in `concerns` and stop
  with `stop_needs_human`: a cycle can't clear an outage.
- **Cost already spent vs cap remaining**, in attempts and in wall-clock: your
  task instruction gives both. Take a loop with two attempts left, or most of its
  wall-clock gone, that is still finding new things each round. The cap is about
  to stop it anyway, so `stop_needs_human` there costs nothing the cap wouldn't
  have cost a cycle later, and saves the wasted cycle.

## Choosing the verdict

- With no trend yet (you are asked before the first cycle): `stop_needs_human`
  when the repair's doubts say nothing can be fixed here, else `continue`.
- Shrinking, or real progress on what is still open: `continue`. If one tag
  survives two or more rounds after a cycle targeted it while the total shrinks,
  go by its severity: `stop_needs_human` for a `critical`, `stop_downgrade` for
  an `important` with nothing red.
- The same tags recurring, or new ones as fast as old ones clear:
  `stop_needs_human`.
- What is open is real but not worth another cycle: `stop_downgrade`. Kraft
  ignores it when a test or a pipeline is red (a finding whose source, in
  parentheses after its tag, is a test or CI task rather than a reviewer) and runs
  the cycle anyway, so pick between the other two then.

## Reporting your decision

Report the verdict, and the reasoning in `concerns`, exactly as your task
instruction lays out. `concerns` is required for every verdict. On `continue`
the next fix agent is handed it word for word; on `stop_needs_human` it is the
stop reason a person reads; for `stop_downgrade` it is what a human reads at the
review gate later. Name the tags and rounds you relied on, say in a few words what each
finding is, and say what the next cycle should do differently or why none will
help: "tag 3f9a2c (the unchecked empty list in `parse()`) survived rounds 1 to 3;
the package shows no edit near it since your last session".

On `stop_needs_human`, write for the person who picks it up: the first sentence
says what they should do, then a blank line, then the evidence in short
paragraphs. A red merge-request CI job that failed outside the code (a registry
rate limit, a runner that went away) is a re-run, which `kraft item rerun-ci <id> --reason
"..."` does and then retries the node.

When you are unsure, report `continue`, and say what you could not tell in
`concerns`. A loop stopped early that would have converged in one more cycle
either strands the item for a human who then just retries it, or lets a real
finding through unresolved for a saving that never comes.

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.