harness
Skill15 starsChanged 5 months agoMITView on GitHub
Harness engineering guide — maps all sensors and feedforward guides, teaches self-correction protocol when a CI sensor fires. Use when a sensor fires, before making code changes, or when setting up agent context for a new task. Triggers: "harness", "sensor fire", "CI failure", "self-correction".
35 other projects use a version of this.
Adopted by
Most recently taken up by
- hanzhangzzz/agent-skills-zhtheir own version, first seen Oct 29, 2026
- anlmalabs/skillstheir own version, first seen Oct 25, 2026
- manhquydev/flow-skilltheir own version, first seen Oct 16, 2026
- es6kr/skillstheir own version, first seen Oct 13, 2026
- manuelcozar55/setup-claude-codetheir own version, first seen Oct 13, 2026
- ririversoza/claude-harnesstheir own version, first seen Oct 11, 2026
Used with
Projects with it also use retro, verify and 2 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AWSSkillretro
Conduct a retrospective on a coding session.
Also in 3 projects that use this
Microsoft AzureSkillverify
End-to-end app testing pipeline for browser-based web apps on cloud browsers via Azure Playwright Workspaces: verify the live app, author tests for working flows, heal failing tests, then re-run with video and produce one consolidated report. Three phases (app verification, test authoring, test healing) plus a scoped final sanity run; each phase emits a sub-report. Use when asked to "verify my app", "make sure my app works and has good test coverage", "do a full QA pass", "add tests where I'm missing coverage", "fix failing tests and add new ones", "smoke test before deploy", "QA my deployment", or any combined verify-and-test ask. Requires Azure CLI (`az login`) and a Playwright Workspace resource ID — bootstraps configs on first invocation. Browser-based web apps with Playwright only — not for unit/API tests, native mobile/desktop, load/perf, or full accessibility audits.
Also in 3 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 4 projects that use this
GoogleSkillgrill-me
A relentless interview to sharpen a plan or design.
Also in 3 projects that use this
Other versions35 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 35
- revfactory/harness★ 9.1ksame name
- cexll/myclaude★ 2.8ksame name
- Simpleyyt/ai-manus★ 1.6ksame name
- BankrBot/openclaw-skills★ 1.2ksame name
- BankrBot/skills★ 1.2ksame name
- bam-bam-2/solo-skills★ 366same name
- serejaris/personal-corp-os★ 243same name
- serejaris/ris-claude-code★ 243same name
- SensorsIot/Embedded-AI-Harness★ 235same name
- skillsynchq/txcript★ 208same name
25 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository29 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms-full.txtllms.txt
- llms.txtllms.txt
- anti-ai-slopSkill
- architecture-diagramSkill
- atomic-commitSkill
- build-rustSkill
- codacySkill
- crates-io-name-checkSkill
- dora-reportSkill
- goap-agentSkill
- issue-triageSkill
- lint-rustSkill
- metrics-reporterSkill
- privacy-firstSkill
- release-rustSkill
- reviewing-pull-requestsSkill
- secret-lintSkill
- self-fix-loopSkill
- skill-creatorSkill
- skill-evaluatorSkill
- stacked-prsSkill
- task-decompositionSkill
- test-rustSkill
- tokio-performanceSkill
- triz-analysisSkill
- triz-solverSkill
- verify-actionsSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 2 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 24 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
Non-Interference Rule: Never assume a green status from do-harness means xtask checks ran, or vice versa.
- Distinctive: line 40
When a computational sensor fires:
- Very specific: line 65
Treat snapshot changes as behavior changes.
- Distinctive: line 69
When any sensor fires repeatedly (>2 times in one sprint):
- Very specific: line 71
Run ./scripts/distill-strikes.sh --threshold 3 to cluster repeated failure signatures from .agents/ci/regression-matrix.json and recent …
- Very specific: line 72
If the fail-fast threshold is reached and no guide exists, distill-strikes.sh drafts a starter skill skeleton …
- Very specific: line 74
Update the corresponding feedforward guide to prevent recurrence and document the update in CHANGELOG.md.
“Common” is measured: kept by at least 6 in 10 of the 24 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: harness
What Is the Harness
Agent = Model + Harness. The harness is the system of feedforward guides (what to do before coding) and feedback sensors (what catches violations after coding). It has two axes:
- Feedforward (guides): Context, constraints, conventions that prevent errors before they happen.
- Feedback (sensors): Automated checks that fire after code changes, providing structured error output.
The harness has two modes:
- Computational: Deterministic checks (fmt, clippy, deny) — always trust the output.
- Inferential: LLM-based guidance (skill docs, agent context) — direction, not commands.
Tool Ownership & Quality Verification
- Canonical Project Quality Command:
./scripts/quality-gates.sh(orcargo run -p xtask -- quality run).xtaskis the single source of truth for project quality tiers (pull-request,protected-branch,scheduled,release) and quality telemetry (.agents/ci/quality-run.json). - Optional Agent Harness Tooling:
do-harness(scripts/setup-harness.sh) provides agent diagnostics (do-harness doctor) and PR readiness checks (do-harness pr review,do-harness pr ready).do-harness.tomldelegates quality checks to./scripts/quality-gates.shto prevent running redundant duplicate Cargo passes. - Non-Interference Rule: Never assume a green status from
do-harnessmeansxtaskchecks ran, or vice versa. Ifdo-harnessis absent or PR context is unavailable, fall back directly to./scripts/quality-gates.shand./scripts/doctor.sh. - Sensor Applicability Rule: The
quality-gatessensor'swhen-changedglobs indo-harness.tomldecide whetherdo-harness verify --changedruns it. Manifest edits need both"Cargo.toml"(workspace root manifest) and"**/Cargo.toml"(workspace member manifests, inside and outsidecrates/). Rust sources and lockfiles match on file shape ("**/*.rs","**/Cargo.lock") so a file in an unknown directory still selects the sensor."Cargo.toml"alone skips member manifests, and bare wildcards like"**"fire on Markdown-only edits. Keep the same rule inconfig/xtask.jsonwhen_changed.
Sensor Response Protocol
When a computational sensor fires:
- Read the full error message — it includes a fix hint.
- Classify the error: fmt / lint / test / arch / security.
- Check historical regression signatures: Consult
.agents/ci/regression-matrix.jsonto see if the failure matches a known historical pattern (e.g.MD001heading jumps,cargo-denypolicy violations, orgitleaksfindings). - Apply the minimal fix — do not refactor unrelated code.
- Re-run the specific sensor —
cargo fmt,cargo clippy, etc. - Only commit when the sensor is green.
- Write a metrics event to
.agents/events/YYYY/MM/DD/per themetrics-reporterskill.
Sensor Quick Reference
| Sensor | Command | Config | Stage |
| fmt | cargo fmt --all -- --check | .pre-commit-config.yaml | pre-commit |
| clippy | cargo clippy --workspace --all-targets --all-features -- -D warnings | .clippy.toml, .pre-commit-config.yaml | pre-commit + CI |
| deny | cargo deny check | deny.toml | pre-commit + CI |
| nextest | cargo nextest run | Cargo.toml | CI |
| mutants | cargo mutants | [workspace.metadata.cargo-mutants] in Cargo.toml | CI weekly |
| arch_fitness | cargo test --test arch_fitness | tests/arch_fitness.rs | CI |
| insta snapshots | make insta-test / cargo insta review | crates/workspace-tests/tests/behaviour_harness.rs | CI |
| gitleaks | gitleaks detect | .gitleaks.toml | CI |
Snapshot Contract
Treat snapshot changes as behavior changes. Inspect them with cargo insta review; accept only intentional, deterministic output changes. Never update snapshots solely to make a failing test pass. CI runs the normal test suite without snapshot updates enabled, so pending snapshots fail rather than being accepted automatically.
Steering Loop
When any sensor fires repeatedly (>2 times in one sprint):
- Run
./scripts/distill-strikes.sh --threshold 3to cluster repeated failure signatures from.agents/ci/regression-matrix.jsonand recent quality history. - If the fail-fast threshold is reached and no guide exists,
distill-strikes.shdrafts a starter skill skeleton (.agents/skills/drafts/<subsystem>/SKILL.md) with verbatim HARNESS VIOLATION hints and a red fixture sample. If an existing skill exists,distill-strikes.shrefuses to overwrite and points to it instead. - Review and refine the draft skill with
skill-creatorprinciples. Draft promotion requires a green sensor verification run. - Update the corresponding feedforward guide to prevent recurrence and document the update in
CHANGELOG.md.
The steering loop closes the harness: sensors fire → distill-strikes.sh drafts starter skills → humans and agents update guides → sensors fire less.
Rationalizations
| Rationalization | Reality |
| "The sensor is just being pedantic, I'll bypass it." | Computational sensors exist to prevent regressions. Never suppress without approval. |
| "I'll fix this CI failure after committing." | Committing broken code breaks peers and pipelines. Always verify sensors pass before commit. |
| "I don't need to check the regression matrix." | Checking .agents/ci/regression-matrix.json saves time by identifying known failure patterns. |
Red Flags
- Committing code while computational sensors are red
- Suppressing sensor errors rather than fixing root causes
- Ignoring repeated sensor strikes instead of running
distill-strikes.sh
References
- Full harness map:
HARNESS.mdat repo root. - Historical CI Regression Matrix:
.agents/ci/regression-matrix.json - Matrix test suite:
tests/ci_regression_matrix_test.sh - Agent-optimised error output:
scripts/harness-check.shruns each sensor and emits structured error output withHARNESS VIOLATIONprefix.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

