harness-engineering-lifecycle
Skill385 starsChanged 5 months agoMITView on GitHub
Design, implement, and integrate generalized validation harnesses across a producer-consumer boundary after a local harness contract exists. Use when refactoring custom validation CLIs/MCPs for large polyrepos, extending Steward across sibling repos, or deploying a local tool to a consumer project for dogfooding and testing; use mcp-harness-repo-maintainer first for initial steward.yaml adoption and cold-start proof.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Arenukvern/skill_stewardword for word, first seen Jun 19, 2026
Other versions1 project uses a version of this.
Word for word · 1
- Arenukvern/skill_steward★ 11100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
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 repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/app_architecture.guide.mdcCursor rule
- .cursor/rules/ask_file_by_file_actions.mdcCursor rule
- .cursor/rules/ask_follow_up.mdcCursor rule
- .cursor/rules/ask_step_by_step_plan.mdcCursor rule
- .cursor/rules/command_resource.pattern.mdCursor rule
- .cursor/rules/create_test_rule.mdcCursor rule
- .cursor/rules/dart_dev.mdcCursor rule
- .cursor/rules/dart_doc.mdcCursor rule
- .cursor/rules/dart_extension_type_const_models.mdcCursor rule
- .cursor/rules/faq_usage.mdcCursor rule
- .cursor/rules/flutter_ui_dev.mdcCursor rule
- .cursor/rules/key_design_decisions.mdcCursor rule
- .cursor/rules/mermaid_rule.mdcCursor rule
- .cursor/rules/steward.mdcCursor rule
- .cursor/rules/test_guide.mdcCursor rule
- .cursor/rules/test_use_tdd.mdcCursor rule
- .cursor/rules/think_hard.mdcCursor rule
- .cursor/rules/training.mdcCursor rule
- .cursor/rules/typescript.mdcCursor rule
- .cursor/rules/writing_code_protocol.mdcCursor rule
- mcp-harness-repo-maintainerSkill
- mixture-of-expertsSkill
- multi-agent-handoffSkill
- plugin-marketplace-setupSkill
- release-changelog-harnessSkill
- repository-governance-lifecycleSkill
- skill-authoring-lifecycleSkill
- skill-eval-improveSkill
- skill-source-citationsSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
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 31
When engineering a harness beyond one local contract, follow the Cascading Agent Surface guidelines.
- Very specific: line 41
Declarative configuration: Use a configuration file (like steward.yaml) to specify:
- Very specific: line 45
Pruned traversals: Never perform recursive file-walking (list(recursive: true)) without pruning standard build/VCS folders early.
- Very specific: line 46
Generalized checks: Do not hardcode linters. Use parameterized declarative engines (e.g.
- Distinctive: line 50
When you make changes to the harness (Producer), you must validate it against dependent downstream projects (Consumer).
- Distinctive: line 54
Capture Adoption Friction: Run the consumer's validation suite using the local producer build.
- Very specific: line 56
Consumer Configuration Remediation: Update the *Consumer* repository to leverage the new generalized features (e.g.
- Distinctive: line 57
Dual Verification: Verify that the consumer suite passes, and the producer suite passes.
- Distinctive: line 64
Before promoting a generalized harness change, capture the proof from both sides.
- Distinctive: line 74
Do not promote a local fix into the generalized harness when only one consumer has a private path workaround.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Harness Engineering Lifecycle
Evolve a proven repo-local contract into a generalized, high-performance, declarative harness system, then safely dogfood those changes across a producer-consumer repository boundary. Start here only after the target repo has a steward.yaml contract and at least an H2 smoke proof; use mcp-harness-repo-maintainer before that.
When to use
- Evolving custom validation scripts into a central linter engine.
- Extending
stewardCLI features for large polyrepos. - Testing a local CLI/harness build against a sibling repository to catch path-resolution crashes or integration friction.
- Turning repeated local benchmark/probe findings into a reusable harness feature.
When not to use
- Initial
steward.yamladoption or first quick probe in one repo — usemcp-harness-repo-maintainer. - Skill creation, registry updates, or marketplace packaging — use
skill-authoring-lifecycleorplugin-marketplace-setup. - Product-specific diagnostics before a cold-start contract exists — first add a bounded action, probe, and scenario in the target repo.
Part 1: The Cascading Agent Surface (Architecture & Generalization)
When engineering a harness beyond one local contract, follow the Cascading Agent Surface guidelines. A strict separation of tools vs skills can fail once repo workflows span multiple packages, adapters, or consumers. Instead, link them using domain-agnostic abstractions:
- Layer 0 (The Embedded Agent Surface): The target application or engine must natively expose its internal state via explicit hooks (e.g., RPC or memory probes). Do not rely on brittle UI scraping or black-box testing.
- Layer 1 (The Protocol Adapter): Build generalized MCP servers or protocol adapters to connect to Layer 0. These tools provide raw visibility and actuation (e.g., taking screenshots, reading memory) but must contain NO business logic.
- Layer 2 (The Orchestrator): Build specialized harness CLIs that use their own automation/scripting to chain multiple Layer 1 actions together. The Orchestrator's primary job is the Fast Feedback Loop: it must emit structured, diagnostic JSON to pinpoint exactly what broke across boundaries.
- Layer 3 (The AI Wrapper): Following the
agentskills.iospec, Skills can and should contain thin-wrapper tools (scripts). The Skill acts as the AI's brain: it teaches the AI how to trigger Layer 2, interpret its complex JSON heuristics, and safely execute domain-specific recovery tools.
Generalization Principles
- Decouple transport from engine: Command interfaces (CLI) and JSON-RPC (MCP) are thin wrappers. All logic lives in a reusable core package.
- Declarative configuration: Use a configuration file (like
steward.yaml) to specify:- Branding: Name and description of the harness.
- Actions: Typed, bounded repo-local commands with effects, limits, outputs, and evidence policy.
- Documentation lattice: Maps of labels to specific doc files.
- Pruned traversals: Never perform recursive file-walking (
list(recursive: true)) without pruning standard build/VCS folders early. - Generalized checks: Do not hardcode linters. Use parameterized declarative engines (e.g.
disallowed-substrings).
Part 2: Cross-Repo Remediation (Testing)
When you make changes to the harness (Producer), you must validate it against dependent downstream projects (Consumer).
- Establish Sibling Baseline: Locate the consumer repository (e.g.
../<consumer-repo-name>). Run its tests to ensure it starts green. Do not change it yet. - Deploy Local Producer: Build and install the local development version of your harness.
- Capture Adoption Friction: Run the consumer's validation suite using the local producer build. Document path crashes or fragile rules in a scratchpad.
- Core Remediation: Fix the root causes in the Producer codebase. Generalize the fix; do not write consumer-specific hacks.
- Consumer Configuration Remediation: Update the Consumer repository to leverage the new generalized features (e.g. updating its
steward.yaml). - Dual Verification: Verify that the consumer suite passes, and the producer suite passes.
- Durable Knowledge: Extract any learnings to ADRs or FAQs using the
repository-governance-lifecycleskill.
Detour stop rule: If installing, activating, or wiring the local producer build fails twice, stop restoration, record the friction, use the consumer's native gate or portable fallback when possible, and return to the original acceptance check. Do not promote a generalized harness capability from that same detour; capture an observation or unknown case first.
Producer/consumer proof artifacts
Before promoting a generalized harness change, capture the proof from both sides.
| Side | Required artifact | Purpose |
| Producer | Changed schema/action/rule with tests or validator output | Shows the generalized feature works in the source harness. |
| Consumer | Updated steward.yaml or scenario manifest | Shows adoption does not require local-path magic. |
| Consumer | Benchmark summary or truthful durability_blocked output | Shows a fresh agent can see what is proven and what is blocked. |
| Both | Validation commands and versions | Makes failures reproducible across repos. |
| Docs | ADR/FAQ update when the boundary changed | Keeps future agents from rediscovering the same split. |
Do not promote a local fix into the generalized harness when only one consumer has a private path workaround. Keep it local until the contract, schema, or rule has a reusable shape and at least one held-out or future-agent repeat proves it transfers.
Install
npx skills add arenukvern/skill_steward --skill harness-engineering-lifecycleSources
See references/sources.md.
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.

