Skip to content
lukavtzPublic

About

Two agent skills that keep a coding agent on one slice: ask before coding, red-first tests, stop gates, honest reports.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

steerloop — one slice at a time, the agent asks before it writes code

Install · The gate · The skills · Evidence · Limits

One commit gate and fifteen skill files for coding agents.

The gate is the part that cannot be ignored: it rejects a commit or a pull request whose message does not carry the five-key slice report. The skills describe how to produce one.

changed: parser.mjs, parser.test.mjs
verified: node --test parser.test.mjs → 4 pass, 0 fail
assuming: none
not done: none
question: none

Install

Skills, into any agent that reads SKILL.md:

npx skills add lukavtz/steerloop

Gate, in the repository you want to police:

git config core.hooksPath .githooks   # from a clone of this repo

or copy gate/steerloop-gate.mjs into your own tooling and call it from a commit-msg hook or CI step.

Profiles

Not every project needs fifteen skills. stack.json is the machine-readable list; these are the same groups as commands:

Profile What it covers Install
core Gates, method, deepening npx skills add lukavtz/steerloop --skill steerloop --skill craftloop --skill be-ambitious
git Commits, branches, PRs, conflicts, recovery npx skills add lukavtz/steerloop --skill gitkeeper
web Core plus performance and a landing page npx skills add lukavtz/steerloop --skill steerloop --skill craftloop --skill webperf --skill landing-page-design
design Page, Figma, anti-slop pass, figures, README npx skills add lukavtz/steerloop --skill landing-page-design --skill figma-designer --skill hallmark --skill anatomy --skill beautify-github-readme
text English and Russian prose npx skills add lukavtz/steerloop --skill stop-slop --skill ru-text --skill ru-check --skill ru-score --skill humanizer-ru
full All fifteen npx skills add lukavtz/steerloop

npm test validates every SKILL.md against the Agent Skills rules — frontmatter, a 500-line body budget, one-level references that all resolve, no placeholders — and checks that stack.json matches the tree, so a skill cannot be added without being listed.

The gate

Check Rejects
All five keys present a message without assuming:
Every value non-empty question: with nothing after it
verified: names something runnable verified: looked right
Merge commits and [skip-gate] nothing — they pass

STEERLOOP_SKIP=1 bypasses while it is set, for the case where the gate itself is wrong. The 26 tests behind it live in gate/steerloop-gate.test.mjs and run with npm test.

npm test          # the gate's own tests
npm run gate:check -- pr-body.md

The skills

Group Skills Fires when
Process steerloop, craftloop, be-ambitious Every coding task; substantial work; a request worth deepening rather than enlarging
Git gitkeeper Any git or GitHub operation: committing, branching, conflicts, rebasing, worktrees, recovery, PRs, reviews, releases, gh
Web webperf A slow page, or a change touching loading, bundles, images, queries
Design landing-page-design, figma-designer, hallmark, anatomy, beautify-github-readme A landing page, a Figma file, an anti-slop visual pass, an isometric figure, a repository README
Prose stop-slop, ru-text, ru-check, ru-score, humanizer-ru Drafting, editing or reviewing text, in English or Russian; typography that applies to every Russian output

steerloop is the only one this repository measures. craftloop is included with two sentences changed: an unanswered gate counts as a blocker, and a value the request does not state is the user's decision rather than a default to invent.

The rest are vendored under MIT at pinned commits, copied verbatim. Provenance, licenses and what was left out: THIRD_PARTY_NOTICE.md.

How it works

Five steps — restate, reuse, red check, smallest code, run — with an amber gate that sends missing values back to the human

A blocked slice reports like this:

changed: none
verified: `cat store.mjs` → 5 lines, no importer of saveUser
assuming: none
not done: all of it — blocked on the values below
question: TTL, storage, error policy, invalidation, rollout?

The report is the part that survives contact with git. Everything else in the skill is advice the model may ignore; this block is checked.

Evidence

Two instruments in evals/, both A/B on the same harness, so the only variable is the skill text.

Behaviour probes — 9 baited tasks, 5 repetitions per cell, 45 cells per arm:

Arm Passed
Plain prompt 26 / 45
With steerloop 38 / 45

Almost all of that gap sits in one rule. On the two tasks that need values the request never states, the skill arm disclosed or blocked 10 of 10 times; the plain arm 0 of 10:

Cache and no-answer tasks Blocked Declared the assumptions
Plain prompt 0 / 10 0 / 10
With steerloop 2 / 10 8 / 10

The other seven probes, which do not depend on that field, split 28 / 35 against 26 / 35. The skill changed one thing: default values now appear in the report instead of vanishing into the code.

SlopCodeBench-lite — three CLI tasks, three rounds each, the agent extends its own code while the spec grows. Design and metrics follow SlopCodeBench. Two repetitions, 26 checkpoints per arm:

Metric Plain steerloop
Checkpoints passed 26 / 26 26 / 26
Production LOC 76 64
All code LOC 85 82
Erosion (largest function ÷ LOC) 0.17 0.12

The size difference traces to one wording change. With the earlier rule, "write a check first" produced a new check.mjs per slice and the skill arm ran 47% larger. Reworded to "a command you rerun, not a new file", the same tasks came out smaller than the control. Treat the direction as a lead, not a finding: six cells per arm, and earlier runs disagreed.

Reproduce (requires an omp session: the runners call the agent/wait helpers that the eval kernel injects into __main__):

%load "evals/run_evals.py"    # probe suite; main(reps=5) in the eval kernel
await main()                  # in evals/run_slop.py, the slop benchmark

The per-cell checks behind both tables are committed: evals/results/2026-11-04-probes.json and evals/results/2026-11-04-slop.json. REPS is 5, matching the table. Rerunning overwrites the working copies; the dated artifacts stay.

Limits

  • Prose does not enforce. The only measured effect of the skill text is the check-file wording. Every other rule was followed at the rate of the control arm.
  • The gate enforces format, not thought. It can verify that a verified: line exists and looks like a command. It cannot verify that the command was run or that the output was real. That is the honest ceiling of a hook.
  • One harness, one model family. Every number comes from a setup whose system prompt already enforces verification. On a bare agent the delta could differ in either direction.
  • The assumption field discloses, it does not stop. With the skill present, 8 of 10 runs shipped the guessed values anyway and 2 blocked. That is better than silence, and it is not the behaviour the skill asks for.
  • The gate cannot tell a declared assumption from an honest one. assuming: none passes whether or not the agent guessed. Presence is checkable; truth is not.

Layout

skills/steerloop/SKILL.md    the contract
skills/craftloop/SKILL.md    the method
skills/craftloop/references/ security rules, loaded on demand
skills/webperf/SKILL.md      web performance router
skills/webperf/references/   31 recipes, one per symptom
skills/*                     fifteen skills, four original
scripts/validate-skills.mjs  skill structure and stack.json check
stack.json                   skills, profiles, origins, licenses
THIRD_PARTY_LICENSES/        MIT texts for the vendored skills
gate/steerloop-gate.mjs      the report validator
gate/steerloop-gate.test.mjs 26 tests, run by npm test
.githooks/commit-msg         hook that calls the validator
evals/                       probes and the slop benchmark
evals/results/               committed per-cell checks
assets/readme/               hero, loop diagram, social card, build script

assets/readme/social.png is the 1200×630 card for the repository's social preview.

License

MIT.

About

Two agent skills that keep a coding agent on one slice: ask before coding, red-first tests, stop gates, honest reports.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages