agentleFS
wxxb789wxxb789/hoa/skills/engineering/harness-engineering/SKILL.md

harness-engineering

Skill2 starsChanged 10 days agoMITView on GitHub

Refactor a repo's watchdogs, drift checkers or cron scripts into self-contained modules and a thin runner. When maintenance scripts sprawl or checks multiply, consolidate duplicate machinery and tie each check to an owner decision. Not for agent-harness-settings-parity.

28 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use self-improvement-loops, bdi-mental-states and 10 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.
  • DVwebBiz11Skill

    self-improvement-loops

    This skill should be used when the harness, scaffold, workflow, or optimizer itself is the optimization target: recursive self-improvement (RSI) loops, meta-harnesses, self-improving harnesses that mine their own failures and propose bounded edits, evolutionary or population-based search over agent scaffolds, acceptance gates for self-modifying systems, and agentic context evolution where the mechanism that produces context is versioned and evolved. Route governance of a single autonomous loop (locked surfaces, durable logs, rollback, novelty gates, approval boundaries) to harness-engineering, measurement and quality-gate design to evaluation, judge design to advanced-evaluation, and remote sandbox infrastructure to hosted-agents.

    Also in 4 projects that use this

  • Downey6689Skill

    bdi-mental-states

    Transforms external RDF context into BDI mental states. Invoke when modeling beliefs, desires, and intentions.

    Also in 5 projects that use this

  • Downey6689Skill

    hosted-agents

    Guidance for hosted/sandboxed agents. Invoke when running background agents in isolated VMs or multi-client setups.

    Also in 5 projects that use this

  • DVwebBiz11Skill

    long-horizon-prompting

    This skill should be used when writing, enhancing, or evaluating the launch prompt for a long-running autonomous agent or a parallel multi-agent orchestration attacking a hard problem: pseudo-formal task briefs that define terms and an exact success predicate linguistically, enumerate non-counting outcomes, set persistence rules with explicit stop and return conditions and effort floors, manage a diverse portfolio of parallel approaches with an approach registry and blocked-route bookkeeping, and gate the return on adversarial audit. Route agent topology and coordination protocols to multi-agent-patterns, runtime control surfaces and loop governance to harness-engineering, evaluator and quality-gate construction to evaluation, judge design to advanced-evaluation, and compaction or memory mechanics to context-compression and memory-systems.

    Also in 4 projects that use this

  • AbdelrhmanAlquranSkill

    latent-briefing

    This skill should be used when the user asks to "share memory between agents", "KV cache compaction for multi-agent", "orchestrator worker context", "latent briefing", "reduce worker tokens", "cross-agent memory without summarization", or discusses Attention Matching compaction, recursive language models with workers, or token explosion in hierarchical agents.

    Also in 4 projects that use this

  • abdullah1854Skill

    context-degradation

    Also in 5 projects that use this

  • +2 more from Downey6689

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 25 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep it self-contained: reuse modules within the repository, without creating a runtime dependency on another repository's harness.

    line 19
  2. Distinctive:

    Read-path checks, write gates and a single delivery path serve the same drift-control goal.

    line 29
  3. Very specific:

    Keep checks pure: (declarations, live_state) -> findings.

    line 38
  4. Distinctive:

    Run the repository's documented gates and check that test discovery did not lose cases.

    line 49
  5. Distinctive:

    Before first authorized destructive retention, prove on real paths that a no-op run selects only the exact prefix and completion marker and …

    line 50

“Common” is measured: kept by at least 6 in 10 of the 25 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Harness Engineering

Redesign a repository's scheduled checks or operational control plane around real consumers. Keep it self-contained: reuse modules within the repository, without creating a runtime dependency on another repository's harness. A domain pipeline is a tenant, not a drift gate.

Inventory and decide

  1. Inventory source roots, scheduled jobs and call sites. Count reachable code without caches, archives or rollback copies. Trace runtime path resolution, registrations and both import forms before calling a file dead or superseded; similar names and unused-looking symbols prove nothing. Measure actual code overlap before proposing deduplication.
  2. Classify live jobs as drift checks, observability, domain pipelines or gated execution. Read-path checks, write gates and a single delivery path serve the same drift-control goal; observability delivers findings.
  3. For each check, record its evidence, the owner decision it can change, and keep/drop/move. Propose retirement when no decision depends on it. Move only to a confirmed consumer. Compare declarations to live state; zero use, newer upstream HEAD and prose counts are not proof of drift. Get owner approval for removals and schedule changes.

Design and land

  1. Keep checks pure: (declarations, live_state) -> findings. Read-only adapters obtain state; one bounded runner owns cache, delivery, TTL and deduplication by stable identity/severity. Register intent_ref, decision and ttl; validate at load time. Notification state must rebuild from zero. Trace actual I/O before trusting check/dry-run/JSON flags. Keep repair, installs and destructive maintenance outside detectors. Preserve independent execution, inputs and verdict ownership for producer/verifier pairs.
  2. Replace reachable code on a net-negative line budget. Stage replacement and failure fixtures, then switch approved callers and schedules together without dual effects or coverage gaps. Keep rollback artifacts, with timestamped backups for files outside Git. Roll back affected definitions, not shared-state snapshots.
  3. Prove the healthy path is silent and injected failures reject rather than report success. Run the repository's documented gates and check that test discovery did not lose cases. Before first authorized destructive retention, prove on real paths that a no-op run selects only the exact prefix and completion marker and deletes nothing; fail closed if no complete generation exists. Verify actual wiring with an approved end-to-end run on a maintenance surface; have an independent reader verify the artifact. Report first scheduled proof separately if pending. Do not invent a soak period or repeated approval gate.

For large extractions or failures involving commit gates, test discovery or draft promotion, see 2026-11-21 implementation notes.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.