harness
Skill11 starsChanged 6 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".
21 other projects use a version of this.
Adopted by
Most recently taken up by
- Boxline-dev/examplestheir own version, first seen Oct 5, 2026
- hanzhangzzz/agent-skills-zhtheir own version, first seen Oct 4, 2026
- virgoC0der/awesome-claude-codetheir own version, first seen Sep 11, 2026
- skillsynchq/txcripttheir own version, first seen Sep 4, 2026
- bam-bam-2/solo-skillstheir own version, first seen Sep 3, 2026
- gutomec/nirvana-os-enginetheir own version, first seen Aug 12, 2026
Other versions21 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 21
- revfactory/harness★ 9.1ksame name
- stellarlinkco/myclaude★ 2.8ksame name
- BankrBot/skills★ 1.2ksame name
- bam-bam-2/solo-skills★ 366same name
- serejaris/personal-corp-os★ 228same name
- SensorsIot/Embedded-AI-Harness★ 185same name
- skillsynchq/txcript★ 149same name
- gutomec/nirvana-os-engine★ 79same name
- stellarlinkco/skills★ 27same name
- gd452/skills★ 7same name
11 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
6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 33
When a computational sensor fires:
- Very specific: line 58
Treat snapshot changes as behavior changes.
- Distinctive: line 62
When any sensor fires repeatedly (>2 times in one sprint):
- Very specific: line 64
Run ./scripts/distill-strikes.sh --threshold 3 to cluster repeated failure signatures from .agents/ci/regression-matrix.json and recent …
- Very specific: line 65
If the fail-fast threshold is reached and no guide exists, distill-strikes.sh drafts a starter skill skeleton …
- Very specific: line 67
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 15 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.
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.

